/* ==========================================================================
   Zebridge booking widget (js/booking.js mount: #zb-booking)
   Modern gold (#FFB716) / navy palette. Mobile-first, self-contained so it
   doesn't depend on (or collide with) the theme's Bootstrap/WPB styles.
   ========================================================================== */

#zb-booking,
#zb-booking * { box-sizing: border-box; }

#zb-booking {
  --zb-gold: #ffb716;
  --zb-gold-dark: #e0a200;
  --zb-navy: #1c2a52;
  --zb-navy-soft: #22306b;
  --zb-ink: #151515;
  --zb-muted: #6b7280;
  --zb-line: #e5e7eb;
  --zb-bg: #f7f8fb;
  --zb-ok: #16a34a;
  --zb-err: #dc2626;
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--zb-ink);
  max-width: 960px;
  margin: 0 auto;
  padding: 8px 0 24px;
  -webkit-font-smoothing: antialiased;
}

/* Neutralize the theme's decorative button::before/::after dark fill.
   The zidex theme (css/styles.css) sets `button::after { background:#151515;
   width:0 } button:hover:after { width:100% }`, which slides a BLACK overlay
   across every <button> on hover/focus — overriding it via `background` alone
   is impossible because it is a separate pseudo-element. Hiding it here lets
   our own #fff8e6 hover / #fffdf5 selected backgrounds show through. */
#zb-booking button::before,
#zb-booking button::after {
  display: none !important;
  content: normal !important;
}

#zb-booking .zb-card {
  background: #fff;
  border: 1px solid var(--zb-line);
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(20, 30, 60, 0.08);
  overflow: hidden;
}

/* ---- Progress stepper --------------------------------------------------- */
#zb-booking .zb-steps {
  display: flex;
  align-items: flex-start;
  padding: 22px 18px 18px;
  background: linear-gradient(135deg, var(--zb-navy) 0%, var(--zb-navy-soft) 100%);
}
#zb-booking .zb-step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
  transition: color 0.2s;
}
#zb-booking .zb-step .zb-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px; font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.25);
  position: relative; z-index: 1;
  transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
/* connector line between dots */
#zb-booking .zb-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  width: 100%; height: 2px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 0;
  transition: background 0.2s;
}
#zb-booking .zb-step.is-done:not(:last-child)::after { background: var(--zb-gold); }
#zb-booking .zb-step.is-active { color: #fff; }
#zb-booking .zb-step.is-active .zb-dot {
  background: var(--zb-gold); color: var(--zb-navy); border-color: var(--zb-gold);
  box-shadow: 0 0 0 4px rgba(255, 183, 22, 0.25);
}
#zb-booking .zb-step.is-done { color: rgba(255, 255, 255, 0.85); }
#zb-booking .zb-step.is-done .zb-dot {
  background: rgba(255, 183, 22, 0.15); color: var(--zb-gold); border-color: var(--zb-gold);
}
#zb-booking .zb-step-label { line-height: 1.2; }

/* ---- Body / panels ------------------------------------------------------ */
#zb-booking .zb-body { padding: 26px 24px 24px; }
#zb-booking .zb-title { font-size: 20px; font-weight: 700; margin: 0 0 4px; color: var(--zb-navy); }
#zb-booking .zb-hint { margin: 0 0 20px; color: var(--zb-muted); font-size: 14px; }

/* ---- Service category sections (step 1 · flat layout, spec consultance_3) - */
#zb-booking .zb-cat-list { display: flex; flex-direction: column; gap: 30px; }
#zb-booking .zb-cat-head { display: flex; align-items: center; gap: 12px; }
#zb-booking .zb-cat-name { margin: 0; font-weight: 600; font-size: 17px; color: #0f172a; }
#zb-booking .zb-cat-count {
  background: #eef2f7; color: #64748b; font-size: 12px; font-weight: 600;
  border-radius: 999px; padding: 4px 12px; white-space: nowrap;
}
#zb-booking .zb-cat-rule { height: 1px; background: #e2e8f0; margin: 10px 0 16px; }
#zb-booking .zb-subcat { margin-bottom: 16px; }
#zb-booking .zb-subcat:last-child { margin-bottom: 0; }
#zb-booking .zb-subcat-title {
  font-size: 13px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
  color: var(--zb-muted); margin: 0 0 10px; padding-left: 10px; border-left: 3px solid var(--zb-gold);
}

