:root {
  color-scheme: light;
  --ink: #153040;
  --muted: #62747d;
  --navy: #123b50;
  --navy-2: #0c2c3d;
  --teal: #2b7a78;
  --gold: #d8a94a;
  --gold-soft: #f7ecd2;
  --cream: #fbf9f4;
  --white: #ffffff;
  --line: #dbe3e5;
  --danger: #a63838;
  --success: #287154;
  --shadow: 0 18px 60px rgba(17, 52, 68, 0.09);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(216, 169, 74, 0.16), transparent 28rem),
    linear-gradient(180deg, #f7fbfb 0, var(--cream) 26rem, #f4f5f2 100%);
  min-height: 100vh;
}

button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(18, 59, 80, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-logo {
  width: 320px;
  height: 160px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; letter-spacing: -0.01em; }
.brand small { color: var(--muted); margin-top: 2px; font-size: 12px; }

.privacy-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success);
  background: #eaf5ee;
  border: 1px solid #cfe5d6;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
}

.privacy-pill span { font-size: 8px; }

.hero {
  padding: 66px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.65fr);
  gap: 56px;
  align-items: end;
}

.eyebrow, .section-kicker {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--navy-2);
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(38px, 5.5vw, 66px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.hero-copy .office-contact { margin-top: 18px; font-size: 15px; }
.office-contact a { color: var(--navy); font-weight: 700; text-underline-offset: 3px; }

.assurance-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 20px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(18, 59, 80, 0.12);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.shield {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 50% 50% 50% 8px;
  font-weight: 900;
}

.assurance-card strong { display: block; margin-bottom: 6px; font-size: 14px; }
.assurance-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }

.steps {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  max-width: 620px;
  margin: 0 auto 28px;
  padding: 0 8px;
}

