.form-page {
  min-height: 100svh;
  padding: 118px 0 80px;
  position: relative;
  isolation: isolate;
  overflow-x: clip; /* contains the glow without breaking the sticky aside */
}
.form-page::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  z-index: -1;
  width: 70vmax;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 196, 60, 0.18), rgba(255, 196, 60, 0));
  pointer-events: none;
}
.form-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
}
.form-wrap > * {
  min-width: 0;
}
.form-aside {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-aside .display {
  font-size: clamp(48px, 7vw, 108px);
}
.aside-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.aside-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aside-list .ic {
  color: var(--sun);
}
@media (max-width: 900px) {
  .form-page {
    padding-top: 100px;
  }
  .form-wrap {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .form-aside {
    position: static;
    gap: 12px;
  }
  .form-aside .lead {
    font-size: 16px;
  }
  .aside-list {
    display: none;
  }
}

.form-card {
  position: relative;
  background: var(--night-2);
  box-shadow: 0 0 0 2px var(--line), 0 40px 90px -30px rgba(0, 0, 0, 0.6);
  padding: clamp(22px, 4vw, 44px);
}
.noscript {
  margin: 0 0 18px;
  padding: 14px 16px;
  background: rgba(211, 47, 47, 0.18);
  box-shadow: inset 0 0 0 2px var(--red);
}
.noscript a {
  color: var(--sun);
  font-weight: 700;
}
.progress {
  height: 6px;
  background: var(--line);
  margin-bottom: 14px;
}
.progress-bar {
  height: 100%;
  width: 14%;
  background: var(--sun);
  transition: width 0.5s var(--ease);
}
.step-count {
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  display: none;
}
.step.is-active {
  display: block;
}
.q {
  padding: 0;
  margin: 0 0 22px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}
.hint {
  color: var(--muted);
  font-size: 16px;
  margin: -8px 0 18px;
}
.field + .hint {
  margin: 12px 0 0;
}

.choices {
  display: grid;
  gap: 12px;
}
.choices.two {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 520px) {
  .choices.two {
    grid-template-columns: 1fr;
  }
}
.choice {
  position: relative;
  cursor: pointer;
}
.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.choice > span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 22px 20px;
  box-shadow: inset 0 0 0 2px var(--line);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.choice.row > span {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
}
.choice.row small {
  margin-left: auto;
  margin-right: 26px;
  font-variant-numeric: tabular-nums;
}
.choice b {
  font-weight: 900;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.choice small {
  color: var(--muted);
  font-size: 15px;
}
.choice .ic {
  color: var(--sun);
}
.ic.big {
  width: 44px;
  height: 44px;
}
.choice:hover > span {
  box-shadow: inset 0 0 0 2px rgba(244, 241, 232, 0.5);
}
.choice input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.choice input:checked + span {
  box-shadow: inset 0 0 0 3px var(--sun);
  background: rgba(255, 215, 0, 0.08);
}
.choice input:checked + span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--sun);
}
.choices.two .choice input:checked + span::after {
  top: 18px;
  margin-top: 0;
}

.field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.field-label {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 0;
  border-radius: 0;
  background: var(--night);
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 19px;
}
.field input::placeholder {
  color: rgba(244, 241, 232, 0.55);
  font-weight: 500;
}
.field input:focus {
  outline: none;
  box-shadow: inset 0 0 0 3px var(--sun);
}
.field input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 3px #ff6b6b;
}
.input-unit {
  position: relative;
  display: block;
}
.input-unit em {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-style: normal;
  color: var(--muted);
  pointer-events: none;
}
.input-unit input {
  padding-right: 120px;
}
/* number inputs: no spinners, they fight the unit label */
.input-unit input::-webkit-outer-spin-button,
.input-unit input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.input-unit input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.chip {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 2px var(--line);
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.chip:hover {
  box-shadow: inset 0 0 0 2px rgba(244, 241, 232, 0.5);
}
.chip.is-on {
  box-shadow: inset 0 0 0 3px var(--sun);
  color: var(--sun);
  background: rgba(255, 215, 0, 0.08);
}

/* checkboxes drawn from the palette */
.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}
.check input {
  flex: none;
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  margin: 0;
  background: var(--night);
  box-shadow: inset 0 0 0 2px rgba(244, 241, 232, 0.5);
  display: grid;
  place-items: center;
  cursor: pointer;
}
.check input::after {
  content: "";
  width: 12px;
  height: 7px;
  border-left: 3px solid var(--night);
  border-bottom: 3px solid var(--night);
  transform: translateY(-2px) rotate(-45deg) scale(0);
  transition: transform 0.15s var(--ease);
}
.check input:checked {
  background: var(--sun);
  box-shadow: none;
}
.check input:checked::after {
  transform: translateY(-2px) rotate(-45deg) scale(1);
}
.check input:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}
.check input[aria-invalid="true"] {
  box-shadow: inset 0 0 0 3px #ff6b6b;
}
.check a {
  color: var(--sun);
}
.err {
  min-height: 1.4em;
  margin: 14px 0 0;
  color: #ff8a80;
  font-weight: 700;
  font-size: 15px;
}
.err:focus {
  outline: none;
}
.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 18px;
  margin: 0 0 6px;
  padding: 18px;
  box-shadow: inset 0 0 0 2px var(--line);
}
.summary dt {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 4px;
}
.summary dd {
  margin: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 26px;
}
.nav #next,
.nav #send {
  margin-left: auto;
}
.nav .btn.is-loading {
  opacity: 0.8;
}
.call-line {
  margin: 22px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}
.call-line a {
  color: var(--paper);
  font-weight: 700;
  white-space: nowrap;
}
@media (max-width: 520px) {
  .nav .btn {
    padding: 0 16px;
    font-size: 15px;
  }
}
.done {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}
.done:focus {
  outline: none;
}
.done .display {
  font-size: clamp(56px, 7vw, 96px);
}
.done-alt {
  margin: 0;
  color: var(--muted);
}
.ic.huge {
  width: 72px;
  height: 72px;
  color: var(--sun);
}
