/* Customer booking flow — wizard styles. Builds on ffg.css design tokens. */

/* "When" card — drop-off + ready-by times in a rounded panel with a
   rotating conic-gradient border. Same pattern as the RacketCoach
   pricing card. Card is solid white inside; the spin lives on the
   ::before pseudo so it can be reduced-motion-safe. */
.when-card {
  position: relative;
  isolation: isolate;
  max-width: 720px;
  margin: 1.25rem auto 1.5rem;
  border-radius: 18px;
  overflow: hidden;
}
.when-card::before {
  content: "";
  position: absolute; inset: -2px; z-index: -1;
  /* Brand-only palette — deep navy → bright sky blue → deep navy.
   * Annie didn't want any yellow on the site, so the old yellow stop is gone. */
  background: conic-gradient(
    from 0deg,
    rgba(13, 24, 111, 0.0)  0%,
    rgba(13, 24, 111, 0.75) 25%,
    rgba(56, 130, 245, 0.85) 50%,
    rgba(13, 24, 111, 0.75) 75%,
    rgba(13, 24, 111, 0.0)  100%
  );
  border-radius: 20px;
  animation: ffg-spin 8s linear infinite;
}
.when-card::after {
  content: "";
  position: absolute; inset: 2px; z-index: -1;
  background: #fff;
  border-radius: 16px;
}
@keyframes ffg-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .when-card::before { animation: none; }
}
.when-card-inner {
  padding: 1.5rem 1.75rem;
  text-align: center;
}
.when-card-date {
  font-size: var(--fs-sm);
  color: var(--ffg-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: .75rem;
}
.when-card-times {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: var(--fs-lg);
}
.when-card-times strong { font-size: clamp(1.4rem, 3vw, 1.9rem); color: var(--ffg-blue); }
.when-card-divider {
  font-size: 1.5rem;
  color: var(--ffg-muted);
  font-weight: 300;
}
.when-card-caveat {
  margin-top: 1rem;
  font-size: var(--fs-sm);
  color: var(--ffg-muted);
  font-style: italic;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 540px) {
  .when-card-times { flex-direction: column; gap: .75rem; }
  .when-card-divider { transform: rotate(90deg); }
}

/* Booking flow: condensed pass for tablet + phone widths. */
@media (max-width: 720px) {
  .wizard { padding-inline: .75rem; }
  .wizard-panel { padding: 1rem 1.1rem; }
  .pick-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
  .pick-card.pick-card-vgm { padding: .85rem .85rem .75rem 3.6rem; }
  .pick-card.pick-card-vgm .pick-icon { width: 34px; height: 34px; top: .85rem; left: .85rem; }
  .date-cell { padding: .5rem .2rem; }
  .date-cell .dom { font-size: var(--fs-md); }
  .trading-summary { padding: .65rem .8rem; }
}
@media (max-width: 480px) {
  .pick-grid { grid-template-columns: 1fr; }
  .pick-card.pick-card-vgm .pick-foot { flex-direction: column; align-items: flex-start; gap: .35rem; }
  .pick-card.pick-card-vgm .pick-add-btn { width: 100%; justify-content: center; }
}


/* Stepper */
.wizard {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.wizard-steps {
  display: flex;
  gap: 0;
  justify-content: space-between;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  counter-reset: step;
  position: relative;
}
.wizard-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--ffg-edge);
  z-index: 0;
}
.wizard-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  font-size: var(--fs-sm);
  color: var(--ffg-muted);
  position: relative;
  z-index: 1;
}
.wizard-step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--ffg-edge);
  color: var(--ffg-muted);
  font-weight: 700;
  font-size: var(--fs-sm);
}
.wizard-step.is-current::before {
  background: var(--ffg-blue);
  border-color: var(--ffg-blue);
  color: #fff;
}
.wizard-step.is-done::before {
  background: var(--ffg-blue);
  border-color: var(--ffg-blue);
  color: #fff;
  content: '\2713';
  counter-increment: step;
}
.wizard-step.is-current,
.wizard-step.is-done { color: var(--ffg-blue); font-weight: 500; }

