:root {
  --charcoal: #171717;
  --graphite: #292929;
  --paper: #f1eee7;
  --gold: #b5965a;
  --stone: #77736b;
  --error: #a24438;
  --success: #4f765c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--charcoal);
  font-family: "Manrope", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--gold);
  z-index: 10;
}

.brand {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 34px 0;
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

.pillar {
  width: 22px;
  height: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  border-block: 2px solid var(--gold);
  padding: 4px 2px;
}

.pillar i { display: block; border-left: 1px solid var(--gold); }

main {
  width: min(940px, calc(100% - 48px));
  margin: 0 auto;
  min-height: calc(100vh - 170px);
  display: grid;
  align-items: center;
  padding: 52px 0 96px;
}

.intro, .form-shell, .success { width: 100%; }

.intro { max-width: 790px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, legend {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: -.025em;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(48px, 7vw, 78px);
  line-height: .98;
}

.gold-line { width: 74px; height: 1px; margin: 36px 0; background: var(--gold); }

.intro > p:not(.eyebrow) {
  max-width: 760px;
  color: var(--graphite);
  font-size: 16px;
  line-height: 1.8;
}

.intro-note { margin-top: 28px; color: var(--stone) !important; }

button {
  border: 0;
  border-radius: 0;
  font: inherit;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, opacity .2s ease, transform .2s ease;
}

button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.primary {
  margin-top: 22px;
  min-height: 54px;
  padding: 0 26px;
  background: var(--charcoal);
  color: var(--paper);
  font-weight: 700;
}

.primary:hover:not(:disabled) { background: var(--gold); color: var(--charcoal); transform: translateY(-1px); }
.primary:disabled { cursor: not-allowed; opacity: .34; }

.secondary {
  min-height: 54px;
  padding: 0 8px;
  background: transparent;
  color: var(--stone);
  font-weight: 700;
}

.secondary:hover { color: var(--charcoal); }

.progress-area { margin-bottom: clamp(42px, 7vw, 80px); }

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: var(--stone);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.progress-track { height: 2px; background: rgba(119, 115, 107, .22); }
.progress-track span { display: block; width: 9%; height: 100%; background: var(--gold); transition: width .35s ease; }

fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.step { display: none; animation: enter .3s ease both; }
.step.is-active { display: block; }

@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

legend {
  width: 100%;
  max-width: 900px;
  margin: 0 0 38px;
  padding: 0;
  font-size: clamp(39px, 6vw, 66px);
  line-height: 1.02;
}

.supporting {
  max-width: 700px;
  margin: -20px 0 28px;
  color: var(--stone);
  line-height: 1.6;
}

input[type="text"], input[type="tel"], input[type="date"], textarea {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(23, 23, 23, .32);
  border-radius: 0;
  padding: 16px 2px;
  background: transparent;
  color: var(--charcoal);
  font: 500 clamp(18px, 2.8vw, 24px)/1.5 "Manrope", sans-serif;
  resize: vertical;
}

input::placeholder, textarea::placeholder { color: rgba(119, 115, 107, .72); }
input:focus, textarea:focus { border-bottom-color: var(--gold); outline: none; }

.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.options.compact { grid-template-columns: 1fr; gap: 8px; }
.inline-options { max-width: 520px; }

.options label { position: relative; cursor: pointer; }
.options input { position: absolute; opacity: 0; pointer-events: none; }
.options span {
  min-height: 62px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(23, 23, 23, .17);
  padding: 16px 18px;
  color: var(--graphite);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.options label:hover span { border-color: var(--gold); }
.options input:checked + span { border-color: var(--charcoal); background: var(--charcoal); color: var(--paper); }
.options input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.conditional { margin-top: 22px; }
.conditional label, .optional-label { display: block; margin: 0 0 6px; color: var(--stone); font-size: 13px; }
.optional-label { margin-top: 34px; }

.range-value { display: flex; align-items: baseline; gap: 6px; margin: 28px 0 18px; }
.range-value output { color: var(--gold); font: 600 72px/1 "Cormorant Garamond", serif; }
.range-value span { color: var(--stone); }
input[type="range"] { width: 100%; accent-color: var(--gold); }
.range-labels { display: flex; justify-content: space-between; color: var(--stone); font-size: 12px; }

.field-status, .form-error { min-height: 24px; margin: 12px 0 0; color: var(--error); font-size: 13px; }
.field-status.success { color: var(--success); }

.actions { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 42px; }
.actions .primary { margin: 0; min-width: 150px; }
.actions .secondary[hidden] { display: none; }

.success { max-width: 720px; }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border: 1px solid var(--gold); color: var(--gold); font-size: 22px; }
.success p:last-child { max-width: 620px; margin-top: 26px; color: var(--stone); font-size: 17px; line-height: 1.7; }

footer {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  border-top: 1px solid rgba(119, 115, 107, .22);
  padding: 24px 0 32px;
  color: var(--stone);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.honeypot { position: fixed !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.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: 700px) {
  .brand, main, footer { width: min(100% - 32px, 940px); }
  .brand { padding: 26px 0; }
  main { align-items: start; padding: 40px 0 72px; }
  .options { grid-template-columns: 1fr; }
  legend { margin-bottom: 30px; }
  .actions { position: sticky; bottom: 0; margin-inline: -16px; padding: 18px 16px 14px; background: linear-gradient(to top, var(--paper) 78%, transparent); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
