/* The sign-up form (ADR-0056). It wears the public website's own stylesheet (site/site.css, from
   website/public/assets): this file adds only the form and its page, on the same design system. */

.signup-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 64px 28px 88px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: start;
}

.signup-pitch h1 {
  font: 800 clamp(40px, 5.2vw, 62px)/0.98 var(--display);
  letter-spacing: -0.005em;
}

.signup-pitch .lede { margin: 20px 0 30px; font-size: 19px; }

.signup-pitch > p:not(.scrawl):not(.lede) { margin: 0 0 12px; color: var(--muted); }

.signup-done { grid-template-columns: minmax(0, 1fr); min-height: 56vh; }
.signup-done .signup-pitch { max-width: 44em; }

/* The prices, on a card. */
.price-card {
  padding: 28px 30px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
}
.price-card h2,
.next-title,
.pad h2 { font: 800 26px/1.05 var(--display); }
.price-card p { margin: 10px 0 0; font-size: 16.5px; }

.next-title { margin-top: 44px; }
.next { margin: 14px 0 0; padding-left: 1.3em; }
.next li { padding: 4px 0; }

/* The order pad. */
.pad {
  padding: 34px 34px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

/* What to fix, above everything, each linked to its box. */
.problems {
  grid-column: 1 / -1;
  padding: 22px 26px 20px;
  border: 1px solid var(--red);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  background: #fdf4f3;
}
.problems h2 {
  color: var(--red);
  font: 800 24px/1.05 var(--display);
}
.problems p { margin: 10px 0 0; }
.problems ul { margin: 8px 0 0; padding-left: 1.2em; }
.problems li { padding: 3px 0; }
.problems a { color: var(--red-deep); font-weight: 700; text-underline-offset: 4px; }

.field {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field label,
.field legend {
  display: block;
  padding: 0;
  font-weight: 700;
}

.opt { color: var(--muted); font-weight: 400; }

.hint { margin: 3px 0 0; color: var(--muted); font-size: 15px; }

.field input:not([type="radio"]),
.field select,
.field textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  min-height: 50px;
  padding: 10px 13px;
  border: 1px solid #b9c2c9;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 17px/1.4 var(--text);
}
.field input[type="number"] { max-width: 9em; }
.field textarea { min-height: 8em; resize: vertical; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--ink);
  outline-offset: 1px;
  border-color: var(--ink);
}

.bad input:not([type="radio"]),
.bad select,
.bad textarea { border-color: var(--red); border-width: 2px; }
.err { margin: 6px 0 0; color: var(--red-deep); font-weight: 700; }

.opts { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 10px; }

.field .opt-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 16px 0 12px;
  border: 1px solid #b9c2c9;
  border-radius: 8px;
  background: #fff;
  font-weight: 400;
  cursor: pointer;
}
.opt-pill input { width: 20px; height: 20px; margin: 0; accent-color: var(--red); }
.opt-pill:has(input:checked) { background: var(--mustard); border-color: var(--mustard); }
.opt-pill:has(input:focus-visible) { outline: 2px solid var(--ink); outline-offset: 2px; }

.pad .btn { margin-top: 28px; border: 0; cursor: pointer; }

.pad-small { margin: 14px 0 0; color: var(--muted); font-size: 15px; }

/* The box only a robot fills in: off the page, never seen or tabbed to. */
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Where the window is tall enough for all of them, the prices stay in view beside the form as it scrolls. */
@media (min-width: 981px) and (min-height: 940px) {
  .signup-pitch { position: sticky; top: 32px; }
}

@media (max-width: 980px) {
  .signup-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; padding-top: 48px; }
}

@media (max-width: 640px) {
  .signup-inner { padding: 40px 18px 56px; }
  .price-card { padding: 22px 18px 20px; }
  .pad { padding: 26px 18px 24px; }
}

.price-table { width: 100%; margin: 16px 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table th, .price-table td { padding: 8px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { font-size: .85em; opacity: .75; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
