/* ── DCB Booking Wizard — booking-wizard.css ────────────────────────────────
   Patient-facing step wizard for [dcb_booking] shortcode.
   Brand colour: var(--dcbw-primary) (DoxOnCall teal). Mobile-first, 680px max-width.
   All selectors prefixed with #dcbw to isolate from WordPress theme styles.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── CSS variable defaults (overridden at runtime by PHP wp_add_inline_style) ── */
#dcbw {
  --dcbw-primary: #0f766e;
  --dcbw-accent: #0d9488;
  --dcbw-success: #10b981;
  --dcbw-btn-txt: #fff;
  --dcbw-bg: #fff;
  --dcbw-primary-rgb: 15, 118, 110;
}

/* ── Theme isolation: scoped resets prevent WordPress/Elementor leakage ── */
#dcbw,
#dcbw * {
  box-sizing: border-box;
}
#dcbw {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  color: #1e293b;
  line-height: 1.5;
}
#dcbw h1,
#dcbw h2,
#dcbw h3,
#dcbw h4,
#dcbw h5,
#dcbw h6 {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  color: #0f172a;
  letter-spacing: normal;
  text-transform: none;
  box-shadow: none;
}
#dcbw p {
  margin: 0;
  padding: 0;
  font-family: inherit;
  line-height: 1.5;
  color: inherit;
}
#dcbw a {
  color: var(--dcbw-primary);
  text-decoration: underline;
  background: none;
}
#dcbw a:hover {
  color: var(--dcbw-accent);
}
#dcbw button {
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
  line-height: 1;
  -webkit-appearance: none;
  appearance: none;
  text-transform: none;
  letter-spacing: normal;
  color: inherit;
  border-radius: 0;
  box-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
#dcbw input,
#dcbw select,
#dcbw textarea {
  font-family: inherit;
  font-size: inherit;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  color: #111827;
  background: #fff;
}
#dcbw svg {
  display: block;
  flex-shrink: 0;
}
#dcbw ul,
#dcbw ol {
  list-style: none;
  margin: 0;
  padding: 0;
}
#dcbw strong,
#dcbw b {
  font-weight: 700;
}

/* ── Wrapper ── */
#dcbw {
  max-width: 680px;
  margin: 0 auto;
  position: relative;
  padding: 36px 32px 32px;
  background: #f8fafc;
  border-radius: 24px;
  box-shadow:
    0 8px 48px rgba(0, 0, 0, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.05);
}
@media (max-width: 600px) {
  #dcbw {
    border-radius: 16px;
    padding: 24px 18px 24px;
  }
}
@media (max-width: 480px) {
  #dcbw {
    padding: 20px 14px;
    border-radius: 12px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Wrapper-padding neutralizer
   When the wizard sits inside a page-level wrapper that adds its own padding
   /background (Tier 4 location pages: .wat-booking, .cork-booking, etc., and
   legacy service pages — all use `padding: 32px` on top of the wizard's own
   padding), the result is a "box-in-box" pinch on desktop and a too-narrow
   column on mobile that breaks the calendar / step labels.
   ───────────────────────────────────────────────────────────────────────── */
:where(.wat-booking, .cork-booking, .gal-booking, .lim-booking, .don-booking,
       .kil-booking, .wex-booking, .may-booking, .meath-booking, .lou-booking,
       .sli-booking, .ddm-booking, .ftw-booking, .prx-booking, .ode-booking,
       .mh-booking, .dub-booking, .derm-booking) {
  padding: 0 !important;
  background: transparent !important;
  text-align: left;
  border-radius: 0 !important;
}

/* ── Progress bar ── */
#dcbw .dcbw-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  padding: 0 4px;
  overflow: visible;
}
#dcbw .dcbw-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
/* Outer dot circle */
#dcbw .dcbw-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #94a3b8;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 3px rgba(0, 0, 0, 0.08),
    0 1px 2px rgba(0, 0, 0, 0.04);
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    box-shadow 0.3s;
  position: relative;
}
/* Default: show number */
#dcbw .dcbw-dot-num {
  line-height: 1;
  font-size: 14px;
  font-weight: 700;
}
#dcbw .dcbw-dot-icon {
  display: none;
  line-height: 0;
}
/* Active: teal + glow ring + show icon, hide number */
#dcbw .dcbw-step-dot.active .dcbw-dot {
  background: var(--dcbw-primary);
  border-color: var(--dcbw-primary);
  color: #fff;
  box-shadow:
    0 0 0 4px rgba(var(--dcbw-primary-rgb), 0.15),
    0 4px 12px rgba(var(--dcbw-primary-rgb), 0.3);
}
#dcbw .dcbw-step-dot.active .dcbw-dot-num {
  display: none;
}
#dcbw .dcbw-step-dot.active .dcbw-dot-icon {
  display: flex;
}
/* Done: green + checkmark via ::after, hide number + icon */
#dcbw .dcbw-step-dot.done .dcbw-dot {
  background: var(--dcbw-success);
  border-color: var(--dcbw-success);
  color: #fff;
  box-shadow: none;
}
#dcbw .dcbw-step-dot.done .dcbw-dot-num,
#dcbw .dcbw-step-dot.done .dcbw-dot-icon {
  display: none;
}
#dcbw .dcbw-step-dot.done .dcbw-dot::after {
  content: "✓";
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
/* Labels */
#dcbw .dcbw-dot-label {
  font-size: 11px;
  color: #9ca3af;
  font-weight: 500;
  white-space: nowrap;
}
#dcbw .dcbw-step-dot.active .dcbw-dot-label {
  color: var(--dcbw-primary);
  font-weight: 600;
}
#dcbw .dcbw-step-dot.done .dcbw-dot-label {
  color: var(--dcbw-success);
}
/* Connector line — fills green when preceding step is done */
#dcbw .dcbw-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  min-width: 16px;
  max-width: 60px;
  margin: 0 4px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
}
#dcbw .dcbw-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dcbw-success);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease 0.1s;
}
#dcbw .dcbw-step-dot.done + .dcbw-line::after {
  transform: scaleX(1);
}

