/* Public Booking V1 — styles.
 *
 * Uses the existing DashDrive system: Poppins for headings and UI, Lato
 * for body copy, #FF4D00 primary with #C93D00 for interaction, and the
 * established dark surfaces. No new design system is introduced and the
 * site-wide grid is not touched — every selector here is scoped under
 * .ddpb so this component cannot affect anything else on the page.
 *
 * Interactive controls are at least 44px tall, which is the minimum
 * comfortable touch target and the reason the time buttons are sized the
 * way they are rather than packed tighter.
 */

.ddpb {
  --ddpb-primary: #FF4D00;
  --ddpb-primary-ink: #C93D00;
  --ddpb-card: #0E1116;
  --ddpb-surface: #08090B;
  --ddpb-line: #232A33;
  --ddpb-text: #F5F6F7;
  --ddpb-muted: #9AA4B2;
  --ddpb-radius: 14px;
  --ddpb-tap: 44px;

  font-family: Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ddpb-text);
  background: var(--ddpb-surface);
  border-radius: var(--ddpb-radius);
  padding: 20px;
  box-sizing: border-box;
}

.ddpb *, .ddpb *::before, .ddpb *::after { box-sizing: inherit; }

/* The bare-tag half of this group goes through the MOUNT element
   (.dd-public-booking, the shortcode's own div, with .ddpb rendered
   inside it) purely to reach (0,2,1). `.ddpb h2` is (0,1,1) — an exact
   tie with `.elementor-kit-70 h4 { font-family: "Lato" }`, which a tie
   resolves by document order, i.e. by WordPress enqueue order rather
   than by this file. The class-based half already wins at (0,2,0). */
