/* ===================================
   Apply Page - Modern Multi-Step Form
   =================================== */

/* Hero Section */
.apply-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.apply-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/20_1080px.jpg') center/cover;
    opacity: 0.50;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(19, 19, 20, 0.88) 0%, 
        rgba(20, 20, 20, 0.78) 100%);
    z-index: 1;
}

.apply-hero .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    text-align:left;
    max-width: 700px;
    margin: 3 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--text-white);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

/* Application Section */
.application-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 3px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all var(--transition-base);
}

.progress-step.active .step-circle,
.progress-step.completed .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--text-dark);
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    text-align: center;
}

.progress-step.active .step-label,
.progress-step.completed .step-label {
    color: var(--text-dark);
}

.progress-line {
    flex: 1;
    height: 3px;
    background: var(--border-color);
    margin: 0 1rem;
    position: relative;
    top: -15px;
}

.progress-step.completed ~ .progress-line {
    background: var(--accent);
}

/* Form Container */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

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

.form-step.active {
    display: block;
    animation: fadeInUp 0.5s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header h2 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.form-header p {
    color: var(--text-body);
    font-size: 1.1rem;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.required {
    color: #dc3545;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: #dc3545;
}

.form-group input.valid,
.form-group select.valid,
.form-group textarea.valid {
    border-color: #28a745;
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.form-group input.error ~ .error-message,
.form-group select.error ~ .error-message,
.form-group textarea.error ~ .error-message {
    display: block;
}

.char-counter {
    text-align: right;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-prev,
.btn-next,
.btn-submit {
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-next,
.btn-submit {
    background: var(--accent);
    color: var(--text-dark);
    margin-left: auto;
}

.btn-next:hover,
.btn-submit:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-prev {
    background: var(--bg-light);
    color: var(--text-dark);
}

.btn-prev:hover {
    background: var(--border-color);
}

.btn-submit {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
}

/* Review Section */
.review-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-card {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.review-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.review-card h3 i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.review-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}

.review-value {
    font-size: 1rem;
    color: var(--text-dark);
}

/* Checkbox Group */
.checkbox-group {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: start;
    gap: 0.75rem;
    cursor: pointer;
}

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

.checkbox-label span {
    font-size: 0.95rem;
    line-height: 1.6;
}

.checkbox-label a {
    color: var(--accent-dark);
    text-decoration: underline;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

/* Form Status */
.form-status {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    text-align: center;
    font-weight: 600;
    display: none;
}

.form-status.success {
    display: block;
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-status.error {
    display: block;
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

.form-status.loading {
    display: block;
    background: #fff3cd;
    color: #856404;
    border: 2px solid #ffeaa7;
}

/* ===================================
   Accreditations Section
   =================================== */

.accreditations-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.accreditations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
}

.accreditation-card {
    background: var(--bg-light);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition-base);
}

.accreditation-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.accreditation-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.accreditation-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.accreditation-card h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.accreditation-card p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .apply-hero {
        min-height: 35vh;
        padding: 6rem 0 3rem;
    }

    .progress-indicator {
        flex-direction: column;
        gap: 1.5rem;
    }

    .progress-line {
        width: 3px;
        height: 30px;
        margin: 0;
        top: 0;
    }

    .form-container {
        padding: 2rem 1.5rem;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .review-grid {
        grid-template-columns: 1fr;
    }

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

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

    .why-grid {
        grid-template-columns: 1fr;
    }

    .section-header h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .step-circle {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

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

    .form-header h2 {
        font-size: 1.5rem;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .main-footer,
    .form-navigation,
    .recaptcha-container,
    .why-apply-section {
        display: none;
    }

    .form-container {
        box-shadow: none;
        padding: 0;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .form-step,
    .why-card,
    .hero-content {
        animation: none;
        transition: none;
    }
}