/* ── Panel ── */
#dcbw .dcbw-panel {
  animation: dcbwFadeIn 0.2s ease;
}
#dcbw .dcbw-hidden {
  display: none !important;
}
@keyframes dcbwFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#dcbw .dcbw-panel h2 {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111827;
}
#dcbw .dcbw-sub {
  color: #6b7280;
  margin: 0 0 20px;
  font-size: 14px;
}

/* ── Step 1: Urgency banner ── */
#dcbw .dcbw-urgency {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 50px;
  padding: 10px 18px;
  margin-bottom: 20px;
  font-size: 13.5px;
  color: #065f46;
  font-weight: 500;
}
#dcbw .dcbw-urgency strong {
  font-weight: 700;
  color: #047857;
}
#dcbw .dcbw-urgency-dot {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  flex-shrink: 0;
  animation: dcbwPulse 1.8s ease-in-out infinite;
}
@keyframes dcbwPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  }
  50% {
    transform: scale(1.25);
    opacity: 0.85;
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
}

/* ── Step 1: Service grid ── */
#dcbw .dcbw-svc-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
/* Phase 4 — category group headers */
#dcbw .dcbw-svc-cat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 4px 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475467;
}
#dcbw .dcbw-svc-cat-header:first-child { margin-top: 4px; }
#dcbw .dcbw-svc-cat-icon { font-size: 16px; }
#dcbw .dcbw-svc-cat-name { line-height: 1; }
#dcbw .dcbw-svc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: #fff;
  cursor: pointer;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.1),
    0 2px 4px -2px rgb(0 0 0 / 0.06);
  transition:
    border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  position: relative;
}
#dcbw .dcbw-svc:hover:not(.selected),
#dcbw .dcbw-svc:focus-visible:not(.selected) {
  border-color: rgba(var(--dcbw-primary-rgb), 0.35);
  background: #f0fdfa;
  box-shadow:
    0 10px 25px -5px rgba(var(--dcbw-primary-rgb), 0.2),
    0 0 0 3px rgba(var(--dcbw-primary-rgb), 0.08);
  transform: translateY(-4px);
}
#dcbw .dcbw-svc:active {
  transform: scale(0.98);
}
#dcbw .dcbw-svc.selected {
  border-color: var(--dcbw-primary);
  border-width: 2px;
  background: #f0fdfa;
  box-shadow:
    0 0 0 4px rgba(var(--dcbw-primary-rgb), 0.1),
    0 4px 20px rgba(var(--dcbw-primary-rgb), 0.15);
  transform: none;
}
/* Icon badge */
#dcbw .dcbw-svc-icon-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
#dcbw .dcbw-svc.selected .dcbw-svc-icon-badge {
  background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%);
}
#dcbw .dcbw-svc-emoji {
  font-size: 22px;
  line-height: 1;
}
/* Body: name + meta row */
#dcbw .dcbw-svc-body {
  flex: 1;
  min-width: 0;
}
#dcbw .dcbw-svc-name {
  font-weight: 700;
  font-size: 15px;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#dcbw .dcbw-svc-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
}
#dcbw .dcbw-svc-duration-pill {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  background: #f3f4f6;
  border-radius: 50px;
  padding: 2px 9px;
  letter-spacing: 0.2px;
}
#dcbw .dcbw-svc.selected .dcbw-svc-duration-pill {
  background: #ccfbf1;
  color: #0f766e;
}
/* Price on the right */
#dcbw .dcbw-svc-right {
  flex-shrink: 0;
  text-align: right;
  margin-left: auto;
}
#dcbw .dcbw-svc-price {
  font-size: 20px;
  color: var(--dcbw-primary);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1;
}
/* Animated check badge */
#dcbw .dcbw-svc-check-wrap {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--dcbw-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#dcbw .dcbw-svc.selected .dcbw-svc-check-wrap {
  opacity: 1;
  transform: scale(1);
}

/* ── Wide pill button (Step 1 Continue) ── */
#dcbw .dcbw-footer--single {
  display: block;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}
