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

:root {
  --void:      #000000;
  --deep:      #03030a;
  --abyss:     #050514;
  --surface:   #080820;
  --surface2:  #0c0c2e;
  --surface3:  #10103e;
  --border:    rgba(0, 212, 255, 0.08);
  --border2:   rgba(0, 212, 255, 0.2);
  --border3:   rgba(0, 212, 255, 0.35);
  --accent:    #00d4ff;
  --accent-lo: rgba(0, 212, 255, 0.06);
  --accent-md: rgba(0, 212, 255, 0.15);
  --accent-hi: rgba(0, 212, 255, 0.45);
  --green:     #00ff88;
  --green-lo:  rgba(0, 255, 136, 0.06);
  --green-md:  rgba(0, 255, 136, 0.18);
  --amber:     #f59e0b;
  --amber-lo:  rgba(245, 158, 11, 0.08);
  --text:      #ffffff;
  --text-hi:   #ffffff;
  --text-lo:   #c8d4e8;
  --text-dim:  #8a9ab8;
  --muted:     #5a6a88;
  --error:     #ff3355;
  --error-lo:  rgba(255, 51, 85, 0.1);
  --mono:      'JetBrains Mono', 'Space Mono', 'Courier New', monospace;
  --sans:      'Inter', system-ui, -apple-system, sans-serif;
  --glow-cyan: 0 0 8px rgba(0,212,255,0.5), 0 0 24px rgba(0,212,255,0.15);
  --glow-green:0 0 8px rgba(0,255,136,0.5), 0 0 24px rgba(0,255,136,0.15);
  --glow-soft: 0 0 16px rgba(0,212,255,0.2), 0 0 40px rgba(0,212,255,0.06);
  --radius:    2px;
}

html { scroll-behavior: smooth; color-scheme: dark; }

body {
  font-family: var(--sans);
  background: var(--void);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Scan-line overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 999;
}

/* Ambient grid background */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--void); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }

/* Selection */
::selection { background: rgba(0, 212, 255, 0.2); color: var(--accent); }

/* ===================== SANDBOX BANNER ===================== */
.sandbox-banner {
  background: var(--amber);
  color: #000;
  text-align: center;
  padding: 0.5rem 1.5rem;
  font-size: 0.72rem;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  display: none;
}
.sandbox-banner.visible { display: block; }

/* Hide reCAPTCHA badge — sandbox/test keys show a red ERROR overlay on
   domains not whitelisted in the Google reCAPTCHA admin console.
   reCAPTCHA still runs silently; this just hides the broken badge. */
.grecaptcha-badge { visibility: hidden !important; }

/* ===================== NAV ===================== */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(3, 3, 10, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: blur(12px);
}
.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 0.6rem;
}
.nav-brand img { height: 28px; width: auto; max-width: 180px; display: block; }
.nav-tag {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 0.55rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: var(--glow-cyan);
  box-shadow: 0 0 6px rgba(0,212,255,0.2);
}

/* ===================== HERO ===================== */
.hero {
  text-align: center;
  padding: 2.5rem 2rem 2.5rem;
  background: var(--deep);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at 50% 20%,
    rgba(0, 212, 255, 0.08) 0%,
    rgba(0, 212, 255, 0.03) 40%,
    transparent 70%
  );
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
}

.hero-eyebrow-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.hero-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.4);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  font-family: var(--mono);
  padding: 0.65rem 1.4rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(0,212,255,0.7), 0 0 32px rgba(0,212,255,0.3);
  box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.05);
  animation: badge-pulse 3s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.05); }
  50% { box-shadow: 0 0 30px rgba(0,212,255,0.3), inset 0 0 16px rgba(0,212,255,0.1); }
}
.hero-eyebrow svg { flex-shrink: 0; filter: drop-shadow(0 0 4px rgba(0,212,255,0.6)); }

.hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  font-family: var(--sans);
}
.hero h1 span { color: var(--accent); text-shadow: var(--glow-cyan); }
.hero-copy {
  max-width: 480px;
  margin: 0 auto 1.5rem;
  font-size: 0.88rem;
  color: var(--text-lo);
  line-height: 1.75;
  font-family: var(--sans);
}