.dd-public-booking .ddpb h2, .dd-public-booking .ddpb h3,
.dd-public-booking .ddpb h4, .dd-public-booking .ddpb legend,
.ddpb .ddpb-btn, .ddpb .ddpb-steps, .ddpb .ddpb-steps-compact {
  font-family: Poppins, Lato, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ELEMENTOR KIT 70 ISOLATION — why so many selectors start with `.ddpb `.
 *
 * The host page carries body.elementor-kit-70, whose global stylesheet
 * styles BARE TAGS one level below a class:
 *
 *   .elementor-kit-70 h2      (0,1,1)  color:#212121; font:52px/400 Poppins
 *   .elementor-kit-70 h3/h4   (0,1,1)  color:#212121; h4 also uppercase Lato
 *   .elementor-kit-70 label   (0,1,1)  color:#212121; 18px/500 Lato
 *   .elementor-kit-70 button  (0,1,1)  background:#0035B9; color:#F9F9F9;
 *                                      uppercase; 14px/500 Lato; radius 50px;
 *                                      padding 20px 28px
 *   .elementor-kit-70 input:not([type=button]):not([type=submit])
 *                             (0,3,1)  background:#F2F2F2; color:#767676;
 *                                      padding 18px 20px
 *
 * Our original rules were mostly (0,1,0) — a single class — so Elementor
 * out-specified them and won. Two failure modes, and the second is the
 * subtle one:
 *
 *   1. a weaker rule loses outright (.ddpb-btn-primary (0,1,0) < (0,1,1));
 *   2. a property we never declared at all is taken over, because an
 *      INHERITED value (from `.ddpb { color }`) loses to ANY rule that
 *      matches the element directly, at any specificity. That is why the
 *      intro h2 went dark while `.ddpb-intro h2 span` — which does declare
 *      a colour, at (0,2,1) — stayed correctly orange.
 *
 * Prefixing with `.ddpb ` adds exactly one class level, which is the
 * smallest change that WINS rather than ties. Ties matter here: they are
 * resolved by document order, and relying on our stylesheet being emitted
 * after Elementor's would make the component's appearance depend on
 * WordPress enqueue order rather than on this file. No !important is used
 * anywhere, and nothing outside `.ddpb` is touched.
 */

/* --- intro ------------------------------------------------------- */
.ddpb .ddpb-intro h2 {
  font-size: 26px; line-height: 1.2; margin: 0 0 12px; font-weight: 700;
  /* Declared, not inherited — see the isolation note above. The kit also
     puts 2px tracking on every h2; this heading sets its own. */
  color: var(--ddpb-text); letter-spacing: normal;
}
.ddpb .ddpb-intro h2 span { display: block; color: var(--ddpb-primary); }
.ddpb-lede { color: var(--ddpb-muted); font-size: 16px; line-height: 1.55; margin: 0 0 18px; }
.ddpb-secondary { margin: 18px 0 0; color: var(--ddpb-muted); font-size: 15px; }
.ddpb-secondary a { color: var(--ddpb-primary); text-decoration: none; font-weight: 600; }
.ddpb-secondary a:hover { color: var(--ddpb-primary-ink); text-decoration: underline; }

/* --- notices ----------------------------------------------------- */
.ddpb-notice {
  border-radius: 10px; padding: 14px 16px; margin: 0 0 18px;
  font-size: 15px; line-height: 1.5; border: 1px solid var(--ddpb-line); background: var(--ddpb-card);
}
.ddpb-notice-info { border-left: 3px solid var(--ddpb-primary); }
.ddpb-notice-warn { border-left: 3px solid var(--ddpb-primary); background: rgba(255, 77, 0, 0.08); }

/* --- progress ---------------------------------------------------- */
.ddpb-progress { margin: 0 0 20px; }
.ddpb-steps { display: none; list-style: none; margin: 0; padding: 0; gap: 6px; flex-wrap: wrap; }
.ddpb-step {
  font-size: 13px; color: var(--ddpb-muted); padding: 6px 12px;
  border: 1px solid var(--ddpb-line); border-radius: 999px; background: var(--ddpb-card);
}
.ddpb-step.is-current { color: var(--ddpb-text); border-color: var(--ddpb-primary); background: rgba(255, 77, 0, 0.12); font-weight: 600; }
.ddpb-step.is-done { color: var(--ddpb-text); }
/* Seven labels never fit across 390px, so small screens get a compact
   "Stap 3 van 7 / Adres" instead of a squeezed unreadable row. */
.ddpb-steps-compact { margin: 0; font-size: 14px; color: var(--ddpb-muted); display: flex; gap: 10px; align-items: baseline; }
.ddpb-steps-compact span { color: var(--ddpb-text); font-weight: 600; font-size: 16px; }

/* --- layout ------------------------------------------------------ */
.ddpb-layout { display: grid; gap: 20px; }
.ddpb-summary {
  border: 1px solid var(--ddpb-line); border-radius: var(--ddpb-radius);
  background: var(--ddpb-card); padding: 16px; align-self: start;
}
.ddpb .ddpb-summary h4 { margin: 0 0 10px; font-size: 15px; color: var(--ddpb-text); font-weight: 700; letter-spacing: normal; text-transform: none; }

/* --- fields ------------------------------------------------------ */
.ddpb-field { margin: 0 0 16px; border: 0; padding: 0; }
.ddpb .ddpb-field label, .ddpb .ddpb-field legend { display: block; font-size: 14px; margin: 0 0 6px; color: var(--ddpb-text); font-weight: 600; }
/* TEXT-LIKE CONTROLS ONLY.
 *
 * :not([type=button]) and :not([type=submit]) mirror Elementor's own
 * (0,3,1) selector one level deeper, to reach (0,4,1) and win rather than
 * tie; the component renders neither of those types, so they exclude
 * nothing real.
 *
 * :not([type=radio]) DOES exclude something real, and deliberately. This
 * rule was reaching the hardwire-kit radios and giving each one
 * `width: 100%`, a 44px min-height and a card background — a full-width
 * box where a radio button belongs. A radio is not a text field and is
 * styled on its own below. */
.ddpb .ddpb-field input:not([type="button"]):not([type="submit"]):not([type="radio"]),
.ddpb .ddpb-field select {
  width: 100%; min-height: var(--ddpb-tap); padding: 10px 12px; font-size: 16px;
  font-family: inherit; font-weight: 400; color: var(--ddpb-text); background: var(--ddpb-card);
  border: 1px solid var(--ddpb-line); border-radius: 10px;
}
.ddpb .ddpb-field input:focus-visible, .ddpb .ddpb-field select:focus-visible,
.ddpb .ddpb-btn:focus-visible, .ddpb .ddpb-time:focus-visible {
  outline: 2px solid var(--ddpb-primary); outline-offset: 2px;
}
.ddpb-hint { margin: 6px 0 0; font-size: 13px; color: var(--ddpb-muted); }

/* THE HARDWIRE-KIT Ja/Nee ROW — an INTERNAL conflict, not an Elementor one.
 *
 * `<label class="ddpb-radio">` sits inside `<fieldset class="ddpb-field">`,
 * so the generic field-label rule above matches it too — and at (0,2,1) it
 * out-specified `.ddpb-radio` (0,1,0) completely. The options inherited
 * `display: block` and `font-weight: 600` and stacked vertically instead of
 * sitting side by side. Scoping to (0,3,0) makes the specific rule win over
 * the generic one, which is the way round it should always have been.
 *
 * This predates the Elementor isolation work: the comparison used to be
 * (0,1,1) vs (0,1,0), which has the same winner. Widening the gap did not
 * cause it and narrowing it would not have fixed it. */
.ddpb .ddpb-field .ddpb-radio {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--ddpb-tap);
  margin: 0 14px 0 0; font-weight: 400; cursor: pointer;
}

/* The control itself, at (0,4,1) so it also beats Elementor's
   `.elementor-kit-70 input:not([type=button]):not([type=submit])` (0,3,1),
   which would otherwise paint a #F2F2F2 box with 18px/20px padding behind
   the native radio. Everything here is a reset back to the browser's own
   radio widget; only accent-color is an addition. */
.ddpb .ddpb-field .ddpb-radio input[type="radio"] {
  width: auto; min-height: 0; flex: 0 0 auto;
  margin: 0; padding: 0;
  background: none; border: 0; border-radius: 0;
  accent-color: var(--ddpb-primary);
}

