/* ========================================
   ENROLLMENT PAGE - ENHANCED MOBILE RESPONSIVE CSS
======================================== */

/* CSS Variables */
:root {
    --primary-color: #0A2540;
    --secondary-color: #00D4FF;
    --success-color: #10B981;
    --dark-color: #1E293B;
    --text-color: #475569;
    --light-bg: #F1F5F9;
    --white: #ffffff;
    --border-color: #E2E8F0;
    --border-radius: 0.75rem;
    --box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --box-shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s ease;
}

/* BASE STYLES - MOBILE FIRST */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; max-width: 100vw; }
body { font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 16px; line-height: 1.6; color: var(--text-color); background-color: var(--light-bg); overflow-x: hidden; width: 100%; max-width: 100vw; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--dark-color); font-weight: 600; line-height: 1.2; margin-bottom: 1rem; }
h2 { font-size: 2rem; } h3 { font-size: 1.75rem; } h4 { font-size: 1.25rem; } h5 { font-size: 1.1rem; }
p { margin-bottom: 1rem; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 20px; }

/* BUTTONS */
.btn { display: inline-block; padding: 12px 30px; font-size: 1rem; font-weight: 600; text-align: center; border-radius: var(--border-radius); border: 2px solid transparent; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-brand { background: linear-gradient(135deg, var(--primary-color), #0D3A5C); color: var(--white); border-color: var(--primary-color); }
.btn-brand:hover { transform: translateY(-2px); box-shadow: var(--box-shadow-lg); }
.btn-brand.active { background: var(--secondary-color); border-color: var(--secondary-color); color: var(--primary-color); }
.btn-lg { padding: 15px 40px; font-size: 1.1rem; }
.btn-submit { width: 100%; position: relative; }

/* NAVBAR - MOBILE FIXED */
.navbar { position: fixed; top: 0; left: 0; right: 0; width: 100%; background: var(--white); z-index: 1000; transition: var(--transition); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.navbar.scrolled { padding: 10px 0; box-shadow: var(--box-shadow); }
.navbar .container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
.navbar-brand { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 700; color: var(--primary-color); z-index: 1001; }
.navbar-brand img { width: 150px; height: 80px; object-fit: contain; }
.nav-menu { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--dark-color); font-weight: 500; position: relative; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--secondary-color); transition: var(--transition); }
.nav-link:hover::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: transparent; border: none; cursor: pointer; z-index: 1001; padding: 5px; }
.nav-toggle span { width: 25px; height: 3px; background: var(--primary-color); transition: var(--transition); border-radius: 3px; }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(8px, 8px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -7px); }

/* MAIN CONTENT */
.main-content { padding: 140px 0 80px; min-height: calc(100vh - 200px); width: 100%; }
.enrollment-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: start; width: 100%; }

/* FORM CONTAINER */
.form-container { background: var(--white); padding: 50px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-lg); opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s ease forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.form-header { text-align: center; margin-bottom: 40px; }
.form-header h2 { color: var(--dark-color); font-size: 2rem; margin-bottom: 15px; }
.form-header p { font-size: 1.1rem; color: var(--text-color); margin-bottom: 0; }

/* FORM SECTIONS */
.form-section { /* margin-bottom: 35px; */ }
.form-section h4 { font-size: 1.15rem; color: var(--dark-color); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-color); }
.section-label { display: block; font-weight: 600; color: var(--dark-color); margin-bottom: 15px; }

/* FORM ROWS & GROUPS */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; color: var(--dark-color); margin-bottom: 8px; font-size: 0.95rem; }