.btn-primary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.7rem 1.75rem;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 rgba(0,212,255,0), inset 0 0 0 0 rgba(0,212,255,0);
}
.btn-primary:hover {
  background: var(--accent-md);
  box-shadow: var(--glow-soft);
  border-color: var(--accent);
  text-shadow: 0 0 8px rgba(0,212,255,0.6);
}

/* ===================== TRUST STRIP ===================== */
.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  padding: 2.5rem 2rem 2.5rem;
  margin: 0 auto 3rem;
  border-bottom: 1px solid var(--border);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 500;
  font-family: var(--mono);
  color: var(--text-lo);
  letter-spacing: 0.03em;
}
.trust-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.7;
}

/* ===================== MAIN CONTENT ===================== */
.main-content {
  max-width: 500px;
  margin: 0 auto 6rem;
  padding: 0 1.5rem;
  position: relative;
}
.main-content::before,
.main-content::after {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--border2);
  position: absolute;
  top: -1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  letter-spacing: 0;
}
.main-content::before { content: '+--- FLIGHT FOOTPRINT CALCULATOR ---+'; }
.main-content::after  { content: '+------------------------------------+'; margin-top: 0.6rem; font-size: 0.55rem; }

/* ===================== INPUT CARD ===================== */
.input-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--glow-soft), 0 8px 32px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.input-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.input-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,212,255,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.card-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0,212,255,0.4);
  position: relative;
}
.card-subtitle {
  font-size: 0.68rem;
  color: var(--text-dim);
  font-family: var(--mono);
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
  position: relative;
}
.card-subtitle::after {
  content: '_';
  animation: blink 1.2s step-end infinite;
  color: var(--accent);
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.form-group { margin-bottom: 0.9rem; position: relative; }
.form-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--mono);
  color: var(--text-lo);
  margin-bottom: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.form-label::before { content: '// '; color: var(--text-dim); }

.form-input, .form-select {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.8rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.1), 0 0 16px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.04);
  background: #02020e;
}
.form-input::placeholder { color: var(--muted); }
.form-input:hover:not(:focus), .form-select:hover:not(:focus) {
  border-color: var(--border2);
}
.form-select { cursor: pointer; }
.form-select option { background: var(--surface); color: var(--text); }

#flightNumber {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  font-size: 0.95rem;
}

.trip-type-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.trip-type-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-lo);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.trip-pill {
  display: flex;
  border: 1px solid var(--border2);
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(0,212,255,0.05);
}
.trip-pill-btn {
  background: transparent;
  border: none;
  color: var(--text-lo);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  cursor: pointer;
  letter-spacing: 0.06em;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  text-transform: uppercase;
}
.trip-pill-btn:first-child { border-right: 1px solid var(--border2); }
.trip-pill-btn.active {
  background: var(--accent);
  color: var(--void);
  font-weight: 700;
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
  text-shadow: 0 0 4px rgba(0,0,0,0.2);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}
.form-row-2 .form-group { margin-bottom: 0; }

.input-card .hex-decoration {
  position: absolute;
  bottom: 8px;
  right: 12px;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--border);
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
}

.btn-calculate {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn-calculate::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-calculate:hover:not(:disabled)::before { left: 100%; }
.btn-calculate:hover:not(:disabled) {
  box-shadow: var(--glow-cyan), 0 0 40px rgba(0,212,255,0.2);
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.btn-calculate:disabled {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  box-shadow: none;
  letter-spacing: 0.1em;
}

/* ===================== LOADING STATE ===================== */
.loading-state {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  overflow: hidden;
}
.loading-state.visible { display: block; }
.loading-state::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scan-h 1.5s linear infinite;
}
@keyframes scan-h {
  0% { transform: translateX(-100%); opacity: 0; }
  50% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}

.loading-spinner {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-top-color: var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.25rem;
  box-shadow: 0 0 16px rgba(0,212,255,0.3), 0 0 32px rgba(0,212,255,0.1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: 0.04em;
}
.loading-sub {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-lo);
  letter-spacing: 0.04em;
}

/* ===================== ERROR STATE ===================== */
.error-state {
  display: none;
  background: var(--error-lo);
  border: 1px solid rgba(255, 51, 85, 0.25);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  margin-top: 0.9rem;
  font-size: 0.75rem;
  color: #ff5570;
  font-family: var(--mono);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.error-state.visible { display: block; }
.error-state::before { content: '[ERR] '; color: var(--error); }

/* ===================== RESULTS CARD ===================== */
.results-card { display: none; }
.results-card.visible { display: block; }

.result-main {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--glow-soft), 0 8px 32px rgba(0,0,0,0.6);
  margin-bottom: 0.75rem;
  position: relative;
  overflow: hidden;
}
.result-main::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
}
.result-main::after {
  content: '[DATA]';
  position: absolute;
  top: 8px;
  right: 10px;
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--border2);
  letter-spacing: 0.04em;
}