#dcbw .dcbw-btn-wide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: linear-gradient(
    135deg,
    var(--dcbw-primary) 0%,
    var(--dcbw-accent) 100%
  );
  color: #fff;
  box-shadow: 0 4px 20px rgba(var(--dcbw-primary-rgb), 0.35);
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
#dcbw .dcbw-btn-wide:hover:not([disabled]) {
  background: linear-gradient(
    135deg,
    var(--dcbw-accent) 0%,
    var(--dcbw-primary) 100%
  );
  box-shadow: 0 6px 24px rgba(var(--dcbw-primary-rgb), 0.45);
  transform: translateY(-1px);
}
#dcbw .dcbw-btn-wide:active:not([disabled]) {
  transform: translateY(0);
}
#dcbw .dcbw-btn-wide[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: default;
  transform: none;
}

/* ── Step 2: Date & Time ── */
#dcbw .dcbw-dt-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin-bottom: 24px;
  align-items: start;
}
@media (max-width: 700px) {
  #dcbw .dcbw-dt-wrap {
    grid-template-columns: 1fr;
  }
}

/* Calendar card wrapper */
#dcbw .dcbw-cal-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  padding: 20px 20px 16px;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.07),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
  min-width: 252px;
  max-width: 280px;
}

/* Calendar internals */
#dcbw-cal {
  min-width: 0;
}
#dcbw .dcbw-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 2px;
}
#dcbw .dcbw-cal-title {
  font-weight: 700;
  font-size: 14px;
  color: #111827;
  letter-spacing: 0.1px;
}
#dcbw .dcbw-cal-nav {
  background: #f9fafb;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  font-size: 20px;
  cursor: pointer;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  line-height: 1;
}
#dcbw .dcbw-cal-nav:hover:not([disabled]) {
  border-color: var(--dcbw-primary);
  color: var(--dcbw-primary);
  background: #f0fdfa;
}
#dcbw .dcbw-cal-nav[disabled] {
  opacity: 0.3;
  cursor: default;
}
#dcbw .dcbw-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 34px);
  gap: 4px;
}
#dcbw .dcbw-cal-dow {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  padding: 4px 0 6px;
  user-select: none;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
#dcbw .dcbw-cal-cell {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s;
  color: #374151;
}
#dcbw .dcbw-cal-cell:hover:not(.disabled):not(.selected):not(.dcbw-cal-empty) {
  background: #f0fdfa;
  color: var(--dcbw-primary);
  border-radius: 50%;
}
/* Today: teal outlined ring so it reads as "current" without filling solid */
#dcbw .dcbw-cal-cell.today {
  font-weight: 700;
  color: var(--dcbw-primary);
  box-shadow: inset 0 0 0 2px var(--dcbw-primary);
  border-radius: 50%;
}
#dcbw .dcbw-cal-cell.disabled {
  color: #d1d5db;
  cursor: default;
  opacity: 0.55;
}
#dcbw .dcbw-cal-cell.selected {
  background: var(--dcbw-primary) !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 50%;
  box-shadow:
    0 4px 14px rgba(var(--dcbw-primary-rgb), 0.45),
    0 0 0 3px rgba(var(--dcbw-primary-rgb), 0.15);
}
#dcbw .dcbw-cal-cell.dcbw-cal-empty {
  background: transparent;
  cursor: default;
}

/* ── Slots Panel ── */
#dcbw-slots {
  min-width: 0;
  overflow: hidden;
  width: 100%;
}

/* Hint (before date selected) */
#dcbw .dcbw-slots-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  font-size: 13.5px;
  margin: 0;
  padding-top: 10px;
  font-style: italic;
}
#dcbw .dcbw-slots-hint svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* No slots */
#dcbw .dcbw-no-slots {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.6;
  gap: 10px;
}
#dcbw .dcbw-no-slots svg {
  opacity: 0.35;
}

/* Skeleton shimmer (replaces spinner while slots load) */
@keyframes dcbwShimmer {
  0% {
    background-position: -600px 0;
  }
  100% {
    background-position: 600px 0;
  }
}
#dcbw .dcbw-skeleton-wrap {
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.09),
    0 1px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #f0f3f6;
  padding: 20px;
  animation: dcbwFadeIn 0.22s ease;
}
#dcbw .dcbw-skeleton-header,
#dcbw .dcbw-skeleton-date,
#dcbw .dcbw-skeleton-slot,
#dcbw .dcbw-skeleton-btn {
  background: linear-gradient(90deg, #f3f4f6 25%, #e8e9ec 50%, #f3f4f6 75%);
  background-size: 1200px 100%;
  animation: dcbwShimmer 1.5s infinite linear;
  border-radius: 8px;
}
#dcbw .dcbw-skeleton-header {
  height: 20px;
  width: 58%;
  margin-bottom: 8px;
}
#dcbw .dcbw-skeleton-date {
  height: 14px;
  width: 38%;
  margin-bottom: 20px;
  animation-delay: 0.08s;
}
#dcbw .dcbw-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
#dcbw .dcbw-skeleton-slot {
  height: 44px;
  border-radius: 10px;
}
#dcbw .dcbw-skeleton-slot:nth-child(even) {
  animation-delay: 0.15s;
}
#dcbw .dcbw-skeleton-btn {
  height: 52px;
  border-radius: 50px;
  animation-delay: 0.2s;
}

