/* =========================================================================
   Candy Row — form pages (Host a Trunk / Volunteer / Sponsor)
   Shared layout: reassurance column (left) + `.form-panel` (right).
   Uses only tokens/classes from styles.css; no gradients, no inline style=.
   ========================================================================= */

.form-split { align-items: start; }

.form-reassure .pill { margin-bottom: 16px; }

.alert-bar {
  display: flex; align-items: center; gap: 12px;
  background: var(--orange); color: var(--ink);
  padding: 16px 22px; border-radius: var(--r-card-sm);
  margin: 24px 0 36px;
}
.alert-bar svg { flex: 0 0 auto; }
.alert-bar p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 18px; }

/* Numbered steps (Host a Trunk) and icon-led detail rows (Volunteer, Sponsor)
   share the same card shape. */
.step-list { display: flex; flex-direction: column; gap: 14px; }
.step-card {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--cream-deep); border-radius: var(--r-card-sm);
  padding: 18px 22px;
}
.step-num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--grape);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
}
.step-card h2 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin: 0 0 2px; }
.step-card p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--body-muted); }

.claimed-panel {
  margin-top: 36px; background: #FFFFFF; border: 3px dashed var(--cream-border);
  border-radius: var(--r-card); padding: 24px;
}
.claimed-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 14px;
}
.claimed-head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin: 0; }
.claimed-hint { font-size: 15px; color: var(--body-faint); }

.chip-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chip-list li {
  display: inline-flex; align-items: center; background: #F3E7F8; color: var(--grape);
  font-family: var(--font-display); font-weight: 600; font-size: 15.5px;
  padding: 6px 16px; border-radius: var(--r-pill);
}
/* main.js falls back to a plain `<li class="muted">` while stats are loading
   or empty — style it as a hint rather than a chip. */
.chip-list li.muted {
  background: transparent; color: var(--body-faint);
  font-family: var(--font-body); font-weight: 400; font-size: 15px; padding: 0;
}
/* Sponsor chips (this year's sponsors panel) carry an optional level after
   the name — muted so the business name stays the loudest thing in the chip. */
.chip-list .sponsor-level { margin-left: 4px; opacity: .7; font-weight: 500; }

/* Email/phone "one is enough" note sitting under a .field-row */
.field-row + .field-hint { margin: -10px 0 6px; }

/* Volunteer / Sponsor checkbox grid */
.field-check-group { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.field-check {
  display: flex; align-items: center; gap: 10px; min-height: 44px;
  background: var(--grape-light); border-radius: var(--r-input);
  padding: 12px 14px; color: var(--cream); font-size: 15.5px; cursor: pointer;
}
.field-check input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); flex: 0 0 20px; }

/* SMS opt-in: a single full-width check, top-aligned for its wrapped text */
.sms-optin { align-items: flex-start; font-size: 14.5px; line-height: 1.5; margin: 0 0 6px; }
.sms-optin input[type="checkbox"] { margin-top: 2px; }
.sms-optin a { color: inherit; text-decoration: underline; }

.btn-block { width: 100%; }

@media (max-width: 900px) {
  /* The form is the ask — put it first when the columns stack. */
  .form-panel { order: -1; }
}
@media (max-width: 700px) {
  .field-check-group { grid-template-columns: 1fr; }
}

/* Sign-up result. On success main.js adds .is-done to the panel: the form
   fields go away and the status line becomes the confirmation. */
.signup-form .form-status { margin-top: 12px; font-size: 16px; color: var(--cream); }
.signup-form .form-status:empty { display: none; }
.signup-form .form-status.error { color: var(--pink); font-weight: 600; }
.form-panel.is-done .lede,
.form-panel.is-done .signup-form > :not(.form-status) { display: none; }
.form-panel.is-done .form-status.success {
  margin-top: 8px; padding: 18px 20px; border-radius: var(--r-input);
  background: var(--ok-bg); color: var(--ok-fg);
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
}