.result-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 6px rgba(0,212,255,0.5);
}

.result-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.trip-type-pill {
  display: flex;
  gap: 0;
  border: 1px solid var(--border3);
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
}

.pill-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.pill-btn.active {
  background: var(--accent-md);
  color: var(--accent);
  text-shadow: 0 0 6px rgba(0,212,255,0.5);
}

.pill-btn:not(.active):hover {
  background: var(--accent-lo);
  color: var(--text-lo);
}
.result-big {
  font-family: var(--mono);
  font-size: clamp(2.5rem, 10vw, 3.8rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.15rem;
  text-shadow: 0 0 20px rgba(221, 232, 255, 0.3);
}
.result-unit {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-lo);
  font-weight: 400;
}

.flight-details {
  background: var(--void);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin-top: 1.25rem;
  border: 1px solid var(--border);
  position: relative;
}
.flight-details-title {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.flight-details-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.flight-details-title::before {
  content: '>';
  color: var(--accent);
  font-size: 0.65rem;
  text-shadow: 0 0 6px rgba(0,212,255,0.5);
}

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem 1.25rem;
}
.detail-label {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 0.08rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.detail-value {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.removal-card {
  background: var(--surface);
  border: 1px solid rgba(0, 255, 136, 0.12);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(0,255,136,0.05), 0 8px 24px rgba(0,0,0,0.5);
}
.removal-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px rgba(0,255,136,0.3);
}
.removal-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  text-shadow: 0 0 6px rgba(0,255,136,0.5);
}
.removal-project {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-lo);
  font-weight: 500;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}
.removal-big {
  font-family: var(--mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.removal-inventory {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-lo);
  margin-bottom: 1.1rem;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.btn-checkout {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--green);
  color: var(--void);
  border: none;
  border-radius: var(--radius);
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.btn-checkout::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-checkout:hover:not(:disabled)::before { left: 100%; }
.btn-checkout:hover:not(:disabled) {
  box-shadow: var(--glow-green), 0 0 40px rgba(0,255,136,0.2);
}
.btn-checkout:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.checkout-overlay {
  display: none;
  background: var(--green-md);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--green);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
}
.checkout-overlay::before { content: '[OK] '; }
.checkout-overlay.visible { display: block; }

.reset-link {
  display: block;
  text-align: center;
  margin-top: 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.reset-link:hover { color: var(--accent); text-shadow: 0 0 6px rgba(0,212,255,0.4); }

/* ===================== METHODOLOGY SECTION ===================== */
.methodology {
  padding: 5rem 2rem;
  background: var(--abyss);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.methodology::before, .methodology::after {
  position: absolute;
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--border2);
  letter-spacing: 0;
}
.methodology::before { top: 8px; left: 12px; content: '+ METHODOLOGY ---+'; }
.methodology::after  { bottom: 8px; right: 12px; content: '+----------------+'; }

.section-container {
  max-width: 520px;
  margin: 0 auto;
}
.section-heading {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2.5rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 8px rgba(0,212,255,0.3);
}
.section-heading::before { content: '> '; color: var(--text-dim); }
.steps-list {
  list-style: none;
  counter-reset: steps;
}
.step-item {
  counter-increment: steps;
  display: flex;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  background: var(--accent-lo);
  border: 1px solid var(--border2);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 0 8px rgba(0,212,255,0.1);
}
.step-text {
  padding-top: 0.2rem;
  font-size: 0.85rem;
  color: var(--text-lo);
  line-height: 1.65;
  font-family: var(--sans);
}

/* ===================== UKRAINE SECTION ===================== */
.ukraine-section {
  padding: 5rem 2rem;
  background: var(--deep);
  position: relative;
}
.ukraine-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border2) 30%, var(--border2) 70%, transparent);
}

