/**
 * Guided onboarding — styles.
 *
 * Deliberately NOT isolated. Subtask 1 requires the module to reuse the site's
 * existing styling and breakpoints, so typography inherits from the theme and
 * only colour, spacing and shape are set here. Every value is a custom property
 * so the palette can be retuned to the live theme in one block.
 *
 * All selectors are prefixed .pic- to avoid collisions with the theme.
 * Mobile-first: base rules are the phone layout, min-width queries widen it.
 */

.pic-onboarding {
  /*
   * Brand palette, taken from the live site rather than approximated:
   *   #E8583B — the hero CTA, rgba(232,88,59,.87) in Beaver Builder
   *   #24242B — the hero row background and body ink
   *   #4C4C4C — the theme's own secondary/hover grey
   * Typography is NOT set here: font-family inherits, which picks up the
   * theme's Plus Jakarta Sans automatically.
   */
  --pic-accent: #E8583B;
  --pic-accent-ink: #B8402A;
  --pic-accent-soft: #FDE9E4;
  --pic-accent-soft-2: #FADACF;   /* selected + hovered */
  --pic-on-accent: #FFFFFF;

  --pic-ink: #24242B;
  --pic-ink-2: #4C4C4C;
  --pic-ink-3: #6C757D;

  --pic-surface: #FFFFFF;
  --pic-surface-2: #F8F9FA;
  --pic-line: #DEE2E6;
  --pic-line-strong: #C2C8CF;

  --pic-ok: #5C7A1E;
  --pic-warn-soft: #FAE4E6;
  --pic-warn-ink: #C0303E;

  --pic-radius: 10px;
  --pic-radius-sm: 6px;
  --pic-tap: 52px;              /* minimum touch target */
  --pic-gap: 10px;
  --pic-max: 640px;

  /* Typography inherits from the theme — only scale is set. */
  font-family: inherit;
  color: var(--pic-ink);
  display: block;
  width: 100%;
  padding: 32px 16px 40px;
  background: var(--pic-surface-2);
  box-sizing: border-box;
}

.pic-onboarding *,
.pic-onboarding *::before,
.pic-onboarding *::after { box-sizing: border-box; }

/**
 * Defensive reset for theme bleed.
 *
 * The Beaver Builder theme ships a bare element selector:
 *     button:hover { background-color:#4c4c4c; color:#fff; border:1px solid #2d2d2d }
 * which matches every button in this module. Inheriting the theme's typography
 * is wanted; inheriting its interaction states is not — white-on-pale is
 * unreadable, and it silently overrode our selected state.
 *
 * Neutralised once here at (0,2,1) so it cannot win, then every component below
 * declares its own hover explicitly. Anything we forget falls back to "no
 * change on hover" rather than to the theme's grey.
 */
.pic-onboarding button:hover,
.pic-onboarding button:focus,
.pic-onboarding button:active {
  background-color: inherit;
  color: inherit;
  border-color: inherit;
  text-decoration: none;
}

.pic-mount {
  max-width: var(--pic-max);
  margin: 0 auto;
}

/* ---------- Collapsed promo (pre-CTA) ---------- */
.pic-promo { text-align: center; }

/* Scoped to (0,2,0) to beat the theme's `.fl-builder-content h2 { font-size:50px }`
   at (0,1,1). The module is injected inside .fl-builder-content, so every
   heading rule the theme writes for page content reaches it. */
.pic-onboarding .pic-promo__h {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--pic-ink);
}

.pic-promo__p {
  margin: 0 auto 22px;
  max-width: 44ch;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--pic-ink-2);
}

.pic-promo__foot {
  margin: 14px 0 0;
  font-size: 0.8125rem;
  color: var(--pic-ink-3);
}

.pic-promo__foot a { color: inherit; }

/* ---------- Flow shell ---------- */
.pic-flow {
  background: var(--pic-surface);
  border: 1px solid var(--pic-line);
  border-radius: var(--pic-radius);
  padding: 14px 14px 18px;
}

