:root {
  --ink: #1d1029;
  --muted: #5f566b;
  --paper: #f5f2f8;
  --card: #ffffff;
  --line: #ddd5e7;
  --purple: #552583;
  --purple-dark: #3a1a5c;
  --purple-deep: #22102f;
  --gold: #fdb927;
  --gold-dark: #e3a200;
  --gold-soft: #fff4d6;
  --green: #1f7a52;
  --shadow: 0 18px 50px rgba(34, 16, 47, 0.14);
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(85, 37, 131, 0.04) 25%, transparent 25%) 0 0 / 28px 28px,
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.page-shell { min-height: 100vh; }

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 clamp(20px, 5vw, 72px);
  color: white;
  background: linear-gradient(90deg, var(--purple-deep), var(--purple));
  border-bottom: 6px solid var(--gold);
}

.brand { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { display: inline-grid; width: 44px; height: 44px; place-items: center; color: var(--purple-deep); background: var(--gold); border-radius: 50%; font-family: var(--display); font-style: italic; font-weight: 900; letter-spacing: -0.04em; }
.brand-copy { font-family: var(--display); font-size: 1.15rem; font-style: italic; font-weight: 900; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; }
.brand-copy span { display: block; margin-top: 5px; color: var(--gold); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: 0.66rem; font-style: normal; font-weight: 700; letter-spacing: 0.18em; }
.secure-label { padding: 6px 12px; color: var(--gold); border: 1px solid rgba(253, 185, 39, 0.5); border-radius: 999px; font-size: 0.78rem; font-weight: 700; }

main { width: min(920px, calc(100% - 32px)); margin: 0 auto; padding: 64px 0 80px; }
.intro { position: relative; padding: 0 0 34px 28px; border-left: 6px solid var(--gold); }
.intro h1 { max-width: 760px; margin: 8px 0 14px; color: var(--purple); font-family: var(--display); font-size: clamp(2.4rem, 6.5vw, 4.8rem); font-style: italic; font-weight: 900; letter-spacing: -0.02em; line-height: 0.95; text-transform: uppercase; }
.intro > p:not(.eyebrow) { max-width: 650px; color: var(--muted); font-size: 1.04rem; }
.eyebrow { margin: 0; color: var(--purple); font-size: 0.76rem; font-weight: 850; letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 4px; margin: 0 8px 2px 0; background: var(--gold); vertical-align: middle; }

.highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.highlights li { display: grid; gap: 4px; padding: 14px 16px; color: white; background: var(--purple); border-bottom: 4px solid var(--gold); border-radius: 6px; }
.highlights strong { color: var(--gold); font-family: var(--display); font-size: 1.15rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.highlights span { color: #e4dbef; font-size: 0.8rem; }

form, .success-card, .faq {
  margin-top: 26px;
  padding: clamp(22px, 5vw, 52px);
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 6px solid var(--purple);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.progress-wrap { margin-bottom: 48px; }
.progress-copy { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.progress-track { height: 8px; overflow: hidden; background: #ece6f3; border-radius: 999px; }
.progress-track span { display: block; width: 20%; height: 100%; background: linear-gradient(90deg, var(--purple), var(--gold)); border-radius: 999px; transition: width 220ms ease; }

.form-step { display: none; }
.form-step.is-active { display: block; animation: reveal 220ms ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }

.section-heading { display: grid; grid-template-columns: 54px 1fr; gap: 15px; align-items: start; margin-bottom: 28px; }
.section-heading > span { display: inline-grid; width: 50px; height: 50px; place-items: center; color: var(--purple-deep); background: var(--gold); border-radius: 50%; font-family: var(--display); font-size: 1.3rem; font-style: italic; font-weight: 900; }
.section-heading h2, .faq h2 { margin: 0; color: var(--purple); font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.4rem); font-style: italic; font-weight: 900; text-transform: uppercase; }
.section-heading p, .subsection p { margin: 7px 0 0; color: var(--muted); line-height: 1.5; }

.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: grid; align-content: start; gap: 8px; color: #352a40; font-size: 0.84rem; font-weight: 750; }
.field-wide { grid-column: 1 / -1; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  background: white;
  border: 1px solid #c4b8d3;
  border-radius: 6px;
  outline: none;
  font-weight: 500;
}
.field input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(253, 185, 39, 0.45); }
.field input:user-invalid { border-color: #b3261e; }
.field small, fieldset small { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 500; }
fieldset small { margin-top: 10px; }
.uppercase { text-transform: uppercase; }

.subsection { margin-top: 38px; padding-top: 28px; border-top: 1px solid var(--line); }
.subsection h3 { margin: 0; color: var(--purple); font-family: var(--display); font-size: 1.4rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.subsection .field-grid { margin-top: 20px; }

.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.choice-grid:first-child, .section-heading + .choice-grid { margin-top: 0; }
fieldset { min-width: 0; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
legend { padding: 0 6px; font-size: 0.86rem; font-weight: 750; }
fieldset label { display: inline-flex; margin: 10px 8px 0 0; cursor: pointer; }
fieldset input { position: absolute; opacity: 0; pointer-events: none; }
fieldset label span { padding: 8px 14px; background: #f0ebf6; border: 1px solid transparent; border-radius: 999px; font-size: 0.84rem; font-weight: 700; }
fieldset label:hover span { border-color: var(--purple); }
fieldset input:checked + span { color: var(--purple-deep); background: var(--gold); border-color: var(--gold-dark); }
fieldset input:focus-visible + span { outline: 3px solid rgba(85, 37, 131, 0.35); }
.stacked-choices { display: grid; gap: 18px; }

.consent { display: flex; gap: 12px; margin-top: 26px; padding: 18px; background: var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 6px; font-size: 0.87rem; line-height: 1.45; cursor: pointer; }
.consent input { flex: 0 0 auto; width: 18px; height: 18px; accent-color: var(--purple); }

.form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--line); }
.button { min-height: 48px; padding: 11px 24px; border: 0; border-radius: 999px; cursor: pointer; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.button-primary { color: var(--purple-deep); background: var(--gold); }
.button-primary:hover { background: var(--gold-dark); }
.button-secondary { color: white; background: var(--purple); }
.button-secondary:hover { background: var(--purple-dark); }
.button:disabled { opacity: 0.55; cursor: wait; }

.notice { margin-top: 22px; padding: 16px 18px; border-left: 4px solid; border-radius: 6px; }
.notice p { margin: 6px 0 0; }
.notice-error { color: #72191d; background: #fae8e7; border-color: #b3261e; }
.notice-warning { color: #5c4300; background: var(--gold-soft); border-color: var(--gold); font-size: 0.88rem; font-weight: 600; }
.success-card { text-align: center; }
.success-card h2 { margin: 8px 0; color: var(--purple); font-family: var(--display); font-size: 2.4rem; font-style: italic; font-weight: 900; text-transform: uppercase; }
.success-card > p:last-child { color: var(--muted); }
.success-icon { display: inline-grid; width: 58px; height: 58px; place-items: center; color: var(--purple-deep); background: var(--gold); border-radius: 50%; font-size: 1.8rem; }

.faq h2 { margin: 6px 0 22px; }
.faq-list { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 6px; }
.faq details[open] { border-color: var(--purple); }
.faq summary { position: relative; padding: 14px 44px 14px 16px; font-size: 0.92rem; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 16px; display: grid; width: 22px; height: 22px; place-items: center; color: var(--purple-deep); background: var(--gold); border-radius: 50%; font-weight: 900; transform: translateY(-50%); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 16px 16px; color: var(--muted); line-height: 1.5; }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
footer { padding: 26px; color: #cbbfd9; background: var(--purple-deep); border-top: 6px solid var(--gold); text-align: center; font-size: 0.78rem; }

@media (max-width: 680px) {
  .brand-bar { min-height: 68px; padding-inline: 18px; }
  .secure-label { display: none; }
  main { width: min(100% - 20px, 920px); padding-top: 38px; }
  .intro { padding-left: 18px; }
  .intro h1 { font-size: 2.65rem; }
  .highlights { grid-template-columns: 1fr; }
  form, .faq { padding: 22px 18px; }
  .field-grid, .choice-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .progress-copy { align-items: flex-end; gap: 12px; }
  .progress-copy span:last-child { text-align: right; }
  .section-heading { grid-template-columns: 42px 1fr; }
  .section-heading > span { width: 40px; height: 40px; font-size: 1.05rem; }
  .form-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .form-actions.is-first-step { grid-template-columns: 1fr; }
}
