:root {
  --error: #a63d36;
  --intake-shadow: 0 18px 48px rgba(16, 36, 63, .11);
}

html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { color: var(--navy); background: var(--cream); }
.site-header { position: relative; }
.nav-links .nav-active,
.nav-links .nav-active:hover,
.nav-links .nav-active:focus-visible {
  color: var(--purple-dark);
  background: rgba(109, 75, 179, .11);
  box-shadow: inset 0 -2px var(--purple);
}
main { min-height: calc(100vh - 140px); }
.intro,
#intake-form,
.completion { width: min(1040px, calc(100% - 36px)); margin-inline: auto; }
.intro { max-width: 1040px; padding: 48px 0 28px; }
.intro .eyebrow { margin-bottom: 12px; }
.intro h1 {
  max-width: 850px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.35rem, 6vw, 4.35rem);
  line-height: 1;
}
.intro > p:not(.eyebrow) { max-width: 820px; margin: 16px 0 0; font-size: 1.05rem; }
.intro .account-note {
  max-width: 820px;
  padding: 13px 16px;
  border: 1px solid rgba(240, 201, 90, .58);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: var(--navy);
  background: rgba(255, 250, 232, .9);
  font-size: .94rem;
  font-weight: 750;
}

.section-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 11px max(18px, calc((100% - 1080px) / 2));
  overflow-x: auto;
  border-block: 1px solid rgba(217, 224, 231, .9);
  background: rgba(251, 247, 237, .94);
  backdrop-filter: blur(16px);
}
.section-nav a {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  gap: 8px;
  min-width: max-content;
  padding: 7px 9px;
  border-radius: 8px;
  color: #687583;
  font-size: .76rem;
  font-weight: 700;
  text-decoration: none;
}
.section-nav b {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  display: grid;
  place-items: center;
  border: 2px solid #b8c3cf;
  border-radius: 50%;
  color: var(--navy);
  background: #fff;
  font-size: .78rem;
}
.section-nav a:hover,
.section-nav a:focus-visible { color: var(--navy); background: rgba(109, 75, 179, .08); outline: none; }
.section-nav a.is-active { color: var(--purple-dark); background: rgba(109, 75, 179, .09); }
.section-nav a.is-active b,
.section-nav a.is-complete b { color: #fff; border-color: var(--purple); background: var(--purple); }
.section-nav a.is-complete { color: var(--navy); }

fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-section,
.completion {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(217, 224, 231, .92);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--intake-shadow);
}
.form-section::before,
.completion::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--gold), var(--purple));
}
.form-section { margin-top: 24px; padding: clamp(25px, 4.5vw, 44px); }
.section-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 24px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.section-title > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--purple);
  font-size: 1.15rem;
  font-weight: 850;
}
.section-title .eyebrow { margin: 0; }
.section-title h2 { margin: 3px 0 0; font-size: clamp(1.5rem, 4vw, 2rem); }
.section-intro { max-width: 780px; font-size: 1.03rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.field { margin: 19px 0; }
.field.compact { max-width: 500px; }
.field label,
.choice-field legend { display: block; margin-bottom: 7px; color: var(--navy); font-weight: 800; }
.field label i,
.choice-field i { color: var(--error); font-style: normal; }
.field label span { margin-left: 5px; color: var(--muted); font-size: .75rem; font-weight: 650; }
input,
select,
textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid #c7d0da;
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff;
  font: inherit;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 104px; resize: vertical; }