.ukraine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--glow-soft), 0 8px 24px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
.ukraine-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  box-shadow: 0 0 12px rgba(0,255,136,0.2);
}
.ukraine-card h2 {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-shadow: 0 0 6px rgba(0,255,136,0.3);
}
.ukraine-card h2::before { content: '> '; color: var(--text-dim); }
.ukraine-card p {
  font-size: 0.85rem;
  color: var(--text-lo);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-family: var(--sans);
}
.sandbox-note {
  background: var(--amber-lo);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--amber);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.sandbox-note::before { content: '[NOTE] '; font-weight: 700; }

/* ===================== CONTACT SECTION ===================== */
.contact-section {
  padding: 5rem 2rem;
  background: var(--deep);
  border-top: 1px solid var(--border);
}
.contact-inner {
  max-width: 560px;
  margin: 0 auto;
}
.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.contact-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--sans);
  margin-bottom: 0.75rem;
}
.contact-header h1 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 500;
  color: #f0f4f8;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}
.contact-header p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}
.email-note {
  text-align: center;
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-lo);
}
.email-note a {
  color: var(--accent);
  text-decoration: none;
}
.email-note a:hover {
  text-decoration: underline;
}

/* ===================== FOOTER ===================== */
footer {
  background: var(--abyss);
  border-top: 1px solid var(--border);
  padding: 2rem;
}
.footer-inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}
.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.footer-logo img { height: 22px; width: auto; max-width: 160px; }
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.15rem 1.4rem;
  margin-bottom: 1.25rem;
}
.footer-links a {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-lo);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--accent); text-shadow: 0 0 6px rgba(0,212,255,0.4); }
.footer-copy {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-lo);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.footer-eu {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-lo);
  margin-bottom: 0.75rem;
}
.footer-contacts {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--text-lo);
  line-height: 1.7;
}

/* ===================== GDPR BANNER ===================== */
.gdpr-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(5, 5, 20, 0.97);
  border-top: 1px solid var(--border);
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.6);
  z-index: 300;
  font-family: var(--mono);
  font-size: 0.7rem;
  flex-wrap: wrap;
  backdrop-filter: blur(12px);
}
.gdpr-text { color: var(--text-lo); flex: 1; min-width: 200px; }
.gdpr-text a { color: var(--accent); text-decoration: none; }
.gdpr-text a:hover { text-decoration: underline; }
.gdpr-actions { display: flex; gap: 0.65rem; flex-shrink: 0; flex-wrap: wrap; }
.btn-gdpr-accept {
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: var(--radius);
  padding: 0.4rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: box-shadow 0.2s;
}
.btn-gdpr-accept:hover { box-shadow: 0 0 12px rgba(0,212,255,0.3); }
.btn-gdpr-reject {
  background: none;
  color: var(--muted);
  border: none;
  padding: 0.4rem 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}
.btn-gdpr-reject:hover { color: var(--text-lo); }

/* ===================== CONVERSATIONAL DISCOVERY ===================== */
.discovery-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-soft), 0 8px 32px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.discovery-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}

.discovery-headline {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.85rem;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-shadow: 0 0 24px rgba(0,212,255,0.2);
}
.discovery-headline span { color: var(--accent); text-shadow: 0 0 8px rgba(0,212,255,0.4); }

.discovery-textarea-wrap { position: relative; }
.discovery-textarea {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.88rem;
  color: var(--text);
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem 2.5rem;
  resize: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  min-height: 90px;
  line-height: 1.6;
}
.discovery-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(0,212,255,0.1), 0 0 16px rgba(0,212,255,0.15), inset 0 0 12px rgba(0,212,255,0.04);
  background: #02020e;
}
.discovery-textarea::placeholder { color: var(--muted); }
.discovery-textarea:hover:not(:focus) { border-color: var(--border2); }