.pic-flow__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pic-back {
  flex: none;
  border: 0;
  background: none;
  padding: 8px 4px;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--pic-ink-3);
  cursor: pointer;
  min-height: 40px;
}

.pic-back:disabled { opacity: 0.35; cursor: default; }

.pic-stepno {
  flex: none;
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--pic-ink-3);
  white-space: nowrap;
}

/* ---------- Step indicator ----------
   Every step gets a marker. Orientation only — quiet enough that it never
   competes with the question on screen. */
.pic-steps {
  display: flex;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  counter-reset: none;
}

.pic-steps__item {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
  text-align: center;
}

/* Connector, drawn behind the markers. Sits between this marker and the
   previous one, so the first item has none. */
.pic-steps__item::before {
  content: "";
  position: absolute;
  top: 10px;
  right: 50%;
  left: -50%;
  height: 2px;
  background: var(--pic-line);
}

.pic-steps__item:first-child::before { display: none; }

.pic-steps__item.is-done::before,
.pic-steps__item.is-current::before { background: var(--pic-accent); }

.pic-steps__mark {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--pic-line);
  background: var(--pic-surface);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1;
  color: var(--pic-ink-3);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Hidden on phones: nine markers across 320px leaves ~32px each, nowhere near
   enough for a word. The current step's name is shown in the bar above
   instead, so nothing is lost. Labels return at 600px. */
.pic-steps__label {
  display: none;
  font-size: 0.6875rem;
  line-height: 1.2;
  color: var(--pic-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.pic-steps__item.is-done .pic-steps__mark {
  background: var(--pic-accent);
  border-color: var(--pic-accent);
  color: var(--pic-on-accent);
}

.pic-steps__item.is-current .pic-steps__mark {
  border-color: var(--pic-accent);
  color: var(--pic-accent-ink);
  /* Ring rather than fill, so current reads as distinct from completed. */
  box-shadow: 0 0 0 3px var(--pic-accent-soft);
}

.pic-steps__item.is-current .pic-steps__label {
  color: var(--pic-ink);
  font-weight: 600;
}

.pic-steps__item.is-done .pic-steps__label { color: var(--pic-ink-2); }

/* ---------- Live count ---------- */
.pic-livecount {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: var(--pic-radius-sm);
  background: var(--pic-accent-soft);
  color: var(--pic-accent-ink);
  font-size: 0.875rem;
}

.pic-livecount strong { font-size: 1.0625rem; }

/* ---------- Step content ---------- */
.pic-onboarding .pic-h {
  margin: 0 0 6px;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--pic-ink);
}

.pic-lede {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--pic-ink-2);
}

.pic-hint {
  margin: 12px 0;
  font-size: 0.8125rem;
  color: var(--pic-ink-3);
}

.pic-hint--center { text-align: center; }

/* ---------- Account and card steps (after the emailed link) ---------- */
.pic-label {
  display: block;
  margin: 16px 0 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pic-ink);
}

.pic-optional {
  font-weight: 400;
  color: var(--pic-ink-3);
}

.pic-pwrow {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.pic-pwrow .pic-field { flex: 1; min-width: 0; }

.pic-pwtoggle {
  flex: none;
  padding: 0 14px;
  border: 1px solid var(--pic-line, #d9dde3);
  border-radius: var(--pic-radius-sm);
  background: transparent;
  color: var(--pic-ink-2);
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
}

/* ---------- Use my location ----------
   Secondary by design. It is an accelerator, not the expected route — the
   state list underneath is always the reliable path. */
.pic-onboarding .pic-nearme {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0 0 14px;
  padding: 10px 16px;
  border: 1px solid var(--pic-line-strong);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface);
  font: inherit;
  font-size: 0.875rem;
  color: var(--pic-ink);
  cursor: pointer;
}

.pic-onboarding .pic-nearme:hover:not(:disabled) {
  background: var(--pic-surface-2);
  border-color: var(--pic-accent);
  color: var(--pic-ink);
}

.pic-onboarding .pic-nearme:disabled { opacity: 0.5; cursor: default; }

/* Debug readout under the button — what the browser actually reported.
   Only rendered with ?picdebug, so a real visitor never sees coordinates. */
.pic-geodetail {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px dashed var(--pic-line-strong);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface-2);
  font-size: 0.75rem;
  line-height: 1.5;
}