/* ---- Consultant language chips (step 2) -------------------------------- */
#zb-booking .zb-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#zb-booking .zb-lang {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  color: #374151; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 20px !important; padding: 5px 11px;
}
#zb-booking .zb-lang .zb-lang-globe { color: #9ca3af; flex: 0 0 auto; display: block; }
#zb-booking .zb-spec {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  color: var(--zb-navy); background: #eef2ff;
  border: 1px solid #dfe5fb; border-radius: 20px !important; padding: 5px 11px;
}
#zb-booking .zb-specs { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Choice cards (service / consultant) -------------------------------- */
#zb-booking .zb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
#zb-booking .zb-choice {
  text-align: left;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.1s;
  font: inherit;
  color: inherit;
}
#zb-booking .zb-choice:hover,
#zb-booking .zb-choice:focus,
#zb-booking .zb-choice:focus-visible,
#zb-booking .zb-choice:active {
  background: #fff !important;
  background-image: none !important;
  border-color: #cbd5e1 !important;
  color: var(--zb-ink) !important;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.10) !important;
  transform: translateY(-2px);
  outline: none;
}
#zb-booking .zb-choice:hover .zb-choice-name,
#zb-booking .zb-choice:focus .zb-choice-name,
#zb-booking .zb-choice:focus-visible .zb-choice-name,
#zb-booking .zb-choice:active .zb-choice-name { color: var(--zb-navy) !important; }
#zb-booking .zb-choice:hover .zb-choice-meta,
#zb-booking .zb-choice:focus .zb-choice-meta,
#zb-booking .zb-choice:focus-visible .zb-choice-meta,
#zb-booking .zb-choice:active .zb-choice-meta { color: var(--zb-muted) !important; }
#zb-booking .zb-choice.is-selected,
#zb-booking .zb-choice.is-selected:hover,
#zb-booking .zb-choice.is-selected:focus {
  background: #fffdf8 !important;
  background-image: none !important;
  border: 2px solid #d4af37 !important;
  color: var(--zb-ink) !important;
  box-shadow: 0 8px 22px rgba(212, 175, 55, 0.20) !important;
  transform: none;
}
#zb-booking .zb-choice.is-selected .zb-choice-name { color: var(--zb-navy) !important; }
#zb-booking .zb-choice.is-selected .zb-choice-meta { color: var(--zb-muted) !important; }
#zb-booking .zb-choice .zb-thumb {
  width: 52px; height: 52px; flex: 0 0 52px;
  border-radius: 12px;
  background: var(--zb-bg) center/cover no-repeat;
  border: 1px solid #e2e8f0;
  display: grid; place-items: center;
  color: var(--zb-gold-dark); font-weight: 800; font-size: 20px;
}
/* Themed SVG icon shown when the service has no photo. */
#zb-booking .zb-thumb.zb-thumb-icon {
  background: linear-gradient(135deg, #fff6e2, #eef2f7);
  color: #b8860b;
}
#zb-booking .zb-thumb.zb-thumb-icon svg { width: 26px; height: 26px; display: block; }
#zb-booking .zb-choice:hover .zb-thumb.zb-thumb-icon { border-color: #d4af37; }
#zb-booking .zb-choice .zb-choice-head { display: flex; align-items: flex-start; gap: 12px; }
#zb-booking .zb-choice.is-selected .zb-choice-head { padding-right: 104px; }
#zb-booking .zb-choice .zb-choice-name { flex: 1 1 auto; min-width: 0; display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.35; color: var(--zb-navy); }
#zb-booking .zb-choice .zb-choice-meta { display: block; flex: 1 0 auto; font-size: 13px; line-height: 1.55; color: var(--zb-muted); margin-top: 12px; }
/* Teaser clamped to 2 lines; the full text opens in the detail modal. */
#zb-booking .zb-choice .zb-choice-meta.zb-clamped {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
#zb-booking .zb-choice .zb-more-btn {
  align-self: flex-start;
  margin-top: 8px;
  background: none;
  border: none;
  padding: 0 !important;
  min-width: 0 !important;
  max-width: none;
  line-height: 1.3 !important;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--zb-navy);
  cursor: pointer;
}
#zb-booking .zb-choice .zb-more-btn:hover,
#zb-booking .zb-choice .zb-more-btn:focus {
  color: #b8860b !important;
  text-decoration: underline;
  background: none !important;
  box-shadow: none !important;
  transform: none;
}
#zb-booking .zb-choice .zb-badges { margin-top: auto; padding-top: 14px; }
#zb-booking .zb-choice .zb-choice-price { font-size: 12px; font-weight: 700; color: var(--zb-ok); margin-top: 6px; display: inline-block; background: #ecfdf3; padding: 2px 8px; border-radius: 999px; }
#zb-booking .zb-choice .zb-sel-badge {
  position: absolute; top: 12px; right: 12px;
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--zb-navy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.2px;
  padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(28, 42, 82, 0.25);
  opacity: 0; transform: translateY(-4px) scale(0.96);
  transition: opacity 0.18s, transform 0.18s; pointer-events: none;
}
#zb-booking .zb-choice .zb-sel-badge::before { content: "\2713"; color: var(--zb-gold); font-weight: 800; }
#zb-booking .zb-choice.is-selected .zb-sel-badge { opacity: 1; transform: none; }