/* Legacy mini-spin (keep for any fallback uses) */
#dcbw .dcbw-mini-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #e5e7eb;
  border-top-color: var(--dcbw-primary);
  border-radius: 50%;
  animation: dcbwSpin 0.6s linear infinite;
  flex-shrink: 0;
}

/* Card wrapper */
#dcbw .dcbw-slots-card {
  background: #fff;
  border-radius: 18px;
  box-shadow:
    0 4px 6px -1px rgb(0 0 0 / 0.08),
    0 2px 4px -2px rgb(0 0 0 / 0.05);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  min-width: 0;
  width: 100%;
  animation: dcbwFadeIn 0.22s ease;
}

/* Card header: title + date */
#dcbw .dcbw-slots-header {
  padding: 16px 12px 10px;
}
#dcbw .dcbw-slots-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: #111827;
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
#dcbw .dcbw-slots-date-label {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}
#dcbw .dcbw-slots-date-label strong {
  color: var(--dcbw-primary);
  font-weight: 700;
}

/* Slot grid body */
#dcbw .dcbw-slots-body {
  padding: 0 12px 12px;
  overflow: hidden;
}

/* 3-column slot grid — fixed columns guaranteed to fit any container width */
#dcbw .dcbw-slots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
}

/* Individual slot card */
#dcbw .dcbw-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  gap: 2px;
  min-height: 44px;
}
#dcbw .dcbw-slot-time {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}
#dcbw .dcbw-slot-price {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
}
#dcbw .dcbw-slot:hover:not(.dcbw-slot-taken):not(.selected) {
  border-color: rgba(var(--dcbw-primary-rgb), 0.4);
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(var(--dcbw-primary-rgb), 0.1);
  transform: translateY(-2px) scale(1.04);
}

/* Slot header title row (clock icon + heading) */
#dcbw .dcbw-slots-header-title {
  display: flex;
  align-items: center;
  gap: 8px;
}
#dcbw .dcbw-slots-header-title h3 {
  margin: 0;
}
#dcbw .dcbw-slot.selected {
  border-color: var(--dcbw-primary);
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(var(--dcbw-primary-rgb), 0.2);
}
#dcbw .dcbw-slot.selected .dcbw-slot-time {
  color: var(--dcbw-accent);
}
#dcbw .dcbw-slot.selected .dcbw-slot-price {
  color: var(--dcbw-primary);
  font-weight: 600;
}
#dcbw .dcbw-slot-taken {
  opacity: 0.35;
  cursor: default;
  border-color: #f3f4f6;
  background: #fafafa;
}
#dcbw .dcbw-slot-taken .dcbw-slot-time {
  text-decoration: line-through;
  color: #9ca3af;
}

/* View more link */
#dcbw .dcbw-view-more-wrap {
  padding: 8px 20px 4px;
}
#dcbw .dcbw-view-more {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: color 0.2s;
}
#dcbw .dcbw-view-more:hover {
  color: var(--dcbw-primary);
}
#dcbw .dcbw-slot.dcbw-slot-hidden {
  display: none;
}

/* Book Now button at bottom of card */
#dcbw .dcbw-slots-cta {
  padding: 16px 20px 20px;
  border-top: 1px solid #f0f3f6;
  margin-top: 8px;
}
#dcbw .dcbw-btn-book-now {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--dcbw-primary);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.2px;
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.2s;
  box-shadow: 0 4px 16px rgba(var(--dcbw-primary-rgb), 0.3);
}
#dcbw .dcbw-btn-book-now:hover:not([disabled]) {
  background: var(--dcbw-accent);
  box-shadow: 0 6px 20px rgba(var(--dcbw-primary-rgb), 0.4);
  transform: translateY(-1px);
}
#dcbw .dcbw-btn-book-now[disabled] {
  background: #d1d5db;
  color: #9ca3af;
  cursor: default;
  box-shadow: none;
  transform: none;
}

/* ── Step 3: GDPR trust banner ── */
#dcbw .dcbw-trust-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eff6ff;
  border-left: 3px solid #3b82f6;
  border-radius: 0 10px 10px 0;
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: #1e40af;
  font-weight: 500;
  line-height: 1.4;
}
#dcbw .dcbw-trust-banner svg {
  flex-shrink: 0;
  color: #3b82f6;
}

/* ── Step 3: Form section headers ── */
#dcbw .dcbw-form-section-head {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: #9ca3af;
  margin: 20px 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#dcbw .dcbw-form-section-head:first-child {
  margin-top: 0;
}
#dcbw .dcbw-form-section-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #f3f4f6;
}