@media (max-width: 600px) {
  .wizard-step span { display: none; }   /* hide labels, just keep the number on mobile */
}

/* Card containers (wizard panels) */
.wizard-panel {
  background: #fff;
  border: 1px solid var(--ffg-edge);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.06);
}
.wizard-panel h2 { color: var(--ffg-blue); font-weight: 700; font-size: var(--fs-2xl); margin-top: 0; }
.wizard-panel p.muted { color: var(--ffg-muted); }

.wizard-actions {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-top: 2rem;
}
.wizard-actions .running-total { font-weight: 700; color: var(--ffg-blue); font-size: var(--fs-lg); }
.wizard-actions .running-total small { color: var(--ffg-muted); font-weight: 400; font-size: var(--fs-sm); margin-left: .5rem; }

/* Logged-in-customer vehicle picker (step 1) */
.account-veh-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border: 2px solid var(--ffg-edge);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s ease, box-shadow .12s ease, transform .08s ease;
  font: inherit;
  color: inherit;
}
.account-veh-btn:hover {
  border-color: var(--ffg-blue);
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}
.account-veh-btn .reg-mini {
  background: #fcb900;
  border: 2px solid #000;
  border-radius: 4px;
  padding: 4px 10px;
  font-weight: 700;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 1rem;
  letter-spacing: 1px;
  flex: 0 0 auto;
}

/* Reg-plate input — distinctive UK yellow */
.reg-input {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 1rem auto 0;
  padding: 1rem 1.25rem;
  background: #fcb900;          /* UK rear plate yellow */
  border: 3px solid #000;
  border-radius: 8px;
  color: #000;
  font-family: 'Charles Wright', 'Arial Black', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  letter-spacing: 4px;
  text-align: center;
  text-transform: uppercase;
}
.reg-input:focus { outline: 3px solid var(--ffg-blue); outline-offset: 2px; }

/* Pickable cards (services / extras) */
.pick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.pick-card {
  position: relative;
  display: block;
  background: #fff;
  border: 2px solid var(--ffg-edge);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.25rem 3.25rem;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pick-card:hover { border-color: var(--ffg-blue); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.06); }
.pick-card input[type="checkbox"],
.pick-card input[type="radio"] {
  position: absolute;
  top: 1.5rem; left: 1.25rem;
  width: 22px; height: 22px;
  accent-color: var(--ffg-blue);
  cursor: pointer;
}
.pick-card:has(input:checked) {
  border-color: var(--ffg-blue);
  background: linear-gradient(0deg, rgba(18,34,157,.04), rgba(18,34,157,.04)), #fff;
}
.pick-card .pick-title { font-weight: 700; color: var(--ffg-blue); font-size: var(--fs-lg); margin: 0 0 .25rem; }
.pick-card .pick-desc  { color: var(--ffg-muted); font-size: var(--fs-sm); margin: 0 0 .5rem; }
.pick-card .pick-price { font-weight: 700; color: var(--ffg-body); font-size: var(--fs-lg); }
.pick-card .pick-price small { color: var(--ffg-muted); font-weight: 400; }

/* ===== VGM-style pick-card (Annie's brief) ==================================
 * Condensed card with an icon tile in the top-left where the checkbox used
 * to live, and a clear "+ Add" / "✓ Added" pill at the bottom-right. The
 * underlying checkbox is still there for keyboard/screen-reader users —
 * it's just visually hidden because the icon + button carry the affordance.
 * ========================================================================== */