/* ---- Expert cards (step 2 · premium vertical layout) ------------------ */
#zb-booking .zb-expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
#zb-booking .zb-expert {
  position: relative;
  text-align: center;
  background: #fff;
  border: 1.5px solid var(--zb-line);
  border-radius: 16px;
  padding: 26px 20px 22px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  font: inherit;
  color: inherit;
}
#zb-booking .zb-expert:hover,
#zb-booking .zb-expert:focus,
#zb-booking .zb-expert:focus-visible {
  background: #fff !important;
  background-image: none !important;
  border-color: #dbe1ea !important;
  color: var(--zb-ink) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08) !important;
  transform: translateY(-3px);
  outline: none;
}
#zb-booking .zb-expert.is-selected,
#zb-booking .zb-expert.is-selected:focus {
  background: #fff !important;
  background-image: none !important;
  border: 2px solid var(--zb-navy) !important;
  padding: 25px 19px 21px;
  color: var(--zb-ink) !important;
  box-shadow: 0 12px 30px -6px rgba(28, 42, 82, 0.22) !important;
}
#zb-booking .zb-expert .zb-expert-avatar {
  width: 88px; height: 88px; flex: 0 0 88px;
  border-radius: 50% !important;
  border: 3px solid #fff;
  background-color: #eef1f6;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: grid; place-items: center;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 0 0 3px var(--zb-gold), 0 10px 22px rgba(28, 42, 82, 0.16);
}
#zb-booking .zb-expert .zb-expert-initials {
  width: 100%; height: 100%;
  border-radius: 50% !important;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--zb-navy-soft) 0%, var(--zb-navy) 100%);
  color: var(--zb-gold);
  font-weight: 800; font-size: 28px; letter-spacing: 0.5px;
}
#zb-booking .zb-expert .zb-expert-body { display: block; width: 100%; min-width: 0; }
#zb-booking .zb-expert .zb-expert-name {
  display: block; font-weight: 700; font-size: 1.1rem; line-height: 1.3;
  color: var(--zb-navy); margin-bottom: 6px;
}
#zb-booking .zb-expert .zb-expert-title {
  display: inline-block; font-size: 12px; font-weight: 600; line-height: 1.2;
  color: var(--zb-gold-dark); background: rgba(255, 183, 22, 0.10);
  border: 1px solid rgba(224, 162, 0, 0.22);
  border-radius: 999px !important; padding: 4px 12px; margin-bottom: 4px;
}
#zb-booking .zb-expert .zb-expert-bio {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  line-clamp: 2; overflow: hidden;
  font-size: 13px; line-height: 1.45; color: var(--zb-muted); margin-top: 10px;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}
#zb-booking .zb-expert .zb-langs { justify-content: center; }
#zb-booking .zb-expert .zb-check {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50% !important;
  background: var(--zb-gold);
  color: var(--zb-navy);
  font-size: 15px; font-weight: 800; line-height: 1;
  box-shadow: 0 3px 8px rgba(255, 183, 22, 0.45);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.18s, transform 0.18s;
}
#zb-booking .zb-expert.is-selected .zb-check { opacity: 1; transform: scale(1); }
#zb-booking .zb-expert .zb-bio-btn {
  margin-top: 14px;
  font: inherit; font-size: 12.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--zb-navy); background: #fff;
  border: 1.5px solid var(--zb-line);
  border-radius: 999px !important; padding: 8px 16px; cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}
#zb-booking .zb-expert .zb-bio-btn .zb-bio-ico { color: var(--zb-gold-dark); display: block; }
#zb-booking .zb-expert .zb-bio-btn:hover {
  background: var(--zb-navy) !important; color: #fff !important; border-color: var(--zb-navy) !important;
}
#zb-booking .zb-expert .zb-bio-btn:hover .zb-bio-ico { color: var(--zb-gold) !important; }

/* ---- Service card badges (duration / price) ----------------------------- */
#zb-booking .zb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#zb-booking .zb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  padding: 5px 11px; border-radius: 999px; white-space: nowrap;
}
#zb-booking .zb-badge-time { background: #f1f5f9; color: #475569; }
#zb-booking .zb-badge-price { background: #f1f5f9; color: var(--zb-ok); }


/* ---- Date strip --------------------------------------------------------- */
#zb-booking .zb-dates {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: thin;
}
#zb-booking .zb-date {
  flex: 0 0 auto;
  min-width: 62px;
  border: 1.5px solid var(--zb-line);
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  color: var(--zb-navy);
  font: inherit;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