.pic-geodetail__h {
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.6875rem;
  color: var(--pic-ink-3);
}

.pic-geodetail__row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 3px 0;
}

.pic-geodetail__row span:first-child { color: var(--pic-ink-3); flex: none; }

.pic-geodetail__row span:last-child {
  color: var(--pic-ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

.pic-geodetail__map {
  display: inline-block;
  margin-top: 8px;
  color: var(--pic-accent-ink);
  font-size: 0.6875rem;
}

.pic-spinner--sm {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-width: 2px;
  vertical-align: -1px;
}

/* ---------- Options ---------- */
.pic-opts {
  display: flex;
  flex-direction: column;
  gap: var(--pic-gap);
  max-height: 46vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.pic-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: var(--pic-tap);
  padding: 12px 14px;
  border: 1px solid var(--pic-line);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface);
  font: inherit;
  font-size: 0.9375rem;
  color: var(--pic-ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

/* Every hover state below states colour AND background explicitly. Relying on
   inheritance is what let the theme's bare `button:hover` through. */
.pic-onboarding .pic-opt:hover:not(:disabled) {
  border-color: var(--pic-line-strong);
  background: var(--pic-surface-2);
  color: var(--pic-ink);
}

.pic-onboarding .pic-opt[aria-pressed="true"] {
  border-color: var(--pic-accent);
  background: var(--pic-accent-soft);
  color: var(--pic-ink);
}

/* Selected + hovered. Deepen the tint slightly so hover still reads as
   feedback, and keep the text at full contrast. */
.pic-onboarding .pic-opt[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--pic-accent-soft-2);
  border-color: var(--pic-accent);
  color: var(--pic-ink);
}

.pic-onboarding .pic-opt[aria-pressed="true"]:hover .pic-opt__meta,
.pic-onboarding .pic-opt:hover .pic-opt__meta { color: var(--pic-ink-3); }

.pic-opt:disabled { opacity: 0.4; cursor: not-allowed; }

.pic-opt__mark {
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid var(--pic-line-strong);
  border-radius: 50%;
  position: relative;
}

.pic-opt[aria-pressed="true"] .pic-opt__mark {
  border-color: var(--pic-accent);
  background: var(--pic-accent);
}

.pic-opt[aria-pressed="true"] .pic-opt__mark::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  width: 5px;
  height: 10px;
  border: solid var(--pic-on-accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.pic-opt__label { flex: 1 1 auto; }

.pic-opt__meta {
  flex: none;
  font-size: 0.8125rem;
  color: var(--pic-ink-3);
}

.pic-opt--check { margin-top: 14px; }
.pic-opt--check .pic-opt__mark { border-radius: var(--pic-radius-sm); }

/* ---------- Chips (days) ---------- */
.pic-chips {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.pic-chip {
  min-height: var(--pic-tap);
  padding: 8px 4px;
  border: 1px solid var(--pic-line);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface);
  font: inherit;
  font-size: 0.875rem;
  color: var(--pic-ink);
  cursor: pointer;
}

.pic-onboarding .pic-chip:hover:not(:disabled) {
  background: var(--pic-surface-2);
  border-color: var(--pic-line-strong);
  color: var(--pic-ink);
}

.pic-onboarding .pic-chip[aria-pressed="true"] {
  border-color: var(--pic-accent);
  background: var(--pic-accent-soft);
  color: var(--pic-accent-ink);
  font-weight: 600;
}

.pic-onboarding .pic-chip[aria-pressed="true"]:hover:not(:disabled) {
  background: var(--pic-accent-soft-2);
  border-color: var(--pic-accent);
  color: var(--pic-accent-ink);
}

.pic-quick {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

.pic-link {
  border: 0;
  background: none;
  padding: 8px 0;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--pic-accent-ink);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- Plan bar ---------- */
.pic-planbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--pic-radius-sm);
  background: var(--pic-ink);
  color: #FFFFFF;
  font-size: 0.875rem;
}

.pic-planbar__plan strong { color: #FFFFFF; }

/* ---------- Billing period switch (Tour only) ---------- */
.pic-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.pic-switch__label {
  min-height: var(--pic-tap);
  padding: 0 4px;
  border: 0;
  background: transparent;
  font: inherit;
  color: #6B7280;
  cursor: pointer;
}

.pic-switch__label.is-on {
  color: var(--pic-ink);
  font-weight: 600;
}

.pic-switch__track {
  position: relative;
  flex: none;
  width: 52px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--pic-line-strong);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.pic-switch__track[aria-checked="true"] { background: var(--pic-accent); }

.pic-switch__knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.pic-switch__track[aria-checked="true"] .pic-switch__knob { transform: translateX(24px); }

.pic-switch__track:focus-visible,
.pic-switch__label:focus-visible {
  outline: 2px solid var(--pic-accent-ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .pic-switch__track,
  .pic-switch__knob { transition: none; }
}

/* ---------- Fields ---------- */
.pic-field {
  display: block;
  width: 100%;
  min-height: var(--pic-tap);
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--pic-line-strong);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface);
  font: inherit;
  font-size: 1rem;          /* 16px minimum — anything less zooms on iOS */
  color: var(--pic-ink);
}

.pic-field:focus {
  outline: 2px solid var(--pic-accent);
  outline-offset: 1px;
  border-color: var(--pic-accent);
}

.pic-field--err { border-color: var(--pic-warn-ink); }

/* ---------- Buttons ---------- */
.pic-btn {
  display: block;
  width: 100%;
  min-height: var(--pic-tap);
  margin-top: 16px;
  padding: 14px 18px;
  border: 1px solid var(--pic-accent);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-accent);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  color: var(--pic-on-accent);
  cursor: pointer;
  transition: background 0.15s ease;
}

.pic-onboarding .pic-btn:hover:not(:disabled) {
  background: var(--pic-accent-ink);
  border-color: var(--pic-accent-ink);
  color: var(--pic-on-accent);
}

.pic-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Explains a disabled Continue. Sits directly above the button so the reason
   and the blocked control read as one thing. Deliberately quiet rather than an
   error colour — nothing has gone wrong, the step just is not finished yet. */
.pic-require {
  margin: 16px 0 -6px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--pic-ink-3);
  text-align: center;
}

