/* Registration Page Styles */
.registration-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a7a 100%);
    color: white;
    padding: 100px 0 60px;
    margin-top: -20px;
}

.registration-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.registration-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    line-height: 1.6;
}

.registration-form-section {
    padding: 80px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.registration-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    overflow: hidden;
    border: none;
}

.registration-card .card-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a4a7a 100%);
    color: white;
    padding: 2rem;
    border: none;
    text-align: center;
}

.registration-card .card-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.registration-form {
    padding: 2rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.form-section:last-of-type {
    border-bottom: none;
    margin-bottom: 1rem;
}

.section-header {
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
}

.section-header h4 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
}

.form-label.required::after {
    content: ' *';
    color: #dc3545;
    font-weight: bold;
}

.form-control, .form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(248, 173, 61, 0.25);
    background-color: #ffffff;
}

.form-control.is-invalid, .form-select.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-control.is-valid, .form-select.is-valid {
    border-color: #28a745;
    background-color: #f8fff8;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
}

.form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-top: 0.125rem;
    border: 2px solid var(--primary-color);
}

.form-check-input:checked {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(248, 173, 61, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: #495057;
    line-height: 1.5;
}

.terms-box {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.terms-box .form-check {
    margin-bottom: 0;
}

.terms-box a {
    text-decoration: none;
    font-weight: 600;
}

.terms-box a:hover {
    text-decoration: underline;
}

.form-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #ff9500 100%);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ff9500 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 173, 61, 0.4);
}

.btn-outline-secondary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 50, 88, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .registration-header {
        padding: 80px 0 40px;
    }

    .registration-title {
        font-size: 2rem;
    }

    .registration-subtitle {
        font-size: 1rem;
    }

    .registration-form-section {
        padding: 40px 0;
    }

    .registration-form {
        padding: 1.5rem;
    }

    .registration-card .card-header {
        padding: 1.5rem;
    }

    .registration-card .card-header h3 {
        font-size: 1.5rem;
    }

    .section-header h4 {
        font-size: 1.2rem;
    }

    .form-actions .col-md-6 {
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .registration-title {
        font-size: 1.8rem;
    }

    .registration-form {
        padding: 1rem;
    }

    .form-section {
        margin-bottom: 2rem;
    }
}

/* Animation enhancements */
.form-section {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.form-section:nth-child(1) { animation-delay: 0.1s; }
.form-section:nth-child(2) { animation-delay: 0.2s; }
.form-section:nth-child(3) { animation-delay: 0.3s; }
.form-section:nth-child(4) { animation-delay: 0.4s; }
.form-section:nth-child(5) { animation-delay: 0.5s; }
.form-section:nth-child(6) { animation-delay: 0.6s; }

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

/* Loading state for form submission */
.btn-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