.char-count {
  position: absolute;
  bottom: 0.5rem;
  right: 0.6rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dim);
  pointer-events: none;
}

.mic-btn {
  position: absolute;
  right: 0.55rem;
  bottom: 2.2rem;
  background: var(--surface2);
  border: 1px solid var(--border2);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-lo);
  flex-shrink: 0;
}
.mic-btn.visible { display: flex; }
.mic-btn:hover { border-color: var(--accent); color: var(--accent); }
.mic-btn svg { width: 14px; height: 14px; pointer-events: none; }
.mic-btn.listening {
  background: var(--accent-md);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 12px rgba(0,212,255,0.4);
  transition: box-shadow 0.4s ease-out, background 0.3s ease, border-color 0.3s ease;
  animation: mic-pulse 1.4s ease-in-out infinite;
}
.mic-btn:not(.listening) {
  transition: box-shadow 0.3s ease-out, background 0.3s ease, border-color 0.3s ease;
}
@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(0,212,255,0.4); }
  50%       { box-shadow: 0 0 24px rgba(0,212,255,0.7), 0 0 40px rgba(0,212,255,0.2); }
}

.discovery-actions {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-top: 0.9rem;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.discovery-hint {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  line-height: 1.4;
}
.privacy-trust {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  letter-spacing: 0.03em;
  line-height: 1.4;
  display: block;
  max-width: 280px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.privacy-trust.visible {
  visibility: visible;
  opacity: 1;
}

.btn-discover {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--accent);
  color: var(--void);
  border: none;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}
.btn-discover::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: left 0.5s;
}
.btn-discover:hover:not(:disabled)::before { left: 100%; }
.btn-discover:hover:not(:disabled) {
  box-shadow: var(--glow-cyan), 0 0 30px rgba(0,212,255,0.2);
  text-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.btn-discover:disabled {
  background: var(--surface2);
  color: var(--muted);
  border: 1px solid var(--border);
  cursor: not-allowed;
  box-shadow: none;
}

/* Loading state inside discovery */
.discovery-loading {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}
.discovery-loading.visible { display: block; }
.discovery-loading .loading-spinner {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-top-color: var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 0.85rem;
  box-shadow: 0 0 12px rgba(0,212,255,0.3);
}
.discovery-loading-text {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--text-lo);
  letter-spacing: 0.04em;
}

