/* ============================================================
   Fly Robin — single-page styles
   Palette: deep midnight navy + golden amber accent
   ============================================================ */

:root {
  --navy-900: #050E1B;
  --navy-800: #0A1A2F;
  --navy-700: #11253F;
  --navy-600: #1A3556;
  --navy-500: #2A4A70;
  --gold:     #F5B400;
  --gold-2:   #FFC93C;
  --gold-ink: #1A1300;
  --ink:      #F4F7FB;
  --ink-dim:  #A9B6C8;
  --ink-mute: #7585A0;
  --line:     rgba(255, 255, 255, 0.10);
  --line-2:   rgba(255, 255, 255, 0.06);
  --danger:   #FF6B6B;
  --ok:       #4ADE80;
  --radius:   18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.55), 0 8px 24px -8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--navy-900);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  min-height: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Background photo layer (atmospheric) */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: url('https://images.unsplash.com/photo-1580060839134-75a5edca2e99?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  filter: blur(22px) saturate(110%) brightness(0.55);
  transform: scale(1.08);
}
.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(10, 26, 47, 0.55) 0%, rgba(5, 14, 27, 0.85) 60%, rgba(5, 14, 27, 0.95) 100%),
    linear-gradient(180deg, rgba(5, 14, 27, 0.65) 0%, rgba(5, 14, 27, 0.92) 50%, rgba(5, 14, 27, 1) 100%);
}

/* Page container */
.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 22px 56px;
}

/* ---------- Brand ---------- */
.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 0 26px;
}
.brand__link {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo {
  display: block;
  width: 110px;
  height: 110px;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 20px rgba(245, 180, 0, 0.25));
  border-radius: 16px;
}
.brand__word {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}
.brand__name {
  display: block;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  background: linear-gradient(180deg, #FFFFFF 0%, #E2E8F4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand__tag {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  margin-top: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 12px 0 22px;
}
.hero__title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.accent { color: var(--gold); }
.hero__lede {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: clamp(15px, 2vw, 17px);
}

/* ---------- Single hero photo ---------- */
.hero-photo {
  margin: 18px 0 28px;
}
.photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  background: var(--navy-700);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.photo:hover img { transform: scale(1.04); }
.photo--hero {
  aspect-ratio: 16 / 7;
  max-height: 420px;
}

/* ---------- Simplified section ---------- */
.simplified { margin: 8px 0 32px; }
.simplified__title {
  text-align: center;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}

/* ---------- Benefits ---------- */
.benefits {
  margin: 8px 0 30px;
}
.benefits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.benefit {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: linear-gradient(180deg, rgba(17, 37, 63, 0.75) 0%, rgba(10, 26, 47, 0.7) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 16px;
  backdrop-filter: blur(6px);
}
.benefit__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(245, 180, 0, 0.14);
  color: var(--gold);
  border: 1px solid rgba(245, 180, 0, 0.25);
}
.benefit__body h3 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.benefit__body p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.45;
}
.benefit__body strong { color: var(--gold-2); font-weight: 700; }

/* ---------- Finder (form card) ---------- */
.finder {
  margin: 24px 0 36px;
}
.finder__card {
  background: linear-gradient(180deg, rgba(17, 37, 63, 0.88) 0%, rgba(10, 26, 47, 0.92) 100%);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}
.finder__head { margin-bottom: 18px; }
.finder__title {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.finder__sub {
  margin: 0;
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* Trip toggle */
.trip-toggle {
  display: inline-flex;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin-bottom: 18px;
}
.trip-toggle__opt {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  transition: background 0.18s ease, color 0.18s ease;
}
.trip-toggle__opt.is-active {
  background: var(--gold);
  color: var(--gold-ink);
  box-shadow: 0 4px 12px rgba(245, 180, 0, 0.35);
}
.trip-toggle__opt:not(.is-active):hover { color: var(--ink); }

/* Form grid */
.finder__grid {
  display: grid;
  grid-template-columns: 1fr 40px 1fr 1fr;
  gap: 12px;
  align-items: end;
}
.finder__grid .field--return[hidden] { display: none; }
.finder__grid.with-return { grid-template-columns: 1fr 40px 1fr 1fr 1fr; }

.field { display: flex; flex-direction: column; min-width: 0; }
.field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-dim);
  margin: 0 0 6px 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.field__control {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--navy-700);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.field__control:hover { border-color: rgba(255, 255, 255, 0.18); }
.field__control:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 180, 0, 0.18);
  background: var(--navy-600);
}
.field--invalid .field__control {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.18);
}

