/**
 * main.css - Enterprise Light Railway FinTech Interface
 * Tatkal Ticket Cost Estimator (TTE)
 * Pure, high-contrast light mode.
 * Zero AI-slop, zero decorative capsule/status pills, zero dark mode clutter.
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700;800&display=swap');
@import url('./tokens.css');

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

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  line-height: 1.5;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
  color: var(--text-primary);
}

/* Base Typographic Resets */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-secondary);
  font-size: var(--text-base);
  line-height: 1.6;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-primary-hover);
}

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}

/* ==========================================================================
   NAVIGATION & SITE HEADER
   ========================================================================== */
.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--header-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px 0 rgba(15, 23, 42, 0.03);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: var(--space-4);
}

/* Brand Identity */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-symbol {
  width: 2.25rem;
  height: 2.25rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition-fast);
}

.brand-logo:hover .brand-symbol {
  border-color: var(--brand-blue);
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.brand-tagline {
  font-size: var(--text-2xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  margin-top: 2px;
}

/* Nav Actions & Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

/* Clean Inline IST Clock */
.ist-clock-wrap {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  letter-spacing: 0.01em;
}

.ist-pulse {
  width: 7px;
  height: 7px;
  background-color: var(--emerald-solid);
  border-radius: 50%;
}

/* Nav Quick Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav-link:hover {
  color: var(--brand-blue);
}

/* ==========================================================================
   TATKAL RUSH STATUS STRIP (Clean Informational Banner - No Pills)
   ========================================================================== */
.tatkal-ticker-wrap {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.65rem 0;
}

.tatkal-ticker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-size: var(--text-xs);
}

.countdown-digits {
  color: var(--text-primary);
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.countdown-time {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.03em;
}

.status-live-indicator {
  color: var(--emerald-solid);
  font-size: 11px;
}

.ticker-note {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ==========================================================================
   HERO / EXECUTIVE SUMMARY (Clean, Uncluttered)
   ========================================================================== */
.hero-section {
  padding: var(--space-8) 0 var(--space-6);
  text-align: center;
}

.hero-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-primary);
  max-width: 820px;
  margin: 0 auto var(--space-3);
}

.hero-title-highlight {
  color: var(--brand-blue);
}

.hero-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ==========================================================================
   THE WORKBENCH / CALCULATOR TERMINAL (Split-Pane Grid)
   ========================================================================== */
.calculator-terminal {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  align-items: stretch;
}

/* Panel Containers */
.terminal-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

/* Panel Header */
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-subtle);
}

.panel-header-left {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.panel-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  flex-shrink: 0;
}

.panel-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.panel-subtitle {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 1px;
}

/* ==========================================================================
   INPUT CONTROLS (Left Pane)
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-5);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.label-hint {
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-tertiary);
}

/* Class Grouping & Segmented Buttons */
.class-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.class-group-label {
  font-size: var(--text-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.class-group-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}

.class-pills-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-2);
}

.class-pills-row.non-ac {
  grid-template-columns: repeat(2, 1fr);
}

.class-pill-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.class-pill-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.65rem var(--space-1);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.pill-code {
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
}

.pill-type {
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.class-pill-label:hover {
  background: var(--bg-subtle);
  border-color: var(--brand-blue);
}

.class-pill-input:checked + .class-pill-label {
  background: var(--accent-primary-soft);
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 1px var(--brand-blue);
}

.class-pill-input:checked + .class-pill-label .pill-code {
  color: var(--brand-blue);
}

.class-pill-input:checked + .class-pill-label .pill-type {
  color: var(--brand-blue);
}

/* Passenger Stepper */
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
}

.stepper-info {
  display: flex;
  flex-direction: column;
}

.stepper-label {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.stepper-hint {
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
}

.passenger-stepper {
  display: inline-flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.step-btn {
  background: transparent;
  border: none;
  width: 2.5rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: var(--text-lg);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.step-btn:hover {
  background: var(--bg-subtle);
  color: var(--brand-blue);
}

.step-value {
  width: 2.5rem;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-primary);
}

/* Number Inputs with Rupee Prefix */
.input-with-prefix {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 0.875rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-tertiary);
  pointer-events: none;
}

.text-input {
  width: 100%;
  padding: 0.65rem 0.875rem 0.65rem 2rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: var(--text-base);
  font-weight: 700;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.text-input:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-primary-soft);
}

/* Quick Fare Presets (Clean Text Chips) */
.quick-chips {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  flex-wrap: wrap;
}

.quick-chip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: var(--text-2xs);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-chip:hover {
  border-color: var(--brand-blue);
  color: var(--brand-blue);
  background: var(--accent-primary-soft);
}

/* Travel Insurance Checkbox */
.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: border-color var(--transition-fast);
}

.checkbox-card:hover {
  border-color: var(--border-strong);
}

.custom-checkbox {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: 2px;
  accent-color: var(--emerald-solid);
  cursor: pointer;
}

.checkbox-label-wrap {
  display: flex;
  flex-direction: column;
}

