:root {
  --teal: #008081;
  --sky-blue: #4FC3F7;
  --lavender: #BFACFE;
  --navy: #003366;
  --teal-light: #E0F4F4;
  --navy-light: #EEF3F8;
  --lavender-light: #F0EDFF;
  --white: #ffffff;
  --ink: #172033;
  --muted: #566273;
  --border: #d9e2ea;
  --danger: #9f1d35;
  --success: #0b6b4f;
  --shadow: 0 14px 34px rgba(0, 51, 102, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Calibri, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy-light);
  line-height: 1.45;
}

a { color: inherit; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.brand-block {
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
}

.brand-main {
  font-family: Cambria, Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.brand-sub {
  color: var(--navy);
  font-weight: 700;
  font-size: 0.9rem;
}

.top-nav {
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
}

.top-nav a,
.primary-link,
.secondary-link,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 0.95rem;
  text-decoration: none;
  font-weight: 800;
  border: 0;
}

.top-nav a,
.secondary-link,
.secondary-button {
  background: var(--navy-light);
  color: var(--navy);
}

.top-nav a {
  font-size: 0.9rem;
  padding: 0.55rem 0.75rem;
}

.page-shell {
  width: min(100% - 1rem, 680px);
  margin: 0.75rem auto 2rem;
}

.hero-panel,
.form-card {
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero-panel {
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: var(--white);
  padding: 1.25rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--teal-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 800;
}

.eyebrow.dark { color: var(--teal); }

h1,
h2,
h3 { font-family: Cambria, Georgia, serif; }

h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(2.35rem, 13vw, 4rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 34rem;
  margin: 0.85rem 0 1rem;
  font-size: 1.05rem;
  color: var(--white);
}

.primary-link,
.primary-button {
  background: var(--sky-blue);
  color: var(--navy);
  cursor: pointer;
}

.primary-link,
.secondary-link,
.hero-panel .primary-link {
  min-width: 10rem;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.micro-trust {
  margin: 0.75rem 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  background: var(--white);
  color: var(--muted);
  border: 1px solid var(--border);
  font-size: 0.98rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 1rem;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.05;
}

.section-heading p:last-child {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.stepper {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.stepper li {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.55rem 0.6rem;
  background: var(--navy-light);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
}

.stepper li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
}

.stepper li.active {
  background: var(--sky-blue);
  color: var(--navy);
}

.stepper li.complete {
  background: var(--teal-light);
  color: var(--teal);
}

.draft-status {
  border-radius: 14px;
  padding: 0.72rem 0.85rem;
  margin-bottom: 0.85rem;
  background: var(--lavender-light);
  color: var(--navy);
  font-weight: 800;
  font-size: 0.95rem;
}

.form-step {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1rem;
  background: var(--white);
}

.form-step h3 {
  margin: 0 0 0.25rem;
  color: var(--navy);
  font-size: 1.4rem;
}

.step-intro {
  margin: 0 0 0.9rem;
  color: var(--muted);
}

.field-group { margin-bottom: 0.95rem; }

label,
legend {
  font-weight: 800;
  color: var(--navy);
}

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

.choice-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
}

.choice-group legend {
  grid-column: 1 / -1;
  margin-bottom: 0.35rem;
}

.choice-pill {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  background: var(--navy-light);
  color: var(--navy);
  cursor: pointer;
  text-align: center;
}

.choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-pill:has(input:checked) {
  background: var(--sky-blue);
}

input,
select,
textarea {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  font: inherit;
  background: var(--white);
  color: var(--ink);
  font-size: 1rem;
}

textarea {
  resize: vertical;
  min-height: 6.5rem;
}

input:focus,
select:focus,
textarea:focus,
.choice-pill:has(input:focus-visible) {
  outline: 3px solid rgba(79, 195, 247, 0.35);
  border-color: var(--teal);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.5rem 0 0;
}

.checkbox-row input {
  width: auto;
  min-height: auto;
  margin-top: 0.25rem;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.status-box {
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border);
  background: var(--navy-light);
}

.status-box.error {
  color: var(--danger);
  background: #fff0f3;
  border-color: #f1bdc8;
}

.status-box.success {
  color: var(--success);
  background: #e8f7f1;
  border-color: #bde8d6;
}

.form-actions {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.9rem;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 3.1rem;
  font-size: 1rem;
}

.site-footer {
  padding: 1.25rem 1rem 2rem;
  color: var(--muted);
  text-align: center;
}

.thanks-card {
  margin-top: 0.85rem;
  border-radius: 22px;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.thanks-card h2 {
  color: var(--navy);
  margin-top: 0;
}

.button-row {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.button-row .primary-link,
.button-row .secondary-link {
  width: 100%;
  min-height: 3.1rem;
}

@media (min-width: 760px) {
  .site-header { padding: 1rem clamp(1rem, 4vw, 3rem); }
  .page-shell { margin-top: 2rem; }
  .hero-panel { padding: 2rem; }
  .form-card { padding: 1.35rem; }
  .form-actions,
  .button-row {
    display: flex;
    flex-wrap: wrap;
  }
  .primary-button,
  .secondary-button,
  .button-row .primary-link,
  .button-row .secondary-link {
    width: auto;
    min-width: 11rem;
  }
}

@media (max-width: 390px) {
  .top-nav a { font-size: 0.82rem; padding: 0.5rem 0.6rem; }
  .choice-group { grid-template-columns: 1fr; }
  .stepper { flex-direction: column; }
}
