/* ============================================
   NEET PG True Cost Calculator — Styles v3
   Career Plan B brand system · Figma redesign
   ============================================ */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand: #22C55E;
    --brand-dark: #16A34A;
    --brand-dim: #DCFCE7;
    --surface: #F4F6F8;
    --white: #FFFFFF;
    --ink: #111827;
    --ink-2: #374151;
    --ink-3: #6B7280;
    --ink-4: #9CA3AF;
    --hairline: #E5E7EB;
    --danger: #DC2626;
    --success: #16A34A;
    --warning: #D97706;
    --stipend: #0369A1;
    --stipend-light: #E0F2FE;
    --container-max: 1080px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--surface);
    color: var(--ink-2);
    line-height: 1.65;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 28px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.page-header {
    background: var(--surface);
    padding: 70px 0 64px;
    text-align: center;
}

.eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--brand);
    margin-bottom: 18px;
}

.page-header h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 22px;
}

.header-sub {
    font-size: 1.05rem;
    color: var(--ink-3);
    max-width: 620px;
    margin: 0 auto 10px;
}

.header-note {
    font-size: 0.8rem;
    color: var(--ink-4);
}

.calculator-section {
    padding: 0 0 36px;
}

.presets-bar {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    margin-bottom: 18px;
}

.presets-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-3);
    font-weight: 700;
    margin-bottom: 12px;
}

.presets-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.preset-btn,
.compare-btn,
.toggle-btn,
.faq-question {
    font: inherit;
}

.preset-btn {
    border: 1px solid var(--brand);
    background: var(--white);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
}

.preset-btn.active {
    background: var(--brand);
    color: var(--white);
}

.scenario-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: stretch;
}

.scenario-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 20px;
}

.scenario-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--ink-3);
    margin-bottom: 18px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--ink-2);
    margin-bottom: 8px;
}

select {
    width: 100%;
    border: 1px solid var(--hairline-2, #D1D5DB);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font: inherit;
    background: var(--white);
    color: var(--ink);
}

.vs-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--brand);
}

.vs-divider span {
    background: var(--brand-dark-bg, #1D4F45);
    color: var(--white);
    border-radius: 999px;
    padding: 14px 18px;
}

.toggle-wrapper {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--hairline);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 600;
    cursor: pointer;
}

.toggle-btn.active {
    background: var(--brand-dim);
    border-color: var(--brand);
    color: var(--brand-dark);
}

.cta-row {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.compare-btn {
    border: none;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: var(--white);
    padding: 15px 28px;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 12px 30px rgba(34, 197, 94, 0.2);
}

.results-section {
    padding: 10px 0 40px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 220px 1fr;
    gap: 18px;
    align-items: stretch;
}

.summary-card,
.summary-diff-card,
.table-card,
.chart-card,
.insight-box,
.bond-warning,
.confidence-box {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
}

.summary-card {
    padding: 22px 20px;
}

.summary-header {
    margin-bottom: 10px;
}

.summary-label {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.summary-sublabel,
.table-sublabel,
.stipend-sublabel {
    font-size: 0.8rem;
    color: var(--ink-3);
    font-weight: 500;
}

.summary-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 6px 10px;
    margin-bottom: 10px;
}

.badge-green {
    background: var(--brand-dim);
    color: var(--brand-dark);
}

.badge-yellow {
    background: #FFF7E6;
    color: var(--warning);
}

.badge-unavailable,
.badge-neutral {
    background: #F3F4F6;
    color: var(--ink-3);
}

.summary-total {
    font-size: clamp(1.8rem, 2vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--ink);
}

.total-surplus {
    color: var(--success);
}

.total-cost {
    color: var(--ink);
}

.summary-desc {
    margin-top: 8px;
    color: var(--ink-3);
    font-size: 0.85rem;
}

.summary-diff-card {
    padding: 20px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.diff-label {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
}

.diff-total {
    font-size: 2rem;
    font-weight: 800;
    color: var(--ink);
}

.diff-desc {
    font-size: 0.85rem;
    color: var(--ink-3);
    margin-top: 8px;
}

.fee-scope-labels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.fee-scope-tag {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-md);
    padding: 12px 14px;
}

.fee-scope-icon {
    display: inline-block;
    margin-right: 8px;
    font-weight: 700;
}

.fee-scope-icon.uniform { color: var(--success); }
.fee-scope-icon.specific { color: var(--brand); }
.fee-scope-icon.estimate { color: var(--warning); }
.fee-scope-icon.verification { color: var(--ink-3); }

.fee-scope-detail {
    font-size: 0.8rem;
    color: var(--ink-3);
    margin-top: 7px;
}

.insight-box {
    padding: 18px 20px;
    color: var(--ink-2);
    margin-bottom: 20px;
}

.stipend-section {
    margin-bottom: 20px;
}

.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 12px;
}

.stipend-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.stipend-card {
    background: var(--white);
    border: 1px solid var(--hairline);
    border-radius: var(--radius-lg);
    padding: 18px;
}

.stipend-card-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 10px;
}

.stipend-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--hairline);
}

.stipend-unavailable {
    margin-top: 12px;
    color: var(--ink-3);
    font-size: 0.85rem;
}

.stipend-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    font-weight: 700;
    color: var(--ink);
}

.compare-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 20px;
}

.chart-card {
    padding: 18px;
}

.card-title {
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 14px;
}

.chart-bars {
    display: flex;
    width: 100%;
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
    margin-bottom: 14px;
}

.chart-bar {
    height: 100%;
}

.chart-bar-tuition {
    background: var(--brand);
}

.chart-bar-hostel {
    background: var(--stipend);
}

.chart-bar-other {
    background: #A78BFA;
}

.chart-total-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--ink-3);
    font-size: 0.9rem;
}

.chart-total {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 800;
}

.table-card {
    padding: 18px;
    margin-bottom: 20px;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--hairline);
    text-align: left;
}

.comparison-table thead th {
    background: #F9FAFB;
    color: var(--ink);
    font-weight: 700;
}

.bond-warning,
.confidence-box {
    padding: 14px 18px;
    margin-bottom: 18px;
    color: var(--ink-2);
}

.bond-warning {
    border-color: #FCD34D;
    background: #FFFBEB;
}

.confidence-box {
    background: #F0FDF4;
    border-color: #BBF7D0;
}

.accordion-section {
    padding: 80px 0;
    background: var(--white);
}

.accordion-section h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 28px;
    text-align: center;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.accordion-item {
    background: var(--brand-dark-bg);
    border-radius: 12px;
    overflow: hidden;
}

.accordion-item.open {
    background: var(--white);
    border: 1px solid var(--hairline);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--brand-dark-bg);
    border: none;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    gap: 16px;
}

.accordion-icon {
    color: rgba(255, 255, 255, 0.8);
    flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    display: none;
    padding: 24px;
    background: var(--white);
    color: var(--ink-2);
    font-size: 0.95rem;
    line-height: 1.6;
}

.accordion-item.open .accordion-content {
    display: block;
}

.accordion-content p {
    margin-bottom: 12px;
}

.accordion-content p:last-child {
    margin-bottom: 0;
}

.accordion-content strong {
    color: var(--ink);
    font-weight: 600;
}

.site-footer {
    background: #0F1210;
    color: #E5E7EB;
    padding: 24px 0;
    text-align: center;
}

@media (max-width: 900px) {
    .scenario-grid,
    .summary-grid,
    .compare-grid,
    .stipend-grid,
    .fee-scope-labels {
        grid-template-columns: 1fr;
    }
    .vs-divider {
        display: none;
    }
}