#zb-booking .zb-date:hover,
#zb-booking .zb-date:focus,
#zb-booking .zb-date:focus-visible {
  border-color: var(--zb-gold);
  background: #fff8e6 !important;
  color: var(--zb-navy) !important;
  outline: none;
}
#zb-booking .zb-date.is-full { opacity: 0.4; cursor: not-allowed; }
#zb-booking .zb-date.is-selected,
#zb-booking .zb-date.is-selected:focus {
  border-color: var(--zb-gold);
  background: var(--zb-navy) !important;
  color: #fff !important;
}
#zb-booking .zb-date .zb-dow { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.4px; opacity: 0.7; }
#zb-booking .zb-date .zb-dnum { display: block; font-size: 18px; font-weight: 700; line-height: 1.2; }
#zb-booking .zb-date .zb-mon { display: block; font-size: 11px; opacity: 0.7; }

/* ---- Month calendar (date step) ----------------------------------------- */
#zb-booking .zb-cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin: 4px 0 12px;
}
#zb-booking .zb-cal-title { font-weight: 700; font-size: 16px; color: var(--zb-navy); text-transform: capitalize; margin: 0 auto; }
/* Prominent labeled pills (v20): outline "Précédent", solid navy "Suivant".
   Guards (!important) neutralize the zidex theme's global button metrics. */
#zb-booking .zb-cal-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  min-width: 0 !important;
  padding: 10px 18px !important;
  line-height: 1.2 !important;
  border: 2px solid var(--zb-navy); border-radius: 999px !important;
  background: #fff; color: var(--zb-navy);
  font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}
#zb-booking .zb-cal-arrow svg { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
#zb-booking .zb-cal-arrow.zb-cal-next {
  background: var(--zb-navy); color: #fff; border-color: var(--zb-navy);
  box-shadow: 0 4px 14px rgba(28, 42, 82, 0.28);
}
#zb-booking .zb-cal-arrow:hover:not(:disabled),
#zb-booking .zb-cal-arrow:focus:not(:disabled) { outline: none; }
#zb-booking .zb-cal-arrow.zb-cal-prev:hover:not(:disabled),
#zb-booking .zb-cal-arrow.zb-cal-prev:focus:not(:disabled) {
  background: #fff8e6 !important; color: var(--zb-navy) !important; border-color: var(--zb-gold);
}
#zb-booking .zb-cal-arrow.zb-cal-next:hover:not(:disabled),
#zb-booking .zb-cal-arrow.zb-cal-next:focus:not(:disabled) {
  background: var(--zb-gold) !important; color: var(--zb-navy) !important; border-color: var(--zb-gold);
  box-shadow: 0 4px 14px rgba(255, 183, 22, 0.4);
}
#zb-booking .zb-cal-arrow:disabled { opacity: 0.35; cursor: not-allowed; box-shadow: none; }
#zb-booking .zb-cal { border: 1px solid var(--zb-line); border-radius: 12px; padding: 10px; background: #fff; }
#zb-booking .zb-cal-head {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px;
}
#zb-booking .zb-cal-dow {
  text-align: center; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.4px; color: var(--zb-muted); padding: 4px 0;
}
#zb-booking .zb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
#zb-booking .zb-cal-pad { height: 1px; }
#zb-booking .zb-cal-day {
  position: relative;
  min-height: 46px;
  border: 1.5px solid transparent; border-radius: 10px;
  background: #fff; color: var(--zb-navy);
  font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 6px 2px;
  transition: border-color 0.15s, background 0.15s, color 0.15s, box-shadow 0.15s;
}
#zb-booking .zb-cal-day:hover:not(:disabled),
#zb-booking .zb-cal-day:focus:not(:disabled) {
  border-color: var(--zb-gold); background: #fff8e6 !important; color: var(--zb-navy) !important; outline: none;
}
#zb-booking .zb-cal-day .zb-cal-num { font-size: 15px; font-weight: 700; line-height: 1; }
#zb-booking .zb-cal-day .zb-cal-count {
  font-size: 10px; font-weight: 700; line-height: 1;
  color: var(--zb-ok); background: #ecfdf3; border-radius: 999px; padding: 2px 6px;
}
#zb-booking .zb-cal-day.is-today { border-color: var(--zb-gold); }
#zb-booking .zb-cal-day.is-selected,
#zb-booking .zb-cal-day.is-selected:focus {
  background: var(--zb-navy) !important; color: #fff !important; border-color: var(--zb-navy);
}
#zb-booking .zb-cal-day.is-selected .zb-cal-count { background: rgba(255, 255, 255, 0.18); color: var(--zb-gold); }
#zb-booking .zb-cal-day.is-full,
#zb-booking .zb-cal-day:disabled {
  opacity: 0.4; cursor: not-allowed; background: var(--zb-bg); color: var(--zb-muted);
}
#zb-booking .zb-cal-day.is-full .zb-cal-num { text-decoration: line-through; }

/* ---- Slot groups (morning / afternoon / evening) ------------------------ */
#zb-booking .zb-slot-group { margin-top: 14px; }
#zb-booking .zb-slot-group-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
  color: var(--zb-muted); margin-bottom: 6px;
}

