/* ============================================================
   DriveElectric India — style.css
   Light/Dark mode with CSS custom properties
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── COLOR TOKENS ──────────────────────────────────────────── */
:root {
  --bg:            #F0FDF4;
  --card-bg:       #FFFFFF;
  --accent:        #16A34A;
  --accent-hover:  #15803D;
  --text:          #111827;
  --text-muted:    #6B7280;
  --border:        #D1FAE5;
  --input-bg:      #F9FAFB;
  --result-bg:     #DCFCE7;
  --result-border: #86EFAC;
  --header-bg:     #FFFFFF;
  --header-shadow: rgba(22,163,74,0.10);
  --step-bg:       #FFFFFF;
  --faq-bg:        #FFFFFF;
  --table-alt:     #F0FDF4;
  --total-bg:      #DCFCE7;
  --warning-bg:    #FEF9C3;
  --warning-border:#FDE047;
  --warning-text:  #854D0E;
  --error-color:   #DC2626;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:     0 4px 16px rgba(22,163,74,0.10), 0 1px 4px rgba(0,0,0,0.06);
  --shadow-lg:     0 10px 40px rgba(22,163,74,0.12), 0 2px 8px rgba(0,0,0,0.06);
  --radius-sm:     0.5rem;
  --radius-md:     0.75rem;
  --radius-lg:     1rem;
  --radius-xl:     1.25rem;
}

html.dark {
  --bg:            #0F172A;
  --card-bg:       #1E293B;
  --accent:        #22C55E;
  --accent-hover:  #16A34A;
  --text:          #F8FAFC;
  --text-muted:    #94A3B8;
  --border:        #334155;
  --input-bg:      #1E293B;
  --result-bg:     #14532D;
  --result-border: #166534;
  --header-bg:     #1E293B;
  --header-shadow: rgba(0,0,0,0.30);
  --step-bg:       #1E293B;
  --faq-bg:        #1E293B;
  --table-alt:     #162032;
  --total-bg:      #166534;
  --warning-bg:    #422006;
  --warning-border:#854D0E;
  --warning-text:  #FDE68A;
  --error-color:   #F87171;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.30);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.30);
  --shadow-lg:     0 10px 40px rgba(0,0,0,0.40);
}

/* ── RESET & BASE ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ── LAYOUT HELPERS ─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── STICKY HEADER ──────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 12px var(--header-shadow);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.875rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.logo-bolt {
  font-size: 1.35rem;
  line-height: 1;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.header-tagline {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-toggle {
  flex-shrink: 0;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { transform: scale(1.1); }

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: 3.5rem 1.25rem 2.5rem;
  text-align: center;
}

.hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--result-bg);
  color: var(--accent-hover);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.3s ease;
}

/* ── CALCULATOR SECTION ─────────────────────────────────────── */
.calculator-section {
  padding: 0 0 2.5rem;
}

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

/* ── FORM ───────────────────────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-input {
  width: 100%;
  background: var(--input-bg);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.3s ease, box-shadow 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22,163,74,0.15);
}

.form-input.has-error {
  border-color: var(--error-color);
  box-shadow: 0 0 0 3px rgba(220,38,38,0.10);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.2rem;
}

.field-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.field-error {
  font-size: 0.775rem;
  color: var(--error-color);
  font-weight: 500;
  min-height: 1rem;
  display: block;
}

/* ── CALCULATE BUTTON ───────────────────────────────────────── */
.calc-btn {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(22,163,74,0.35);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.calc-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(22,163,74,0.40);
}

.calc-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}