/* Candidates section */
.candidates-section {
  display: none;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.candidates-section.visible { display: block; }
.candidates-header {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 6px rgba(0,212,255,0.4);
}
.candidates-header::before { content: '> '; color: var(--text-dim); }

.discovery-journey {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  line-height: 1.6;
  padding: 0.75rem 0.9rem;
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.discovery-journey.clickable {
  cursor: pointer;
  transition: all 0.2s;
}
.discovery-journey.clickable:hover {
  border-color: var(--border3);
  background: rgba(0,212,255,0.03);
}
.discovery-journey.clickable:active { transform: scale(0.99); }
.journey-click-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.journey-flight-code {
  font-weight: 700;
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 6px rgba(0,212,255,0.3);
}
.journey-airline { font-weight: 700; color: var(--text); }
.journey-route { color: var(--text-lo); }
.journey-meta { color: var(--text-dim); font-size: 0.75rem; }

.candidate-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.candidate-card {
  background: var(--void);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.candidate-card:hover {
  border-color: var(--border3);
  background: rgba(0,212,255,0.03);
}
.candidate-card.selected {
  border-color: var(--accent);
  background: var(--accent-lo);
  box-shadow: 0 0 12px rgba(0,212,255,0.15);
}
.candidate-card:active { transform: scale(0.99); }

.candidate-flight-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.candidate-flight-number {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.08em;
}
.candidate-aircraft {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

.candidate-time {
  font-family: var(--mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-align: right;
  flex-shrink: 0;
}
.candidate-arrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  flex-shrink: 0;
  transition: transform 0.15s;
}
.candidate-card:hover .candidate-arrow { transform: translateX(2px); color: var(--accent); }
.candidate-card.selected .candidate-arrow { color: var(--accent); }
.candidate-cta {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-top: 0.15rem;
}
.candidate-card:hover .candidate-cta { opacity: 1; }

/* Edge case message */
.discovery-edge-case {
  display: none;
  background: var(--amber-lo);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--amber);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 1rem;
}
.discovery-edge-case.visible { display: block; }
.discovery-edge-case::before { content: '[!] '; font-weight: 700; }

/* Section divider */
.section-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 2rem 0 1.5rem;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex-shrink: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 520px) {
  .form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .details-grid { grid-template-columns: 1fr; }
  .trust-strip { gap: 0.9rem 1.25rem; }
  .ukraine-card { padding: 1.75rem; }
  .gdpr-banner { flex-direction: column; align-items: flex-start; }
  .methodology::before, .methodology::after { display: none; }
  nav { padding: 0.75rem 1.25rem; }
  .hero { padding: 4rem 1.25rem 3rem; }
  .main-content { padding: 0 1rem; }
  .methodology { padding: 3.5rem 1.25rem; }
  .ukraine-section { padding: 3.5rem 1.25rem; }
  .trip-type-toggle { margin-bottom: 1.25rem; }
  .discovery-section { padding: 1.5rem; }
  .candidate-card { padding: 1rem; }
  .candidate-time { font-size: 0.78rem; }
  .discovery-journey { font-size: 0.78rem; }

  .contact-section { padding: 3.5rem 1rem; }
  .contact-header h1 { font-size: 1.35rem; }

  /* Airport selector mobile: full-width bottom sheet */
  .airport-selector-panel {
    border-radius: 12px 12px 0 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    margin-bottom: 0.75rem;
  }
  .apt-selector-row {
    min-height: 52px;
    padding: 1rem 1.25rem;
  }
}

/* Desktop: centered card overlay */
@media (min-width: 521px) {
  .airport-selector-panel {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===================== AIRPORT SELECTOR ===================== */

.airport-selector-panel {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 1rem;
  animation: aptSelectorIn 0.28s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
  z-index: 150;
}

.airport-selector-panel.visible { display: block; }

@keyframes aptSelectorIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.apt-selector-header {
  padding: 1.25rem 1.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
}

.apt-selector-title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-hi);
  margin-bottom: 0.25rem;
}

.apt-selector-sub {
  font-size: 0.72rem;
  color: var(--text-lo);
  line-height: 1.4;
}

.apt-selector-list { }

.apt-selector-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.15s;
  min-height: 44px;
  box-sizing: border-box;
}

.apt-selector-row:last-child { border-bottom: none; }

.apt-selector-row:hover { background: var(--surface3); }

.apt-selector-all {
  background: rgba(0, 210, 180, 0.06);
  border-left: 3px solid var(--accent);
}

.apt-selector-all:hover { background: rgba(0, 210, 180, 0.12); }

.apt-selector-preferred {
  background: rgba(0, 210, 180, 0.04);
}

.apt-selector-row-inner { flex: 1; }

.apt-row-name {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-hi);
  font-weight: 500;
}

.apt-row-sub {
  font-size: 0.68rem;
  color: var(--text-lo);
  margin-top: 0.15rem;
}

.apt-category-badge {
  display: inline-block;
  font-size: 0.6rem;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  margin-top: 0.25rem;
  font-weight: 500;
}

.apt-category-badge.city {
  background: rgba(255, 200, 50, 0.15);
  color: #f5c842;
}

.apt-category-badge.regional {
  background: rgba(255, 80, 80, 0.12);
  color: #ff6b6b;
}

.apt-preferred-hint {
  font-size: 0.62rem;
  color: var(--accent);
  margin-top: 0.2rem;
  font-weight: 500;
}

.apt-row-arrow {
  font-size: 1.1rem;
  color: var(--text-lo);
  flex-shrink: 0;
  margin-left: 0.75rem;
}

/* ===================== TYPEAHEAD DROPDOWN ===================== */

.typeahead-dropdown {
  display: none;
  position: absolute;
  z-index: 100;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  overflow: hidden;
  max-height: 300px;
  overflow-y: auto;
  min-width: 280px;
}

.typeahead-dropdown.visible { display: block; }

.typeahead-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
  font-size: 0.78rem;
  gap: 0.5rem;
}

