/* First Jet forms. Tokens, type and control shapes are taken from firstjetair.com's
   own stylesheet so an embedded form reads as part of the page around it. */

@font-face {
  font-family: "Inter";
  src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/static/fonts/playfair-display-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --navy: #002b4e;
  --navy-deep: #00203b;
  --navy-mid: #053a63;
  --blue: #0077b6;
  --blue-dark: #00659b;
  --gold: #ffb603;
  --gold-dark: #f0a400;
  --ice: #e8f6fd;
  --sand: #fff0c0;
  --paper: #f6f9fc;
  --bg-gray: #f2f4f7;
  --gray: #585f6b;
  --red: #c0392b;
  --green: #1a7a40;
  --line: rgba(0, 43, 78, 0.12);
  --control-line: rgba(0, 43, 78, 0.22);
  --shadow-card: 0 1px 2px rgba(0, 43, 78, 0.06), 0 8px 20px -10px rgba(0, 43, 78, 0.22);
  --shadow-btn: 0 2px 4px rgba(0, 43, 78, 0.12), 0 6px 14px -8px rgba(0, 43, 78, 0.32);
  --focus: 0 0 0 3px rgba(0, 119, 182, 0.28);
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Playfair Display", Georgia, serif;
  --mono: ui-monospace, "SFMono-Regular", "Courier New", monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
.is-embed body { background: transparent; }

.wrap { width: 100%; max-width: 720px; margin: 0 auto; padding: 0 20px; }
.is-embed .wrap { max-width: none; padding: 0; }

a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }

/* -- hosted page chrome ----------------------------------------------------- */

.site-header {
  background: #fff;
  border-bottom: 6px solid var(--gold);
  padding: 14px 0;
}
/* Chrome shares the form card's column, so every left edge lines up. */
.site-header .wrap, .hero .wrap, .site-footer .wrap { max-width: 720px; }
.site-header img { display: block; height: 44px; width: auto; }

.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy-mid), var(--navy-deep));
  color: #fff;
  padding: 56px 0 132px;
  /* The site's hero: a navy block cut on the diagonal over a gold underlay. */
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 46px), 0 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 60px;
  background: var(--gold);
  clip-path: polygon(0 calc(100% - 8px), 100% 0, 100% 14px, 0 100%);
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--gold);
  margin: 18px 0 14px;
  max-width: 17ch;
  text-wrap: balance;
}
.hero .lead { font-size: 18px; line-height: 1.6; max-width: 54ch; margin: 0; color: #e3eef6; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  padding: 5px 10px;
  border-radius: 6px;
}
.eyebrow-ink { background: var(--sand); }

.site-footer {
  background: var(--navy-deep);
  color: #c9dbe8;
  padding: 40px 0 44px;
  margin-top: 64px;
}
.site-footer img { display: block; height: 36px; width: auto; }
.site-footer .tagline { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--gold); margin: 14px 0 4px; }
.site-footer .small { font-size: 13px; margin: 0; }

/* -- card ------------------------------------------------------------------- */

.form-wrap { position: relative; }
.is-page .form-wrap { margin-top: -92px; }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-card);
  padding: 36px;
}
.is-embed .card { box-shadow: none; }

.card-title, .card-intro h2 {
  font-weight: 800;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 22px;
}
.card-intro { margin-bottom: 26px; }
.card-intro h2 { margin: 12px 0 8px; }
.card-intro p { margin: 0; color: var(--gray); max-width: 56ch; }

/* -- step progress ------------------------------------------------------------ */

.progress {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
}
.progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 3px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
}
.progress .dot {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  background: var(--bg-gray);
  font-size: 11px;
}
.progress li.is-current, .progress li.is-done { border-top-color: var(--gold); color: var(--navy); }
.progress li.is-current .dot { background: var(--navy); color: var(--gold); }
.progress li.is-done .dot { background: var(--gold); color: var(--navy); }