/* ── RESULTS SECTION ────────────────────────────────────────── */
.results-section {
  display: none;
  padding: 0 0 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.results-section.visible {
  opacity: 1;
  transform: translateY(0);
}

.results-card {
  background: var(--result-bg);
  border: 1px solid var(--result-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* Summary Bar */
.results-summary {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background-color 0.3s ease;
}

.summary-savings {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}

.summary-savings span {
  font-size: 1.55rem;
}

.summary-effective {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.summary-effective span {
  color: var(--accent);
}

/* Breakdown Table */
.breakdown-wrapper {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: background-color 0.3s ease;
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.breakdown-table thead th {
  background: var(--accent);
  color: #ffffff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breakdown-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s ease;
}

.breakdown-table tbody tr:nth-child(even) {
  background: var(--table-alt);
}

.breakdown-table tbody tr:last-child {
  border-bottom: none;
}

.breakdown-table tbody td {
  padding: 0.75rem 1rem;
  color: var(--text);
}

.breakdown-table tbody td:last-child {
  text-align: right;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.table-total-row {
  background: var(--total-bg) !important;
}

.table-total-row td {
  font-weight: 700 !important;
  color: var(--accent) !important;
  font-size: 1rem;
}

.table-effective-row td {
  font-weight: 700 !important;
  font-size: 1rem;
}

/* Warning Alert */
.alert-warning {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  color: var(--warning-text);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
  transition: background-color 0.3s ease;
}

.alert-warning.visible {
  display: flex;
}

.alert-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* State Note */
.state-note {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--card-bg);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background-color 0.3s ease;
}

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

/* Share Button */
.share-btn {
  background: var(--card-bg);
  color: var(--accent);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.share-btn:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-1px);
}

.share-confirm {
  display: inline-block;
  margin-left: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.share-confirm.visible {
  opacity: 1;
}

/* ── HOW IT WORKS ───────────────────────────────────────────── */
.how-it-works {
  padding: 3rem 0;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 2rem;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.step-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.step-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 500;
}

/* ── FAQ SECTION ────────────────────────────────────────────── */
.faq-section {
  padding: 3rem 0 3.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--faq-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: background-color 0.3s ease;
}

.footer-sources {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 680px;
  margin: 0 auto;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {

  .header-inner {
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }

  .header-tagline {
    display: none;
  }

  .logo-text {
    font-size: 0.95rem;
  }

  .hero {
    padding: 2rem 1.25rem 1.75rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .hero-sub {
    font-size: 0.95rem;
  }

  .card {
    padding: 1.5rem 1rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .results-card {
    padding: 1.5rem 1rem;
  }

  .results-summary {
    padding: 1rem;
  }

  .summary-savings {
    font-size: 1.1rem;
  }

  .summary-savings span {
    font-size: 1.25rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .step-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-align: left;
    padding: 1rem 1.25rem;
  }

  .step-icon {
    font-size: 1.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .section-title {
    font-size: 1.25rem;
  }

  .faq-item {
    padding: 1rem 1.1rem;
  }

  .breakdown-table {
    font-size: 0.83rem;
  }

  .breakdown-table thead th,
  .breakdown-table tbody td {
    padding: 0.6rem 0.75rem;
  }
}

@media (max-width: 400px) {
  .card-title {
    font-size: 1.1rem;
  }

  .calc-btn {
    font-size: 0.95rem;
    padding: 0.875rem 1rem;
  }
}

/* ── REDUCED MOTION ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   ADDITIONAL STYLES — new pages (appended)
   ============================================================ */

/* ── NAV ────────────────────────────────────────────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent);
  background: var(--result-bg);
  text-decoration: none;
}

.nav-link.nav-active {
  color: var(--accent);
  background: var(--result-bg);
  font-weight: 700;
}

/* ── BREADCRUMB ─────────────────────────────────────────────── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 0.35rem; }

/* ── PAGE HERO (inner pages) ────────────────────────────────── */
.page-hero {
  padding: 2.5rem 1.25rem 1.75rem;
  text-align: center;
}
.page-hero-inner { max-width: 680px; margin: 0 auto; }
.page-hero-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.875rem;
}
.page-hero p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

/* ── STATE PAGE ─────────────────────────────────────────────── */
.state-hero-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.875rem;
  margin: 1.5rem 0 2rem;
}
.stat-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}
.stat-chip-value {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 0.25rem;
}
.stat-chip-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* State subsidy full breakdown table */
.state-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}
.state-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.state-table thead th {
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.state-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: background-color 0.15s ease;
}
.state-table tbody tr:last-child { border-bottom: none; }
.state-table tbody tr:nth-child(even) { background: var(--table-alt); }
.state-table tbody tr:hover { background: var(--result-bg); }
.state-table td { padding: 0.8rem 1rem; color: var(--text); vertical-align: top; }
.state-table td:first-child { font-weight: 600; white-space: nowrap; }
.state-table .badge-yes {
  display: inline-block;
  background: #DCFCE7; color: #166534;
  font-size: 0.72rem; font-weight: 700;
  padding: 0.2rem 0.5rem; border-radius: 2rem;
}
.state-table .badge-no {
  display: inline-block;
  background: var(--table-alt); color: var(--text-muted);
  font-size: 0.72rem; font-weight: 600;
  padding: 0.2rem 0.5rem; border-radius: 2rem;
}
html.dark .state-table .badge-yes { background: #166534; color: #86EFAC; }

/* Comparison table */
.compare-table-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
  transition: background-color 0.3s ease;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.compare-table thead th {
  background: var(--table-alt);
  color: var(--text);
  padding: 0.65rem 0.875rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  border-bottom: 2px solid var(--border);
}
.compare-table thead th.highlight-col { color: var(--accent); }
.compare-table tbody tr { border-bottom: 1px solid var(--border); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table td { padding: 0.7rem 0.875rem; color: var(--text-muted); }
.compare-table td.highlight-col { color: var(--accent); font-weight: 700; }
.compare-table td:first-child { color: var(--text); font-weight: 500; }

/* ── SCHEME PAGE (PM E-DRIVE) ───────────────────────────────── */
.scheme-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.scheme-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}
.scheme-card-icon { font-size: 1.75rem; margin-bottom: 0.75rem; }
.scheme-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.5rem;
}
.scheme-card p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

.timeline {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0.45rem; top: 0.5rem; bottom: 0.5rem;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.67rem; top: 0.35rem;
  width: 0.75rem; height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--card-bg);
  box-shadow: 0 0 0 2px var(--accent);
}
.timeline-date {
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 0.25rem;
}
.timeline-title { font-size: 0.95rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.timeline-body { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ── HOW TO CLAIM PAGE ──────────────────────────────────────── */
.claim-steps { margin-bottom: 2rem; }
.claim-step {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: start;
}
.claim-step-num {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.1rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(22,163,74,0.3);
}
.claim-step-content h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.375rem; margin-top: 0.5rem;
}
.claim-step-content p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; }
.claim-step-content ul { font-size: 0.875rem; color: var(--text-muted); line-height: 1.8; padding-left: 1.1rem; margin-top: 0.5rem; }

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 2rem;
}
.doc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  display: flex; align-items: flex-start; gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease;
}
.doc-card-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.05rem; }
.doc-card-text { font-size: 0.85rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.doc-card-sub { font-size: 0.775rem; color: var(--text-muted); margin-top: 0.2rem; }

/* ── EV MODELS PAGE ─────────────────────────────────────────── */
.models-filter-bar {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: 2rem;
  padding: 0.4rem 0.9rem;
  font-family: inherit; font-size: 0.82rem; font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.model-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}
.model-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.model-card-type {
  font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--accent); margin-bottom: 0.4rem;
}
.model-card-name {
  font-size: 1rem; font-weight: 700;
  color: var(--text); margin-bottom: 0.75rem; line-height: 1.3;
}
.model-card-specs {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0.5rem; margin-bottom: 0.875rem;
}
.model-spec { font-size: 0.78rem; color: var(--text-muted); }
.model-spec strong { display: block; font-size: 0.875rem; color: var(--text); font-weight: 700; }
.model-card-subsidy {
  background: var(--result-bg);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.82rem; color: var(--accent); font-weight: 700;
  border: 1px solid var(--border);
}
.model-hidden { display: none; }

/* ── INFO BOX ───────────────────────────────────────────────── */
.info-box {
  background: var(--result-bg);
  border: 1px solid var(--result-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.65;
  transition: background-color 0.3s ease;
}
.info-box strong { color: var(--accent); }

.warn-box {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  color: var(--warning-text);
  line-height: 1.65;
}

/* ── SECTION DIVIDER ────────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ── FOOTER LINKS ───────────────────────────────────────────── */
.footer-links {
  display: flex; gap: 1.25rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 1rem;
}
.footer-links a {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); text-decoration: none;
  transition: color 0.2s ease;
}
.footer-links a:hover { color: var(--accent); }

/* ── CTA BAND ───────────────────────────────────────────────── */
.cta-band {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(22,163,74,0.25);
}
.cta-band h2 { font-size: 1.3rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
.cta-band p { font-size: 0.9rem; color: rgba(255,255,255,0.85); margin-bottom: 1.25rem; }
.cta-band a {
  display: inline-block;
  background: #fff; color: var(--accent);
  font-weight: 700; font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta-band a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; }

/* ── RESPONSIVE ADDITIONS ───────────────────────────────────── */
@media (max-width: 768px) {
  .header-nav { display: none; }

  .state-hero-stat-row { grid-template-columns: 1fr 1fr; }
  .scheme-grid { grid-template-columns: 1fr; }
  .doc-grid { grid-template-columns: 1fr; }

  .claim-step { grid-template-columns: 2.25rem 1fr; gap: 0.75rem; }
  .claim-step-num { width: 2.25rem; height: 2.25rem; font-size: 0.9rem; }

  .compare-table { font-size: 0.78rem; }
  .compare-table thead th,
  .compare-table td { padding: 0.55rem 0.65rem; }

  .state-table { font-size: 0.8rem; }
  .state-table thead th,
  .state-table td { padding: 0.6rem 0.7rem; }

  .models-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .models-grid { grid-template-columns: 1fr; }
}

/* ── STATE CHIPS (calculator page) ─────────────────────────── */
.state-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.state-chip-btn {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: 2rem;
  padding: 0.35rem 0.85rem;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.state-chip-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── STATES GRID (state-subsidies page) ─────────────────────── */
.states-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.state-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.state-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
  text-decoration: none;
}
.state-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.state-card-region {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}
.state-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.state-card-arrow {
  font-size: 1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.15rem;
}
.state-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.state-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 2rem;
  white-space: nowrap;
}
.state-tag-cash { background: #DCFCE7; color: #166534; }
.state-tag-road { background: #DBEAFE; color: #1E40AF; }
.state-tag-reg  { background: #FEF9C3; color: #854D0E; }
.state-tag-none { background: var(--table-alt); color: var(--text-muted); }
html.dark .state-tag-cash { background: #166534; color: #86EFAC; }
html.dark .state-tag-road { background: #1E3A5F; color: #93C5FD; }
html.dark .state-tag-reg  { background: #422006; color: #FDE68A; }

.state-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}
.state-card-stat { display: flex; flex-direction: column; gap: 0.1rem; }
.state-card-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
}
.state-card-stat-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── NEW ELEMENT STYLE MAPS ─────────────────────────────────── */

#policyStatusWarning {
  display: none;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

html.dark #policyStatusWarning[style*="background: rgb(254, 226, 226)"] {
  background-color: #7f1d1d !important;
  color: #fca5a5 !important;
  border-color: #991b1b !important;
}

@media (max-width: 768px) {
  .states-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .states-grid { grid-template-columns: 1fr; }
}