.field select,
.field input[type="date"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 40px 14px 14px;
  border-radius: var(--radius-sm);
  min-height: 50px;
}
.field select { cursor: pointer; }
.field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.field select option {
  background: var(--navy-800);
  color: var(--ink);
}
.field__chev, .field__cal {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
  display: inline-flex;
}
.field__error {
  min-height: 16px;
  font-size: 12px;
  color: var(--danger);
  padding: 4px 4px 0;
  font-weight: 500;
}

/* Swap button between From and To */
.swap-btn {
  align-self: end;
  width: 40px;
  height: 50px;
  border: 1px solid var(--line);
  background: var(--navy-700);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.2s ease, border-color 0.18s ease;
}
.swap-btn:hover {
  background: var(--navy-600);
  border-color: rgba(245, 180, 0, 0.4);
  transform: rotate(180deg);
}

/* Submit */
.finder__submit {
  width: 100%;
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--gold);
  color: var(--gold-ink);
  border: 0;
  border-radius: var(--radius-pill);
  padding: 16px 22px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 30px -10px rgba(245, 180, 0, 0.55), 0 0 0 1px rgba(245, 180, 0, 0.4) inset;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.finder__submit svg { display: block; flex: 0 0 auto; }
.finder__submit span { display: inline-block; line-height: 1; }
.finder__submit:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -10px rgba(245, 180, 0, 0.65), 0 0 0 1px rgba(245, 180, 0, 0.5) inset;
}
.finder__submit:active { transform: translateY(0); }
.finder__note {
  margin: 12px 0 0;
  text-align: center;
  color: var(--ink-mute);
  font-size: 12.5px;
}

/* ---------- How it works ---------- */
.how { margin: 8px 0 24px; }
.how__title {
  text-align: center;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.how__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  counter-reset: step;
}
.step {
  position: relative;
  background: linear-gradient(180deg, rgba(17, 37, 63, 0.7) 0%, rgba(10, 26, 47, 0.7) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px 20px 64px;
  min-height: 110px;
}
.step__num {
  position: absolute;
  left: 16px; top: 18px;
  width: 36px; height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold);
  color: var(--gold-ink);
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 8px 18px -6px rgba(245, 180, 0, 0.5);
}
.step__title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.005em;
}
.step__body {
  margin: 0;
  color: var(--ink-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Footer ---------- */
.foot {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-2);
  text-align: center;
  color: var(--ink-mute);
  font-size: 12.5px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.foot__copy {
  margin: 0;
}
.foot__disclaimer {
  margin: 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-mute);
  padding: 14px 16px;
  background: rgba(17, 37, 63, 0.4);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  text-align: left;
}
.foot__disclaimer strong {
  color: var(--ink-dim);
  font-weight: 700;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 720px) {
  .benefits__list { grid-template-columns: 1fr; }
  .how__steps { grid-template-columns: 1fr; }
  .finder__grid,
  .finder__grid.with-return {
    grid-template-columns: 1fr 1fr;
  }
  .swap-btn { width: 100%; height: 50px; grid-column: span 2; }
  .finder__card { padding: 20px; border-radius: 20px; }
  .brand { justify-content: flex-start; }
  .photo--hero { aspect-ratio: 4 / 3; max-height: 320px; }
  .brand__logo { width: 80px; height: 80px; }
  .brand__link { gap: 12px; }
  .brand__name { font-size: 32px; }
  .brand__tag { font-size: 11px; letter-spacing: 0.06em; }
}

@media (max-width: 420px) {
  .finder__grid,
  .finder__grid.with-return {
    grid-template-columns: 1fr;
  }
  .swap-btn { grid-column: span 1; }
}
