/* Main color variables for the light theme and feature accents. */
:root {
  --primary: #1459C7;
  --primary-dark: #0E3A82;
  --accent: #22B8F0;
  --accent-soft: #DDF5FF;
  --bg: #F4F8FC;
  --surface: #FFFFFF;
  --surface-alt: #ECF3FA;
  --text: #10243E;
  --text-muted: #5B6B81;
  --text-soft: #7B8AA0;
  --border: #D6E1EE;
  --border-strong: #B9CBE0;
  --success: #169B62;
  --success-bg: #E8F7F0;
  --warning: #D98A00;
  --warning-bg: #FFF4D6;
  --danger: #D64545;
  --danger-bg: #FDE8E8;
  --eco-green: #169B62;
  --eco-green-strong: #0F7A4E;
  --eco-green-bg: #E8F7F0;
  --match-purple: #7057FF;
  --match-purple-strong: #5237D5;
  --match-purple-bg: #F0EDFF;
  --alert-blue: #1292EE;
  --alert-blue-strong: #0D6FBC;
  --alert-blue-bg: #E8F4FF;
  --white: var(--surface);
  --muted: var(--text-muted);
  --success-text: var(--success);
  --text-inverse: #FFFFFF;
  --nav-surface: var(--white);
  --footer-surface: var(--primary-dark);
  --panel-surface: var(--surface-alt);
  --input-surface: var(--surface-alt);
  --hero-start: var(--primary-dark);
  --hero-end: var(--primary);
  --hero-foreground: var(--text-inverse);
  --hero-muted: var(--accent-soft);
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius-lg: 24px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

/* Dark mode changes the variables instead of rewriting every component. */
body.dark-mode {
  --primary: #60A5FA;
  --primary-dark: #3B82F6;
  --accent: #7DD3FC;
  --accent-soft: #123150;
  --bg: #0A1322;
  --surface: #162235;
  --surface-alt: #243348;
  --text: #F3F7FC;
  --text-muted: #C6D1E0;
  --text-soft: #A7B5C8;
  --border: #43556D;
  --border-strong: #5B718C;
  --success: #6EE7A6;
  --success-bg: #123022;
  --warning: #F4C96B;
  --warning-bg: #3A2E12;
  --danger: #F6A5B4;
  --danger-bg: #40202A;
  --eco-green-bg: #173126;
  --eco-green-strong: #9BE8BC;
  --match-purple: #9B8CFF;
  --match-purple-strong: #EEE9FF;
  --match-purple-bg: #2A2347;
  --alert-blue-strong: #D7ECFF;
  --alert-blue-bg: #17324A;
  --white: var(--surface);
  --muted: var(--text-muted);
  --text-inverse: #F8FBFF;
  --nav-surface: #0F172A;
  --footer-surface: #0F172A;
  --panel-surface: #223149;
  --input-surface: #101A2B;
  --hero-start: #0F172A;
  --hero-end: #14345A;
  --hero-foreground: #F3F7FC;
  --hero-muted: #D8E7F7;
  --shadow: 0 16px 28px rgba(2, 6, 23, 0.34);
}

a {
  text-decoration: none;
  color: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 1240px;
  max-width: calc(100% - 80px);
  margin: 0 auto;
}

/* Shared page shell and top navigation styles. */
.navbar {
  height: 80px;
  background: var(--nav-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 16px;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
}

body.dark-mode .theme-toggle {
  background: var(--input-surface);
}

.btn,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-inverse);
  border: none;
  box-shadow: 0 10px 22px rgba(20, 89, 199, 0.16);
}

.btn-secondary {
  background: var(--surface);
  color: var(--primary);
  border: 1px solid var(--border-strong);
}

.btn:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
}

