:root {
  --cream: #f5f0e7;
  --paper: #fffdf9;
  --forest: #173d30;
  --forest-2: #285747;
  --sage: #a8b8a5;
  --rose: #c99494;
  --rose-soft: #ead5d1;
  --ink: #272c28;
  --muted: #6e746f;
  --line: #dedbd3;
  --shadow: 0 28px 80px rgba(35, 52, 43, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient { position: fixed; border-radius: 999px; filter: blur(10px); opacity: .5; pointer-events: none; }
.ambient-one { width: 360px; height: 360px; background: #d8dfcf; top: -140px; right: -100px; }
.ambient-two { width: 300px; height: 300px; background: #efd8d2; bottom: -130px; left: -100px; }
.shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; position: relative; padding: 30px 0 44px; }

.brandbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.wordmark { color: var(--forest); text-decoration: none; font: 600 24px/1 "Cormorant Garamond", serif; letter-spacing: .02em; }
.wordmark span { font-style: italic; font-weight: 500; }
.preview-pill { display: inline-flex; gap: 8px; align-items: center; border: 1px solid rgba(23,61,48,.15); background: rgba(255,255,255,.45); border-radius: 999px; padding: 8px 12px; color: var(--forest); font-size: 12px; font-weight: 600; }
.preview-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }

.form-card { background: rgba(255,253,249,.94); border: 1px solid rgba(255,255,255,.75); border-radius: 28px; box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(10px); }
.progress-wrap { padding: 24px 64px 0; }
.progress-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.progress-track { height: 5px; background: #ece8e0; border-radius: 10px; margin-top: 12px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg,var(--forest),var(--rose)); border-radius: 10px; transition: width .35s ease; }

.step { display: none; padding: 52px 64px 60px; animation: reveal .35s ease both; }
.step.active { display: block; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.welcome { min-height: 660px; padding-top: 88px; }
.eyebrow { color: var(--rose); text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 600; margin: 0 0 18px; }
h1,h2 { color: var(--forest); font-family: "Cormorant Garamond", serif; font-weight: 600; margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(50px, 7vw, 76px); line-height: .95; max-width: 760px; }
h1 em { color: var(--rose); font-weight: 500; }
h2 { font-size: clamp(38px, 5vw, 54px); line-height: 1; }
.lede { font-size: 17px; line-height: 1.7; color: var(--muted); max-width: 690px; margin: 26px 0 0; }
.section-head { margin-bottom: 38px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-head > p:last-child { color: var(--muted); margin: 12px 0 0; }

.welcome-grid { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 42px 0 28px; }
.welcome-grid div { padding: 20px 20px 20px 0; display: flex; flex-direction: column; gap: 4px; }
.welcome-grid div + div { border-left: 1px solid var(--line); padding-left: 24px; }
.welcome-grid strong { color: var(--forest); font: 600 22px "Cormorant Garamond",serif; }
.welcome-grid span { color: var(--muted); font-size: 12px; }
.notice { display: flex; align-items: center; gap: 12px; color: var(--forest); background: #eef1ea; border-radius: 14px; padding: 13px 16px; width: fit-content; }
.notice p { margin: 0; font-size: 13px; }
.notice span { color: var(--rose); }
.microcopy { margin: 12px 0 0; color: #94978f; font-size: 11px; }

.grid { display: grid; gap: 20px; }
.grid.two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.span-two { grid-column: span 2; }
.field { display: flex; flex-direction: column; gap: 9px; margin-bottom: 22px; }
.field > span, .range-field span, legend { color: var(--forest); font-size: 13px; font-weight: 600; }
.field small { color: #9a9c95; font-weight: 400; margin-left: 4px; }
input,select,textarea { width: 100%; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); font: inherit; outline: none; padding: 14px 15px; transition: border-color .18s, box-shadow .18s, background .18s; }
textarea { resize: vertical; min-height: 72px; line-height: 1.55; }
input:focus,select:focus,textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px rgba(40,87,71,.08); }
input::placeholder,textarea::placeholder { color: #aaa9a3; }

.choice-group { border: 0; margin: 8px 0 28px; padding: 0; }
.hint { color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; color: #505650; background: #f7f5ef; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; font-size: 12px; transition: .18s ease; }
.chips input:checked + span { color: #fff; background: var(--forest); border-color: var(--forest); box-shadow: 0 5px 13px rgba(23,61,48,.15); }
.chips input:focus-visible + span { outline: 3px solid rgba(201,148,148,.35); outline-offset: 2px; }
.chips.compact span { padding: 9px 12px; }

.range-field { margin: 6px 0 26px; padding: 17px 19px; background: #eef2ec; border-radius: 15px; }
.range-field.rose { background: #f4e9e6; }
.range-field > div { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.range-field output { color: var(--forest); font-size: 12px; font-weight: 600; }
input[type="range"] { padding: 0; accent-color: var(--forest); box-shadow: none; border: 0; background: transparent; }

.conditional-card { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 16px; margin: 30px 0 16px; }
.conditional-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.card-title { color: var(--forest) !important; font-weight: 600; font-size: 14px !important; }
.switch input { position: absolute; opacity: 0; }
.switch span { display: block; width: 48px; height: 28px; border-radius: 999px; background: #d9d9d2; position: relative; cursor: pointer; transition: .2s; }
.switch span::after { content:""; width: 22px; height: 22px; border-radius: 50%; background: #fff; position: absolute; top: 3px; left: 3px; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: .2s; }
.switch input:checked + span { background: var(--forest); }
.switch input:checked + span::after { transform: translateX(20px); }
.conditional-fields { border-left: 3px solid var(--rose); padding: 15px 0 2px 22px; margin-bottom: 30px; }

.hp-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent-card { margin-top: 30px; padding: 22px; border: 1px solid var(--line); border-radius: 17px; background: #f7f3eb; }
.consent-card > .card-title { margin: 0 0 16px; }
.checkbox-line { display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 11px; color: #4e554f; font-size: 12px; line-height: 1.55; margin: 13px 0; cursor: pointer; }
.checkbox-line input { width: 18px; height: 18px; margin: 1px 0 0; padding: 0; accent-color: var(--forest); }
.required-note { margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.status-message { min-height: 20px; margin: 18px 0 -18px; font-size: 12px; line-height: 1.5; }
.status-message.is-working { color: var(--forest); }
.status-message.is-error { color: #963f3f; }

.nav { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 28px; margin-top: 36px; }
button { font: inherit; cursor: pointer; }
.primary,.secondary { border-radius: 999px; padding: 14px 22px; font-weight: 600; transition: transform .18s, box-shadow .18s, background .18s; }
.primary { color: #fff; background: var(--forest); border: 1px solid var(--forest); }
.primary:hover { background: var(--forest-2); box-shadow: 0 10px 25px rgba(23,61,48,.18); transform: translateY(-1px); }
.primary:disabled { cursor: wait; opacity: .66; transform: none; box-shadow: none; }
.primary span { margin-left: 10px; }
.primary.start { margin-top: 28px; }
.secondary { color: var(--forest); background: transparent; border: 1px solid var(--forest); }
.secondary:hover { background: #eef2ec; }
.text-button { color: var(--muted); background: transparent; border: 0; padding: 10px 0; }
.text-button:hover { color: var(--forest); }

.complete { text-align: center; padding-top: 90px; min-height: 600px; }
.complete .lede { margin-left: auto; margin-right: auto; }
.complete-mark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 25px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 24px; }
.next-card { text-align: left; max-width: 620px; margin: 32px auto; padding: 20px; background: #f3eee5; border-radius: 16px; }
.next-card p:last-child { color: var(--muted); font-size: 13px; line-height: 1.6; margin-bottom: 0; }
footer { display: flex; justify-content: space-between; color: #72776f; padding: 22px 8px 0; font-size: 11px; letter-spacing: .04em; }
footer p { margin: 0; color: var(--forest); font-weight: 600; }

@media (max-width: 720px) {
  .shell { width: min(100% - 18px, 980px); padding-top: 15px; }
  .brandbar { padding: 0 5px; }
  .form-card { border-radius: 20px; }
  .step { padding: 38px 24px 44px; }
  .welcome { padding-top: 52px; }
  .progress-wrap { padding: 20px 24px 0; }
  .welcome-grid { grid-template-columns: 1fr; }
  .welcome-grid div, .welcome-grid div + div { border-left: 0; border-top: 1px solid var(--line); padding: 14px 0; }
  .welcome-grid div:first-child { border-top: 0; }
  .grid.two,.grid.three { grid-template-columns: 1fr; gap: 0; }
  .span-two { grid-column: auto; }
  .chips { gap: 8px; }
  .chips span { padding: 9px 11px; }
  .nav { position: sticky; bottom: 0; background: linear-gradient(180deg,rgba(255,253,249,0),var(--paper) 20%); margin-left: -4px; margin-right: -4px; padding: 34px 4px 4px; }
  footer { flex-direction: column; gap: 5px; align-items: center; }
}

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