/* booking.css — wizard stepper, funding, slot picker, identity, review */

.wizard-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) { .wizard-layout { grid-template-columns: 1fr; } }
/* Grid items default to min-width:auto, so a wide child like .date-strip
   (14 unwrapped date chips) can force this column wider than the viewport
   instead of respecting its own overflow-x:auto. min-width:0 lets it shrink
   to the column width so the horizontal scroll stays contained. */
.wizard-layout > * { min-width: 0; }

.stepper { display: flex; align-items: center; margin-bottom: 28px; overflow-x: auto; }
.step { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.step .dot {
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1eef4; color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; flex-shrink: 0;
}
.step.done .dot { background: var(--ok); color: #fff; }
.step.active .dot { background: var(--plum-700); color: #fff; }
.step .lbl { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.step.active .lbl, .step.done .lbl { color: var(--navy-900); }
.step-line { width: 32px; height: 2px; background: var(--line); margin: 0 8px; flex-shrink: 0; }

.funding-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .funding-choice { grid-template-columns: 1fr; } }
.funding-option {
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  cursor: pointer;
  text-align: left;
  background: #fff;
}
.funding-option:hover { border-color: var(--plum-500); }
.funding-option.selected { border-color: var(--plum-700); background: var(--plum-50); }
.funding-option h4 { margin-bottom: 4px; }
.funding-option p { font-size: 13px; margin: 0; }

.insurer-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
@media (max-width: 640px) { .insurer-choice { grid-template-columns: 1fr 1fr; } }
.insurer-btn {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
}
.insurer-btn.selected { border-color: var(--plum-700); background: var(--plum-100); color: var(--plum-800); }

.scenario-banner { border-radius: var(--radius); padding: 16px 18px; margin: 16px 0; font-size: 13.5px; }
.scenario-banner.warn { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d9ad; }
.scenario-banner.err { background: var(--err-bg); color: var(--err); border: 1px solid #f0c3c0; }
.scenario-banner.info { background: var(--info-bg); color: var(--info); border: 1px solid #c7d2f0; }

.consultant-picker { display: grid; gap: 12px; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; margin: 14px 0; min-width: 0; }
.date-chip {
  flex-shrink: 0;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 8px 14px;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  background: #fff;
  min-width: 64px;
}
.date-chip.active { border-color: var(--plum-700); background: var(--plum-100); color: var(--plum-800); }
.date-chip .dow { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px,1fr)); gap: 8px; margin-top: 10px; }

.summary-card { position: sticky; top: 84px; }
@media (max-width: 900px) {
  .summary-card { position: static; }
}
.summary-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13.5px; }
.summary-card .row:last-of-type { border: none; }
.summary-card .row .k { color: var(--muted); }
.summary-card .row .v { font-weight: 700; text-align: right; color: var(--navy-900); }
.summary-card .edit-link { font-size: 12px; margin-left: 6px; }

.hold-timer {
  background: var(--navy-900); color: #fff;
  border-radius: 10px; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700; margin-bottom: 16px;
}
.hold-timer .clock { font-variant-numeric: tabular-nums; font-size: 15px; }

.review-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.review-block .head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.review-block .head h4 { margin: 0; }
.review-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13.5px; }
.review-row .k { color: var(--muted); }

.identity-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 600px) { .identity-grid { grid-template-columns: 1fr; } }

.consent-box { display: flex; gap: 10px; align-items: flex-start; margin: 16px 0; font-size: 13px; color: var(--ink-soft); }
.consent-box input { width: auto; margin-top: 3px; }

.match-result { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 10px; margin-bottom: 16px; }
.match-result.existing { background: var(--ok-bg); }
.match-result.new { background: var(--info-bg); }

/* EP-12 simulated AI receptionist chat (views/pages/ai-receptionist.php) */
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px 12px;
  margin-bottom: 12px;
}
.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.45;
}
.chat-msg-bot {
  align-self: flex-start;
  background: var(--plum-50);
  color: var(--ink);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--navy-900);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.chat-msg-typing { color: var(--muted); font-style: italic; }
.chat-msg-summary { max-width: 100%; background: var(--plum-100); }
.chat-input-row { display: flex; gap: 8px; }
.chat-input-row input { flex: 1; }