input:focus,
select:focus,
textarea:focus {
  border-color: var(--purple);
  outline: none;
  box-shadow: 0 0 0 3px rgba(109, 75, 179, .16);
}
button:focus-visible,
a:focus-visible { outline: 3px solid rgba(109, 75, 179, .25); outline-offset: 2px; }
[aria-invalid="true"] { border-color: var(--error); background: #fffafa; }
.helper,
.example { margin: 5px 0 0; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.example { font-style: italic; }
.field-error { min-height: .35em; margin: 4px 0 0; color: var(--error); font-size: .82rem; font-weight: 700; }
.privacy-note,
.helper-note {
  padding: 15px 17px;
  border: 1px solid rgba(240, 201, 90, .5);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  color: #38485a;
  background: #fff9e9;
  font-size: .88rem;
}
.privacy-note strong { display: block; color: var(--navy); }
.choice-field { margin: 23px 0; }
.choice-field label { display: inline-flex; align-items: center; gap: 7px; margin: 9px 24px 0 0; color: var(--navy); }
.choice-field input { width: auto; accent-color: var(--purple); }
.domain-card { margin: 17px 0; padding: 20px; border: 1px solid #e0d9ee; border-radius: var(--radius); background: rgba(109, 75, 179, .045); }
.domain-card h3 { margin: 0; color: var(--navy); font-size: 1.2rem; }
.domain-card h3 i { color: var(--error); font-style: normal; }
.domain-card > .helper { margin-bottom: 14px; }
.step-row { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; margin: 9px 0; }
.step-label { color: var(--muted); font-size: .82rem; font-weight: 800; }
.remove-step,
.add-step { border: 0; background: transparent; font: inherit; font-weight: 750; cursor: pointer; }
.remove-step { padding: 8px; color: var(--error); }
.add-step { padding: 8px 0; color: var(--purple-dark); font-size: .9rem; }
.domain-error { color: var(--error); font-size: .82rem; font-weight: 700; }
.message { min-height: 1.4em; }
.message.error { color: var(--error); }
.message.success { color: var(--purple-dark); font-weight: 750; }
.save-message { margin: 21px auto 0; text-align: center; }
.text-button { border: 0; background: transparent; font: inherit; cursor: pointer; }
.draft-clear { align-self: center; margin-right: auto; padding: 10px 4px; color: var(--purple-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.action-bar {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px max(18px, calc((100% - 1040px) / 2));
  border-top: 1px solid var(--line);
  background: rgba(251, 247, 237, .95);
  backdrop-filter: blur(16px);
}
.button { min-height: 48px; padding: 0 20px; border-radius: var(--radius); font: 800 .95rem inherit; cursor: pointer; }
.button.primary { border: 1px solid var(--navy); color: #fff; background: var(--navy); box-shadow: 0 12px 26px rgba(16, 36, 63, .18); }
.button.primary:hover { background: var(--navy-2); }
.button.secondary { border: 1px solid #cbd6df; color: var(--navy); background: #fff; }
.button.secondary:hover { border-color: var(--purple); }
.button:disabled { opacity: .55; cursor: wait; }
.completion { margin-top: 30px; padding: 50px; text-align: center; }
.completion .checkmark { width: 58px; height: 58px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; color: #fff; background: var(--purple); font-size: 2rem; }
.completion .eyebrow { justify-content: center; }
.completion h2 { margin: 5px; font-size: 2rem; }
.completion .actions { justify-content: center; }
[hidden] { display: none !important; }

@media (max-width: 900px) {
  .site-header { position: relative; }
  .section-nav { justify-content: flex-start; }
}
@media(max-width:760px) {
  html { scroll-padding-top: 80px; }
  .two-col { grid-template-columns: 1fr; }
  .section-nav a { flex: 0 0 auto; font-size: 0; }
  .section-nav a b { font-size: .78rem; }
  .intro { padding-top: 36px; }
  .step-row { grid-template-columns: 50px 1fr; }
  .remove-step { grid-column: 2; justify-self: start; padding-left: 0; }
  .action-bar { flex-wrap: wrap; }
  .action-bar .button { width: auto; flex: 1; }
  .draft-clear { order: 3; width: 100%; margin: 0; }
  .completion .actions { flex-direction: column; }
}
@media (max-width: 620px) {
  .nav-links { display: grid; grid-template-columns: repeat(2, 1fr); }
  .nav-links .nav-cta { margin-left: 0; }
}
@media (max-width: 430px) {
  .form-section { padding: 23px 18px; }
  .section-title { align-items: flex-start; }
  .section-title > span { width: 36px; height: 36px; flex-basis: 36px; }
  .action-bar { gap: 8px; }
  .button { padding-inline: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.intro { position: relative; padding-right: 150px; }
.intro-wizard { position: absolute; right: 0; bottom: 5px; width: 130px; height: 130px; object-fit: contain; image-rendering: pixelated; }
.subsection-title { display: flex; align-items: center; gap: 12px; margin: 30px 0 8px; padding-top: 24px; border-top: 1px solid var(--line); }
.subsection-title img, .section-flare { object-fit: contain; image-rendering: pixelated; }
.subsection-title h3 { margin: 2px 0; }
.section-flare { margin-left: auto; width: 54px; height: 54px; }
.domain-card h4 { margin: 15px 0 0; color: var(--navy); }
.context-detail { margin: 20px 0 0; padding-top: 17px; border-top: 1px solid #e0d9ee; }
@media(max-width:760px) { .intro { padding-right: 0; } .intro-wizard { position: static; display: block; width: 90px; height: 90px; margin: 12px 0 -10px auto; } .section-flare { width: 42px; height: 42px; } }
