@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/fraunces-latin.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/inter-tight-latin.woff2') format('woff2');
}

:root {
  --navy: #1a2940;
  --navy-deep: #0f1a2c;
  --blue: #0b5cad;
  --blue-light: #e8f1fb;
  --text: #14191f;
  --muted: #5b6470;
  --border: #d6dbe2;
  --surface: #ffffff;
  --background: #f6f7f9;
  --focus: #0b5cad;
  --danger: #a12828;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter Tight', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: clip;
  color-scheme: light;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 0 0, rgba(76, 109, 158, 0.14), transparent 32rem),
    linear-gradient(180deg, #fbfdff 0, var(--background) 34rem);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20, 35, 58, 0.98), rgba(32, 55, 88, 0.98));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  padding: 16px 40px;
  color: white;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-decoration: none;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, color 0.2s;
}

.mobile-menu.open a { opacity: 1; transform: translateY(0); }
.mobile-menu.open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu a:hover { color: #b7ceeb; }

.mobile-menu .mobile-cta,
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: white;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.mobile-menu .mobile-cta {
  margin-top: 16px;
  padding: 14px 48px;
  background: linear-gradient(135deg, var(--blue), #2f6fb0);
}

.nav-cta { justify-self: end; padding: 14px 24px; background: var(--navy); }

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  column-gap: 32px;
  padding: 10px max(24px, calc((100vw - 1200px) / 2 + 40px));
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(214, 219, 226, 0.72);
  backdrop-filter: blur(12px);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  text-decoration: none;
}

.nav-logo-icon {
  width: auto;
  height: 44px;
  object-fit: contain;
  display: block;
}

.nav-wordmark { display: flex; flex-direction: column; line-height: 0.95; white-space: nowrap; }
.nav-wordmark-main { font-family: var(--display); font-size: 24px; font-weight: 400; letter-spacing: -0.03em; }
.nav-wordmark-sub { margin-top: 2px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; }

.nav-links {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: #2c333d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--blue); }

.hamburger {
  display: none;
  z-index: 200;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px;
  background: none;
  border: 0;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transform-origin: center;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main {
  width: min(1180px, calc(100% - 44px));
  margin: 0 auto;
}

.page-intro {
  padding: clamp(52px, 8vw, 92px) 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.75fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: end;
}

.eyebrow,
.step-label {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2 { font-family: var(--display); color: var(--navy); }

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 450;
  line-height: 1;
  letter-spacing: -0.035em;
}

h1 em { color: var(--blue); font-style: italic; }

.intro-copy > p {
  max-width: 720px;
  margin: 24px 0 0;
  color: #394556;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
}

.review-note {
  display: block;
  padding: 26px;
  background: var(--navy);
  color: white;
  border-radius: 18px;
  box-shadow: 0 22px 50px -28px rgba(15, 26, 44, 0.6);
}

.review-note strong { font-size: 17px; }
.review-note p { margin: 8px 0 0; color: #dce7f4; font-size: 14px; line-height: 1.55; }

.form-section { padding: 0 0 clamp(70px, 9vw, 110px); }

.form-card,
.success-card {
  width: 100%;
  max-width: 100%;
  padding: clamp(28px, 5vw, 62px);
  background: var(--surface);
  border: 1px solid rgba(26, 41, 64, 0.1);
  border-radius: 24px;
  box-shadow: 0 34px 80px -44px rgba(26, 41, 64, 0.42);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.form-heading h2,
.success-card h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  line-height: 1.12;
}

.step-label { margin-bottom: 7px; }
.required-note { color: var(--muted); font-size: 13px; white-space: nowrap; }
.required-note span, label > span:not(.optional) { color: var(--blue); }

.field-grid {
  width: 100%;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }

label,
legend {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.optional {
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid #bbc4cf;
  border-radius: 10px;
  font: inherit;
  line-height: 1.35;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

textarea { min-height: 110px; resize: vertical; }

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(11, 92, 173, 0.2);
  outline-offset: 2px;
  border-color: var(--focus);
}

input:user-invalid,
select:user-invalid,
textarea:user-invalid { border-color: var(--danger); }

.field small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.counter { text-align: right; }

.section-divider {
  height: 1px;
  margin: clamp(40px, 6vw, 64px) 0;
  background: var(--border);
}

fieldset { margin: 0; padding: 0; border: 0; }

.format-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  min-height: 98px;
  margin: 0;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #fbfcfe;
  border: 1px solid #bbc4cf;
  border-radius: 12px;
  cursor: pointer;
}

.choice-card > span {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}

.choice-card:has(input:checked) {
  background: var(--blue-light);
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-card input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  margin: 3px 0 0;
  accent-color: var(--blue);
}

.choice-card strong,
.choice-card small { display: block; }
.choice-card strong { color: var(--navy); font-size: 16px; }
.choice-card small { margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }

.cost-options { display: flex; flex-wrap: wrap; gap: 10px; }

.cost-options label { position: relative; margin: 0; cursor: pointer; }
.cost-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 1px;
  min-height: 1px;
  padding: 0;
  margin: 0;
  opacity: 0;
  overflow: hidden;
  clip-path: inset(50%);
  pointer-events: none;
}
.cost-options span {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 18px;
  align-items: center;
  background: #fbfcfe;
  border: 1px solid #bbc4cf;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
}

.cost-options input:checked + span {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

.cost-options input:focus-visible + span { outline: 3px solid rgba(11, 92, 173, 0.2); outline-offset: 2px; }

.conditional-field {
  padding: 18px;
  background: #f3f7fc;
  border-radius: 14px;
}

.honeypot { display: none; }

.submit-row {
  margin-top: 38px;
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  border-top: 1px solid var(--border);
}

.form-status {
  flex: 1;
  margin: 0;
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
}

.form-status.is-working { color: var(--blue); }

.submit-button,
.secondary-button {
  min-height: 50px;
  padding: 13px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.submit-button {
  background: linear-gradient(135deg, var(--blue), #2f6fb0);
  border: 0;
  color: white;
  box-shadow: 0 12px 28px rgba(11, 92, 173, 0.24);
}

.submit-button:hover { background: linear-gradient(135deg, #0a67b2, #4c6d9e); }
.submit-button:disabled { cursor: wait; opacity: 0.72; }

.secondary-button { background: white; border: 1px solid var(--navy); color: var(--navy); }

body.is-submitting { overflow: hidden; }

.submission-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  padding: 24px;
  display: grid;
  place-items: center;
  background: rgba(15, 26, 44, 0.82);
  backdrop-filter: blur(8px);
}

.submission-overlay-card {
  width: min(100%, 520px);
  padding: clamp(30px, 6vw, 48px);
  text-align: center;
  background: white;
  border-radius: 22px;
  box-shadow: 0 28px 70px rgba(8, 18, 32, 0.35);
}

.submission-overlay-card h2 {
  margin: 22px 0 0;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.1;
}

.submission-overlay-card p {
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.submission-spinner {
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border: 5px solid var(--blue-light);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: submission-spin 0.85s linear infinite;
}

@keyframes submission-spin {
  to { transform: rotate(360deg); }
}

.success-card { max-width: 760px; margin: 0 auto; text-align: center; }
.success-mark { width: 60px; height: 60px; margin: 0 auto 20px; display: grid; place-items: center; background: var(--blue-light); border-radius: 50%; color: var(--blue); font-size: 30px; font-weight: 800; }
.success-card .eyebrow { margin-bottom: 8px; }
.success-card p { max-width: 580px; margin: 18px auto 0; color: var(--muted); font-size: 17px; }
.success-actions { margin-top: 28px; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }

footer {
  padding: 26px clamp(22px, 5vw, 64px);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  background: var(--navy-deep);
  color: #dce7f4;
  font-size: 13px;
}

footer a { color: white; text-underline-offset: 4px; }

[hidden] { display: none !important; }

@media (max-width: 900px) and (min-width: 769px) {
  nav { grid-template-columns: auto 1fr auto; column-gap: 24px; }
  .nav-links { gap: 20px; }
  .nav-links li:not(:last-child) { display: none; }
}

@media (max-width: 768px) {
  nav { display: flex; justify-content: space-between; padding: 12px 20px; }
  .nav-links, .nav-cta-desktop { display: none; }
  .hamburger, .mobile-menu { display: flex; }
  .nav-logo-icon { height: 58px; }
  .nav-wordmark-main { font-size: 27px; }
  .nav-wordmark-sub { font-size: 11px; letter-spacing: 0.18em; }
}

@media (max-width: 780px) {
  main { width: min(100% - 28px, 680px); }
  .page-intro { grid-template-columns: 1fr; gap: 30px; padding-top: 48px; }
  .review-note { padding: 22px; }
  .form-card, .success-card { padding: 24px 18px; border-radius: 18px; }
  .field-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .field-full { grid-column: auto; }
  input:not([type="radio"]),
  select {
    height: 48px;
    min-height: 48px;
    padding: 10px 12px;
  }
  input[type="date"],
  input[type="time"] {
    display: block;
    -webkit-appearance: none;
    appearance: none;
    line-height: 1.2;
  }
  textarea {
    min-height: 96px;
    padding: 11px 12px;
  }
  .format-options { width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .choice-card { width: 100%; min-width: 0; min-height: 0; padding: 14px; gap: 11px; }
  .choice-card input { margin-top: 2px; }
  .choice-card small { margin-top: 2px; }
  .conditional-field { padding: 14px; }
  .submit-row { align-items: stretch; flex-direction: column; gap: 14px; }
  .submit-button { width: 100%; }
  footer { flex-direction: column; }
}

@media (max-width: 460px) {
  h1 { font-size: 43px; }
  .form-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .submission-spinner { animation: none; }
}