.pick-card.pick-card-vgm {
  padding: 1rem 1rem 0.85rem 4.25rem;
  /* Drop shadow that lifts the card off the page — VGM-like. */
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06),
              0 4px 12px rgba(15, 23, 42, .08);
  border-color: #e5e7eb;
}
.pick-card.pick-card-vgm:hover {
  box-shadow: 0 4px 8px rgba(15, 23, 42, .08),
              0 12px 28px rgba(18, 34, 157, .12);
  transform: translateY(-2px);
}
/* Hide the actual checkbox visually (still focusable). */
.pick-card.pick-card-vgm > input[type="checkbox"],
.pick-card.pick-card-vgm > input[type="radio"] {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
  /* When focused via keyboard the icon tile takes the focus ring instead. */
}
.pick-card.pick-card-vgm > input[type="checkbox"]:focus-visible + .pick-icon,
.pick-card.pick-card-vgm > input[type="radio"]:focus-visible + .pick-icon {
  outline: 3px solid rgba(56, 130, 245, .55);
  outline-offset: 2px;
}
.pick-card.pick-card-vgm .pick-icon {
  position: absolute;
  top: 1rem; left: 1rem;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: linear-gradient(180deg, #152dc7 0%, var(--ffg-blue) 60%, var(--ffg-blue-dark) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18),
              0 2px 6px rgba(13, 24, 111, .25);
}
.pick-card.pick-card-vgm .pick-icon svg { width: 22px; height: 22px; }
.pick-card.pick-card-vgm .pick-title { font-size: var(--fs-md); margin: 0 0 .2rem; line-height: 1.25; }
.pick-card.pick-card-vgm .pick-desc  { font-size: .82rem; line-height: 1.35; margin: 0 0 .6rem; }
.pick-card.pick-card-vgm .pick-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: .6rem;
  margin-top: auto;
  padding-top: .35rem;
  border-top: 1px solid var(--ffg-edge);
}
.pick-card.pick-card-vgm .pick-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ffg-body);
}
.pick-card.pick-card-vgm .pick-price small { font-size: .75rem; color: var(--ffg-muted); font-weight: 500; }
.pick-card.pick-card-vgm .pick-add-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 78px;
  padding: 5px 12px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  background: linear-gradient(180deg, #152dc7 0%, var(--ffg-blue) 60%, var(--ffg-blue-dark) 100%);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
              0 2px 6px rgba(13, 24, 111, .2);
  transition: filter .12s ease;
}
.pick-card.pick-card-vgm .pick-add-checked { display: none; }
.pick-card.pick-card-vgm:hover .pick-add-btn { filter: brightness(1.05); }
/* Checked state: icon tile lights up, Add → Added */
.pick-card.pick-card-vgm:has(input:checked) {
  border-color: var(--ffg-blue);
}
.pick-card.pick-card-vgm:has(input:checked) .pick-icon {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18),
              0 0 0 3px rgba(56, 130, 245, .35),
              0 2px 6px rgba(13, 24, 111, .25);
}
.pick-card.pick-card-vgm:has(input:checked) .pick-add-default { display: none; }
.pick-card.pick-card-vgm:has(input:checked) .pick-add-checked { display: inline-flex; }
.pick-card.pick-card-vgm:has(input:checked) .pick-add-btn {
  background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22),
              0 2px 6px rgba(21, 128, 61, .25);
}

/* Combo card override: keep the fancy spinning border (set elsewhere) but
 * adopt the VGM compact padding + footer treatment. */
.pick-card.combo-card.pick-card-vgm { padding: 1rem 1rem 0.85rem 4.25rem; }

/* Combo cards — same pulsing-border treatment as .when-card on the
 * booking-details page. The conic-gradient ::before is clipped by the
 * parent's overflow:hidden so only the perimeter shows as a rotating
 * brand-blue glow; the ::after re-paints the card surface on top. */