.pic-btn--ghost {
  background: transparent;
  border-color: var(--pic-line-strong);
  color: var(--pic-ink);
}

.pic-onboarding .pic-btn--ghost:hover:not(:disabled) {
  background: var(--pic-surface-2);
  border-color: var(--pic-line-strong);
  color: var(--pic-ink);
}

.pic-onboarding .pic-back:hover:not(:disabled) {
  background: transparent;
  color: var(--pic-ink);
}

.pic-onboarding .pic-link:hover {
  background: transparent;
  color: var(--pic-accent-ink);
  text-decoration: underline;
}

/* ---------- Notes ---------- */
.pic-note {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface-2);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pic-ink-2);
}

.pic-note--warn {
  background: var(--pic-warn-soft);
  color: var(--pic-warn-ink);
}

/* The icon and the text share one line height, so a single-line message sits
   centred on its icon. A .pic-link inside a note (e.g. "Try again") must not add
   its own 8px of vertical padding, which made the line taller and pushed the
   text below the icon. */
.pic-note > span:first-child {
  flex: 0 0 auto;
  line-height: 1.5;
}

.pic-note .pic-link {
  display: inline;
  padding: 0;
  line-height: inherit;
  vertical-align: baseline;
}

/* .pic-note sets display:flex, which outranks the UA rule for [hidden] — so
   the field message would stay on screen with its text emptied out. */
.pic-note[hidden] {
  display: none;
}

/* ---------- Plan comparison (course step) ---------- */
.pic-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--pic-gap);
  margin: 18px 0 14px;
}