.hero {
  margin-top: 40px;
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(105deg, var(--hero-start) 0%, var(--hero-end) 100%);
  padding: 48px 64px;
  color: var(--hero-foreground);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.hero h1 {
  margin: 0;
  font-size: 44px;
  line-height: 1.15;
  max-width: 650px;
}

.hero p {
  margin: 0;
  max-width: 720px;
  font-size: 18px;
  line-height: 1.7;
  color: var(--hero-muted);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
}

.card h3 {
  color: var(--text);
}

/* Search form card used by round trip, one way, and multi-city pages. */
.search-card {
  margin-top: -40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tab-row,
.field-row,
.actions-row,
.feature-row,
.progress,
.grid-2,
.grid-main,
.option-row,
.button-row,
.flight-row,
.help-grid {
  display: flex;
  gap: 16px;
}

.tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}

.tab.active {
  background: var(--accent-soft);
  color: var(--primary);
}

.tab.inactive {
  background: var(--surface-alt);
  color: var(--text-muted);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.form-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-section h3 {
  margin: 0;
  font-size: 18px;
}

.search-card .form-section + .form-section {
  margin-top: 8px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.field.small {
  max-width: 170px;
}

.field.passenger-field {
  max-width: 250px;
}

.field label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.input {
  height: 56px;
  border: 1px solid var(--border-strong);
  background: var(--input-surface);
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  font-size: 15px;
}

/* Custom passenger selector dropdown on the search pages. */
.passenger-selector {
  position: relative;
}

.passenger-trigger {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  color: var(--text);
  background: var(--input-surface);
}

.passenger-trigger.placeholder-select {
  color: var(--text-soft);
}

.passenger-chevron {
  font-size: 14px;
  color: var(--text-muted);
}

.passenger-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 320px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
  z-index: 20;
}

.passenger-panel-header {
  margin-bottom: 12px;
}

.passenger-panel-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.passenger-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.passenger-row:first-of-type {
  border-top: none;
}

.passenger-type {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.passenger-subtext {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.passenger-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--input-surface);
  color: var(--primary);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.counter-value {
  min-width: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.passenger-panel-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}

.checkbox {
  width: 20px;
  height: 20px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
}

.section {
  margin-top: 40px;
}

.section h2,
.card h2 {
  margin: 0 0 8px;
  font-size: 24px;
}

.section p.subtitle,
.card p.subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.feature-card {
  flex: 1;
  min-height: 140px;
}

.feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

/* Footer is intentionally slim so it does not overpower the page content. */
.footer {
  margin-top: auto;
  margin-top: 48px;
  min-height: 64px;
  padding: 16px 0;
  background: var(--footer-surface);
  display: flex;
  align-items: center;
}

.footer .container {
  color: var(--accent-soft);
  font-size: 14px;
}

.page-header {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 36px;
}

.page-header p {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
}

.summary-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.results-summary-route {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}

.results-summary-meta {
  margin-top: 6px;
}

/* Booking progress indicator shown on each flow page. */
.progress {
  align-items: center;
  flex-wrap: wrap;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel-surface);
}

.progress-caption {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step.completed .step-circle {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--text-inverse);
}

.step.active .step-circle {
  background: var(--accent-soft);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 0 4px rgba(20, 89, 199, 0.14);
}

.step.pending .step-circle {
  background: var(--surface);
  color: var(--text-soft);
}

.step-label {
  font-size: 15px;
  font-weight: 500;
}

.step.active .step-label,
.step.completed .step-label {
  color: var(--primary);
  font-weight: 700;
}

.step-line {
  width: 40px;
  height: 1px;
  background: var(--border-strong);
}

.grid-main {
  margin-top: 32px;
  align-items: flex-start;
}

.main-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar {
  width: 340px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.summary-box {
  background: var(--panel-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
}

.summary-box h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.summary-box p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  font-size: 15px;
  margin-bottom: 12px;
}

.summary-row .label {
  color: var(--muted);
}

.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.summary-total strong {
  font-size: 22px;
  color: var(--primary);
}

.summary-details {
  margin-top: 16px;
}

.note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.summary-note {
  margin-top: 12px;
}

.option-card {
  flex: 1;
  min-height: 170px;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.option-card.selectable,
.flight-card.selectable {
  cursor: pointer;
}

.option-card.selectable:hover,
.flight-card.selectable:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(34, 184, 240, 0.14);
  transform: translateY(-2px);
}

.option-card.selected {
  background: var(--accent-soft);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(20, 89, 199, 0.12), 0 12px 28px rgba(20, 89, 199, 0.14);
}

.option-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.option-card h3 {
  margin: 0;
  font-size: 18px;
}

.option-card p {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.option-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
}

.price {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
}

.tag {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  background: var(--surface-alt);
  color: var(--text-muted);
}

.option-card.selected .tag {
  background: var(--primary);
  color: var(--text-inverse);
}

.option-card.selected .tag::before {
  content: "✓ ";
}

/* Flight result cards keep the main comparison details easy to scan. */
.flight-card {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  justify-content: space-between;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.flight-card.selected {
  border-color: var(--primary);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px rgba(20, 89, 199, 0.12), 0 12px 28px rgba(20, 89, 199, 0.14);
}

.results-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sort-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-btn {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(112, 87, 255, 0.18);
  background: var(--surface);
  color: var(--match-purple-strong);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.sort-btn.active {
  background: var(--match-purple-bg);
  color: var(--match-purple-strong);
  border-color: rgba(112, 87, 255, 0.32);
}

.ecomatch-hint {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--match-purple-bg);
  color: var(--match-purple-strong);
  font-size: 12px;
  font-weight: 700;
}

.flight-meta {
  width: 170px;
  padding-top: 4px;
}

.flight-meta h3 {
  margin: 0 0 7px;
  font-size: 16px;
  color: var(--text);
}

.flight-meta p {
  display: inline-flex;
  margin: 0;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--surface-alt);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.flight-times {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(90px, 1fr) 140px minmax(90px, 1fr);
  gap: 16px;
  align-items: center;
  padding-top: 2px;
}

.center {
  text-align: center;
}

.time {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.city {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.flight-mid {
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.flight-line {
  width: 88px;
  height: 2px;
  margin: 7px auto 5px;
  background: linear-gradient(to right, var(--accent), var(--primary));
  border-radius: 999px;
  opacity: 0.78;
}

.flight-price {
  width: 170px;
  text-align: right;
  padding-top: 2px;
}

.flight-insight {
  width: 200px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--surface-alt);
  border: 1px solid rgba(112, 87, 255, 0.12);
}

.eco-highlight {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--match-purple-bg);
  color: var(--match-purple-strong);
  font-size: 11px;
  font-weight: 700;
}

.eco-match-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--match-purple);
  color: var(--text-inverse);
  font-size: 11px;
  font-weight: 700;
}

.eco-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.eco-badge.low {
  background: var(--eco-green-bg);
  color: var(--eco-green-strong);
}

.eco-badge.moderate {
  background: var(--warning-bg);
  color: var(--warning);
}

.eco-badge.high {
  background: var(--danger-bg);
  color: var(--danger);
}

.eco-copy {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-soft);
  line-height: 1.45;
}

.eco-score-note {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--text-soft);
}

.eco-reason {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--match-purple-strong);
}

