/* Registration Form Styles */

.registration-section,
.success-section,
.validation-section {
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.registration-container,
.success-container,
.validation-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Progress Bar */
.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 40px;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, #3399FF, #003366);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.4);
}

.step-label {
    font-size: 0.875rem;
    color: #666;
    font-weight: 500;
}

.progress-step.active .step-label {
    color: #003366;
    font-weight: 600;
}

.progress-line {
    width: 80px;
    height: 3px;
    background: #e0e0e0;
    border-radius: 2px;
}

/* Form Card */
.form-card,
.success-card,
.validation-card {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 51, 102, 0.1);
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
}

.alert-error strong {
    display: block;
    margin-bottom: 8px;
}

.alert-error ul {
    margin: 0;
    padding-left: 20px;
}

.alert-error li {
    margin-bottom: 4px;
}

.alert-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-left: 4px solid #003366;
    color: #003366;
}

.alert-info strong {
    font-weight: 600;
}

.school-info {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.school-logo-form {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 20px;
    display: block;
}

.school-info h2 {
    color: #003366;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.school-info h3 {
    color: #3399FF;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Form Steps */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    color: #003366;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    margin-top: 30px;
}

.step-title:first-child {
    margin-top: 0;
}

/* Form Groups */
.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

label,
.form-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    font-size: 0.9375rem;
}

.required {
    color: #dc3545;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #3399FF;
    box-shadow: 0 0 0 3px rgba(51, 153, 255, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.8125rem;
    margin-top: 4px;
}

textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
    appearance: none;
}

/* File Upload */
.file-upload-area {
    position: relative;
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #fafafa;
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: #3399FF;
    background: #f0f8ff;
}

.file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.file-upload-placeholder i {
    font-size: 3rem;
    color: #3399FF;
    margin-bottom: 16px;
}

.file-upload-placeholder p {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

.file-info {
    display: block;
    font-size: 0.8125rem;
    color: #666;
}

.file-preview {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0f8ff;
    border-radius: 6px;
}

.file-preview i {
    font-size: 1.5rem;
    color: #3399FF;
}

.file-preview .file-name {
    flex: 1;
    color: #333;
    font-weight: 500;
    text-align: left;
    word-break: break-all;
}

.btn-remove-file {
    background: #dc3545;
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-remove-file:hover {
    background: #c82333;
    transform: scale(1.1);
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-label span {
    flex: 1;
    color: #555;
    line-height: 1.5;
}

/* Buttons */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.btn {
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: linear-gradient(135deg, #3399FF, #003366);
    color: white;
    box-shadow: 0 4px 15px rgba(51, 153, 255, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(51, 153, 255, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: #003366;
    border: 2px solid #003366;
}

.btn-outline:hover {
    background: #003366;
    color: white;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-next,
.btn-submit {
    margin-left: auto;
}

/* Success Page */
.success-icon {
    text-align: center;
    margin-bottom: 24px;
}

.success-icon i {
    font-size: 5rem;
    color: #28a745;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-card h2 {
    color: #003366;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
}

.success-message {
    text-align: center;
    color: #666;
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.registration-number-box {
    background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
    border: 2px solid #3399FF;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    margin-bottom: 24px;
}

.registration-number-box label {
    display: block;
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 12px;
}

.reg-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #003366;
    letter-spacing: 2px;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
}

.btn-copy {
    background: #003366;
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #3399FF;
    transform: translateY(-2px);
}

.info-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 16px;
    border-radius: 6px;
    margin: 24px 0;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.info-box.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.info-box.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.info-box i {
    color: #856404;
    font-size: 1.25rem;
    margin-top: 2px;
}

.info-box.success i {
    color: #155724;
}

.info-box.error i {
    color: #721c24;
}

.info-box p {
    flex: 1;
    color: #856404;
    margin: 0;
    line-height: 1.6;
}

.info-box.success p {
    color: #155724;
}

.info-box.error p {
    color: #721c24;
}

.proof-section {
    margin: 32px 0;
    text-align: center;
}

.proof-section h3 {
    color: #003366;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.proof-section p {
    color: #666;
    margin-bottom: 24px;
}

.pdf-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-bottom: 20px;
}

.pdf-preview i {
    font-size: 2rem;
    color: #dc3545;
}

.pdf-preview span {
    color: #333;
    font-weight: 500;
}

.btn-download {
    display: inline-flex;
}

.next-steps {
    margin: 32px 0;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.next-steps h4 {
    color: #003366;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.next-steps ol {
    padding-left: 24px;
}

.next-steps li {
    color: #555;
    line-height: 1.8;
    margin-bottom: 8px;
}

.action-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

/* Validation Page */
.validation-card {
    max-width: 600px;
    margin: 0 auto;
}

.validation-card h2 {
    color: #003366;
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 32px;
}

.detail-group {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.detail-group:last-of-type {
    border-bottom: none;
}

.detail-group label {
    display: block;
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 6px;
    font-weight: 500;
}

.detail-value {
    font-size: 1.125rem;
    color: #333;
    font-weight: 600;
}

.detail-value.highlight {
    color: #003366;
    font-size: 1.5rem;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1rem;
}

.status-badge.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-verified {
    background: #d4edda;
    color: #155724;
}

.status-badge.status-failed {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.status-in_selection {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-accepted {
    background: #d1ecf1;
    color: #0c5460;
}

.status-badge.status-re_registered {
    background: #fff3cd;
    color: #856404;
}

.status-badge.status-synchronized {
    background: #d4edda;
    color: #155724;
}

.info-box.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-box.warning i {
    color: #856404;
}

.info-box.warning p {
    color: #856404;
}

.info-box.success-large {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border-left: 6px solid #28a745;
    padding: 24px;
    border-radius: 12px;
    margin: 24px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-box.success-large i {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 12px;
}

.info-box.success-large h3 {
    color: #155724;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.info-box.success-large p {
    color: #155724;
    font-size: 1.125rem;
    margin: 12px 0;
    line-height: 1.6;
}

.info-box.success-large .highlight {
    font-weight: 600;
    font-size: 1.25rem;
    background: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 16px;
}

.contact-section {
    margin-top: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.contact-section h4 {
    color: #003366;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-section p {
    color: #666;
    margin-bottom: 20px;
}

.text-muted {
    color: #999;
    font-style: italic;
}

/* Read-Only Section Styles */
.read-only-section {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.read-only-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin-bottom: 4px;
}

.read-only-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, #003366 0%, #003366 100%);
    color: white;
    padding: 40px 0;
    margin-top: 60px;
    border-top: 1px solid #ddd;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section {
    /* Default styles inherited */
}

.footer-title {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1rem;
}

.footer-text {
    font-size: 0.875rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3399FF;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #3399FF;
}

/* Responsive */
@media (max-width: 768px) {

    .registration-section,
    .success-section,
    .validation-section {
        padding: 100px 15px 40px;
    }

    .form-card,
    .success-card,
    .validation-card {
        padding: 24px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    /* Hide Step Circles on Mobile, Keep Labels */
    .step-number {
        display: none;
    }

    .progress-line {
        width: 40px;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-next,
    .btn-submit {
        margin-left: 0;
        width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    .reg-number {
        font-size: 1.25rem;
        word-break: break-all;
    }

    /* Responsive Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-section {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 20px;
    }

    .footer-section:last-child {
        border-bottom: none;
    }

    /* Responsive Read-Only Section */
    .read-only-section {
        padding: 16px;
    }

    .read-only-label {
        font-size: 0.7rem;
    }

    .read-only-value {
        font-size: 0.875rem;
    }
}