.pic-tier {
  position: relative;
  padding: 10px 12px;
  border: 1.5px solid var(--pic-line);
  border-radius: var(--pic-radius);
  background: var(--pic-surface);
}

.pic-tier.is-current {
  border-color: var(--pic-accent);
  background: var(--pic-accent-soft);
}

.pic-tier__badge {
  position: absolute;
  top: -9px;
  right: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--pic-accent);
  color: var(--pic-on-accent);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
}

.pic-tier__name { font-weight: 700; color: var(--pic-ink); }
.pic-tier__price { font-size: 0.8125rem; color: var(--pic-ink-3); }

.pic-tier__list {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.78rem;
  color: var(--pic-ink-2);
}

.pic-tier__list li { position: relative; margin: 2px 0; padding-left: 16px; }
.pic-tier__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--pic-ok);
  font-weight: 700;
}

/* "Remove" cue on a selected row when two or more are chosen. */
.pic-opt__remove {
  flex: 0 0 auto;
  margin-left: 10px;
  font-size: 0.78rem;
  color: var(--pic-accent-ink);
  text-decoration: underline;
}

/* ---------- Way back to Local ---------- */
.pic-tolocal {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1.5px dashed var(--pic-accent);
  border-radius: var(--pic-radius);
  background: var(--pic-surface);
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--pic-ink-2);
}

.pic-tolocal p { margin: 0; }
.pic-tolocal strong { color: var(--pic-accent-ink); }

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

.pic-tolocal__btn {
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1.5px solid var(--pic-accent);
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface);
  color: var(--pic-accent-ink);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pic-tolocal__btn:hover { background: var(--pic-accent-soft); }

@media (max-width: 420px) {
  .pic-tiers { grid-template-columns: 1fr; }
}

/* ---------- Count reveal ---------- */
.pic-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 20px 0 8px;
  text-align: center;
}

.pic-reveal__n {
  font-size: 3.75rem;
  line-height: 1;
  font-weight: 700;
  color: var(--pic-accent);
  font-variant-numeric: tabular-nums;
}

.pic-reveal__cap {
  font-size: 0.9375rem;
  color: var(--pic-ink-2);
  max-width: 22ch;
}

.pic-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 18px 0 0;
  padding: 14px;
  border-radius: var(--pic-radius-sm);
  background: var(--pic-surface-2);
  font-size: 0.875rem;
}

.pic-summary dt { color: var(--pic-ink-3); }
.pic-summary dd { margin: 0; color: var(--pic-ink); }

/* ---------- States ---------- */
.pic-empty {
  padding: 18px 0;
  font-size: 0.9375rem;
  color: var(--pic-ink-3);
  text-align: center;
}

.pic-empty--lg { padding: 28px 0 8px; }

.pic-done {
  text-align: center;
  padding: 12px 0 4px;
}

.pic-done__glyph {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.pic-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 48px 0;
  color: var(--pic-ink-3);
  font-size: 0.9375rem;
}

.pic-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--pic-line);
  border-top-color: var(--pic-accent);
  border-radius: 50%;
  animation: pic-spin 0.7s linear infinite;
}

@keyframes pic-spin { to { transform: rotate(360deg); } }

/* Spinner inside the Continue button while its request is out. Stays at full
   strength (a plain :disabled button fades to 0.45, which reads as "unavailable"
   rather than "working"). */
.pic-btn[aria-busy="true"] {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  opacity: 1;
  cursor: progress;
}

.pic-spinner--btn {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.4);
  border-top-color: var(--pic-on-accent);
}

/* The step is inert while its request runs; dim it a little so that is visible. */
.pic-step[inert] { opacity: 0.6; }

.pic-noscript {
  max-width: var(--pic-max);
  margin: 0 auto;
  text-align: center;
}