/* ---- Time slots --------------------------------------------------------- */
#zb-booking .zb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 6px; }
#zb-booking .zb-slot {
  border: 1.5px solid var(--zb-line);
  border-radius: 10px;
  padding: 11px 6px;
  text-align: center;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  background: #fff;
  color: var(--zb-navy);
  transition: all 0.15s;
}
#zb-booking .zb-slot:hover:not(:disabled),
#zb-booking .zb-slot:focus:not(:disabled) { border-color: var(--zb-gold); background: #fff8e6; color: var(--zb-navy); outline: none; }
#zb-booking .zb-slot.is-selected,
#zb-booking .zb-slot.is-selected:focus { background: var(--zb-gold) !important; border-color: var(--zb-gold); color: var(--zb-navy) !important; }
#zb-booking .zb-slot:disabled { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; background: var(--zb-bg); color: var(--zb-muted); }
#zb-booking .zb-tz-note { font-size: 12px; color: var(--zb-muted); margin-top: 12px; }

/* ---- Form --------------------------------------------------------------- */
#zb-booking .zb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#zb-booking .zb-field { display: flex; flex-direction: column; gap: 6px; }
#zb-booking .zb-field.zb-span-2 { grid-column: 1 / -1; }
#zb-booking .zb-field label { font-size: 13px; font-weight: 600; color: var(--zb-navy); }
#zb-booking .zb-field label .zb-req { color: var(--zb-err); }
#zb-booking .zb-field input,
#zb-booking .zb-field select,
#zb-booking .zb-field textarea {
  font: inherit;
  font-size: 15px;
  padding: 11px 12px;
  border: 1.5px solid var(--zb-line);
  border-radius: 10px;
  background: #fff;
  color: var(--zb-ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#zb-booking .zb-field textarea { resize: vertical; min-height: 88px; }
#zb-booking .zb-field input:focus,
#zb-booking .zb-field select:focus,
#zb-booking .zb-field textarea:focus { outline: none; border-color: var(--zb-gold); box-shadow: 0 0 0 3px rgba(255, 183, 22, 0.16); }
#zb-booking .zb-field.zb-invalid input,
#zb-booking .zb-field.zb-invalid select,
#zb-booking .zb-field.zb-invalid textarea { border-color: var(--zb-err); }
#zb-booking .zb-err-msg { color: var(--zb-err); font-size: 12px; min-height: 0; }

/* ---- WYSIWYG editor (step 4 message) ------------------------------------ */
#zb-booking .zb-editor {
  border: 1.5px solid var(--zb-line);
  border-radius: 10px !important;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#zb-booking .zb-editor:focus-within { border-color: #d4af37; box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18); }
#zb-booking .zb-editor-bar {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 8px;
  background: #f9fafb; border-bottom: 1px solid var(--zb-line);
}
#zb-booking .zb-ed-btn {
  font: inherit; font-size: 13.5px; font-weight: 700;
  min-width: 30px; height: 30px; padding: 0 7px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--zb-navy);
  border: 1px solid transparent; border-radius: 6px !important; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
#zb-booking .zb-ed-btn:hover { background: #fff3d6; border-color: rgba(212, 175, 55, 0.5); }
#zb-booking .zb-ed-sep { width: 1px; height: 18px; background: var(--zb-line); margin: 0 4px; }
#zb-booking .zb-editor-area {
  min-height: 120px; max-height: 320px; overflow-y: auto;
  padding: 12px 14px; font-size: 15px; line-height: 1.55; color: var(--zb-ink);
  outline: none; background: #fff;
}
#zb-booking .zb-editor-area:empty::before { content: attr(data-placeholder); color: #9ca3af; pointer-events: none; }
#zb-booking .zb-editor-area ul,
#zb-booking .zb-editor-area ol { margin: 6px 0; padding-left: 24px; }
#zb-booking .zb-editor-area a { color: var(--zb-navy-soft); text-decoration: underline; }
#zb-booking .zb-field.zb-invalid .zb-editor { border-color: var(--zb-err); }

