/* style.css */
:root {
    /* Color Palette */
    --color-primary: #0f172a; /* Deep Navy */
    --color-secondary: #2563eb; /* Royal Blue */
    --color-accent: #6366f1; /* Indigo / Purple */
    --color-gradient-start: #0f172a;
    --color-gradient-mid: #1e3a8a;
    --color-gradient-end: #312e81;
  
    --color-bg-white: #ffffff;
    --color-bg-light: #f8fafc;
    --color-bg-lavender: #f3f4f6; /* very soft lavender/blue */
    --color-bg-mint: #f0fdf4; /* soft mint */
    --color-bg-blue: #eff6ff; /* soft blue */
    --color-bg-purple: #f5f3ff; /* soft purple */
  
    --color-text-dark: #0f172a;
    --color-text-body: #475569;
    --color-text-light: #f8fafc;
    --color-text-muted: #94a3b8;
  
    --font-main: 'Plus Jakarta Sans', sans-serif;
  
    /* Spacing */
    --section-padding: 80px 20px;
    --section-padding-mobile: 48px 16px;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-xxl: 36px;
  
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 30px 0px rgba(99, 102, 241, 0.2);
    
    /* Z-index */
    --z-header: 100;
    --z-mobile-nav: 90;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-body);
    background-color: var(--color-bg-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden; /* Prevent horizontal overflow */
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

button {
    font-family: var(--font-main);
    border: none;
    background: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

input, select {
    font-family: var(--font-main);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Utilities */
.container {
    max-width: 1040px;
    margin: 0 auto;
    width: 100%;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent), #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-white { background-color: var(--color-bg-white) !important; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-4 { margin-top: 16px; }
.ml-2 { margin-left: 8px; }
.pb-0 { padding-bottom: 0 !important; }
.pt-0 { padding-top: 0 !important; }
.hidden { display: none !important; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.2s ease-in-out;
    padding: 14px 28px;
}

.btn-primary {
    background: linear-gradient(to right, var(--color-secondary), var(--color-accent));
    color: var(--color-text-light);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-secondary {
    background: white;
    color: var(--color-text-dark);
    border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.icon-inline {
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

/* Base App Layout */
.section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    .section {
        padding: var(--section-padding-mobile);
    }
}

/* Header */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 24px 0;
    z-index: var(--z-header);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 1rem;
}

.nav-links a:hover {
    color: var(--color-text-light);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.contact-link {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
}

.contact-link:hover {
    color: var(--color-text-light);
}

.mobile-menu-btn {
    display: none;
    color: white;
    padding: 8px;
    z-index: var(--z-header);
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-primary);
    z-index: var(--z-mobile-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    padding: 24px;
}

.mobile-nav-links a {
    color: white;
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 992px) {
    .nav-links, .header-actions { display: none; }
    .mobile-menu-btn { display: block; }
}

/* Section 1 - Hero */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid), var(--color-gradient-end));
    color: var(--color-text-light);
    padding: 160px 24px 100px;
    border-bottom-left-radius: var(--radius-xxl);
    border-bottom-right-radius: var(--radius-xxl);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 40px 40px;
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 32px;
    background: rgba(255, 255, 255, 0.05);
}

.hero-title {
    font-size: 3.2rem;
    color: var(--color-text-light);
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h4 {
    font-size: 2rem;
    color: var(--color-text-light);
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-trust {
    display: flex;
    gap: 24px;
}

.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Hero Form */
.form-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--color-text-dark);
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}

.form-header {
    margin-bottom: 24px;
}

.form-header h2 {
    font-size: 1.85rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
}

.form-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.progress-bar {
    height: 4px;
    background: var(--color-bg-lavender);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--color-accent);
    width: 0%;
    transition: width 0.3s ease;
}

.progress-fill.active { width: 100%; }

.progress-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.progress-text.active { color: var(--color-accent); }

.form-step { margin-bottom: 24px; }
.form-step h3 {
    font-size: 1.1rem;
    margin-bottom: 16px;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.option-btn {
    background: var(--color-bg-light);
    border: 1px solid #e2e8f0;
    padding: 12px 10px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text-body);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-btn:hover, .option-btn.selected {
    border-color: var(--color-secondary);
    background: var(--color-bg-blue);
}

.option-btn.selected {
    color: var(--color-secondary);
}

.form-input-group {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
}

.form-input {
    width: 100%;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}

.form-input-group .form-input {
    padding-left: 44px;
}

.form-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-actions-right { text-align: right; }

.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: var(--color-bg-mint);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; }
    .hero-title { font-size: 3rem; }
    .hero-stats {
        flex-direction: column;
        gap: 24px;
        border-bottom: none;
        padding-bottom: 0;
    }
    .hero-trust { flex-direction: column; }
    .options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
    .form-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 36px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    color: var(--color-text-dark);
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}
}

@media (max-width: 380px) {
    .hero-title { font-size: 2.5rem; }
    .options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
}

