:root {
  --ink: #2c2118;
  --muted: #6b6355;
  --paper: #faf6ef;
  --soft: #f3ecdf;
  --olive: #6f7d4f;
  --coral: #b8613a;
  --white: #ffffff;
  --line: rgba(44, 33, 24, 0.12);
  --shadow: 0 14px 30px rgba(44, 33, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 16px/1.5 Karla, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
input,
select,
textarea,
button {
  font: 16px/1.5 Karla, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  opacity: 0.82;
}

.flow-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.flow-header {
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 246, 239, 0.92);
  backdrop-filter: blur(14px);
}

.flow-nav {
  width: min(1180px, calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.brand em {
  color: var(--coral);
  font-style: italic;
  font-weight: 600;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.flow-nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.flow-main {
  width: min(940px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 52px;
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 34px;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
  transition: width 180ms ease;
}

.progress-label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.step {
  display: none;
  min-height: min(560px, calc(100vh - 210px));
  align-content: center;
}

.step.active {
  display: grid;
}

.step-inner {
  max-width: 780px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: clamp(24px, 5vw, 44px);
  background: var(--white);
  box-shadow: 0 6px 18px rgba(44, 33, 24, 0.06);
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step h2 {
  max-width: 760px;
  margin: 0 0 18px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(34px, 6vw, 62px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 18px;
}

label {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

.optional {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.consent-row {
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 20px;
  font-weight: 500;
}

.consent-row input {
  width: 20px;
  min-height: 20px;
  margin: 2px 0 0;
  box-shadow: none;
}

input,
select,
textarea {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(44, 33, 24, 0.18);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(44, 33, 24, 0.06);
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(184, 97, 58, 0.18);
  border-color: var(--coral);
}

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

.choice {
  position: relative;
  margin: 0;
}

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

.choice span {
  min-height: 72px;
  display: grid;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: #fffaf2;
  box-shadow: 0 8px 24px rgba(44, 33, 24, 0.06);
  font-weight: 800;
  cursor: pointer;
}

.choice input:checked + span {
  border-color: var(--coral);
  background: var(--soft);
}

.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(44, 33, 24, 0.22);
  opacity: 1;
}

.button.secondary {
  color: var(--ink);
  border-color: var(--ink);
  background: transparent;
}

.button.sage {
  background: var(--ink);
}

.button.coral {
  background: var(--coral);
}

.button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.small-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.captcha-box {
  min-height: 72px;
  margin-top: 8px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--white);
}

.summary p {
  margin-bottom: 10px;
  font-size: 15px;
}

@media (max-width: 640px) {
  .flow-nav,
  .flow-main {
    width: min(100% - 24px, 940px);
  }

  .progress-row,
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .button {
    width: 100%;
  }
}