/* ---- Attachments dropzone (step 4) --------------------------------------- */
#zb-booking .zb-drop {
  border: 2px dashed #cfd6e0; border-radius: 12px !important;
  background: #fafbfd;
  padding: 22px 16px; text-align: center; cursor: pointer;
  color: var(--zb-muted);
  transition: border-color 0.15s, background 0.15s;
}
#zb-booking .zb-drop:hover { border-color: var(--zb-gold); background: #fffaf0; }
#zb-booking .zb-drop.zb-drop-over { border-color: #d4af37; background: #fdf6e3; }
#zb-booking .zb-drop-ico { color: var(--zb-gold-dark); margin-bottom: 6px; }
#zb-booking .zb-drop-text { font-size: 14px; color: var(--zb-ink); }
#zb-booking .zb-drop-link {
  font: inherit; font-size: 14px; font-weight: 700;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--zb-navy); text-decoration: underline;
}
#zb-booking .zb-drop-hint { font-size: 12px; margin-top: 4px; color: var(--zb-muted); }
#zb-booking .zb-file-input { display: none; }
#zb-booking .zb-files { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
#zb-booking .zb-file-row {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  background: #f9fafb; border: 1px solid var(--zb-line);
  border-radius: 10px !important; padding: 8px 12px;
  transition: border-color 0.25s, background 0.25s;
}
/* badge de type de fichier (PDF / DOC / PNG / ZIP…), couleur inline par type */
#zb-booking .zb-file-badge {
  flex: 0 0 auto; display: inline-grid; place-items: center;
  min-width: 40px; height: 22px; padding: 0 6px;
  border-radius: 5px !important;
  color: #fff !important; font-size: 10px; font-weight: 800; letter-spacing: 0.6px;
}
#zb-booking .zb-file-name {
  flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; color: var(--zb-navy);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
#zb-booking .zb-file-size { flex: 0 0 auto; font-size: 12px; color: var(--zb-muted); }
/* barre de progression : piste gris clair + remplissage doré animé */
#zb-booking .zb-up-track {
  flex: 0 0 96px; height: 6px;
  border-radius: 4px !important; background: #e5e7eb; overflow: hidden;
}
#zb-booking .zb-up-bar {
  display: block; height: 100%; width: 0;
  border-radius: 4px !important;
  background: linear-gradient(90deg, var(--zb-gold), var(--zb-gold-dark));
  transition: width 0.12s ease;
}
#zb-booking .zb-up-pct {
  flex: 0 0 36px; text-align: right;
  font-size: 11px; font-weight: 700; color: var(--zb-muted);
}
/* pastille de confirmation verte, visible uniquement quand le fichier est prêt */
#zb-booking .zb-up-ok {
  display: none; flex: 0 0 auto; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #059669;
  background: #ecfdf5; border: 1px solid #a7f3d0;
  border-radius: 20px !important; padding: 2px 10px; white-space: nowrap;
}
#zb-booking .zb-file-row.zb-file-done { border-color: #b8ecd2; background: #f6fdfa; }
#zb-booking .zb-file-row.zb-file-done .zb-up-track,
#zb-booking .zb-file-row.zb-file-done .zb-up-pct { display: none; }
#zb-booking .zb-file-row.zb-file-done .zb-up-ok { display: inline-flex; }
/* ✕ circulaire : dimensions forcées !important (le thème étire les buttons
   en pilule, d'où le cercle mal disposé signalé) */
#zb-booking .zb-file-rm {
  flex: 0 0 auto; box-sizing: border-box;
  width: 26px; height: 26px; min-width: 26px !important; max-width: 26px;
  padding: 0 !important; margin: 0; line-height: 1 !important;
  display: grid; place-items: center;
  font: inherit; font-size: 12px; font-weight: 700;
  background: #fff; color: var(--zb-muted);
  border: 1px solid var(--zb-line); border-radius: 50% !important; cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
#zb-booking .zb-file-rm:hover { color: var(--zb-err); border-color: var(--zb-err); background: #fef2f2; }
#zb-booking .zb-file-err { display: block; color: var(--zb-err); font-size: 12px; margin-top: 6px; min-height: 0; }

/* ---- Summary line on the confirm/details step --------------------------- */
#zb-booking .zb-summary {
  grid-column: 1 / -1;
  background: var(--zb-bg);
  border: 1px dashed var(--zb-line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--zb-navy);
  margin-bottom: 4px;
}
#zb-booking .zb-summary b { color: var(--zb-gold-dark); }

/* ---- Nav buttons -------------------------------------------------------- */
#zb-booking .zb-nav {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-top: 28px; padding: 18px 4px 4px;
  border-top: 1px solid var(--zb-line);
}
#zb-booking .zb-btn {
  font: inherit; font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 13px 26px; cursor: pointer;
  transition: transform 0.06s, box-shadow 0.18s, filter 0.15s, opacity 0.15s, background 0.15s;
}
#zb-booking .zb-btn:focus-visible { outline: 3px solid rgba(255, 183, 22, 0.45); outline-offset: 2px; }
#zb-booking .zb-btn:active { transform: translateY(1px); }
#zb-booking .zb-btn-primary {
  background: linear-gradient(135deg, var(--zb-gold) 0%, var(--zb-gold-dark) 100%);
  color: var(--zb-navy);
  box-shadow: 0 6px 18px rgba(255, 183, 22, 0.35);
}
#zb-booking .zb-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(255, 183, 22, 0.45); }
#zb-booking .zb-btn-primary:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; transform: none; }
#zb-booking .zb-btn-ghost { background: #fff; color: var(--zb-navy); border: 1.5px solid var(--zb-line); }
#zb-booking .zb-btn-ghost:hover { border-color: var(--zb-navy); background: var(--zb-bg); }