.flight-price .amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.split-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
  background: var(--panel-surface);
  border-radius: 14px;
  padding: 24px;
}

.ticket-grid div {
  font-size: 15px;
}

.ticket-grid.spaced-top-md,
.form-grid.spaced-top-md,
.seat-grid.spaced-top-md,
.split-2.spaced-top-md,
.option-row.spaced-top-md {
  margin-top: 20px;
}

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

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 800;
}

.faq-item {
  background: var(--panel-surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.faq-item h4 {
  margin: 0 0 8px;
  font-size: 16px;
}

.faq-item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.search-help {
  height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border-strong);
  background: var(--input-surface);
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: var(--text-soft);
  font-size: 14px;
}

.seat-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.row-number {
  width: 24px;
  font-size: 14px;
  color: var(--muted);
}

.aisle {
  width: 24px;
}

.seat {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
}

.seat.selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(34, 184, 240, 0.22);
  color: var(--primary);
  font-weight: 800;
}

.seat.unavailable {
  background: var(--text-soft);
  border-color: var(--text-soft);
  cursor: not-allowed;
  color: var(--text-inverse);
}

.legend {
  display: flex;
  gap: 24px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-box {
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

.selected-seat-box {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel-surface);
}

.selected-seat-box:has(.seat-feedback) {
  border-color: var(--primary);
}

.selected-seat-box p {
  margin: 0;
}

.selected-seat-value {
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
  color: var(--text);
}

.selection-status {
  display: inline-flex;
  align-items: center;
  margin: 8px 0 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
  font-size: 13px;
  font-weight: 700;
}

.selection-status[hidden] {
  display: none;
}

.selection-status::before {
  content: "✓";
  margin-right: 6px;
}

.seat-feedback {
  margin-bottom: 0;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}
input.input,
select.input {
  width: 100%;
  outline: none;
  font: inherit;
  color: var(--text);
}

input.input::placeholder {
  color: var(--text-soft);
}

input.input:placeholder-shown {
  color: var(--text-soft);
}

select.input.placeholder-select {
  color: var(--text-soft);
}

select.input option {
  color: var(--text);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.inline-actions {
  display: flex;
  gap: 16px;
}

.actions-row.between {
  justify-content: space-between;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--alert-blue-bg);
  color: var(--alert-blue-strong);
  border: 1px solid rgba(18, 146, 238, 0.22);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.flow-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(34, 184, 240, 0.24);
  background: var(--accent-soft);
  color: var(--primary);
  font-size: 14px;
  line-height: 1.5;
}

/* Dark mode component tweaks for contrast and selected states. */
body.dark-mode .logo {
  color: #A8CCFF;
}

body.dark-mode .btn {
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.24);
}