/* FORM CONTROLS */
.form-control, .form-select { width: 100%; padding: 12px 16px; border: 2px solid var(--border-color); border-radius: var(--border-radius); font-family: inherit; font-size: 1rem; color: var(--dark-color); background-color: var(--white); transition: var(--transition); }
.form-control:focus, .form-select:focus { outline: none; border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1); }
.form-control::placeholder { color: #94A3B8; }
textarea.form-control { resize: vertical; min-height: 100px; }

/* PROGRAM TYPE OPTIONS */
.program-type-options { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 25px; }
.program-option { position: relative; }
.radio-input { position: absolute; opacity: 0; pointer-events: none; }
.radio-label { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px 20px; border: 2px solid var(--border-color); border-radius: var(--border-radius); cursor: pointer; transition: var(--transition); text-align: center; background: var(--white); }
.radio-label i { font-size: 2rem; margin-bottom: 10px; color: var(--text-color); transition: var(--transition); }
.radio-label span { font-weight: 600; color: var(--dark-color); }
.radio-label:hover { border-color: var(--primary-color); transform: translateY(-2px); }
.radio-input:checked + .radio-label { background: var(--primary-color); border-color: var(--primary-color); box-shadow: 0 4px 15px rgba(10, 37, 64, 0.3); }
.radio-input:checked + .radio-label i, .radio-input:checked + .radio-label span { color: var(--white); }

/* COURSE SELECT WRAPPER */
.course-select-wrapper { display: none; opacity: 0; transform: translateY(-10px); transition: all 0.4s ease; }
.course-select-wrapper.fade-in { opacity: 1; transform: translateY(0); }
.course-select-wrapper label { display: block; font-weight: 600; color: var(--dark-color); margin-bottom: 8px; font-size: 0.95rem; }

/* CHECKBOX */
.form-check { display: flex; align-items: start; gap: 12px; margin-bottom: 30px; }
.checkbox-input { width: 20px; height: 20px; border: 2px solid var(--border-color); border-radius: 4px; cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.checkbox-label { cursor: pointer; font-size: 0.95rem; color: var(--text-color); line-height: 1.6; }

/* SUBMIT BUTTON SPINNER */
.spinner { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, 0.3); border-top-color: var(--white); border-radius: 50%; animation: spin 0.8s linear infinite; margin-left: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* BENEFITS COLUMN */
.benefits-column { position: sticky; top: 120px; }
.benefits-card { background: var(--white); padding: 40px; border-radius: var(--border-radius); box-shadow: var(--box-shadow-lg); opacity: 0; transform: translateY(30px); animation: fadeUp 0.8s ease forwards 0.2s; }
.benefits-card h3 { color: var(--dark-color); font-size: 1.75rem; margin-bottom: 30px; }
.benefit-item { display: flex; gap: 20px; margin-bottom: 30px; }
.benefit-icon { width: 50px; height: 50px; background: linear-gradient(135deg, var(--secondary-color), #00B8D4); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.benefit-icon i { font-size: 1.5rem; color: var(--white); }
.benefit-content h5 { color: var(--dark-color); margin-bottom: 8px; }
.benefit-content p { color: var(--text-color); font-size: 0.95rem; margin-bottom: 0; line-height: 1.7; }
.divider { height: 1px; background: var(--border-color); margin: 30px 0; }
.next-steps { margin-top: 20px; }
.next-steps li { display: flex; align-items: start; gap: 12px; margin-bottom: 15px; }
.next-steps i { color: var(--success-color); font-size: 1.25rem; flex-shrink: 0; margin-top: 2px; }
.next-steps span { color: var(--text-color); line-height: 1.7; }

/* SUCCESS MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.6); z-index: 9998; opacity: 0; visibility: hidden; transition: var(--transition); }
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.9); z-index: 9999; opacity: 0; visibility: hidden; transition: all 0.4s ease; max-width: 600px; width: 90%; }
.modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-content { background: var(--white); border-radius: var(--border-radius); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); position: relative; }
.modal-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; border: none; background: var(--light-bg); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); z-index: 1; }
.modal-close:hover { background: var(--border-color); }
.modal-close i { color: var(--dark-color); font-size: 1.25rem; }
.modal-body { padding: 60px 40px; text-align: center; }
.success-icon { font-size: 4rem; color: var(--success-color); margin-bottom: 25px; animation: scaleUp 0.6s ease; }
@keyframes scaleUp { 0% { transform: scale(0); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
.modal-body h3 { color: var(--dark-color); font-size: 2rem; margin-bottom: 20px; }
.modal-lead { font-size: 1.15rem; color: var(--text-color); margin-bottom: 15px; }
.modal-body p { color: var(--text-color); margin-bottom: 30px; }

/* FOOTER */
.footer { background: var(--dark-color); color: var(--white); padding: 30px 0; margin-top: 80px; width: 100%; }
.footer-content { text-align: center; }
.footer-content p { color: rgba(255, 255, 255, 0.8); margin-bottom: 0; }

/* FORM VALIDATION STATES */
.was-validated .form-control:invalid, .was-validated .form-select:invalid { border-color: #EF4444; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: var(--success-color); }

/* RESPONSIVE - MOBILE FIRST */
@media (max-width: 991px) {
    .container { padding: 0 20px; }
    .nav-toggle { display: flex; }
    .nav-menu { position: fixed; top: 80px; right: -100%; width: 100%; max-width: 320px; height: calc(100vh - 80px); background: var(--white); flex-direction: column; align-items: flex-start; padding: 30px; box-shadow: var(--box-shadow-lg); transition: right 0.3s ease-in-out; overflow-y: auto; z-index: 999; }
    .nav-menu.active { right: 0; }
    .nav-item { width: 100%; margin-bottom: 10px; }
    .nav-link { display: block; padding: 10px 0; width: 100%; }
    .nav-item .btn { width: 100%; text-align: center; margin-top: 10px; }
    .navbar-brand img { width: 130px; height: 70px; }
    .main-content { padding: 120px 0 60px; }
    .enrollment-grid { grid-template-columns: 1fr; gap: 40px; }
    .benefits-column { position: static; }
    .form-container { padding: 40px 30px; }
    .benefits-card { padding: 35px 25px; }
}

@media (max-width: 767px) {
    * { max-width: 100%; }
    .container { padding: 0 15px; }
    .navbar-brand img { width: 120px; height: 60px; }
    .main-content { padding: 100px 0 50px; }
    .enrollment-grid { gap: 30px; }
    .form-container { padding: 30px 20px; }
    .form-header h2 { font-size: 1.75rem; }
    .form-header p { font-size: 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 15px; }
    .program-type-options { grid-template-columns: 1fr; gap: 12px; }
    .radio-label { padding: 20px 15px; }
    .radio-label i { font-size: 1.75rem; }
    .benefits-card { padding: 30px 20px; }
    .benefits-card h3 { font-size: 1.5rem; }
    .benefit-item { gap: 15px; }
    .benefit-icon { width: 45px; height: 45px; }
    .benefit-icon i { font-size: 1.25rem; }
    .modal { width: 95%; }
    .modal-body { padding: 50px 30px; }
    .success-icon { font-size: 3rem; }
    .modal-body h3 { font-size: 1.75rem; }
    .modal-lead { font-size: 1rem; }
}

@media (max-width: 480px) {
    .container { padding: 0 12px; }
    .navbar-brand img { width: 100px; height: 50px; }
    .main-content { padding: 90px 0 40px; }
    .form-container { padding: 25px 15px; }
    .form-header h2 { font-size: 1.5rem; }
    .form-header p { font-size: 0.95rem; }
    .form-section h4 { font-size: 1.1rem; }
    .form-control, .form-select { padding: 10px 14px; font-size: 0.95rem; }
    .btn-lg { padding: 12px 30px; font-size: 1rem; }
    .radio-label { padding: 18px 12px; }
    .benefits-card { padding: 25px 15px; }
    .benefits-card h3 { font-size: 1.35rem; }
    .benefit-item { flex-direction: column; text-align: center; gap: 12px; }
    .benefit-icon { margin: 0 auto; }
    .modal-body { padding: 40px 20px; }
    .modal-body h3 { font-size: 1.5rem; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}