/* The application form.
 *
 * Four steps rather than one page. The form asks eleven things, and eleven
 * things in a column reads as a chore — the same eleven in four short steps
 * reads as a conversation, and each step can carry the one line of context
 * that makes its questions obvious.
 *
 * It also fixes a real problem: .choice is a full-width block, which is right
 * for three radio options and absurd for ten checkboxes. Pills wrap. */

.wiz-head { margin-bottom: 26px; }
.wiz-head .setup-steps { margin-bottom: 10px; }
.wiz-step {
  margin: 0;
  font: 600 .74rem/1 -apple-system, Segoe UI, Roboto, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim, #82828B);
}

.wiz-panel[hidden] { display: none; }
.wiz-panel h1 { margin-bottom: 6px; }

.wiz-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 28px;
}
.wiz-actions .grow { flex: 1; }
.wiz-actions .btn { min-width: 120px; justify-content: center; }
/* .btn sets display, which beats the browser's own [hidden] { display: none }.
   Without this the submit button is present on every step. */
.wiz-actions .btn[hidden] { display: none; }

/* Ten options, wrapping, at the size of a word rather than a row. */
.choices.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.pills .choice span {
  padding: 8px 15px;
  border-radius: 999px;
  font-size: .87rem;
  white-space: nowrap;
}

/* Three options that each need a line of explanation: side by side where there
   is room, stacked where there is not. */
@media (min-width: 560px) {
  .choices.trio { grid-template-columns: repeat(3, 1fr); }
  .choices.trio .choice span { height: 100%; }
}
.choices.trio .choice span { font-size: .88rem; line-height: 1.5; }
.choices.trio strong { display: block; margin-bottom: 3px; color: var(--fg); }

.count { font-variant-numeric: tabular-nums; }
.count.ok { color: #6FCF97; }

.auth-card textarea {
  width: 100%;
  padding: 13px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  line-height: 1.6;
  resize: vertical;
}
.auth-card textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(220, 141, 31, .18);
}

/* The argument for applying should not scroll away while you are applying —
   and the panel still has to fill its column, which align-self: start alone
   would stop it doing on a short step. */
@media (min-width: 900px) {
  .auth-aside {
    position: sticky;
    top: 0;
    align-self: stretch;
    height: 100dvh;
    overflow-y: auto;
  }
}

.places {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
  font-size: .88rem;
  color: var(--fg-dim, #82828B);
}
.places b { color: var(--fg); }

/* `.field label` is (0,1,1) and beat a bare `.agree`, which left the checkbox
   stranded above its own sentence in bold. */
.field label.agree {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin: 0;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg-mute);
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
}
.field label.agree input {
  margin: 3px 0 0;
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.field label.agree a { color: var(--accent); }

/* The short form of the side panel, for the screens that do not get it. */
.pitch {
  list-style: none;
  margin: 0 0 26px;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--surface);
  font-size: .88rem;
  line-height: 1.55;
  color: var(--fg-mute);
}
.pitch li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.pitch li:last-child { margin-bottom: 0; }
.pitch li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.pitch b { color: var(--fg); font-weight: 600; }

@media (min-width: 900px) {
  .pitch { display: none; }
}