/* ---- Loading / messages ------------------------------------------------- */
#zb-booking .zb-loading { display: flex; align-items: center; gap: 10px; color: var(--zb-muted); font-size: 14px; padding: 20px 0; }
#zb-booking .zb-spinner {
  display: inline-block;
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border: 2.5px solid rgba(28, 42, 82, 0.15);
  border-top-color: var(--zb-gold);
  border-radius: 50% !important;
  animation: zb-spin 0.7s linear infinite;
  will-change: transform;
}
/* inside buttons (gold background) use a navy arc so it stays visible */
#zb-booking .zb-btn .zb-spinner {
  width: 18px; height: 18px;
  border-width: 3px;
  border-color: rgba(28, 42, 82, 0.30);
  border-top-color: var(--zb-navy);
}
@keyframes zb-spin { to { transform: rotate(360deg); } }
#zb-booking .zb-alert { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 16px; }
#zb-booking .zb-empty { color: var(--zb-muted); font-size: 14px; padding: 16px 0; text-align: center; }

/* ---- Success overlay ---------------------------------------------------- */
/* Appended to <body> (not inside #zb-booking), so these rules are GLOBAL and
   use literal colors instead of the #zb-booking CSS variables. */
.zb-success {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(21, 21, 21, 0.6);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: zb-fade 0.2s ease;
}
@keyframes zb-fade { from { opacity: 0; } to { opacity: 1; } }
.zb-success-card {
  background: #fff; border-radius: 18px; max-width: 440px; width: 100%;
  padding: 34px 28px; text-align: center;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  font-family: 'Poppins', 'Segoe UI', Arial, sans-serif;
}
.zb-success-icon {
  width: 70px; height: 70px; margin: 0 auto 16px;
  border-radius: 50%; background: #ecfdf3; color: #16a34a;
  display: grid; place-items: center; font-size: 34px;
}
.zb-success-card h3 { margin: 0 0 8px; color: #1c2a52; font-size: 22px; }
.zb-success-card p { color: #5f6b7d; font-size: 15px; margin: 0 0 6px; }
.zb-success-card .zb-ref { display: inline-block; margin: 12px 0 20px; background: #f5f7fb; border: 1px solid #e5e8ef; border-radius: 8px; padding: 8px 16px; font-weight: 700; letter-spacing: 0.5px; color: #1c2a52; }
.zb-success-card .zb-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: 10px; padding: 13px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.zb-success-card .zb-btn-primary { background: #1c2a52; color: #fff; }
.zb-success-card .zb-btn-primary:hover { background: #22306b; }
/* pied de carte : deux actions côte à côte (empilées si place manque) */
.zb-success-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.zb-success-actions .zb-btn { width: auto; flex: 1 1 170px; }
.zb-success-card .zb-btn-ghost { background: #fff; color: #1c2a52; border: 1.5px solid #e5e8ef; }
.zb-success-card .zb-btn-ghost:hover { border-color: #1c2a52; background: #f5f7fb; }
.zb-success-card button::before,
.zb-success-card button::after { display: none !important; content: normal !important; }

/* ---- Expert biography modal (rendered on <body>, outside #zb-booking) --- */
.zb-modal {
  position: fixed; inset: 0; z-index: 100000;
  background: rgba(17, 24, 39, 0.62);
  backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: zb-fade 0.2s ease;
  font-family: "Montserrat", "Segoe UI", Helvetica, Arial, sans-serif;
}
.zb-modal-card {
  position: relative;
  background: #fff; border-radius: 20px; max-width: 460px; width: 100%;
  padding: 40px 30px 30px; text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  max-height: 90vh; overflow-y: auto;
  animation: zb-pop 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}
@keyframes zb-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.zb-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 36px; height: 36px; border: none; cursor: pointer;
  border-radius: 50% !important; background: #f3f4f6; color: #6b7280;
  font-size: 15px; line-height: 1; display: grid; place-items: center;
  transition: background 0.18s, color 0.18s;
}
.zb-modal-close:hover { background: #e5e7eb; color: #1c2a52; }
.zb-modal button::before,
.zb-modal button::after { display: none !important; content: normal !important; }
.zb-modal-avatar {
  width: 104px; height: 104px; margin: 0 auto 16px;
  border-radius: 50% !important;
  border: 3px solid #fff;
  background-color: #eef1f6;
  background-position: center; background-size: cover; background-repeat: no-repeat;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 0 0 3px #ffb716, 0 12px 26px rgba(28, 42, 82, 0.18);
}
.zb-modal-initials {
  width: 100%; height: 100%; border-radius: 50% !important;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #22306b 0%, #1c2a52 100%);
  color: #ffb716; font-weight: 800; font-size: 34px; letter-spacing: 0.5px;
}
.zb-modal-name { margin: 0 0 8px; color: #1c2a52; font-size: 21px; font-weight: 800; }
.zb-modal-title {
  display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.2;
  color: #e0a200; background: rgba(255, 183, 22, 0.10);
  border: 1px solid rgba(224, 162, 0, 0.22);
  border-radius: 999px !important; padding: 5px 14px; margin-bottom: 6px;
}
.zb-modal-bio { color: #4b5563; font-size: 14.5px; line-height: 1.6; text-align: left; margin: 16px 0 4px; }
.zb-modal-section { margin-top: 16px; text-align: left; }
.zb-modal-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.6px;
  text-transform: uppercase; color: #9ca3af; margin-bottom: 8px;
}
.zb-modal .zb-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 0; }
.zb-modal .zb-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.zb-modal .zb-lang {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  color: #374151; background: #f3f4f6;
  border: 1px solid #e5e7eb; border-radius: 20px !important; padding: 5px 11px;
}
.zb-modal .zb-lang .zb-lang-globe { color: #9ca3af; display: block; }
.zb-modal .zb-spec {
  display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 600; line-height: 1;
  color: #1c2a52; background: #eef2ff;
  border: 1px solid #dfe5fb; border-radius: 20px !important; padding: 5px 11px;
}
.zb-modal-select {
  width: 100%; margin-top: 24px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: none; border-radius: 12px !important; padding: 14px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #ffb716 0%, #e0a200 100%); color: #1c2a52;
  box-shadow: 0 6px 18px rgba(255, 183, 22, 0.35);
  transition: transform 0.06s, box-shadow 0.18s, opacity 0.15s;
}
.zb-modal-select:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(255, 183, 22, 0.45); }
.zb-modal-select:disabled { opacity: 0.6; cursor: default; box-shadow: none; transform: none; }

/* ---- Service detail modal (step 1 · spec consultance_3 §2, rendered on
   <body> so every rule is global with literal colors) ---------------------- */
.zb-svc-modal .zb-modal-card {
  max-width: 520px; text-align: center;
  padding: 34px 30px 26px; border-radius: 18px;
}
.zb-svc-icon {
  width: 60px; height: 60px; margin: 0 auto 14px;
  border-radius: 14px !important;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #fff6e2, #eef2f7);
  border: 1px solid #e2e8f0;
  color: #b8860b;
}
.zb-svc-icon svg { width: 30px; height: 30px; display: block; }
.zb-svc-name { margin: 0 0 14px; color: #1c2a52; font-size: 20px; font-weight: 800; line-height: 1.3; padding: 0 28px; }
.zb-svc-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.zb-svc-modal .zb-badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.zb-svc-modal .zb-badge-time { background: #f1f5f9; color: #475569; }
.zb-svc-modal .zb-badge-fmt { background: #eef2ff; color: #1c2a52; }
.zb-svc-modal .zb-badge-price { background: #f1f5f9; color: #16a34a; }
.zb-svc-desc {
  text-align: left; font-size: 14px; line-height: 1.75; color: #3d4a63;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px;
  padding: 16px 18px; margin: 0 0 22px;
  max-height: 38vh; overflow-y: auto;
}
.zb-svc-actions { display: flex; }
.zb-svc-modal .zb-btn {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; border: none; border-radius: 12px !important; padding: 14px 22px;
  font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #ffb716 0%, #e0a200 100%); color: #1c2a52;
  box-shadow: 0 6px 18px rgba(255, 183, 22, 0.35);
  transition: transform 0.06s, box-shadow 0.18s;
}
.zb-svc-modal .zb-btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(255, 183, 22, 0.45); }

/* ---- Responsive --------------------------------------------------------- */
@media (max-width: 640px) {
  #zb-booking .zb-body { padding: 20px 16px; }
  #zb-booking .zb-form { grid-template-columns: 1fr; }
  #zb-booking .zb-steps { padding: 18px 10px 14px; }
  #zb-booking .zb-step { gap: 0; }
  #zb-booking .zb-step .zb-step-label { display: none; }
  #zb-booking .zb-btn { padding: 12px 18px; font-size: 14px; }
  #zb-booking .zb-title { font-size: 18px; }
  #zb-booking .zb-cal { padding: 6px; }
  #zb-booking .zb-cal-day { min-height: 40px; padding: 4px 1px; }
  #zb-booking .zb-cal-day .zb-cal-num { font-size: 14px; }
  #zb-booking .zb-cal-dow { font-size: 10px; }
  #zb-booking .zb-expert { padding: 22px 16px 20px; }
  #zb-booking .zb-expert .zb-expert-avatar { width: 72px; height: 72px; flex-basis: 72px; }
  #zb-booking .zb-expert.is-selected { padding: 21px 15px 19px; }
}