body.dark-mode .btn-secondary {
  background: var(--panel-surface);
  color: var(--text);
  border-color: var(--border-strong);
}

body.dark-mode .tab.inactive {
  background: var(--surface-alt);
  color: var(--text-muted);
}

body.dark-mode .tab.active {
  background: var(--accent-soft);
  color: var(--text);
}

body.dark-mode .step.completed .step-circle {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04);
}

body.dark-mode .step.active .step-circle {
  background: rgba(79, 140, 255, 0.14);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.18);
}

body.dark-mode .option-card.selectable:hover,
body.dark-mode .flight-card.selectable:hover {
  border-color: var(--border-strong);
  box-shadow: 0 14px 22px rgba(2, 6, 23, 0.28);
}

body.dark-mode .option-card.selected,
body.dark-mode .flight-card.selected {
  background: var(--panel-surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.18), 0 14px 24px rgba(2, 6, 23, 0.3);
}

body.dark-mode .tag {
  background: var(--surface-alt);
  color: var(--text-muted);
}

body.dark-mode .flight-meta p {
  background: var(--panel-surface);
  color: #A8CCFF;
}

body.dark-mode .flight-insight {
  background: var(--panel-surface);
  border-color: rgba(155, 140, 255, 0.28);
}

body.dark-mode .eco-highlight {
  background: rgba(155, 140, 255, 0.22);
  color: var(--match-purple-strong);
}

body.dark-mode .ecomatch-hint {
  background: rgba(155, 140, 255, 0.18);
  color: var(--match-purple-strong);
}

body.dark-mode .sort-btn {
  background: var(--surface-alt);
  border-color: rgba(155, 140, 255, 0.32);
  color: var(--match-purple-strong);
}

body.dark-mode .sort-btn.active {
  background: var(--match-purple-bg);
  border-color: rgba(155, 140, 255, 0.5);
}

body.dark-mode .filter-check {
  background: var(--surface-alt);
  border-color: var(--border);
}

body.dark-mode .filter-check:hover {
  background: var(--panel-surface);
  border-color: var(--border-strong);
}

body.dark-mode .filter-check:has(input:checked) {
  background: rgba(79, 140, 255, 0.14);
  border-color: rgba(96, 165, 250, 0.36);
  color: var(--text);
}

body.dark-mode .innovation-alert {
  border-color: rgba(125, 211, 252, 0.34);
  box-shadow: none;
}

body.dark-mode .flow-note {
  background: var(--panel-surface);
  border-color: rgba(125, 211, 252, 0.3);
  color: var(--text);
}

body.dark-mode .summary-total strong,
body.dark-mode .price,
body.dark-mode .flight-price .amount {
  color: #A8CCFF;
}