/* ── Step 3: Patient Details Form ── */
#dcbw .dcbw-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  #dcbw .dcbw-row {
    grid-template-columns: 1fr;
  }
}
#dcbw .dcbw-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
#dcbw .dcbw-row .dcbw-field {
  margin-bottom: 0;
}
#dcbw .dcbw-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: #374151;
  letter-spacing: 0.1px;
}
#dcbw .dcbw-field label b {
  color: #ef4444;
  font-weight: 700;
}
#dcbw .dcbw-field input,
#dcbw .dcbw-field select,
#dcbw .dcbw-field textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: #111827;
  background: #fff;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
}
#dcbw .dcbw-field input:focus,
#dcbw .dcbw-field select:focus,
#dcbw .dcbw-field textarea:focus {
  outline: none;
  border-color: var(--dcbw-primary);
  box-shadow:
    -3px 0 0 0 var(--dcbw-primary),
    0 0 0 3px rgba(10, 126, 164, 0.08);
}
#dcbw .dcbw-field textarea {
  resize: vertical;
  min-height: 96px;
}

/* Validation */
#dcbw .dcbw-field input.dcbw-invalid,
#dcbw .dcbw-field select.dcbw-invalid,
#dcbw .dcbw-field textarea.dcbw-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}
#dcbw input.dcbw-invalid,
#dcbw select.dcbw-invalid,
#dcbw textarea.dcbw-invalid {
  border-color: #ef4444;
}

/* ── Checkboxes group ── */
#dcbw .dcbw-checks-group {
  background: #f9fafb;
  border: 1.5px solid #f0f3f6;
  border-radius: 12px;
  padding: 14px 16px;
  margin-top: 20px;
  margin-bottom: 4px;
}
#dcbw .dcbw-check {
  margin-bottom: 12px;
}
#dcbw .dcbw-check:last-child {
  margin-bottom: 0;
}
#dcbw .dcbw-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: #6b7280;
  line-height: 1.5;
}
/* Custom styled checkbox */
#dcbw .dcbw-check input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-radius: 5px;
  background: #fff;
  cursor: pointer;
  margin-top: 1px;
  transition:
    border-color 0.15s,
    background 0.15s;
  position: relative;
}
#dcbw .dcbw-check input[type="checkbox"]:hover {
  border-color: var(--dcbw-primary);
}
#dcbw .dcbw-check input[type="checkbox"]:checked {
  background: var(--dcbw-primary);
  border-color: var(--dcbw-primary);
}
/* Checkmark via pseudo-element */
#dcbw .dcbw-check input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translate(-50%, -60%) rotate(-45deg);
  opacity: 0;
  transition: opacity 0.12s;
}
#dcbw .dcbw-check input[type="checkbox"]:checked::after {
  opacity: 1;
}
#dcbw .dcbw-check input.dcbw-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}
#dcbw .dcbw-check a {
  color: var(--dcbw-primary);
  text-decoration: underline;
}

/* ── Step 3 footer: ghost back + gradient continue ── */
#dcbw .dcbw-footer--steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}
#dcbw .dcbw-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 10px 4px;
  transition: color 0.2s;
}
#dcbw .dcbw-btn-ghost:hover {
  color: #374151;
}
#dcbw .dcbw-btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: linear-gradient(
    135deg,
    var(--dcbw-primary) 0%,
    var(--dcbw-accent) 100%
  );
  color: #fff;
  box-shadow: 0 4px 16px rgba(var(--dcbw-primary-rgb), 0.3);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
}
#dcbw .dcbw-btn-cta:hover:not([disabled]) {
  background: linear-gradient(
    135deg,
    var(--dcbw-accent) 0%,
    var(--dcbw-primary) 100%
  );
  box-shadow: 0 6px 20px rgba(var(--dcbw-primary-rgb), 0.42);
  transform: translateY(-1px);
}
#dcbw .dcbw-btn-cta:active:not([disabled]) {
  transform: translateY(0);
}
#dcbw .dcbw-btn-cta[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: default;
}

/* ── Step 4: Review Summary card — glassmorphism ── */
#dcbw .dcbw-summary {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-top: 4px solid var(--dcbw-primary);
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}
#dcbw .dcbw-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 20px;
  border-bottom: 1px solid #f0f3f6;
  font-size: 14px;
  gap: 12px;
}
#dcbw .dcbw-sum-row:last-child {
  border-bottom: none;
}
/* Label column: icon + text in a flex row */
#dcbw .dcbw-sum-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  flex-shrink: 0;
  font-size: 13px;
}
#dcbw .dcbw-sum-row strong {
  color: #111827;
  text-align: right;
  font-weight: 600;
  font-size: 14px;
  word-break: break-word;
}
/* Total row — teal highlight strip */
#dcbw .dcbw-sum-total {
  background: linear-gradient(
    135deg,
    var(--dcbw-primary) 0%,
    var(--dcbw-accent) 100%
  );
  padding: 16px 20px;
}
#dcbw .dcbw-sum-total span {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 14px;
}
#dcbw .dcbw-sum-total strong {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* ── Step 4: Trust strip ── */
#dcbw .dcbw-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
#dcbw .dcbw-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: #6b7280;
  font-weight: 500;
}
#dcbw .dcbw-trust-item svg {
  color: var(--dcbw-success);
  flex-shrink: 0;
}
#dcbw .dcbw-trust-sep {
  color: #d1d5db;
  font-size: 12px;
  line-height: 1;
}