.checkbox-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.checkbox-desc {
  font-size: var(--text-2xs);
  color: var(--text-tertiary);
  margin-top: 1px;
}

/* ==========================================================================
   DIGITAL SETTLEMENT VOUCHER (Right Pane / The Output Slip)
   ========================================================================== */
.voucher-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-voucher);
  display: flex;
  flex-direction: column;
}

.voucher-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px dashed var(--border-strong);
}

.voucher-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Hero Top-Up Figure Box */
.voucher-hero-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-4);
  text-align: center;
  margin-bottom: var(--space-4);
}

.voucher-hero-label {
  font-size: var(--text-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-text);
  margin-bottom: var(--space-1);
}

.result-hero-amount {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4vw, 3.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.result-hero-note {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin-top: var(--space-2);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

/* Copy Action Button (Clean Rectangular Button) */
.copy-action-row {
  margin-top: var(--space-3);
}

.btn-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--emerald-solid);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: var(--text-sm);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: var(--emerald-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-copy:active {
  transform: translateY(0);
}

/* Alert Callouts */
.alert-box {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.5;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  border: 1px solid transparent;
}

.alert-warning {
  background: var(--amber-surface);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

.alert-success {
  background: var(--emerald-surface);
  border-color: var(--emerald-border);
  color: var(--emerald-text);
}

.alert-danger {
  background: var(--rose-surface);
  border-color: var(--rose-border);
  color: var(--rose-text);
}

/* Itemized Cost Receipt Table */
.receipt-section-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.breakdown-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.breakdown-table tr {
  border-bottom: 1px solid var(--border-subtle);
}

.breakdown-table td {
  padding: 0.65rem 0;
  color: var(--text-secondary);
}

.breakdown-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

.breakdown-table tr.total-row {
  border-top: 2px solid var(--border-strong);
  border-bottom: none;
}

.breakdown-table tr.total-row td {
  padding-top: var(--space-3);
  padding-bottom: 0;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--text-primary);
}

.breakdown-table tr.total-row td:last-child {
  font-size: var(--text-base);
  color: var(--brand-blue);
}

/* ==========================================================================
   PAYMENT MODE COST & SPEED MATRIX
   ========================================================================== */
.matrix-section {
  margin-bottom: var(--space-12);
}

.section-head {
  text-align: center;
  margin-bottom: var(--space-6);
}

.section-eyebrow {
  font-size: var(--text-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-blue);
  margin-bottom: var(--space-1);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.section-subtitle {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.matrix-table-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: var(--text-sm);
}

.matrix-table th {
  background: var(--table-th-bg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.matrix-table td {
  padding: 0.95rem var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  color: var(--text-secondary);
}

.matrix-table tr:last-child td {
  border-bottom: none;
}

.matrix-table tr:hover td {
  background: var(--table-row-hover);
}

.matrix-mode-name {
  font-weight: 700;
  color: var(--text-primary);
}

.matrix-total {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: var(--text-base);
  color: var(--text-primary);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
}

/* Clean text recommendation (No capsule status pills) */
.matrix-recommendation {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.matrix-recommendation.rec-blue {
  color: var(--brand-blue);
}

.matrix-recommendation.rec-green {
  color: var(--emerald-solid);
}

.matrix-speed-text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ==========================================================================
   EDITORIAL HANDBOOK & FARE SLABS
   ========================================================================== */
.editorial-hub {
  margin-bottom: var(--space-12);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.guide-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.guide-card p {
  font-size: var(--text-sm);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.guide-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.guide-list li {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.55;
  padding-left: var(--space-4);
  position: relative;
}

.guide-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--brand-blue);
}

.guide-list strong {
  color: var(--text-primary);
}

/* Official Railway Board Fare Slabs Table */
.fare-table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-bottom: var(--space-8);
}

.fare-table-wrap {
  overflow-x: auto;
  margin: var(--space-4) 0;
}

.fare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-xs);
}

.fare-table th {
  background: var(--table-th-bg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-2xs);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
}

.fare-table td {
  padding: 0.75rem var(--space-4);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.fare-table tr:hover td {
  background: var(--table-row-hover);
}

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--border-strong);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  background: transparent;
  border: none;
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  gap: var(--space-3);
}

.faq-icon {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
  color: var(--brand-blue);
}

.faq-answer {
  display: none;
  padding: 0 var(--space-5) var(--space-4);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ==========================================================================
   TOAST NOTICE (Feedback)
   ========================================================================== */
.toast-notice {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all var(--transition-fast);
  z-index: 999;
}

.toast-notice.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   SITE FOOTER & STATUTORY DISCLAIMERS
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #ffffff;
  padding: var(--space-8) 0 var(--space-6);
  margin-top: auto;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.footer-disclaimer-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  line-height: 1.6;
  margin-bottom: var(--space-6);
}

.footer-disclaimer-box strong {
  color: var(--text-primary);
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-subtle);
}

.footer-links {
  display: flex;
  gap: var(--space-4);
}

.footer-links a {
  color: var(--text-secondary);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--brand-blue);
}