.combo-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;            /* clips the spinning ::before to the card */
  border: none !important;
  background: linear-gradient(180deg, #e8edff 0%, #f5f7ff 70%, #ffffff 100%);
}
.combo-card::before {
  content: "";
  position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(10, 21, 119, 0.0)   0%,
    rgba(10, 21, 119, 0.75) 25%,
    rgba(56, 130, 245, 0.85) 50%,
    rgba(10, 21, 119, 0.75) 75%,
    rgba(10, 21, 119, 0.0)  100%
  );
  border-radius: calc(var(--radius) + 2px);
  animation: ffg-spin 12s linear infinite;
}
.combo-card::after {
  content: "";
  position: absolute; inset: 2px; z-index: -1;
  background: linear-gradient(180deg, #e8edff 0%, #f5f7ff 70%, #ffffff 100%);
  border-radius: calc(var(--radius) - 2px);
}
@media (prefers-reduced-motion: reduce) {
  .combo-card::before { animation: none; }
}
.combo-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(14, 30, 160, 0.18); }
.combo-card:has(input:checked) { box-shadow: 0 0 0 3px rgba(56, 130, 245, .35); }
/* "Save £X" chip — navy version of the original amber chip. */
.combo-save {
  display: inline-block;
  background: var(--ffg-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: .5rem;
  vertical-align: middle;
}

.pick-section + .pick-section { margin-top: 2rem; }
.pick-section-title { color: var(--ffg-blue); margin: 0 0 .75rem; font-size: var(--fs-lg); font-weight: 700; }

/* Trading-hours summary header (above the calendar) */
.trading-summary {
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  border: 1px solid #dfe5ff;
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin: 0 0 1.5rem;
  box-shadow: 0 2px 8px rgba(18, 34, 157, .06);
}
.trading-summary-title {
  margin: 0 0 .5rem;
  color: var(--ffg-blue);
  font-size: var(--fs-md);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trading-summary-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: .3rem .75rem;
}
.trading-summary-list li {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .5rem;
  padding: .2rem 0;
  font-size: var(--fs-sm);
  border-bottom: 1px dashed rgba(18, 34, 157, .08);
}
.trading-summary-list li:last-child,
.trading-summary-list li:nth-last-child(2),
.trading-summary-list li:nth-last-child(3) { border-bottom: 0; }
.trading-summary-list .ts-day { font-weight: 600; color: var(--ffg-blue-dark); }
.trading-summary-list .ts-hours { color: var(--ffg-body); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .85rem; }
.trading-summary-list li.is-closed .ts-hours { color: var(--ffg-muted); font-style: italic; font-family: inherit; }

/* Calendar prev/next nav. Steps the visible window ±28 days so any
   future date is reachable. */
.date-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin: 1rem 0 .5rem;
  flex-wrap: wrap;
}
.date-nav .btn { white-space: nowrap; }
.date-nav .is-disabled {
  opacity: .45;
  pointer-events: none;
  cursor: not-allowed;
}
.date-nav-range {
  font-weight: 600;
  color: var(--ffg-blue-dark);
  text-align: center;
  flex: 1 1 auto;
}
.date-nav-range .small {
  font-weight: 500;
  font-size: .85em;
  margin-left: .25rem;
}