.typeahead-item:last-child { border-bottom: none; }
.typeahead-item:hover { background: var(--surface3); }

.typeahead-city-group {
  background: rgba(0, 210, 180, 0.06);
  border-left: 3px solid var(--accent);
}

.typeahead-city-group:hover { background: rgba(0, 210, 180, 0.12); }

.typeahead-city-name {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--text-hi);
  font-size: 0.78rem;
}

.typeahead-city-sub {
  font-size: 0.65rem;
  color: var(--text-lo);
  margin-left: 0.5rem;
}

.typeahead-airport-name {
  color: var(--text-hi);
  font-size: 0.78rem;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.typeahead-iata {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.typeahead-cat-badge {
  font-size: 0.6rem;
  color: #ff6b6b;
  background: rgba(255, 80, 80, 0.1);
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  flex-shrink: 0;
}

.typeahead-item.regional .typeahead-airport-name { color: var(--text-lo); }

/* Position the dropdown relative to the textarea */
.discovery-textarea-wrap {
  position: relative;
}

/* ===================== PREFERRED AIRPORT BANNER ===================== */

.apt-pref-banner {
  display: none;
  align-items: center;
  gap: 1rem;
  background: rgba(0, 210, 180, 0.08);
  border: 1px solid rgba(0, 210, 180, 0.25);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: var(--text);
}

.apt-pref-banner.visible { display: flex; }

.apt-pref-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.apt-pref-save, .apt-pref-dismiss {
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.15s;
}

.apt-pref-save {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  font-weight: 600;
}

.apt-pref-save:hover { background: #1de0c8; }

.apt-pref-dismiss { color: var(--text-lo); }
.apt-pref-dismiss:hover { color: var(--text); background: var(--surface-2); }
/* ===================== BOTTOM CONTACT FORM ===================== */
.cai-bottom-contact {
  padding: 5rem 1.5rem 6rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(3,3,10,0.85);
}
.cai-bottom-inner {
  max-width: 560px;
  margin: 0 auto;
}
.cai-bottom-header {
  text-align: center;
  margin-bottom: 2.5rem;
}
.cai-bottom-eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  font-family: var(--sans);
  margin-bottom: 0.75rem;
}
.cai-bottom-header h2 {
  font-family: var(--sans);
  font-size: 1.75rem;
  font-weight: 500;
  color: #f0f4f8;
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}
.cai-bottom-header p {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.6;
}
.cai-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.cai-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cai-form__field label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 0.375rem;
  font-weight: 500;
}
.cai-form__field input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 0.75rem 0.875rem;
  color: #f0f4f8;
  font-family: var(--sans);
  font-size: 0.875rem;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.cai-form__field input:focus {
  border-color: rgba(0, 212, 255, 0.5);
}
.cai-form__field input::placeholder {
  color: rgba(255,255,255,0.25);
}
.cai-form__gdpr {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 0.25rem;
}
.cai-form__gdpr input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.cai-form__gdpr label {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
  cursor: pointer;
}
.cai-form__gdpr label a {
  color: var(--accent);
  text-decoration: none;
}
.cai-form__gdpr label a:hover {
  text-decoration: underline;
}
.cai-form__error {
  display: none;
  color: #f87171;
  font-family: var(--sans);
  font-size: 0.8125rem;
  padding: 0.625rem 0.875rem;
  background: rgba(248,113,113,0.08);
  border-radius: 6px;
  border: 1px solid rgba(248,113,113,0.2);
}
.cai-form__btn {
  background: var(--accent);
  color: #050a0e;
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.75rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  letter-spacing: 0.3px;
  width: 100%;
  margin-top: 0.25rem;
}
.cai-form__btn:hover {
  background: #7dd3fc;
}
.cai-form__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.cai-form__success {
  display: none;
  text-align: center;
  padding: 2.5rem 0;
}
.cai-form__success h3 {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 500;
  color: #f0f4f8;
  margin-bottom: 0.5rem;
}
.cai-form__success p {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: #94a3b8;
}
@media (max-width: 520px) {
  .cai-form__row { grid-template-columns: 1fr; }
  .cai-bottom-contact { padding: 3.5rem 1rem 5rem; }
}