/* --- buttons ----------------------------------------------------- */
.ddpb-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.ddpb .ddpb-btn {
  min-height: var(--ddpb-tap); padding: 12px 20px; font-size: 16px; font-weight: 600;
  border-radius: 10px; border: 1px solid transparent; cursor: pointer;
  /* Declared to neutralise .elementor-kit-70 button, which otherwise
     renders every CTA in the wizard UPPERCASE Lato with 0.8px tracking,
     1em line-height and a 50px pill radius. */
  text-transform: none; letter-spacing: normal; line-height: 1.2;
}
.ddpb .ddpb-btn-primary { background: var(--ddpb-primary); color: #12060A; }
/* Focus gets the same treatment as hover: a keyboard user must see the
   same state change a pointer user does. #C93D00 on #fff is 5.1:1 and
   #FF4D00 on #12060A is 6.0:1 — both clear AA for the button label. */
.ddpb .ddpb-btn-primary:hover:not(:disabled),
.ddpb .ddpb-btn-primary:focus-visible:not(:disabled) { background: var(--ddpb-primary-ink); color: #fff; }
.ddpb .ddpb-btn-ghost { background: transparent; color: var(--ddpb-text); border-color: var(--ddpb-line); }
.ddpb .ddpb-btn-ghost:hover:not(:disabled) { border-color: var(--ddpb-primary); }
.ddpb .ddpb-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* --- slots ------------------------------------------------------- */
.ddpb-day { margin: 0 0 20px; }
.ddpb .ddpb-day h4 { margin: 0 0 10px; font-size: 15px; text-transform: capitalize; color: var(--ddpb-text); font-weight: 700; letter-spacing: normal; }
.ddpb-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
/* A time slot is a <button>, so Elementor's global button rule reaches it
   too — including `padding: 20px 28px`, which alone would break the slot
   grid. Every property that rule sets is answered here. */
.ddpb .ddpb-time {
  min-height: var(--ddpb-tap); border-radius: 10px; cursor: pointer;
  border: 1px solid var(--ddpb-line); background: var(--ddpb-card); color: var(--ddpb-text);
  font-size: 15px; font-variant-numeric: tabular-nums;
  padding: 0 10px; font-weight: 600; text-transform: none; letter-spacing: normal; line-height: 1.2;
}
.ddpb .ddpb-time:hover { border-color: var(--ddpb-primary); }
.ddpb .ddpb-time.is-selected { border-color: var(--ddpb-primary); background: rgba(255, 77, 0, 0.14); font-weight: 700; }
.ddpb-loading, .ddpb-empty { color: var(--ddpb-muted); padding: 24px 0; text-align: center; }

/* --- price ------------------------------------------------------- */
.ddpb-price { margin: 16px 0 0; }
.ddpb-price-line, .ddpb-price-total { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; }
.ddpb-price-line.is-muted span:last-child { color: var(--ddpb-muted); }
.ddpb-price-total { border-top: 1px solid var(--ddpb-line); margin-top: 6px; padding-top: 12px; font-weight: 700; font-size: 17px; }
.ddpb-price-vat { margin: 6px 0 0; font-size: 13px; color: var(--ddpb-muted); }

/* --- review ------------------------------------------------------ */
.ddpb-hold { font-size: 14px; color: var(--ddpb-muted); margin: 0 0 16px; }
.ddpb-hold strong { color: var(--ddpb-primary); font-variant-numeric: tabular-nums; }
.ddpb-review { margin: 0; display: grid; gap: 18px; }
.ddpb .ddpb-review-group h4 { margin: 0 0 8px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ddpb-muted); }
.ddpb-review-row { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 15px; }
.ddpb-review-row dt { color: var(--ddpb-muted); }
.ddpb-review-row dd { margin: 0; text-align: right; }

/* --- outcomes ---------------------------------------------------- */
.ddpb-outcome { text-align: center; padding: 28px 16px; }
.ddpb .ddpb-outcome h3 { margin: 0 0 10px; font-size: 22px; color: var(--ddpb-text); font-weight: 700; line-height: 1.25; letter-spacing: normal; }
.ddpb-outcome p { margin: 0 0 12px; color: var(--ddpb-muted); line-height: 1.55; }
/* Same specificity as the rule above and declared after it, so the "ok"
   outcome keeps its orange heading — the relationship between these two
   is unchanged by the scoping. */
.ddpb .ddpb-outcome-ok h3 { color: var(--ddpb-primary); }
.ddpb-outcome-when { color: var(--ddpb-text) !important; font-weight: 600; font-size: 17px; }

/* --- desktop ----------------------------------------------------- */
@media (min-width: 768px) {
  .ddpb { padding: 28px; }
  .ddpb-steps { display: flex; }
  .ddpb-steps-compact { display: none; }
  /* Scoped to match the base rule — an unscoped (0,1,1) override here
     would lose to Elementor's own 40px/28px h2 breakpoints. */
  .ddpb .ddpb-intro h2 { font-size: 32px; }
}
@media (min-width: 960px) {
  /* Form left, running price summary right — useful only where there is
     genuinely room for both. */
  .ddpb-layout { grid-template-columns: minmax(0, 1fr) 280px; }
}