/* ---------- Wider viewports ---------- */
@media (min-width: 600px) {
  .pic-onboarding { padding: 48px 24px 56px; }
  .pic-flow { padding: 22px 24px 26px; }
  .pic-onboarding .pic-promo__h { font-size: 1.875rem; }
  .pic-onboarding .pic-h { font-size: 1.5rem; }
  .pic-chips--days { grid-template-columns: repeat(7, 1fr); }

  /* Room for labels now. Once every marker is named, repeating the current
     step's name in the bar above is redundant — drop just that part. */
  .pic-steps { margin-bottom: 26px; }
  .pic-steps__mark { width: 26px; height: 26px; font-size: 0.75rem; }
  .pic-steps__item::before { top: 12px; }
  .pic-steps__label { display: block; font-size: 0.6875rem; }
  .pic-steps__item { gap: 5px; }
  .pic-stepno__name { display: none; }
  .pic-reveal__n { font-size: 4.5rem; }

  .pic-btn--cta {
    width: auto;
    min-width: 260px;
    margin-left: auto;
    margin-right: auto;
  }

  .pic-promo .pic-btn--cta { display: inline-block; }
}

@media (min-width: 900px) {
  .pic-onboarding { --pic-max: 720px; }
  .pic-opts { max-height: 380px; }
}

@media (prefers-reduced-motion: reduce) {
  .pic-steps__mark,
  .pic-btn,
  .pic-opt { transition: none; }
  .pic-spinner { animation-duration: 2s; }
}

/* ---------- Theme hover override ----------
   Beaver Builder ships
     .fl-page .fl-builder-content .fl-module-content:not(:has(.fl-inline-editor))
       button:not(.fl-content-ui-button):hover { background-color: transparent }
   at (0,6,1). Every hover rule above is at most (0,4,0), so on hover a button lost
   its fill — Continue went white-on-white. Specificity cannot be raised cheaply
   against that selector, so each hover background is pinned with !important.
   Only background-color: text and border already win. */
.pic-onboarding .pic-btn:hover:not(:disabled),
.pic-onboarding .pic-btn:focus:not(:disabled) { background-color: var(--pic-accent-ink) !important; }

.pic-onboarding .pic-btn--ghost { background-color: transparent !important; }
.pic-onboarding .pic-btn--ghost:hover:not(:disabled),
.pic-onboarding .pic-btn--ghost:focus:not(:disabled) { background-color: var(--pic-surface-2) !important; }

.pic-onboarding .pic-nearme:hover:not(:disabled),
.pic-onboarding .pic-opt:hover:not(:disabled),
.pic-onboarding .pic-chip:hover:not(:disabled) { background-color: var(--pic-surface-2) !important; }

.pic-onboarding .pic-opt[aria-pressed="true"],
.pic-onboarding .pic-chip[aria-pressed="true"] { background-color: var(--pic-accent-soft) !important; }

.pic-onboarding .pic-opt[aria-pressed="true"]:hover:not(:disabled),
.pic-onboarding .pic-chip[aria-pressed="true"]:hover:not(:disabled) { background-color: var(--pic-accent-soft-2) !important; }

.pic-onboarding .pic-tolocal__btn { background-color: var(--pic-surface) !important; }
.pic-onboarding .pic-tolocal__btn:hover { background-color: var(--pic-accent-soft) !important; }

/* Disabled buttons under the pointer. The hover pins above skip :disabled so a
   disabled button does not look pressable, but that left it to the theme: its
   transparent hover fill plus the reset's `color: inherit` gave black text on
   nothing — most visible on Continue while its request is running, with the
   pointer still resting on it. Keep the resting look, whatever the pointer does. */
.pic-onboarding .pic-btn:disabled,
.pic-onboarding .pic-btn:disabled:hover,
.pic-onboarding .pic-btn:disabled:focus {
  background-color: var(--pic-accent) !important;
  border-color: var(--pic-accent) !important;
  color: var(--pic-on-accent) !important;
}

.pic-onboarding .pic-btn--ghost:disabled,
.pic-onboarding .pic-btn--ghost:disabled:hover,
.pic-onboarding .pic-btn--ghost:disabled:focus {
  background-color: transparent !important;
  border-color: var(--pic-line-strong) !important;
  color: var(--pic-ink) !important;
}