/* Section 2 - Benefits */
.section-header { margin-bottom: 64px; }
.section-title { font-size: 2.5rem; margin-bottom: 16px; }

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.benefit-card {
    padding: 40px;
    border-radius: var(--radius-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-md);
}

.card-purple { background: var(--color-bg-purple); }
.card-blue { background: var(--color-bg-blue); }
.card-mint { background: var(--color-bg-mint); }

.benefit-icon-wrapper {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.benefit-card h3 { font-size: 1.5rem; margin-bottom: 12px; }

@media (max-width: 992px) {
    .benefits-grid { grid-template-columns: 1fr; }
}

/* Section 3 - Testimonials */
.testimonials-container {
    background: var(--color-bg-blue);
    border-radius: var(--radius-xxl);
    padding: 80px 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
}

.quote-icon {
    position: absolute;
    top: 32px;
    right: 32px;
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--color-text-dark);
    font-weight: 500;
    margin-bottom: 32px;
    line-height: 1.5;
}

.student-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.student-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    overflow: hidden;
}

.student-details h4 { font-size: 1rem; margin-bottom: 2px; }
.student-details p { font-size: 0.8rem; color: var(--color-text-muted); }

@media (max-width: 992px) {
    .testimonials-container {
        padding: 40px 20px;
        border-radius: var(--radius-lg);
    }
    .testimonials-grid { grid-template-columns: 1fr; }
}

/* Section 4 - Trust */
.trust-section {
    background: var(--color-bg-lavender);
    border-radius: var(--radius-xxl);
    margin: 60px 24px;
    position: relative;
    overflow: hidden;
}

.trust-pattern {
    position: absolute;
    right: -100px;
    top: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
}

.trust-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.trust-content h2 { font-size: 2.5rem; margin-bottom: 16px; }
.trust-content p { font-size: 1.25rem; color: var(--color-text-body); }

.trust-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.metric-item {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.metric-icon {
    width: 48px;
    height: 48px;
    background: var(--color-bg-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.metric-item h3 { font-size: 2rem; margin-bottom: 4px; }
.metric-item p { color: var(--color-text-muted); font-weight: 500; }

@media (max-width: 992px) {
    .trust-section { margin: 40px 0; border-radius: 0; }
    .trust-container { grid-template-columns: 1fr; gap: 40px; }
}

/* Section 5 - FAQ */
.faq-container { max-width: 800px; margin: 0 auto; }

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s;
}

.faq-item.active {
    border-color: var(--color-secondary);
    background: var(--color-bg-blue);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-align: left;
}

.faq-icon { transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px;
    max-height: 500px;
}

/* Section 6 - Final CTA */
.cta-section {
    background: linear-gradient(135deg, var(--color-gradient-start), var(--color-gradient-mid));
    border-radius: var(--radius-xxl);
    margin: 0 24px 60px;
    padding: 100px 60px;
    text-align: center;
    color: var(--color-text-light);
    position: relative;
    overflow: hidden;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px);
    background-size: 30px 30px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 { font-size: 3rem; color: var(--color-text-light); margin-bottom: 24px; }
.cta-content p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; }

.cta-btn-wrapper {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
}

.cta-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 992px) {
    .cta-section {
        margin: 0;
        border-radius: 0;
        padding: 80px 24px;
    }
    .cta-content h2 { font-size: 2.5rem; }
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    visibility: hidden;
    display: flex !important; /* Override the global .hidden display: none */
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1001;
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 28px;
    line-height: 1;
    color: var(--color-text-muted);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--color-text-dark);
}

/* Form inputs & styles updates */
.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-label {
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--color-text-dark);
    display: block;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
    cursor: pointer;
}

.error-msg {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 6px;
}

.mb-4 {
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 24px;
    }
}

/* Intake Cards UI */
.intake-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
}

.intake-card {
    position: relative;
    background: var(--color-bg-white);
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-sm);
    padding: 10px 10px;
    height: 100%;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    box-shadow: var(--shadow-sm);
}

.intake-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.intake-card.recommended {
    border-color: #a7f3d0;
}

.intake-card.selected {
    border-color: var(--color-accent);
    background: rgba(99, 102, 241, 0.03);
}

.intake-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    flex: 1;
}

.intake-title {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    min-width: 0;
}

.badge-recommended {
    background: #ecfdf5;
    color: #059669;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 100px;
    border: 1px solid #a7f3d0;
    letter-spacing: 0.5px;
}

.intake-subtitle {
    font-size: 0.85rem;
    color: var(--color-text-body);
}

.intake-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
    flex-shrink: 0;
}

.intake-card.selected .intake-check {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.intake-check::after {
    content: '';
    width: 10px;
    height: 6px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin-bottom: 2px;
    display: none;
}

.intake-card.selected .intake-check::after {
    display: block;
}


.form-step .btn-primary {
    padding: 16px 24px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
    width: 100%;
}

@media (max-width: 992px) {
    .hide-mobile {
        display: none !important;
    }
}