/* ========================================
   HIDS - Admissions Page Additional CSS
   ======================================== */

/* ========= ADMISSIONS HEADER ========= */
.admissions-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.admissions-header-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.admissions-header-icon i {
    font-size: 48px;
    color: var(--accent-color);
}

/* ========= ADMISSIONS INFO SECTION ========= */
.admissions-info-section {
    background: var(--bg-light);
    margin-top: -50px;
    position: relative;
    z-index: 2;
}

.info-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    height: 100%;
    border-top: 4px solid var(--primary-color);
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 71, 42, 0.15);
    border-top-color: var(--accent-color);
}

.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.info-card:hover .info-icon {
    transform: rotateY(360deg);
}

.info-icon i {
    font-size: 32px;
    color: var(--accent-color);
}

.info-card h4 {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

.info-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* ========= APPLICATION SECTION ========= */
.application-section {
    background: var(--white);
}

/* Left Side Information */
.application-info h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--accent-color);
}

.info-box {
    background: var(--bg-light);
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary-color);
}

.info-box h5 {
    color: var(--primary-color);
    font-size: 18px;
    margin-bottom: 12px;
    font-weight: 700;
}

.info-box p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 8px;
    font-size: 14px;
}

.info-box strong {
    color: var(--primary-color);
}

.download-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 20px;
}

.download-box h5 {
    color: var(--white);
    font-size: 18px;
    margin-bottom: 20px;
    font-weight: 700;
}

.help-box {
    background: var(--accent-color);
    padding: 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.help-box i {
    font-size: 42px;
    color: var(--primary-color);
}

.help-box h6 {
    color: var(--primary-color);
    font-size: 16px;
    margin-bottom: 5px;
    font-weight: 700;
}

.help-box p {
    color: var(--primary-color);
    margin: 0;
    font-size: 14px;
}

/* ========= APPLICATION FORM ========= */
.application-form-wrapper {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.application-form-wrapper h3 {
    color: var(--primary-color);
    font-size: 28px;
    margin-bottom: 15px;
}

.application-form-wrapper > p {
    color: var(--text-dark);
    line-height: 1.7;
}

.application-form-wrapper .alert {
    background: rgba(26, 71, 42, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 8px;
    padding: 15px;
}

.application-form-wrapper .alert i {
    color: var(--accent-color);
}

#admissionForm .form-group {
    margin-bottom: 20px;
}

#admissionForm label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

#admissionForm .form-control,
#admissionForm select {
    padding: 12px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
}

#admissionForm .form-control:focus,
#admissionForm select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(26, 71, 42, 0.15);
    background: var(--white);
}

#admissionForm select {
    appearance: none;
    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='%231a472a' 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 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
}

#admissionForm optgroup {
    font-weight: 700;
    color: var(--primary-color);
    font-style: normal;
}

#admissionForm option {
    padding: 8px;
    font-weight: 500;
    color: var(--text-dark);
}

/* Form validation styles */
#admissionForm .form-control.is-invalid,
#admissionForm select.is-invalid {
    border-color: #dc3545;
}

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

#admissionForm .form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

#admissionForm .form-control.is-valid:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Form Messages */
#formMessages {
    display: none;
    border-radius: 8px;
    padding: 0;
}

#formMessages.show {
    display: block;
    animation: slideDown 0.5s ease;
}

#formMessages.alert-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: var(--white);
    padding: 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

#formMessages.alert-success i {
    font-size: 64px;
    margin-bottom: 20px;
    display: block;
    animation: successPulse 1s ease;
}

#formMessages.alert-success h4 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
}

#formMessages.alert-success p {
    font-size: 16px;
    margin: 0;
    opacity: 0.95;
}

#formMessages.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 20px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes successPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* ========= NEXT STEPS SECTION ========= */
.next-steps-section {
    background: var(--bg-light);
}

.step-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    transform: scaleX(0);
    transition: var(--transition);
}

.step-card:hover::before {
    transform: scaleX(1);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(26, 71, 42, 0.15);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.step-card:hover .step-number {
    transform: rotate(360deg) scale(1.1);
}

.step-card h5 {
    font-size: 18px;
    color: var(--primary-color);
    margin-bottom: 12px;
    font-weight: 700;
}

.step-card p {
    color: var(--text-light);
    margin: 0;
    line-height: 1.6;
    font-size: 14px;
}

/* ========= ADMISSIONS CTA ========= */
.admissions-cta-section {
    background: url('https://via.placeholder.com/1920x500/1a472a/ffffff?text=Join+HIDS') center center/cover;
    padding: 100px 0;
    position: relative;
    color: var(--white);
}

.admissions-cta-section h2 {
    font-size: 42px;
    margin-bottom: 20px;
}

/* ========= RESPONSIVE ========= */
@media (max-width: 991px) {
    .admissions-header-icon {
        width: 80px;
        height: 80px;
    }
    
    .admissions-header-icon i {
        font-size: 36px;
    }
    
    .application-info {
        margin-bottom: 40px;
    }
    
    .application-form-wrapper {
        padding: 30px;
    }
    
    .info-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .admissions-header {
        padding: 100px 0 60px;
    }
    
    .admissions-info-section {
        margin-top: 0;
    }
    
    .info-card {
        padding: 30px 20px;
    }
    
    .application-form-wrapper {
        padding: 25px 20px;
    }
    
    .application-form-wrapper h3 {
        font-size: 24px;
    }
    
    .info-box {
        padding: 20px;
    }
    
    .download-box {
        padding: 25px 20px;
    }
    
    .help-box {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
    
    .step-card {
        margin-bottom: 20px;
    }
    
    .admissions-cta-section {
        padding: 60px 0;
    }
    
    .admissions-cta-section h2 {
        font-size: 28px;
    }
}

@media (max-width: 575px) {
    .admissions-header h1 {
        font-size: 28px;
    }
    
    .admissions-header-icon {
        width: 70px;
        height: 70px;
    }
    
    .admissions-header-icon i {
        font-size: 32px;
    }
    
    .info-icon {
        width: 60px;
        height: 60px;
    }
    
    .info-icon i {
        font-size: 28px;
    }
    
    .info-card h4 {
        font-size: 18px;
    }
    
    #admissionForm .form-control,
    #admissionForm select {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}

/* ========= LOADING STATE ========= */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid var(--white);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ========= PRINT STYLES ========= */
@media print {
    .navbar,
    .sticky-buttons,
    .scroll-to-top,
    .footer,
    .admissions-cta-section,
    .next-steps-section,
    .application-info {
        display: none !important;
    }
    
    .application-form-wrapper {
        box-shadow: none !important;
        border: 1px solid #ddd;
    }
}