/* Calendar — weekly rows starting Monday, ending on the last open day */
.date-grid-head {
  display: grid;
  grid-template-columns: repeat(6, 1fr);   /* default 6-day grid; PHP sets columns inline per week */
  gap: .5rem;
  margin: 1rem 0 .35rem;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ffg-muted);
  font-weight: 600;
  text-align: center;
}
.date-grid-week {
  display: grid;
  gap: .5rem;
  margin-bottom: .5rem;
}
.date-cell {
  display: flex;
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: .65rem .25rem;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  border: 2px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: var(--fs-sm);
  color: var(--ffg-body);
  font-family: inherit;
  transition: border-color .15s ease, background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.date-cell:hover:not(:disabled) {
  border-color: var(--ffg-blue);
  box-shadow: 0 2px 8px rgba(18, 34, 157, .12);
  transform: translateY(-1px);
}
.date-cell.is-current   { background: var(--ffg-blue); color: #fff; border-color: var(--ffg-blue); }
.date-cell.is-disabled,
.date-cell:disabled     { opacity: .35; cursor: not-allowed; pointer-events: none; }
.date-cell.is-pad       { background: transparent; border: 2px dashed transparent; cursor: default; box-shadow: none; }
.date-cell .dom  { display: block; font-weight: 700; font-size: var(--fs-lg); }
.date-cell .mon  { display: block; font-size: var(--fs-xs); opacity: .8; }

/* ==== Customer-facing centred modal (drop-off time picker) =============== */
.ffg-modal[hidden] { display: none; }
.ffg-modal {
  position: fixed; inset: 0;
  z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.ffg-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 24, 111, .45);
  backdrop-filter: blur(3px);
}
.ffg-modal-panel {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
  border-radius: 18px;
  padding: 1.5rem 1.5rem 1.25rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 12px 32px rgba(13, 24, 111, .25),
              0 24px 56px rgba(13, 24, 111, .15);
  isolation: isolate;
}
.ffg-modal-close {
  position: absolute; top: .5rem; right: .65rem;
  width: 36px; height: 36px;
  border: 0; background: transparent;
  font-size: 1.6rem; line-height: 1;
  color: var(--ffg-muted);
  cursor: pointer;
}
.ffg-modal-close:hover { color: var(--ffg-blue); }
.ffg-modal-title {
  margin: 0 0 .3rem; color: var(--ffg-blue); font-size: var(--fs-lg);
}
.ffg-modal-empty { color: var(--ffg-muted); font-style: italic; margin-top: 1rem; }
.ffg-modal .slot-grid { margin-top: .75rem; }

/* Add-to-calendar button row on the booking-confirmed page */
.add-to-cal { text-align: center; }
.add-to-cal-row {
  display: flex; flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.cal-btn {
  display: inline-flex; align-items: center; gap: .4rem;
}
.cal-btn svg { width: 18px; height: 18px; }

/* Slot grid */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .5rem;
  margin-top: 1rem;
}
.slot-cell {
  text-align: center;
  padding: .65rem .25rem;
  background: #fff;
  border: 2px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 700;
  color: var(--ffg-body);
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.slot-cell:hover         { border-color: var(--ffg-blue); }
.slot-cell.is-current    { background: var(--ffg-blue); color: #fff; border-color: var(--ffg-blue); }
.slot-empty              { color: var(--ffg-muted); padding: 2rem; text-align: center; font-style: italic; }

/* Summary block */
.summary {
  background: var(--ffg-card-bg);
  border: 1px solid var(--ffg-card-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
}
.summary h3 { margin-top: 0; color: var(--ffg-blue); }
.summary dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; font-size: var(--fs-sm); }
.summary dt { color: var(--ffg-muted); }
.summary dd { margin: 0; }
.summary .line { display: flex; justify-content: space-between; padding: .35rem 0; border-bottom: 1px dashed var(--ffg-edge); }
.summary .line:last-child { border-bottom: 0; }
.summary .line .label  { color: var(--ffg-body); }
.summary .line .amount { font-weight: 700; }
.summary .line.total   { padding-top: .75rem; border-top: 2px solid var(--ffg-blue); border-bottom: 0; margin-top: .5rem; font-size: var(--fs-md); }
.summary .line.total .amount { color: var(--ffg-blue); }

/* Two-column form grid */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }
.form-row label { display: block; font-weight: 500; font-size: var(--fs-sm); margin-bottom: .25rem; color: var(--ffg-body); }
.form-row label .req { color: #d11; }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: .65rem .9rem;
  border: 1px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
}
/* Checkboxes / radios MUST escape the width:100% + padding above —
   in a flex/grid context the form-row's checkbox would otherwise
   claim 100% of the row's width as its layout box (the visual control
   still renders small) and squish any sibling label text into a tiny
   right-hand column. Discovered on mobile via the marketing-opt-in row. */
.form-row input[type=checkbox],
.form-row input[type=radio] {
  width: auto;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid var(--ffg-blue);
  outline-offset: -1px;
  border-color: var(--ffg-blue);
}
.form-row textarea { min-height: 100px; resize: vertical; }

/* Consent / opt-in row: checkbox left, label text fills the rest. */
.consent-row {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  cursor: pointer;
  font-weight: 400;
  line-height: 1.45;
}
.consent-row input[type=checkbox] {
  margin-top: .25rem;
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}
.consent-row > span { flex: 1 1 auto; min-width: 0; }

/* Inline per-field validation. Red border on the offending input +
   a small error message tucked directly under it. Paired with a
   single summary callout-err at the top of the form. */
.form-row.is-invalid input,
.form-row.is-invalid select,
.form-row.is-invalid textarea {
  border-color: #dc2626;
  background: #fef2f2;
}
.form-row.is-invalid input:focus,
.form-row.is-invalid select:focus,
.form-row.is-invalid textarea:focus {
  outline-color: #dc2626;
  border-color: #dc2626;
}
.field-error {
  display: block;
  color: #b91c1c;
  font-size: var(--fs-sm);
  margin-top: .35rem;
  font-weight: 500;
}

/* Vehicle info card (post-VRM) */
.vehicle-card {
  background: var(--ffg-card-bg);
  border: 2px solid var(--ffg-blue);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-top: 1.25rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.vehicle-card .reg-mini {
  background: #fcb900; border: 2px solid #000; border-radius: 4px;
  padding: .25rem .75rem; font-family: 'Charles Wright', 'Arial Black', sans-serif;
  font-weight: 900; letter-spacing: 2px; font-size: 1.1rem;
}
.vehicle-card .veh-details { color: var(--ffg-body); font-weight: 500; }
.vehicle-card a.change { color: var(--ffg-blue); font-size: var(--fs-sm); }

/* Error / warning callouts */
.callout {
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1rem 0;
  border-left: 4px solid;
}
.callout-warn { background: #e0f2fe; border-color: #0284c7; color: #075985; }
.callout-err  { background: #fef2f2; border-color: #dc2626; color: #7f1d1d; }
.callout-ok   { background: #ecfdf5; border-color: #059669; color: #064e3b; }
.callout-info { background: #eff6ff; border-color: var(--ffg-blue); color: #1e3a8a; }

/* Sign-in nudge near the top of step 1 — call-to-action on the right,
   stacks on narrow viewports. */
.signin-prompt {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.signin-prompt .signin-prompt-text { flex: 1 1 auto; min-width: 0; }
.signin-prompt .btn { flex: 0 0 auto; }
@media (max-width: 480px) {
  .signin-prompt { flex-direction: column; align-items: stretch; }
  .signin-prompt .btn { text-align: center; }
}

/* Booking-step badges */
.line-badge {
  display: inline-block;
  font-size: var(--fs-xs);
  padding: .15rem .45rem;
  border-radius: 999px;
  background: var(--ffg-card-bg);
  color: var(--ffg-muted);
  margin-left: .5rem;
  vertical-align: middle;
  font-weight: 500;
}
.line-badge.mot       { background: #e0e7ff; color: #3730a3; }
.line-badge.service   { background: #d1fae5; color: #065f46; }
.line-badge.forecourt { background: #e0f2fe; color: #075985; }

.confirmation-hero {
  background: linear-gradient(135deg, var(--ffg-blue), var(--ffg-blue-dark));
  color: #fff;
  padding: 3rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  margin: 2rem 0;
}
.confirmation-hero h2 { color: #fff; font-weight: 300; margin-bottom: .5rem; }
.confirmation-hero h2 strong { font-weight: 700; }
.confirmation-hero .tick {
  display: inline-grid; place-items: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,.18);
  font-size: 2rem;
  margin: 0 auto 1rem;
}


/* =====================================================================
   General Repairs sub-picker (services step). Reveals when the General
   Repairs service is ticked. Inside: warning callout, callback radio
   card, and a grid of 7 repair categories each with axle/side selects.
   Mutually-exclusive callback vs categories; the JS toggles .is-on for
   visual feedback that mirrors :has(input:checked) styling.
   ===================================================================== */
.repair-picker[hidden] { display: none; }
.repair-picker { margin-top: 2rem; }
.repair-callback-card {
  background: #eef0ff;
  border-color: var(--ffg-blue);
}
.repair-callback-card.is-on,
.repair-callback-card:has(input:checked) {
  background: #dbe2ff;
  border-color: var(--ffg-blue-dark);
}
.repair-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .75rem;
  margin-top: .5rem;
}
/* Keep the .pick-card left padding so the checkbox at left:1.25rem doesn't
 * sit on top of the title text. Only the vertical padding is squeezed for
 * the more compact repair-card layout. */
.repair-card {
  padding: .75rem .9rem .75rem 3rem;
}
.repair-card input[type="checkbox"],
.repair-card input[type="radio"] {
  top: .85rem;
  width: 18px; height: 18px;
}
.repair-card .pick-title {
  font-size: var(--fs-md);
  margin: 0 0 .35rem;
}
.repair-card-controls {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-top: .35rem;
}
.repair-sub-label {
  display: flex; flex-direction: column;
  font-size: var(--fs-xs); color: var(--ffg-muted);
  font-weight: 500;
  flex: 1 1 110px;
}
.repair-sub-label select {
  margin-top: .2rem;
  padding: .35rem .5rem;
  border: 1px solid var(--ffg-edge);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: var(--fs-sm);
  background: #fff;
  color: var(--ffg-body);
}
/* When a repair card isn't ticked, fade its sub-controls so the user's
   eye lands on the title first. Picking the checkbox brightens them. */
.repair-card:not(.is-on):not(:has(input:checked)) .repair-card-controls {
  opacity: .55;
}
.repair-card.is-on,
.repair-card:has(input:checked) {
  border-color: var(--ffg-blue);
  background: #f5f7ff;
}

/* ===== Account-creation card =====================================
 * The optional "Set a password and create an account" block at the
 * end of the booking flow used to render as just a checkbox row —
 * read like another T&Cs gate. Now it's a proper rounded card with
 * drop shadow + the same conic-gradient pulsing border the combo
 * cards use, so it reads as a real CTA. */
.account-create-card {
  position: relative;
  isolation: isolate;
  margin: 1.5rem 0 .5rem;
  border-radius: 14px;
  overflow: hidden;            /* clips the spinning ::before */
  background: linear-gradient(180deg, #e8edff 0%, #f5f7ff 70%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(14, 30, 160, 0.12);
}
.account-create-card::before {
  content: "";
  position: absolute; inset: -2px; z-index: -1;
  background: conic-gradient(
    from 0deg,
    rgba(10, 21, 119, 0.0)   0%,
    rgba(10, 21, 119, 0.75) 25%,
    rgba(56, 130, 245, 0.85) 50%,
    rgba(10, 21, 119, 0.75) 75%,
    rgba(10, 21, 119, 0.0)  100%
  );
  border-radius: 16px;
  animation: ffg-spin 12s linear infinite;
}
.account-create-card::after {
  content: "";
  position: absolute; inset: 2px; z-index: -1;
  background: linear-gradient(180deg, #e8edff 0%, #f5f7ff 70%, #ffffff 100%);
  border-radius: 12px;
}
@media (prefers-reduced-motion: reduce) {
  .account-create-card::before { animation: none; }
}
.account-create-inner {
  padding: 1.25rem 1.4rem 1.1rem;
}
.account-create-headline {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: 15px;
  line-height: 1.45;
}
.account-create-headline > input[type="checkbox"] {
  margin-top: 3px;
  width: 18px; height: 18px;
  accent-color: var(--ffg-blue);
}
.account-create-headline strong {
  display: block;
  color: var(--ffg-blue);
  font-size: 16px;
  margin-bottom: .15rem;
}
.account-create-lede {
  display: block;
  font-weight: 400;
  color: #475569;
  font-size: 13.5px;
}
.account-create-card .form-grid-account {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(10, 21, 119, .15);
}
