:root {
  --ink: #06101c;
  --ink-soft: #0a1b2d;
  --navy: #0d2942;
  --ice: #a9d8ff;
  --ice-bright: #d7efff;
  --white: #f7fbff;
  --muted: #8394a7;
  --line: rgba(169, 216, 255, 0.18);
  --amber: #ffb100;
  --danger: #ff7b76;
  --card: rgba(9, 24, 40, 0.74);
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea { font: inherit; }
button { color: inherit; }

.app-shell {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(360px, 38vw) minmax(0, 1fr);
  background:
    radial-gradient(circle at 82% 12%, rgba(42, 136, 199, 0.13), transparent 32%),
    var(--ink);
}

.brand-panel {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(24px, 3vw, 54px) clamp(32px, 4vw, 58px);
  isolation: isolate;
  background: #06101c url("assets/background-premium.png") center / cover no-repeat;
  border-right: 1px solid rgba(196, 226, 249, 0.16);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  display: block;
  background: linear-gradient(180deg, rgba(3, 12, 21, .34) 0%, rgba(4, 14, 24, .44) 34%, rgba(4, 13, 23, .92) 100%);
}

.brand-panel__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  background: radial-gradient(circle at 50% 10%, transparent 0 18%, rgba(4, 14, 24, .18) 54%, rgba(4, 12, 21, .56) 100%);
}

.brand-mark,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.brand-mark img,
.mobile-brand img {
  width: auto;
  height: 28px;
  object-fit: contain;
}

.brand-panel > .brand-mark {
  position: relative;
  z-index: 3;
  justify-content: center;
  padding-top: clamp(42px, 8vh, 92px);
}

.brand-panel > .brand-mark img {
  width: 105px;
  height: 25px;
  image-rendering: auto;
}
.brand-panel > .brand-mark span { display: none; }

.brand-copy {
  position: absolute;
  top: clamp(185px, 22vh, 280px);
  left: clamp(18px, 3vw, 54px);
  right: clamp(18px, 3vw, 54px);
  bottom: -1px;
  z-index: 1;
  max-width: none;
  margin: 0;
  padding: clamp(48px, 5vw, 78px) clamp(34px, 5vw, 76px) clamp(170px, 19vh, 220px);
  overflow: hidden;
  border: 1px solid rgba(213, 235, 249, .34);
  border-bottom: 0;
  border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(11, 28, 40, .72), rgba(4, 15, 25, .94) 68%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 -20px 80px rgba(0,0,0,.16);
  backdrop-filter: blur(18px) saturate(115%);
}

.brand-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 35% 0%, rgba(80, 156, 210, .11), transparent 42%);
}

.eyebrow,
.section-kicker,
.welcome-index {
  margin: 0 0 18px;
  color: var(--ice);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.brand-copy h1 {
  max-width: 680px;
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(52px, 4.2vw, 78px);
  font-weight: 700;
  line-height: .94;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.brand-copy h1 em {
  display: block;
  color: var(--ice);
  font-weight: 300;
  font-style: normal;
  letter-spacing: -.065em;
}

.brand-description {
  max-width: 430px;
  margin: 30px 0 0;
  color: rgba(247, 251, 255, 0.68);
  font-size: clamp(10px, .78vw, 13px);
  line-height: 1.6;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.flight-route {
  display: none;
  position: absolute;
  right: clamp(18px, 2vw, 32px);
  bottom: clamp(52px, 7vh, 82px);
  left: clamp(18px, 2vw, 32px);
  z-index: 4;
  margin: 0;
}
.flight-route ol {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.flight-route__line {
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  height: 1px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
}

.flight-route__line span,
.mobile-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ice), #4ea7e4);
  transition: width 500ms cubic-bezier(.2,.8,.2,1);
}

.flight-route li {
  position: relative;
  z-index: 1;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
  background: #0b1927;
  transition: 300ms ease;
}

.flight-route li.is-done,
.flight-route li.is-current {
  border-color: var(--ice);
  background: var(--ice);
  box-shadow: 0 0 0 4px rgba(169, 216, 255, 0.08);
}

.flight-route li.is-current::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--ink);
}

.form-panel {
  position: relative;
  min-width: 0;
}

.mobile-header,
.mobile-progress { display: none; }

.view {
  display: none;
  min-height: 100svh;
  padding: clamp(42px, 6vw, 94px) clamp(28px, 7vw, 120px);
  animation: reveal 480ms cubic-bezier(.2,.8,.2,1) both;
}

.view.is-active { display: block; }