.step-title { font-size: 18px; font-weight: 700; margin: 0 0 18px; outline: none; }

/* -- fields ------------------------------------------------------------------- */

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.field-half { grid-column: span 1; }

.label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 8px;
  padding: 0;
}
.optional { font-weight: 600; letter-spacing: 0.06em; color: var(--gray); margin-left: 6px; }
.help { font-size: 13px; color: var(--gray); margin: 7px 0 0; }
fieldset .help { margin: -2px 0 10px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 500;
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--control-line);
  border-radius: 999px;
  padding: 13px 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
textarea { border-radius: 20px; resize: vertical; min-height: 112px; line-height: 1.5; }
::placeholder { color: #8a94a1; font-weight: 400; }
input:hover, select:hover, textarea:hover { border-color: rgba(0, 43, 78, 0.4); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 44px; cursor: pointer; }

/* chips (multi-select) and choice cards (single-select) share one selected look:
   the site's amount presets, gold fill with a navy outline. */
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip, .choice { position: relative; cursor: pointer; }
.chip input, .choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span, .choice span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  background: #fff;
  border: 1.5px solid var(--control-line);
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.chip span { border-radius: 999px; padding: 10px 16px; }
.chip span::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: none;
  border: 1.5px solid var(--control-line);
  border-radius: 4px;
  background: #fff center / 10px no-repeat;
}
.chip input:checked + span::before {
  border-color: var(--navy);
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3l2.4 2.4 5.2-5.4' fill='none' stroke='%23ffb603' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.choice span { justify-content: center; text-align: center; border-radius: 10px; padding: 14px 12px; min-height: 52px; }
.chip:hover span, .choice:hover span { border-color: var(--blue); }
.chip input:checked + span, .choice input:checked + span { background: var(--gold); border-color: var(--navy); }
.chip input:focus-visible + span, .choice input:focus-visible + span { box-shadow: var(--focus); border-color: var(--blue); }

.field-consent + .field-consent { margin-top: -8px; }
.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-gray);
  border-radius: 20px;
  padding: 15px 18px;
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }

.error { display: none; font-size: 13px; font-weight: 600; color: var(--red); margin: 7px 0 0; }
.has-error .error { display: block; }
.has-error input:not([type="checkbox"]):not([type="radio"]), .has-error select, .has-error textarea { border-color: var(--red); }
.has-error .consent { box-shadow: inset 0 0 0 1.5px var(--red); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-error {
  margin: 20px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fdecea;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

/* -- buttons -------------------------------------------------------------- */

.actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--navy); box-shadow: var(--shadow-btn); }
.btn-gold:hover { background: var(--gold-dark); color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--ice); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); margin-right: auto; padding-left: 12px; padding-right: 12px; }
.btn-ghost:hover { background: var(--bg-gray); }
.btn-block { width: 100%; padding: 17px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }
.btn.is-busy .btn-label::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid var(--navy);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fineprint { font-size: 12.5px; line-height: 1.5; color: var(--gray); margin: 18px 0 0; }

/* -- success ---------------------------------------------------------------- */

.success { text-align: center; padding: 52px 36px; outline: none; }
.success-mark {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  border: 1px solid var(--navy);
  animation: pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes pop { from { transform: scale(0.6); opacity: 0; } }
.success h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0 0 12px;
  text-wrap: balance;
}
.success p { color: var(--gray); max-width: 44ch; margin: 0 auto; }
.success-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

[hidden] { display: none !important; }

@media (max-width: 600px) {
  .card { padding: 24px 20px; border-radius: 22px; }
  .grid { grid-template-columns: 1fr; gap: 18px; }
  .field-half { grid-column: 1 / -1; }
  .hero { padding: 40px 0 120px; }
  .progress .step-name { display: none; }
  .progress li.is-current .step-name { display: inline; }
  .actions .btn-gold { flex: 1; }
  .success { padding: 40px 22px; }
  .success-links .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
