/* 
    Main Stylesheet for STTP - Press Registration System
    Created for São João 2025 - Campina Grande
*/

/* ---------- Global Styles ---------- */
:root {
    --primary-color: #1e5f8c;
    --primary-color-dark: #12456a;
    --secondary-color: #f39c12;
    --secondary-color-dark: #d68910;
    --success-color: #27ae60;
    --danger-color: #c0392b;
    --warning-color: #f39c12;
    --info-color: #3498db;
    --white: #ffffff;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --black: #000000;
    --font-family: 'Roboto', sans-serif;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.5;
    color: var(--gray-800);
    background-color: var(--gray-200);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Accessibility ---------- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---------- Header ---------- */
header {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(to right, var(--primary-color), var(--primary-color-dark));
    color: var(--white);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: var(--box-shadow);
    margin-bottom: 30px;
}

.logo {
    margin-bottom: 15px;
}

.logo img {
    max-width: 180px;
    height: auto;
}

header h1 {
    font-size: 28px;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

header h2 {
    font-size: 20px;
    font-weight: 400;
    font-style: italic;
}

/* ---------- Main Content ---------- */
main {
    padding: 20px 0 40px;
}

.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    margin-bottom: 30px;
}

.card-content {
    padding: 25px;
}

/* ---------- Welcome Page ---------- */
.welcome-content {
    text-align: center;
}

.welcome-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.welcome-content p {
    margin-bottom: 30px;
    font-size: 18px;
}

.info-box {
    background-color: var(--gray-100);
    border-left: 4px solid var(--primary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.info-box h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul, .info-box ol {
    margin-left: 20px;
}

.info-box li {
    margin-bottom: 8px;
}

/* ---------- Buttons ---------- */
.button-container {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-color-dark);
}

.btn-secondary {
    background-color: var(--gray-600);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--gray-700);
}

.btn-success {
    background-color: var(--success-color);
    color: var(--white);
}

.btn-success:hover {
    background-color: #219a52;
}

.btn-danger {
    background-color: var(--danger-color);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #a93226;
}

.btn-info {
    background-color: var(--info-color);
    color: var(--white);
}

.btn-info:hover {
    background-color: #2980b9;
}

.btn-block {
    display: block;
    width: 100%;
}

.btn-sm {
    padding: 6px 10px;
    font-size: 14px;
}

.btn:disabled {
    background-color: var(--gray-400);
    cursor: not-allowed;
}

.admin-link {
    margin-left: auto;
    font-size: 14px;
}

/* ---------- Forms ---------- */
form {
    margin-top: 20px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.form-section h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--gray-700);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-400);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(30, 95, 140, 0.2);
}

small {
    display: block;
    margin-top: 5px;
    color: var(--gray-600);
    font-size: 12px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
}

/* ---------- Step Indicator ---------- */
.step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-300);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 30px;
    height: 30px;
    background-color: var(--gray-400);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

.step-text {
    font-size: 14px;
    color: var(--gray-600);
    transition: all 0.3s ease;
}

.step.active .step-number {
    background-color: var(--primary-color);
}

.step.active .step-text {
    color: var(--primary-color);
    font-weight: 500;
}

.step.completed .step-number {
    background-color: var(--success-color);
}

.step-line {
    flex: 1;
    height: 3px;
    background-color: var(--gray-400);
    margin: 0 10px;
    position: relative;
    top: -15px;
    z-index: 0;
}

.step-line.completed {
    background-color: var(--success-color);
}

/* ---------- Terms & Conditions ---------- */
.terms-container {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.terms-content {
    padding: 15px;
}

.terms-content h3 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: var(--gray-800);
}

.terms-content h3:first-child {
    margin-top: 0;
}

.terms-content p {
    margin-bottom: 15px;
}

.terms-content ol, 
.terms-content ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.terms-content li {
    margin-bottom: 8px;
}

/* ---------- Confirmation Page ---------- */
.confirmation-content {
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-content h2 {
    color: var(--success-color);
    margin-bottom: 20px;
}

.confirmation-content p {
    margin-bottom: 15px;
    font-size: 18px;
}

.confirmation-token {
    margin: 25px 0;
    background-color: var(--gray-100);
    border-radius: var(--border-radius);
    padding: 15px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.token-display {
    background-color: var(--gray-800);
    color: var(--white);
    font-family: monospace;
    font-size: 24px;
    padding: 10px;
    border-radius: var(--border-radius);
    margin: 10px 0;
    letter-spacing: 2px;
}

/* ---------- Alerts ---------- */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

/* ---------- Loading Spinner ---------- */
.loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--gray-600);
}

.loading-spinner i {
    font-size: 30px;
    margin-bottom: 10px;
}

/* ---------- Footer ---------- */
footer {
    text-align: center;
    padding: 20px 0;
    color: var(--gray-600);
    font-size: 14px;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    header h2 {
        font-size: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .form-row .form-group {
        min-width: 100%;
    }
    
    .button-container {
        flex-direction: column;
    }
    
    .step-indicator {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .step {
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
    
    .step-line {
        display: none;
    }
    
    .step-number {
        margin-bottom: 0;
    }
}

/* ---------- Print styles ---------- */
@media print {
    body {
        background-color: white;
        color: black;
    }
    
    .container {
        max-width: 100%;
    }
    
    header, .step-indicator, .button-container, .admin-link, footer {
        display: none;
    }
    
    .card {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }
    
    .card-content {
        padding: 0;
    }
    
    .confirmation-token {
        border: 1px solid #ccc;
    }
}