/* ── Step 4: Pay section ── */
#dcbw .dcbw-pay-section {
  margin-bottom: 12px;
}
#dcbw .dcbw-btn-pay-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 50px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: linear-gradient(
    135deg,
    var(--dcbw-primary) 0%,
    var(--dcbw-accent) 100%
  );
  color: #fff;
  box-shadow: 0 6px 24px rgba(var(--dcbw-primary-rgb), 0.38);
  transition:
    background 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  letter-spacing: 0.2px;
}
#dcbw .dcbw-btn-pay-full:hover:not([disabled]) {
  background: linear-gradient(
    135deg,
    var(--dcbw-accent) 0%,
    var(--dcbw-primary) 100%
  );
  box-shadow: 0 8px 28px rgba(var(--dcbw-primary-rgb), 0.48);
  transform: translateY(-1px);
}
#dcbw .dcbw-btn-pay-full:active:not([disabled]) {
  transform: translateY(0);
}
#dcbw .dcbw-btn-pay-full[disabled] {
  background: #e5e7eb;
  color: #9ca3af;
  box-shadow: none;
  cursor: default;
  transform: none;
}
/* Security note below pay button */
#dcbw .dcbw-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 12px 0 0;
}
#dcbw .dcbw-secure svg {
  flex-shrink: 0;
}
/* Ghost back link below pay */
#dcbw .dcbw-pay-back {
  display: flex;
  justify-content: center;
  padding-top: 12px;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}

/* ── Shared footer (Steps 1 & 2) ── */
#dcbw .dcbw-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  gap: 12px;
  margin-top: 8px;
}

/* ── Shared buttons (Steps 1 & 2 Continue / Back) ── */
#dcbw .dcbw-btn-primary,
#dcbw .dcbw-btn-sec {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition:
    background 0.15s,
    transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
  font-family: inherit;
}
#dcbw .dcbw-btn-primary {
  background: var(--dcbw-primary);
  color: #fff;
}
#dcbw .dcbw-btn-primary:hover:not([disabled]) {
  background: var(--dcbw-accent);
}
#dcbw .dcbw-btn-primary[disabled] {
  background: #9ca3af;
  cursor: default;
}
#dcbw .dcbw-btn-sec {
  background: #f3f4f6;
  color: #374151;
  border: 1.5px solid #e5e7eb;
}
#dcbw .dcbw-btn-sec:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

/* ── Notices ── */
#dcbw .dcbw-notice {
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 20px;
}
#dcbw .dcbw-notice p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
#dcbw .dcbw-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}
#dcbw .dcbw-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
}

/* ── Success screen ── */
#dcbw .dcbw-success {
  text-align: center;
  padding: 32px 16px 24px;
}
#dcbw .dcbw-success-icon {
  font-size: 60px;
  line-height: 1;
  margin-bottom: 12px;
}
#dcbw .dcbw-success h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--dcbw-success);
  margin: 0 0 8px;
}
#dcbw .dcbw-success > p {
  color: #6b7280;
  font-size: 15px;
  margin: 0 0 20px;
  line-height: 1.6;
}
#dcbw .dcbw-success-details {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 20px;
  display: inline-block;
  text-align: left;
  min-width: 260px;
  max-width: 100%;
  margin-bottom: 20px;
}
#dcbw .dcbw-success-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 8px 0;
  border-bottom: 1px solid #d1fae5;
  font-size: 14px;
}
#dcbw .dcbw-success-details div:last-child {
  border-bottom: none;
}
#dcbw .dcbw-success-details span {
  color: #6b7280;
}
#dcbw .dcbw-success-details strong {
  color: #111827;
}
#dcbw .dcbw-ref {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}
#dcbw .dcbw-ref code {
  background: #f3f4f6;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: "Courier New", monospace;
  font-size: 13px;
  color: #374151;
}

/* ── Spinner overlay ── */
#dcbw .dcbw-spinner-wrap {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
}
#dcbw .dcbw-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e5e7eb;
  border-top-color: var(--dcbw-primary);
  border-radius: 50%;
  animation: dcbwSpin 0.8s linear infinite;
}
#dcbw .dcbw-spinner-wrap p {
  color: #6b7280;
  margin: 12px 0 0;
  font-size: 14px;
}
@keyframes dcbwSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Mobile tweaks ── */
@media (max-width: 420px) {
  #dcbw .dcbw-panel h2 {
    font-size: 19px;
  }
  #dcbw .dcbw-dot {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  #dcbw .dcbw-dot-label {
    display: none;
  }
  #dcbw .dcbw-urgency {
    font-size: 12.5px;
    padding: 9px 14px;
  }
  #dcbw .dcbw-svc-icon-badge {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  #dcbw .dcbw-svc-emoji {
    font-size: 18px;
  }
  #dcbw .dcbw-svc-price {
    font-size: 17px;
  }
  #dcbw .dcbw-cal-grid {
    grid-template-columns: repeat(7, 30px);
  }
  #dcbw .dcbw-cal-cell {
    width: 30px;
    height: 30px;
    font-size: 12px;
  }
  #dcbw .dcbw-btn-pay {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ─── Phase E: Telemedicine elements ─────────────────────────────────────── */