.step { display: flex; align-items: center; gap: 9px; color: #8b989e; }
.step span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfd9dc;
  border-radius: 50%;
  background: #f7f8f6;
  font-size: 12px;
  font-weight: 800;
}
.step strong { font-size: 12px; }
.step-line { height: 1px; background: #d5dddf; margin: 0 16px; }
.step.is-active, .step.is-done { color: var(--navy); }
.step.is-active span { color: var(--white); border-color: var(--navy); background: var(--navy); }
.step.is-done span { color: var(--success); border-color: #b6d9c4; background: #e8f4ed; }

.screen {
  margin-bottom: 40px;
  padding: clamp(24px, 5vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(18, 59, 80, 0.1);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.screen[hidden] { display: none; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-heading h2 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 43px); letter-spacing: -0.03em; }
.section-heading p:last-child { margin-bottom: 0; color: var(--muted); }

.traveler-card {
  margin: 0 0 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.traveler-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e7ecee;
}

.traveler-card-header h3 { margin: 3px 0 0; font-size: 19px; }
.traveler-number { color: var(--teal); font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.remove-traveler { border: 0; background: transparent; color: var(--danger); font-size: 13px; font-weight: 700; }
.remove-traveler:hover { text-decoration: underline; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 750; }

input, textarea {
  width: 100%;
  border: 1px solid #cbd7da;
  border-radius: 12px;
  background: #fcfdfc;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

textarea { min-height: 72px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #9ba8ad; }
input:focus, textarea:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(43, 122, 120, 0.11);
}

.field.has-error input, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(166, 56, 56, 0.08); }
.field-error { min-height: 0; color: var(--danger); font-size: 12px; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border-radius: 12px;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-weight: 800;
  font-size: 13px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.button:hover { transform: translateY(-1px); }
.button:focus-visible, .text-button:focus-visible, .remove-traveler:focus-visible { outline: 3px solid rgba(43, 122, 120, 0.25); outline-offset: 2px; }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 8px 22px rgba(18, 59, 80, 0.18); }
.button-primary:hover { background: #174b64; }
.button-secondary { color: var(--navy); background: var(--gold-soft); border-color: #ead6a8; }
.button-secondary:hover { background: #f2e2bd; }
.button-ghost { color: var(--navy); background: #fff; border-color: #cbd7da; }
.button-ghost:hover { border-color: var(--teal); }

.form-footer, .review-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

.review-list { display: grid; gap: 18px; }
.review-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.review-card-header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 20px; background: #f1f7f6; }
.review-card-header h3 { margin: 0; font-size: 18px; }
.review-card-header span { color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 4px 20px 20px; }
.review-item { margin-top: 16px; padding-right: 18px; }
.review-item.wide { grid-column: span 2; }
.review-item small { display: block; color: var(--muted); margin-bottom: 5px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; }
.review-item strong { display: block; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 22px 0;
  padding: 16px 18px;
  border: 1px solid #cfe1df;
  border-radius: 14px;
  background: #f0f8f7;
  color: #315c5b;
}
.notice > span { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-family: Georgia, serif; font-weight: 700; }
.notice p { margin: 0; font-size: 13px; line-height: 1.5; }

.completion-card { max-width: 680px; margin: 10px auto 26px; text-align: center; }
.success-mark { width: 68px; height: 68px; margin: 0 auto 24px; display: grid; place-items: center; border-radius: 50%; background: #e5f3eb; color: var(--success); border: 1px solid #c4dfcf; font-size: 30px; font-weight: 900; }
.completion-card h2 { margin-bottom: 12px; font-size: clamp(34px, 5vw, 50px); letter-spacing: -0.035em; }
.completion-card > p:not(.section-kicker):not(.action-status) { color: var(--muted); font-size: 16px; }
.completion-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 28px 0 14px; }
.action-status { min-height: 21px; margin: 0; color: var(--success); font-size: 13px; font-weight: 700; }
.completion-links { display: flex; justify-content: center; gap: 12px; align-items: center; margin-top: 22px; color: #a1abad; }
.text-button { border: 0; background: transparent; color: var(--teal); font-size: 13px; font-weight: 750; padding: 4px; }
.text-button:hover { text-decoration: underline; }

.summary-preview { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); padding-top: 18px; }
.summary-preview summary { cursor: pointer; text-align: center; color: var(--navy); font-weight: 750; font-size: 13px; }
.summary-preview pre { margin: 18px 0 0; padding: 22px; border-radius: 14px; background: #f5f7f5; color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-align: left; }

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 2px 36px;
  color: var(--muted);
  font-size: 12px;
}
footer strong { color: var(--navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 20px, 1120px); }
  .topbar { min-height: 76px; }
  .brand-logo { width: min(250px, 62vw); height: auto; }
  .topbar { gap: 10px; }
  .brand small { display: none; }
  .privacy-pill { padding: 7px 10px; }
  .hero { padding: 42px 8px 30px; grid-template-columns: 1fr; gap: 24px; }
  h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .steps { margin-bottom: 18px; }
  .step { gap: 6px; }
  .step strong { display: none; }
  .step-line { margin: 0 10px; }
  .screen { padding: 24px 16px; border-radius: 20px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .section-heading .button { width: 100%; }
  .traveler-card { padding: 20px 14px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .field-wide { grid-column: auto; }
  input, textarea { font-size: 16px; }
  .form-footer, .review-footer { flex-direction: column-reverse; align-items: stretch; }
  .form-footer .button, .review-footer .button { width: 100%; }
  .review-grid { grid-template-columns: 1fr; }
  .review-item.wide { grid-column: auto; }
  .completion-actions { flex-direction: column; }
  .completion-actions .button { width: 100%; }
  footer { flex-direction: column; gap: 4px; text-align: center; }
}

@media print {
  body { background: #fff; }
  .topbar, .hero, .steps, #details-screen, #review-screen, .completion-actions, .completion-links, footer { display: none !important; }
  .site-shell { width: 100%; }
  #complete-screen { display: block !important; box-shadow: none; border: 0; padding: 0; }
  .summary-preview { border: 0; max-width: none; }
  .summary-preview summary { display: none; }
  .summary-preview pre { display: block; background: #fff; border: 0; padding: 0; }
}