body.dark-mode .footer .container,
body.dark-mode .hero p,
body.dark-mode .note,
body.dark-mode .helper-text,
body.dark-mode .filter-helper,
body.dark-mode .section p.subtitle,
body.dark-mode .card p.subtitle,
body.dark-mode .city,
body.dark-mode .flight-mid,
body.dark-mode .eco-copy,
body.dark-mode .eco-score-note,
body.dark-mode .flight-price .helper-text,
body.dark-mode .summary-box p,
body.dark-mode .row-number,
body.dark-mode .muted {
  color: var(--text-muted);
}

body.dark-mode input.input::placeholder,
body.dark-mode input.input:placeholder-shown,
body.dark-mode select.input.placeholder-select,
body.dark-mode .search-help {
  color: var(--text-soft);
}

.readonly-value {
  font-weight: 700;
  color: var(--text);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 2px 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.nav-link:hover {
  color: var(--primary);
  cursor: pointer;
}

.nav-link.active {
  color: var(--primary);
  font-weight: 700;
  border-bottom: 2px solid var(--primary);
}

.nav-link.nav-disabled {
  color: var(--text-soft);
  opacity: 0.72;
  cursor: default;
  border-bottom-color: transparent;
}

.nav-link.nav-disabled:hover {
  color: var(--text-soft);
  cursor: default;
}

.btn.nav-disabled-action {
  opacity: 0.72;
  cursor: default;
  box-shadow: none;
}

.btn.nav-disabled-action:hover {
  transform: none;
}

/* Filter controls are grouped like a form so they are easier to scan. */
.filter-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-inline-size: 0;
  margin: 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--border);
  border-right: 0;
  border-bottom: 0;
  border-left: 0;
}

.filter-group:first-of-type {
  padding-top: 0;
  border-top: none;
}

.filter-title {
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  line-height: 1.35;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.filter-check:hover {
  border-color: var(--border-strong);
  background: var(--panel-surface);
}

.filter-check:has(input:checked) {
  border-color: rgba(20, 89, 199, 0.28);
  background: var(--accent-soft);
  color: var(--primary-dark);
}

.filter-check:has(input:focus-visible) {
  outline: 3px solid rgba(34, 184, 240, 0.28);
  outline-offset: 2px;
}

.filter-check input {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--primary);
}

.filter-check span {
  flex: 1;
}

.helper-text {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.helper-top {
  margin-top: 8px;
}

.spaced-top-sm {
  margin-top: 12px;
}

.spaced-top-md {
  margin-top: 16px;
}

.spaced-top-lg {
  margin-top: 24px;
}

.sidebar-actions,
.stack-md {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-sm {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title-top {
  margin-top: 28px;
}

.required-marker {
  color: var(--danger);
  font-weight: 700;
}

/* Reusable info box for innovation features such as Price Change Alert. */
.innovation-alert {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(18, 146, 238, 0.22);
  background: var(--alert-blue-bg);
  color: var(--alert-blue-strong);
}

.innovation-alert .helper-text {
  color: var(--alert-blue-strong);
  opacity: 0.88;
}

.alert-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--alert-blue-bg);
  color: var(--alert-blue-strong);
  font-size: 12px;
  font-weight: 700;
}

.alert-message {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 600;
}

.flight-price .helper-text {
  display: block;
  margin-bottom: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-soft);
}

.legend-box.available {
  background: var(--surface-alt);
}

.legend-box.selected {
  background: var(--accent-soft);
}

.legend-box.unavailable {
  background: var(--text-soft);
}

.field label.required {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.field label.required::after {
  content: none;
}

.filter-helper {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.support-header h1 {
  margin: 0 0 12px;
  font-size: 30px;
}

.support-header p {
  margin: 0 0 24px;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-muted);
}

.plain-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text);
}

.info-link {
  display: inline-flex;
  align-items: center;
  color: var(--match-purple-strong);
  font-size: 14px;
  font-weight: 600;
}

.info-link:hover {
  color: var(--match-purple);
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-list-item {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-alt);
}

.info-list-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.6;
}