#dcbw .dcbw-country-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: #1e40af;
  margin-bottom: 14px;
}
#dcbw .dcbw-country-notice svg {
  flex-shrink: 0;
  color: #3b82f6;
}

#dcbw .dcbw-consult-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f9ff;
  color: var(--dcbw-primary);
  border: 1px solid rgba(var(--dcbw-primary-rgb), 0.2);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  margin-left: 6px;
}
#dcbw .dcbw-consult-badge svg {
  flex-shrink: 0;
}

#dcbw .dcbw-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  color: #92400e;
  margin-top: 14px;
}
#dcbw .dcbw-disclaimer svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: #d97706;
}

#dcbw .dcbw-preconsult {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
  font-size: 13px;
  color: #166534;
}
#dcbw .dcbw-preconsult strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}
#dcbw .dcbw-preconsult ul {
  margin: 0;
  padding-left: 18px;
}
#dcbw .dcbw-preconsult li {
  margin-bottom: 4px;
  line-height: 1.5;
}

/* ── Coupon / Discount Code section (Step 4) ─────────────────────────────── */
#dcbw .dcbw-coupon-section {
  margin: 16px 0 4px;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
#dcbw .dcbw-coupon-section.dcbw-coupon-applied {
  border-color: var(--dcbw-success, #059669);
  border-style: solid;
}
#dcbw .dcbw-coupon-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dcbw-primary, #0a7ea4);
  cursor: pointer;
  text-align: left;
}
#dcbw .dcbw-coupon-toggle:hover {
  background: rgba(var(--dcbw-primary-rgb, 10, 126, 164), 0.05);
}
#dcbw .dcbw-coupon-chevron {
  margin-left: auto;
  transition: transform 0.2s;
}
#dcbw .dcbw-coupon-section.open .dcbw-coupon-chevron {
  transform: rotate(180deg);
}
#dcbw .dcbw-coupon-body {
  padding: 4px 16px 14px;
  border-top: 1px solid #f3f4f6;
}
#dcbw .dcbw-coupon-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
#dcbw .dcbw-coupon-row input[type="text"] {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff;
  color: #111827;
  outline: none;
  transition: border-color 0.2s;
}
#dcbw .dcbw-coupon-row input[type="text"]:focus {
  border-color: var(--dcbw-primary, #0a7ea4);
  box-shadow: 0 0 0 3px rgba(var(--dcbw-primary-rgb, 10, 126, 164), 0.12);
}
#dcbw .dcbw-coupon-apply-btn {
  height: 40px;
  padding: 0 18px;
  background: var(--dcbw-primary, #0a7ea4);
  color: var(--dcbw-btn-txt, #fff);
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
#dcbw .dcbw-coupon-apply-btn:hover {
  opacity: 0.88;
}
#dcbw .dcbw-coupon-apply-btn:disabled {
  opacity: 0.5;
  cursor: default;
}
#dcbw .dcbw-coupon-msg {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
#dcbw .dcbw-coupon-msg.dcbw-coupon-ok {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
#dcbw .dcbw-coupon-msg.dcbw-coupon-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}
/* Discount line inside the summary card */
#dcbw .dcbw-sum-discount {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #f0fdf4;
  color: #166534;
  font-size: 13px;
  font-weight: 600;
  border-top: 1px solid #bbf7d0;
}
#dcbw .dcbw-sum-discount .dcbw-sum-discount-code {
  font-size: 11px;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #15803d;
}
#dcbw .dcbw-coupon-remove {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 0 0 8px;
  margin-left: auto;
}
#dcbw .dcbw-coupon-remove:hover {
  color: #ef4444;
}

/* ── Payment Method Selector ────────────────────────────────────────────── */
#dcbw .dcbw-pm-wrap {
  margin: 20px 0 4px;
}
#dcbw .dcbw-pm-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 10px;
}
#dcbw .dcbw-pm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
#dcbw .dcbw-pm-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 14px;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}
#dcbw .dcbw-pm-btn:hover {
  border-color: var(--dcbw-primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--dcbw-primary-rgb), 0.12);
}
#dcbw .dcbw-pm-btn.selected {
  border-color: var(--dcbw-primary);
  background: #f0fdfa;
  box-shadow: 0 0 0 3px rgba(var(--dcbw-primary-rgb), 0.12);
}
#dcbw .dcbw-pm-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  transition:
    background 0.2s,
    color 0.2s;
}
#dcbw .dcbw-pm-btn.selected .dcbw-pm-icon {
  background: rgba(var(--dcbw-primary-rgb), 0.12);
  color: var(--dcbw-primary);
}
#dcbw .dcbw-pm-btn strong {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  display: block;
}
#dcbw .dcbw-pm-btn small {
  font-size: 11px;
  color: #6b7280;
  display: block;
  line-height: 1.4;
}
@media (max-width: 480px) {
  #dcbw .dcbw-pm-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  #dcbw .dcbw-pm-btn {
    padding: 12px 8px;
  }
  #dcbw .dcbw-pm-icon {
    width: 36px;
    height: 36px;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Popup mode  ([dcb_booking in_dialog="1" trigger="..." service="N"])
   Renders a hidden modal containing an iframe to /book-an-appointment/.
   Multi-instance safe (each iframe = own JS context).
   ───────────────────────────────────────────────────────────────────────── */