.view-inner {
  width: min(100%, 850px);
  margin: 0 auto;
}

.view-inner--welcome {
  min-height: calc(100svh - clamp(84px, 12vw, 188px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.welcome-view h2,
.section-heading h2,
.complete-view h2 {
  margin: 0;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: clamp(48px, 6vw, 78px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.welcome-copy {
  max-width: 690px;
  margin: 30px 0 38px;
  color: #aab7c5;
  line-height: 1.75;
}

.welcome-copy p { margin: 0 0 15px; }
.welcome-copy p:nth-last-child(2) { color: var(--white); font-weight: 700; }
.welcome-copy a { color: var(--ice); text-decoration-color: rgba(169, 216, 255, 0.4); }

.section-heading {
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.section-heading h2 { font-size: clamp(44px, 5vw, 68px); }

.section-heading > p:last-child {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.questions {
  display: grid;
  gap: 34px;
  padding: 44px 0;
}

.question {
  position: relative;
  scroll-margin-top: 20px;
}

.question.is-hidden { display: none; }

.question-label {
  display: block;
  margin: 0 0 14px;
  color: #eaf5fd;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.required-mark { color: var(--amber); margin-left: 4px; }

.question-help {
  margin: -6px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  outline: none;
  background: rgba(11, 29, 47, 0.68);
  color: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.text-input { height: 58px; padding: 0 18px; }
.text-area { min-height: 118px; padding: 17px 18px; resize: vertical; line-height: 1.6; }

.text-input:focus,
.text-area:focus {
  border-color: var(--ice);
  background: rgba(13, 38, 61, 0.9);
  box-shadow: 0 0 0 4px rgba(169, 216, 255, 0.08);
}

.airport-picker {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(11, 29, 47, 0.68);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.airport-picker:focus-within {
  border-color: var(--ice);
  box-shadow: 0 0 0 4px rgba(169, 216, 255, 0.08);
}

.airport-search {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 17px;
}

.airport-search svg {
  flex: 0 0 auto;
  width: 20px;
  margin-right: 12px;
  fill: none;
  stroke: var(--ice);
  stroke-width: 1.7;
}

.airport-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
}

.airport-search input::placeholder { color: #718396; }
.airport-search input::-webkit-search-cancel-button { display: none; }

.airport-count {
  flex: 0 0 auto;
  margin-left: 12px;
  color: var(--ice);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.airport-chips:empty { display: none; }

.airport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 14px 0;
}

.airport-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 7px 0 11px;
  border: 1px solid rgba(169, 216, 255, .28);
  border-radius: 10px;
  background: rgba(169, 216, 255, .09);
  color: #cfe9fb;
  font-size: 11px;
}

.airport-chip b { color: var(--white); letter-spacing: .08em; }
.airport-chip button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  background: rgba(255,255,255,.07);
  color: var(--muted);
  cursor: pointer;
}

.airport-chip button:hover { background: rgba(255,123,118,.18); color: #ffd6d3; }

.airport-options {
  position: absolute;
  left: -1px;
  right: -1px;
  top: calc(100% + 9px);
  z-index: 15;
  max-height: 310px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(169, 216, 255, .3);
  border-radius: 16px;
  background: rgba(8, 23, 38, .98);
  box-shadow: 0 28px 65px rgba(0,0,0,.48);
  backdrop-filter: blur(18px);
}

.airport-options[hidden] { display: none; }

.airport-option {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 24px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 9px 12px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--white);
  text-align: left;
  cursor: pointer;
}

.airport-option:hover,
.airport-option.is-selected { background: rgba(169, 216, 255, .09); }

.airport-code {
  color: var(--ice);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
}

.airport-option-copy { display: grid; gap: 3px; min-width: 0; }
.airport-option-copy b { font-size: 12px; }
.airport-option-copy small { overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.airport-option-check { color: var(--ice); font-size: 17px; text-align: center; }
.airport-empty { margin: 0; padding: 22px; color: var(--muted); font-size: 12px; text-align: center; }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 50px 14px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(10, 27, 45, 0.58);
  color: #adbac7;
  cursor: pointer;
  transition: 180ms ease;
}

.choice:hover { border-color: rgba(169, 216, 255, 0.48); color: var(--white); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice::after {
  content: "";
  position: absolute;
  right: 17px;
  width: 18px;
  height: 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  transition: 180ms ease;
}

.choice[data-kind="multiple"]::after { border-radius: 6px; }

.choice:has(input:checked) {
  border-color: var(--ice);
  background: linear-gradient(135deg, rgba(66, 144, 201, 0.22), rgba(13, 41, 66, 0.76));
  color: var(--white);
  box-shadow: inset 3px 0 0 var(--ice);
}

.choice:has(input:focus-visible) { outline: 2px solid var(--ice); outline-offset: 2px; }

.choice:has(input:checked)::after {
  border: 5px solid var(--ice);
  background: var(--ink);
}

.choice[data-kind="multiple"]:has(input:checked)::after {
  border: 0;
  background: var(--ice);
  box-shadow: inset 0 0 0 5px var(--ink-soft);
}

.question-error {
  display: none;
  margin: 10px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.question.has-error .question-error { display: block; }
.question.has-error .text-input,
.question.has-error .text-area,
.question.has-error .choice-grid { animation: nudge 240ms ease both; }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.primary-button,
.text-button {
  min-height: 56px;
  border: 0;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 22px 0 26px;
  border-radius: 14px;
  background: var(--ice);
  color: #06101c;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 36px rgba(77, 158, 216, 0.18);
}

.primary-button span { font-size: 20px; font-weight: 400; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(77, 158, 216, 0.28); }
.primary-button:focus-visible,
.text-button:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.text-button {
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.text-button:hover { color: var(--white); }

.complete-view .view-inner {
  min-height: calc(100svh - clamp(84px, 12vw, 188px));
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.complete-icon {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 34px;
  border: 1px solid rgba(169, 216, 255, 0.42);
  border-radius: 50%;
  background: rgba(169, 216, 255, 0.08);
}

.complete-icon svg { width: 36px; fill: none; stroke: var(--ice); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.complete-view p { max-width: 650px; margin: 20px 0 0; color: #9eafbf; line-height: 1.75; }
.complete-view p:first-child { color: var(--ice); font-size: 11px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; }
.complete-view a { color: var(--ice); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 20;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  border: 1px solid rgba(255, 177, 0, 0.3);
  border-radius: 12px;
  background: #142336;
  color: #fff1c9;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
  box-shadow: var(--shadow);
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

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

@keyframes nudge {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

@media (max-width: 980px) {
  .app-shell { display: block; }
  .brand-panel { display: none; }
  .mobile-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    height: 72px;
    padding: 0 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 16, 28, 0.9);
    backdrop-filter: blur(16px);
  }
  .mobile-brand span { display: none; }
  .mobile-brand img { height: 23px; }
  .mobile-header > span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
  .mobile-progress { position: sticky; top: 71px; z-index: 11; display: block; height: 2px; background: rgba(255,255,255,.07); }
  .view { min-height: calc(100svh - 74px); padding: 42px 22px 60px; }
  .view-inner--welcome,
  .complete-view .view-inner { min-height: calc(100svh - 176px); }
  .welcome-index { margin-bottom: 64px; }
}

@media (max-width: 640px) {
  .welcome-view h2,
  .section-heading h2,
  .complete-view h2 { font-size: 44px; }
  .welcome-copy { font-size: 14px; line-height: 1.65; }
  .choice-grid { grid-template-columns: 1fr; }
  .questions { gap: 30px; padding: 36px 0; }
  .section-heading { padding-bottom: 28px; }
  .primary-button { width: 100%; }
  .form-actions { flex-direction: column-reverse; }
  .text-button { width: 100%; }
  .toast { width: calc(100% - 32px); text-align: center; }
  .airport-count { display: none; }
  .airport-search input { font-size: 12px; }
  .airport-options { position: relative; top: auto; margin: 0 8px 8px; max-height: 270px; }
}

@media (min-width: 981px) and (max-height: 820px) {
  .view { padding-top: 46px; padding-bottom: 46px; }
  .welcome-view h2 { font-size: clamp(48px, 5vw, 68px); }
  .welcome-copy { margin-top: 24px; margin-bottom: 28px; font-size: 14px; line-height: 1.6; }
}

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

.identity-view .view-inner { justify-content:center; }
.identity-fields { display:grid; gap:18px; margin-top:34px; }
.identity-field { display:grid; gap:9px; }
.identity-field > span { color:#dce9f3; font-size:13px; font-weight:700; }
.identity-field > span b { color:var(--accent, #9ed4ff); }
.identity-field .text-input { width:100%; }
.identity-field .text-input.has-error { border-color:#ff857d; box-shadow:0 0 0 3px rgba(255,133,125,.1); }
.turnstile-box { margin: 0 0 22px; }
@media (max-width:640px) {
  .identity-fields { margin-top:24px; gap:15px; }
}
