/* =============================================================================
   Military MBA Consulting — Calculator Styles
   Navy + Gold palette, Inter font, clean card-based layout
   ============================================================================= */

:root {
    --navy: #0f2340;
    --navy-light: #1a365d;
    --navy-mid: #2b4a7a;
    --gold: #C4A55A;
    --gold-light: #d4b96a;
    --gold-pale: rgba(196, 165, 90, 0.12);
    --green: #276749;
    --green-bg: rgba(56, 161, 105, 0.12);
    --red: #c53030;
    --text: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --bg: #f0f2f5;
    --surface: #ffffff;
    --border: #e2e8f0;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.site-header {
    background: #ffffff;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.brand-link {
    display: inline-block;
    text-decoration: none;
    transition: opacity 0.15s;
}

.brand-link:hover {
    opacity: 0.75;
}

.brand-logo {
    height: 50px;
    width: auto;
    display: block;
    max-width: 100%;
}

/* ---- Page ---- */
.page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* ---- Hero ---- */
.hero {
    text-align: center;
    padding: 48px 20px 32px;
}

.hero h1 {
    font-size: 2.2em;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 12px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.hero-sub {
    font-size: 1.05em;
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---- Step Cards ---- */
.step-card {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.step-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.step-num {
    width: 36px;
    height: 36px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.95em;
    flex-shrink: 0;
}

.step-header h2 {
    margin: 0;
    font-size: 1.2em;
    color: var(--navy);
    font-weight: 700;
}

.step-sub {
    margin: 4px 0 0;
    font-size: 0.88em;
    color: var(--text-muted);
}

/* ---- Form Grid ---- */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.field label {
    display: block;
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.field select,
.field input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95em;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.field select:focus,
.field input:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(15, 35, 64, 0.1);
}

.input-hint {
    margin: 4px 0 0;
    font-size: 0.75em;
    color: var(--text-muted);
}

.field-wide { grid-column: 1 / -1; }

.field-toggle {
    display: flex;
    align-items: center;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--text);
    font-weight: 500;
}

.toggle-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--navy);
    cursor: pointer;
}

/* ---- Package Grid ---- */
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.package-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.package-card:hover {
    border-color: var(--navy-mid);
    box-shadow: var(--shadow-md);
}

.package-card.selected {
    border-color: var(--gold);
    background: var(--gold-pale);
    box-shadow: 0 0 0 1px var(--gold);
}

.package-card .pkg-name {
    font-weight: 700;
    font-size: 0.95em;
    color: var(--navy);
    margin-bottom: 4px;
}

.package-card .pkg-price {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--navy);
    margin: 8px 0;
}

.package-card .pkg-desc {
    font-size: 0.8em;
    color: var(--text-muted);
    line-height: 1.4;
}

.package-card .pkg-schools {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gold);
    background: var(--navy);
    padding: 4px 12px;
    border-radius: 20px;
}