.dcbw-popup {
  position: fixed; inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.dcbw-popup-backdrop {
  position: absolute; inset: 0;
  background: rgba(13, 27, 42, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.dcbw-popup-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  height: 90vh;
  max-height: 920px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.dcbw-popup-frame {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  display: block;
}
.dcbw-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  transition: background 0.15s, transform 0.15s;
}
.dcbw-popup-close:hover { background: #fff; transform: scale(1.07); }
.dcbw-popup-close:focus-visible { outline: 2px solid #0a7ea4; outline-offset: 2px; }
body.dcbw-popup-open { overflow: hidden; }

@media (max-width: 640px) {
  .dcbw-popup { padding: 0; }
  .dcbw-popup-card {
    max-width: none;
    height: 100vh;
    max-height: none;
    border-radius: 0;
  }
}

/* ─────────────────────────────────────────────────────────────────────────
   Embed mode  (page loaded with ?dcbw_embed=1, i.e. inside popup iframe)
   Hides the theme chrome so the iframe shows only the wizard.
   ───────────────────────────────────────────────────────────────────────── */
body.dcbw-embed,
body.dcbw-embed #page,
body.dcbw-embed .doc-page-wrapper { background: #fff !important; }

body.dcbw-embed .doc-site-header,
body.dcbw-embed .doc-site-footer,
body.dcbw-embed .doc-footer-cta-band,
body.dcbw-embed #doc-site-header,
body.dcbw-embed #wpadminbar { display: none !important; }

/* Tighten the wizard padding when embedded — the modal already provides margin */
body.dcbw-embed { padding-top: 0 !important; margin-top: 0 !important; }
body.dcbw-embed main, body.dcbw-embed .site-main, body.dcbw-embed .entry-content {
  padding-top: 0 !important; margin-top: 0 !important;
}

/* ── Trust badges row (below wizard) ─────────────────────────────────── */
#dcbw .dcbw-trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 24px;
  padding: 16px 12px 4px;
  margin-top: 4px;
  font-size: 12px;
  color: #6b7280;
}
#dcbw .dcbw-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
#dcbw .dcbw-trust-item svg { color: #0a7ea4; flex-shrink: 0; }
@media (max-width: 480px) {
  #dcbw .dcbw-trust-row { gap: 8px 14px; font-size: 11px; padding: 12px 8px 0; }
}

/* ── Doctor strip on Step 1 (trust signal) ───────────────────────────── */
#dcbw .dcbw-doctors-strip {
  margin: 18px 0 8px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #f0fdfa 0%, #ecfeff 100%);
  border: 1px solid #a7f3d0;
  border-radius: 10px;
}
#dcbw .dcbw-doctors-strip-head {
  font-size: 12px;
  color: #115e59;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 12px;
}
#dcbw .dcbw-doctors-strip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}
#dcbw .dcbw-doctor-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 8px 10px;
}
#dcbw .dcbw-doctor-avatar {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0a7ea4 0%, #14b8a6 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
#dcbw .dcbw-doctor-meta { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
#dcbw .dcbw-doctor-name { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#dcbw .dcbw-doctor-quals { font-size: 11px; color: #6b7280; }
#dcbw .dcbw-doctor-imc { font-size: 10.5px; color: #115e59; font-family: "SF Mono", Menlo, Consolas, monospace; }
@media (max-width: 480px) {
  #dcbw .dcbw-doctors-strip-grid { grid-template-columns: 1fr; }
}

/* ── Doctor card on Step 4 summary ─────────────────────────────────── */
#dcbw .dcbw-doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 100%);
  border: 1px solid #a5f3fc;
  border-radius: 10px;
  margin-bottom: 14px;
}
#dcbw .dcbw-doc-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
#dcbw .dcbw-doc-avatar-img { width: 100%; height: 100%; object-fit: cover; }
#dcbw .dcbw-doc-avatar-init {
  font-weight: 700; font-size: 18px; color: #0a7ea4;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}
#dcbw .dcbw-doc-meta { flex: 1; min-width: 0; }
#dcbw .dcbw-doc-name { font-weight: 700; color: #0f172a; font-size: 14px; margin-bottom: 2px; }
#dcbw .dcbw-doc-sub  { font-size: 11.5px; color: #475467; line-height: 1.4; }
#dcbw .dcbw-doc-bio  { font-size: 12px; color: #475467; line-height: 1.45; margin-top: 4px; }