/* ---- VR&E Callout (blue/info) ---- */
.vre-callout {
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.08) 0%, rgba(43, 108, 176, 0.03) 100%);
    border: 2px solid rgba(43, 108, 176, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.vre-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.vre-icon {
    font-size: 1.6em;
    color: #2b6cb0;
    flex-shrink: 0;
    line-height: 1;
}

.vre-title {
    font-size: 1em;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 6px;
}

.vre-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.vre-link {
    font-size: 0.85em;
    font-weight: 600;
    color: #2b6cb0;
    text-decoration: none;
}

.vre-link:hover {
    text-decoration: underline;
}

/* ---- VR&E Selected Info Callout (shown when VR&E is the chosen tier) ---- */
.vre-selected-callout {
    background: linear-gradient(135deg, rgba(43, 108, 176, 0.08) 0%, rgba(43, 108, 176, 0.03) 100%);
    border: 2px solid rgba(43, 108, 176, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 16px;
}

.vre-selected-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.vre-selected-icon {
    font-size: 1.6em;
    color: #2b6cb0;
    flex-shrink: 0;
    line-height: 1;
}

.vre-selected-title {
    font-size: 1em;
    font-weight: 700;
    color: #2b6cb0;
    margin-bottom: 6px;
}

.vre-selected-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.vre-selected-content p:last-child {
    margin-bottom: 0;
}

.vre-selected-content strong {
    color: var(--text);
}

/* ---- Funding Options Callout (merit aid + loan forgiveness) ---- */
.funding-callout {
    background: linear-gradient(135deg, rgba(196, 165, 90, 0.12) 0%, rgba(196, 165, 90, 0.04) 100%);
    border: 2px solid rgba(196, 165, 90, 0.4);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 16px;
}

.funding-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.funding-icon {
    font-size: 1.6em;
    flex-shrink: 0;
    line-height: 1;
}

.funding-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.funding-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.funding-content p:last-child {
    margin-bottom: 0;
}

.funding-content strong {
    color: var(--text);
}

.funding-cta {
    font-style: italic;
    color: var(--text) !important;
    border-top: 1px solid rgba(196, 165, 90, 0.3);
    padding-top: 10px;
    margin-top: 4px !important;
}

/* ---- Entrepreneurship Benchmark Caveat ---- */
.entrepreneurship-callout {
    background: linear-gradient(135deg, rgba(107, 70, 193, 0.08) 0%, rgba(107, 70, 193, 0.03) 100%);
    border: 2px solid rgba(107, 70, 193, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 16px;
}

.entrepreneurship-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.entrepreneurship-icon {
    font-size: 1.6em;
    color: #6b46c1;
    flex-shrink: 0;
    line-height: 1;
}

.entrepreneurship-title {
    font-size: 1em;
    font-weight: 700;
    color: #6b46c1;
    margin-bottom: 6px;
}

.entrepreneurship-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 8px;
}

.entrepreneurship-content p:last-child {
    margin-bottom: 0;
}

.entrepreneurship-content strong {
    color: var(--text);
}

/* ---- Warning Callout (out-of-pocket tuition) ---- */
.warning-callout {
    background: linear-gradient(135deg, rgba(229, 174, 34, 0.1) 0%, rgba(229, 174, 34, 0.04) 100%);
    border: 2px solid rgba(229, 174, 34, 0.4);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.warning-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.warning-icon {
    font-size: 1.6em;
    color: #d69e2e;
    flex-shrink: 0;
    line-height: 1;
}

.warning-title {
    font-size: 1em;
    font-weight: 700;
    color: #b7791f;
    margin-bottom: 6px;
}

.warning-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ---- YRP Coverage Section in School Cards ---- */
.yrp-coverage {
    margin-top: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85em;
}

.yrp-coverage.coverage-full {
    background: rgba(56, 161, 105, 0.1);
    border-left: 3px solid var(--green);
}

.yrp-coverage.coverage-fixed {
    background: rgba(196, 165, 90, 0.1);
    border-left: 3px solid var(--gold);
}

.yrp-coverage.coverage-waiver {
    background: rgba(43, 108, 176, 0.1);
    border-left: 3px solid #2b6cb0;
}

.yrp-coverage.coverage-unknown {
    background: var(--bg);
    border-left: 3px solid var(--text-muted);
}

.yrp-coverage.coverage-not-eligible {
    background: rgba(197, 48, 48, 0.08);
    border-left: 3px solid var(--red);
}

.yrp-coverage-title {
    font-weight: 700;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yrp-coverage-detail {
    color: var(--text-secondary);
    font-size: 0.92em;
    line-height: 1.5;
}

/* ---- Tuition math breakdown inside YRP coverage block ---- */
.tuition-math {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.tuition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.tuition-row span:last-child {
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
}

.tuition-row.tuition-total {
    border-top: 1px solid rgba(0, 0, 0, 0.12);
    margin-top: 4px;
    padding-top: 6px;
    font-weight: 700;
    color: var(--text);
}

.tuition-row.tuition-total.oop-zero span:last-child {
    color: var(--green);
}

.tuition-row.tuition-total.oop-gap span:last-child {
    color: var(--red);
}

.tuition-row.tuition-total.oop-unknown span:last-child {
    color: var(--text-muted);
    font-style: italic;
}

/* ---- Yellow Ribbon Note ---- */
.yellow-ribbon-note {
    font-size: 0.82em;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 16px 0 0;
    padding: 12px 16px;
    background: var(--gold-pale);
    border-left: 3px solid var(--gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---- School Slots ---- */
.school-slots {
    margin-top: 20px;
}

.school-slots-label {
    font-size: 0.78em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.school-slot-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: 560px;
}

.school-slot {
    display: flex;
    align-items: center;
    gap: 10px;
}

.school-slot .slot-num {
    width: 28px;
    height: 28px;
    background: var(--navy);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 700;
    flex-shrink: 0;
}

.school-slot select {
    flex: 1;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9em;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
}

.school-slot select:focus {
    outline: none;
    border-color: var(--navy-mid);
    box-shadow: 0 0 0 3px rgba(15, 35, 64, 0.1);
}

/* ---- TPD Callout ---- */
.tpd-callout {
    background: linear-gradient(135deg, rgba(56, 161, 105, 0.08) 0%, rgba(56, 161, 105, 0.03) 100%);
    border: 2px solid rgba(56, 161, 105, 0.3);
    border-radius: var(--radius-sm);
    padding: 20px;
    margin-top: 20px;
}

.tpd-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.tpd-icon {
    font-size: 1.6em;
    color: var(--green);
    flex-shrink: 0;
    line-height: 1;
}

.tpd-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--green);
    margin-bottom: 6px;
}

.tpd-content p {
    font-size: 0.88em;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 10px;
}

.tpd-link {
    font-size: 0.85em;
    font-weight: 600;
    color: var(--green);
    text-decoration: none;
}

.tpd-link:hover {
    text-decoration: underline;
}

/* ---- Results ---- */
.results, .roi-summary, .package-compare {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 32px;
    margin-bottom: 24px;
}

.results-title {
    text-align: center;
    font-size: 1.3em;
    font-weight: 700;
    color: var(--navy);
    margin: 0 0 24px;
}

/* Three-State Summary */
.three-state-summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.state-card {
    flex: 1;
    max-width: 320px;
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.state-current {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
}

.state-during {
    background: linear-gradient(135deg, #7c6420 0%, #a68a3a 100%);
}

.state-post {
    background: linear-gradient(135deg, #276749 0%, #38a169 100%);
}

.state-arrow {
    font-size: 1.6em;
    color: var(--text-muted);
    font-weight: 700;
    flex-shrink: 0;
}

.state-label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 4px;
}

.state-title {
    font-size: 0.85em;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 8px;
}

.state-total {
    font-size: 2em;
    font-weight: 800;
    color: #fff;
}

.state-period {
    font-size: 0.8em;
    color: rgba(255,255,255,0.55);
    margin-bottom: 12px;
}

.state-breakdown {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 10px;
}

.state-breakdown li {
    display: flex;
    justify-content: space-between;
    padding: 3px 0;
    font-size: 0.78em;
    color: rgba(255,255,255,0.7);
}

.state-breakdown li span:last-child {
    font-weight: 600;
    color: #fff;
}

@media (max-width: 768px) {
    .three-state-summary {
        flex-direction: column;
    }
    .state-card {
        max-width: 100%;
    }
    .state-arrow {
        transform: rotate(90deg);
    }
}

/* Tax-free badge */
.tax-free {
    display: inline-block;
    font-size: 0.6em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #68d391;
    background: rgba(104, 211, 145, 0.15);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    vertical-align: middle;
}

/* ---- Chart ---- */
.chart-container {
    margin-bottom: 32px;
}

.chart-wrap {
    position: relative;
    height: 480px;
    max-width: 100%;
    margin: 0 auto;
}

/* ---- School Comparison Grid ---- */
.comparison-heading {
    text-align: center;
    font-size: 1em;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px;
}

.school-comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Individual school card */
.school-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.school-card:hover {
    box-shadow: var(--shadow-md);
}

.school-card-header {
    background: var(--navy);
    padding: 16px 20px;
}

.school-card-name {
    font-size: 1em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.school-card-uni {
    font-size: 0.78em;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

.school-card-body {
    padding: 20px;
}

.school-card-section {
    margin-bottom: 16px;
}

.school-card-section:last-child {
    margin-bottom: 0;
}

.school-card-section-title {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.school-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.85em;
    color: var(--text-secondary);
}

.school-card-row span:last-child {
    font-weight: 600;
    color: var(--text);
}

.school-card-total {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
    margin-top: 8px;
}

.school-card-total-label {
    font-size: 0.7em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
}

.school-card-total-value {
    font-size: 1.4em;
    font-weight: 800;
    color: #fff;
}

.school-card-total-sub {
    font-size: 0.75em;
    color: rgba(255,255,255,0.6);
}

/* Post-MBA highlight */
.school-card-total.post-mba {
    background: linear-gradient(135deg, #276749 0%, #38a169 100%);
}

/* Delta indicator */
.school-card-delta {
    text-align: center;
    padding: 8px;
    font-size: 0.8em;
    font-weight: 600;
    border-radius: var(--radius-sm);
    margin-top: 8px;
}

.delta-positive {
    color: var(--green);
    background: var(--green-bg);
}

.delta-negative {
    color: var(--red);
    background: rgba(197, 48, 48, 0.08);
}

/* School card footer */
.school-card-footer {
    padding: 12px 20px;
    background: var(--bg);
    font-size: 0.8em;
    color: var(--text-secondary);
    border-top: 1px solid var(--border);
}

.school-card-footer strong {
    color: var(--text);
}

.footer-note {
    color: var(--text-muted);
    font-style: italic;
}

/* Best school badge */
.school-card.best-school {
    border-color: var(--gold);
    box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
}

.best-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--navy);
    font-size: 0.65em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 10px;
    border-radius: 20px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ---- ROI Section ---- */
.roi-hero {
    text-align: center;
    margin-bottom: 28px;
    padding: 28px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius);
}

.roi-hero-math {
    font-size: 0.9em;
    color: rgba(255,255,255,0.85);
    line-height: 1.8;
    margin-bottom: 16px;
}

.roi-hero-math .math-row {
    display: flex;
    justify-content: space-between;
    max-width: 420px;
    margin: 0 auto;
    padding: 2px 0;
}

.roi-hero-math .math-row span:last-child {
    font-weight: 700;
    color: #fff;
}

.roi-hero-math .math-row.math-highlight {
    border-top: 1px solid rgba(255,255,255,0.25);
    padding-top: 8px;
    margin-top: 6px;
    font-weight: 700;
    color: var(--gold);
}

.roi-hero-math .math-row.math-highlight span:last-child {
    color: var(--gold);
}

.roi-hero-divider {
    width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.2);
    margin: 16px auto;
}

.roi-hero-label {
    font-size: 0.9em;
    color: rgba(255,255,255,0.75);
}

.roi-hero-value {
    font-size: 2.6em;
    font-weight: 800;
    color: var(--gold);
    margin: 8px 0;
}

.roi-hero-sub {
    font-size: 0.8em;
    color: rgba(255,255,255,0.55);
}

.roi-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.roi-stat {
    text-align: center;
    padding: 20px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    flex: 0 1 220px;
}

.roi-stat-label {
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.roi-stat-value {
    font-size: 1.6em;
    font-weight: 800;
    color: var(--navy);
}

.roi-stat-hint {
    font-size: 0.72em;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ---- Section subtitle ---- */
.section-sub {
    text-align: center;
    font-size: 0.88em;
    color: var(--text-muted);
    margin: -16px 0 24px;
}

/* ---- Cumulative chart ---- */
.chart-wrap-wide {
    position: relative;
    height: 420px;
    max-width: 100%;
    margin: 0 auto;
}

.cumulative-stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.cum-stat {
    text-align: center;
    padding: 16px 24px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    flex: 0 1 240px;
}

.cum-stat-label {
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.cum-stat-value {
    font-size: 1.5em;
    font-weight: 800;
    color: var(--navy);
}

.cum-stat-value.green { color: var(--green); }

.cum-stat-hint {
    font-size: 0.72em;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ---- Merit Aid Value Prop ---- */
.merit-callout {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    color: #fff;
    box-shadow: var(--shadow-md);
}

.merit-callout-inner {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
}

.merit-icon {
    font-size: 2.2em;
    flex-shrink: 0;
    line-height: 1;
}

.merit-content h3 {
    margin: 0 0 12px;
    font-size: 1.25em;
    color: var(--gold);
    font-weight: 700;
}

.merit-content p {
    font-size: 0.95em;
    color: rgba(255,255,255,0.85);
    line-height: 1.7;
    margin: 0 0 12px;
}

.merit-content p:last-child {
    margin-bottom: 0;
}

.merit-content strong {
    color: #fff;
    font-weight: 700;
}

@media (max-width: 640px) {
    .merit-callout-inner {
        flex-direction: column;
        gap: 12px;
    }
}

/* ---- Cost of not getting in ---- */
.cost-callout {
    background: var(--surface);
    border: 2px solid rgba(197, 48, 48, 0.2);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 24px;
}

.cost-callout-inner h3 {
    margin: 0 0 10px;
    font-size: 1.15em;
    color: var(--red);
}

.cost-callout-inner p {
    font-size: 0.92em;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.cost-callout-inner strong {
    color: var(--text);
}

/* ---- Package Comparison Table ---- */
.compare-table-wrap {
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.compare-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border);
}

.compare-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

.compare-table tr.active-row {
    background: var(--gold-pale);
    font-weight: 600;
}

.compare-table td:nth-child(2),
.compare-table td:nth-child(3),
.compare-table td:nth-child(4),
.compare-table td:nth-child(5) {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table th:nth-child(4),
.compare-table th:nth-child(5) {
    text-align: right;
}

/* ---- Action Bar ---- */
.action-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.action-btn {
    padding: 12px 28px;
    border: 2px solid var(--navy);
    background: var(--navy);
    color: #fff;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--navy-mid);
    border-color: var(--navy-mid);
}

.action-btn-outline {
    background: transparent;
    color: var(--navy);
}

.action-btn-outline:hover {
    background: rgba(15, 35, 64, 0.06);
}

/* ---- CTA ---- */
.cta {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-align: center;
    margin-bottom: 24px;
}

.cta h2 {
    color: #fff;
    font-size: 1.5em;
    margin: 0 0 12px;
}

.cta p {
    color: rgba(255,255,255,0.75);
    font-size: 0.95em;
    max-width: 540px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.cta-btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--gold);
    color: var(--navy);
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    border-radius: var(--radius-sm);
    transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-1px);
}

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 20px 20px 40px;
    font-size: 0.78em;
    color: var(--text-muted);
    line-height: 1.6;
}

.site-footer a {
    color: var(--navy-mid);
}

.disclaimer {
    margin-top: 8px;
    font-style: italic;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.6em; }
    .hero-sub { font-size: 0.92em; }
    .step-card { padding: 24px 20px; }
    .form-grid { grid-template-columns: 1fr; }
    .package-grid { grid-template-columns: 1fr 1fr; }
    .school-slot-list { grid-template-columns: 1fr; }
    .school-comparison-grid { grid-template-columns: 1fr; }
    .roi-stats { grid-template-columns: 1fr; }
    .current-pay-card { min-width: auto; padding: 24px 20px; }
    .results, .roi-summary, .package-compare { padding: 24px 20px; }
}

@media (max-width: 480px) {
    .package-grid { grid-template-columns: 1fr; }
    .step-header { flex-direction: column; gap: 10px; }
}

/* ---- Embed mode (inside iframe) ---- */
body.embedded {
    background: transparent;
    padding: 0;
}

body.embedded .site-header {
    border-radius: var(--radius) var(--radius) 0 0;
}

/* ---- Print ---- */
@media print {
    .site-header, .step-card, .cta, .site-footer, .action-bar, .cost-callout, .package-compare { display: none !important; }
    body { background: #fff; }
    .page { padding: 0; }
    .hero { padding: 20px 0 10px; }
    .hero-sub { display: none; }
    .results, .roi-summary, #cumulative-section { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
    .state-card { box-shadow: none !important; }
    .school-card { break-inside: avoid; }
}
