/* Strong, consolidated wizard styles to override earlier duplicates. Mobile-first and authoritative. */
#booking-wizard { width:100%; box-sizing:border-box; padding:0 12px; display:flex; flex-direction:column; gap:12px; align-items:center; }
.wizard-step { width:100%; max-width:560px; background:#ffffff; border-radius:12px; padding:14px; box-shadow:0 10px 30px rgba(15,82,87,0.06); border:1px solid rgba(15,82,87,0.06); box-sizing:border-box; display:none; }
.wizard-step[data-step="1"] { display:block; }
.wizard-step.visible { display:block !important; }
.wizard-step h3 { margin:0 0 10px 0; font-size:1.05rem; color:#0f5257; }
.dog-row { display:flex; gap:10px; width:100%; justify-content:space-between; align-items:center; flex-wrap:wrap; }

/* Dog buttons */
.wizard-step .dog-count, .wizard-step button.dog-count {
  -webkit-appearance:none; appearance:none; border:1px solid rgba(15,82,87,0.08); background:#f7fafb; color:#0f5257; font-weight:700; font-size:1.04rem; padding:10px 0; min-width:56px; flex:1 1 0; border-radius:10px; text-align:center; transition:transform .12s ease, box-shadow .12s ease, background .12s ease; cursor:pointer;
}
.wizard-step .dog-count:focus{ outline:3px solid rgba(15,82,87,0.12); }
.wizard-step .dog-count.active, .wizard-step .dog-count[aria-pressed="true"]{
  background:#0f5257 !important; color:#fff !important; transform:translateY(-2px); box-shadow:0 12px 28px rgba(15,82,87,0.12) !important;
}

/* Frequency list */
.frequency-list { display:flex; flex-direction:column; gap:8px; }
.frequency-list label{ display:flex; align-items:center; gap:12px; padding:10px; border-radius:10px; background:#fbfdfe; border:1px solid rgba(15,82,87,0.04); cursor:pointer; }
.frequency-list input[type="radio"]{ transform:scale(1.12); accent-color:#0f5257; margin-right:8px; }

/* Frequency toggle buttons (step 2 — standard recurring) */
.cw-freq-btns { display:flex; gap:10px; flex-wrap:wrap; }
.cw-freq-btn {
  -webkit-appearance:none; appearance:none; border:1px solid rgba(15,82,87,0.15);
  background:#f7fafb; color:#0f5257; font-weight:600; font-size:0.93rem;
  padding:9px 16px; border-radius:10px; cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
  position:relative;
}
.cw-freq-btn.active, .cw-freq-btn[aria-pressed="true"] {
  background:#0f5257; color:#fff; border-color:transparent;
  box-shadow:0 8px 20px rgba(15,82,87,0.15);
}
.cw-freq-tag {
  display:inline-block; margin-left:6px; font-size:0.72rem; font-weight:700;
  background:#d4f7f0; color:#0a3838; padding:1px 6px; border-radius:6px;
  vertical-align:middle;
}
.cw-freq-btn.active .cw-freq-tag { background:rgba(255,255,255,0.25); color:#fff; }

/* Extras multipliers: hidden by default */
.svc-mults{ display:none; gap:8px; margin-top:8px; flex-wrap:wrap; }
.svc-mults.show{ display:flex !important; }
.svc-mults .mult{ padding:8px 10px; border-radius:8px; border:1px solid rgba(15,82,87,0.08); display:inline-flex; align-items:center; gap:8px; background:#fff; }

/* Multiplier card styling: mobile-first compact cards that look like dropdown chips */
.svc-mults{ display:none; gap:8px; margin-top:8px; flex-wrap:wrap; }
.svc-mults .mult{ display:inline-flex; align-items:center; gap:8px; padding:10px 12px; border-radius:10px; background:#ffffff; border:1px solid rgba(15,82,87,0.06); color:#0f5257; cursor:pointer; transition:transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease; }
.svc-mults .mult .wiz_mult{ margin-right:6px; transform:scale(1.05); }
.svc-mults .mult.selected{ background:#0f5257; color:#fff; border-color:rgba(15,82,87,0.12); box-shadow:0 10px 20px rgba(15,82,87,0.08); }

/* Hover effects only for devices that support hover (avoid hover rules on touch devices) */
@media (hover: hover) and (pointer: fine) {
  .svc-mults .mult:hover{ transform:translateY(-4px); box-shadow:0 12px 28px rgba(15,82,87,0.08); }
  .wiz-form-actions .c-btn:hover, .wiz-form-actions .btn-muted:hover{ color:#0b1220; }
}

/* Slightly larger tap targets on small screens */
@media (max-width:420px){
  .svc-mults .mult{ padding:12px 14px; font-weight:700; border-radius:12px; }
}

/* Extras row: left-align selection labels and keep price floated to the right */
.svc-row{ display:flex; align-items:center; gap:12px; justify-content:space-between; }
.svc-row .svc-check{ flex:1 1 auto; display:flex; align-items:center; gap:10px; }
.svc-row .svc-price{ margin-left:12px; flex:0 0 auto; white-space:nowrap; }

/* Multiplier container should center the chips when visible */
.svc-mults{ display:none; gap:8px; margin-top:8px; flex-wrap:wrap; justify-content:center; }
.svc-mults.show{ display:flex !important; justify-content:center; }

/* Summary and actions */
#wiz-summary{ padding:10px; background:#fbfdfe; border:1px solid rgba(15,82,87,0.04); border-radius:8px; color:#0f5257; font-weight:600; }
.wiz-actions{ display:flex; gap:10px; }
.wiz-actions .c-btn{ padding:10px 14px; border-radius:10px; border:none; background:#0f5257; color:#fff; font-weight:700; }
.wiz-actions .c-btn.secondary{ background:#f1f1f1; color:#0f5257; border:1px solid rgba(15,82,87,0.06); }

/* When a button is aria-disabled or visually muted, prevent pointer events and reduce opacity */
.c-btn[aria-disabled="true"], .c-btn.btn-muted{ opacity:0.62; pointer-events:none; }

/* Responsive: two-up dog buttons on very small screens */
@media (max-width:420px){
  .wizard-step{ padding:12px; }
  .dog-row{ gap:12px; }
  .wizard-step .dog-count{ flex:1 1 calc(50% - 12px) !important; max-width:calc(50% - 12px) !important; padding:12px 0; font-size:1.06rem; border-radius:12px; }
  .frequency-list label{ padding:12px; }
  .wiz-actions .c-btn{ padding:12px 16px; font-size:1.02rem; }
}

/* Accessibility helpers */
.wizard-step[aria-hidden="true"]{ display:none !important; }

/* High specificity fallback to ensure rules win over older CSS */
body #booking-wizard .wizard-step .dog-count.active{ background:#0f5257 !important; color:#fff !important; }

/* Minor polish */
.wizard-note{ font-size:0.92rem; color:#6b7280; }

/* Ensure the schedule form remains visually hidden (server-driven submission) */
#schedule-form{ display:none !important; }

/* Summary small note */
.summary-note{ font-size:0.9rem; color:#666; margin-top:6px; }

/* Submit/block inputs used by the wizard final confirmation */
.wiz-submit-block{ display:flex; flex-direction:column; gap:8px; margin-top:8px; }
.wiz-input{ padding:8px; border:1px solid rgba(15,82,87,0.06); border-radius:6px; font-size:1rem; }
.wiz-form-actions{ display:flex; gap:8px; margin-top:6px; }
.btn-muted{ background:#f1f1f1; color:#0f5257; border:1px solid rgba(15,82,87,0.06); }

/* Step 6 primary action emphasis */
#cleaning-wizard #cw-submit {
  background: linear-gradient(180deg, #22c55e, #16a34a);
  border: 1px solid #15803d;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.02rem;
  padding: 12px 18px;
  box-shadow: 0 12px 28px rgba(22, 163, 74, 0.32);
}
#cleaning-wizard #cw-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 163, 74, 0.38);
}
#cleaning-wizard #cw-submit:disabled {
  opacity: 0.8;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Consent banner styles (class-based, replaces inline markup) */
#consent-banner.consent-banner{ position:fixed; left:10px; right:10px; bottom:12px; background:#fff; border:1px solid #e2e8f0; padding:12px; border-radius:8px; box-shadow:0 6px 18px rgba(0,0,0,0.08); z-index:9999; font-family:system-ui,Segoe UI,Roboto,Arial,sans-serif; }
.consent-content{ display:flex; align-items:center; justify-content:space-between; gap:12px; }
.consent-text{ flex:1; }
.consent-desc{ color:#444; margin-top:6px; font-size:0.92em; }
.consent-actions{ display:flex; flex-direction:column; gap:6px; margin-left:12px; }
.consent-btn{ padding:8px 12px; border-radius:6px; cursor:pointer; border:1px solid transparent; }
.consent-btn.primary{ background:#007bff; color:#fff; border-color:transparent; }
.consent-btn.ghost{ background:#f1f1f1; color:#111; border-color:#ddd; }

/* Dark theme overrides (respect body.dark-theme applied by theme-toggle.js) */
body.dark-theme #booking-wizard .wizard-step{
  background:#041617; /* dark card */
  border-color: rgba(255,255,255,0.03);
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
  color: #dff7f3;
}
body.dark-theme .wizard-step h3{ color:#bfeee7; }
body.dark-theme .wizard-step .dog-count, body.dark-theme .wizard-step button.dog-count{
  background:#072c2b; color:#dff7f3; border-color: rgba(255,255,255,0.04);
}
body.dark-theme .wizard-step .dog-count:focus{ outline:3px solid rgba(11,179,165,0.12); }
body.dark-theme .wizard-step .dog-count.active, body.dark-theme .wizard-step .dog-count[aria-pressed="true"]{
  background:#11b3a8 !important; color:#022; transform:translateY(-2px); box-shadow:0 12px 28px rgba(2,18,16,0.4) !important;
}
body.dark-theme .frequency-list label{ background:transparent; border-color: rgba(255,255,255,0.03); color:#dff7f3; }
body.dark-theme .frequency-list input[type="radio"]{ accent-color:#11b3a8; }
body.dark-theme .svc-mults .mult{ background:#022a28; border-color: rgba(255,255,255,0.03); color:#dff7f3; }
body.dark-theme .svc-mults .mult.selected{ background:#10a994; color:#021617; box-shadow:0 8px 20px rgba(2,18,16,0.45); }
body.dark-theme #wiz-summary{ background:#021414; border-color: rgba(255,255,255,0.03); color:#dff7f3; }
body.dark-theme .wiz-input{ background:#011413; color:#eaf8f5; border-color: rgba(255,255,255,0.04); }
body.dark-theme .wiz-form-actions .c-btn{ background:#0d5857; color:#fff; }
body.dark-theme .c-btn[aria-disabled="true"], body.dark-theme .c-btn.btn-muted{ opacity:0.45; pointer-events:none; }

/* Consent banner in dark */
body.dark-theme #consent-banner.consent-banner{ background:#061719; border-color: rgba(255,255,255,0.03); color:#dff7f3; }
body.dark-theme .consent-btn.primary{ background:#0ea08f; }

/* ═══════════════════════════════════════════════════════════════════════════
   CLEANING WIZARD — #cleaning-wizard
   ═══════════════════════════════════════════════════════════════════════════ */

/* Container — mirrors #booking-wizard */
#cleaning-wizard {
  width:100%; box-sizing:border-box; padding:0 12px;
  display:flex; flex-direction:column; gap:12px; align-items:center;
}

/* Step visibility: .cw-step follows .wizard-step rules via shared class */
/* Step 1 always visible; others revealed by JS adding .visible */
.cw-step[data-step="1"] { display:block; }

/* Estimate badge */
.cw-estimate-badge {
  width:100%; max-width:560px; padding:10px 14px;
  margin-top:4px;
  background:#0f5257; color:#fff; border-radius:10px;
  font-weight:700; font-size:1rem; text-align:center;
  box-shadow:0 6px 18px rgba(15,82,87,0.14);
  box-sizing:border-box;
}

/* Cleaning page atmosphere */
body.cleaning-page {
  background: linear-gradient(180deg, #f3f7fb 0%, #f7fbf8 50%, #f8fafd 100%);
}

body.cleaning-page #booking {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(31, 98, 178, 0.16);
  box-shadow: 0 12px 30px rgba(20, 66, 120, 0.08);
  border-radius: 16px;
  padding: 18px 14px 24px;
}

/* ── Service type grid ───────────────────────── */
.cw-service-grid {
  display:flex; flex-direction:column; gap:14px;
}
@media (min-width:480px) {
  .cw-service-grid { flex-direction:row; }
}

.cw-svc-card {
  -webkit-appearance:none; appearance:none;
  flex:1; display:flex; flex-direction:column; align-items:flex-start;
  text-align:left; gap:10px; padding:26px 22px;
  min-height:180px;
  border-radius:16px; cursor:pointer;
  background:linear-gradient(180deg, #ffffff, #f7fbff);
  border:1px solid #cddcf1; color:#102a43;
  transition:transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.cw-service-grid .cw-svc-card:nth-child(1) {
  background: linear-gradient(180deg, #ffffff, #eef7ff);
}

.cw-service-grid .cw-svc-card:nth-child(2) {
  background: linear-gradient(180deg, #ffffff, #f2f8ff);
}
.cw-svc-card:focus { outline:3px solid rgba(15,82,87,0.18); }
.cw-svc-card.active,
.cw-svc-card[aria-pressed="true"] {
  background:linear-gradient(180deg, #165f9f, #114f86) !important; color:#fff !important;
  transform:translateY(-2px);
  box-shadow:0 14px 34px rgba(17,79,134,0.28) !important;
  border-color:#0f4f86;
}
@media (hover:hover) and (pointer:fine) {
  .cw-svc-card:not(.active):hover {
    transform:translateY(-3px); box-shadow:0 12px 30px rgba(16,42,67,0.12);
  }
}
.cw-svc-icon  { display:none; }
.cw-svc-card strong { font-size:1.16rem; letter-spacing:-0.01em; color:#0d3055; }
.cw-svc-range { font-size:1rem; font-weight:700; opacity:.92; }
.cw-svc-desc  { font-size:0.94rem; line-height:1.45; opacity:.82; }
.cw-svc-card.active .cw-svc-range,
.cw-svc-card.active .cw-svc-desc { opacity:.92; }
.cw-svc-card.active strong,
.cw-svc-card[aria-pressed="true"] strong { color:#fff; }

@media (max-width:479px) {
  .cw-svc-card {
    min-height: 160px;
    padding: 22px 18px;
  }
}

@media (min-width: 640px) {
  body.cleaning-page #booking {
    padding: 24px 20px 28px;
  }
}

/* ── Size buttons with inline price ─────────── */
.cw-size-price {
  display:block; font-size:0.8rem; font-weight:600; opacity:.72; margin-top:2px;
}
.dog-count.cw-size-btn { flex-direction:column; height:auto; min-height:58px; }
.dog-count.cw-size-btn.active .cw-size-price { opacity:.9; color:#fff; }

/* ── Add-on rows ─────────────────────────────── */
.cw-addon-row {
  padding:9px 0;
  border-bottom:1px solid rgba(15,82,87,0.05);
}
.cw-addon-row:last-child { border-bottom:none; }

/* ── Availability Calendar ───────────────────── */
.cw-cal { width:100%; box-sizing:border-box; overflow-x:auto; }

.cw-cal-header {
  display:grid; grid-template-columns:repeat(7,1fr);
  gap:2px; margin-bottom:4px;
}
.cw-cal-hd {
  text-align:center; font-size:0.76rem; font-weight:700;
  color:#0f5257; padding:4px 0;
}

.cw-cal-week {
  display:grid; grid-template-columns:repeat(7,1fr);
  gap:2px; margin-bottom:2px;
}
.cw-cal-day {
  display:flex; flex-direction:column; align-items:center;
  gap:3px; padding:5px 2px; border-radius:8px;
  background:#f7fafb; min-height:68px;
  border:1px solid rgba(15,82,87,0.05);
}
.cw-cal-day--dim {
  opacity:.3; background:#f0f0f0; border-color:transparent;
}
.cw-cal-dn { font-size:0.78rem; font-weight:700; color:#0f5257; }

/* Slot buttons */
.cw-slot {
  -webkit-appearance:none; appearance:none;
  width:90%; padding:4px 0; border-radius:5px;
  font-size:0.7rem; font-weight:700; cursor:pointer; border:none;
  transition:background .1s, color .1s;
}
.cw-slot--am   { background:#d9f0ef; color:#0f5257; }
.cw-slot--pm   { background:#c8e9e4; color:#0f5257; }
.cw-slot--full {
  display:block; width:90%; padding:4px 0; text-align:center;
  background:#ebebeb !important; color:#aaa !important;
  font-size:0.65rem; border-radius:5px; pointer-events:none;
}
.cw-slot.active { background:#0f5257 !important; color:#fff !important; }
.cw-slot--suggested { outline:2px dashed rgba(15,82,87,0.4); }
@media (hover:hover) and (pointer:fine) {
  .cw-slot:not(.cw-slot--full):hover { background:#0f5257; color:#fff; }
}

/* ── Booking summary (step 6) ────────────────── */
.cw-summary-lines { display:flex; flex-direction:column; gap:6px; }
.cw-summary-line  { padding:6px 10px; background:#f7fafb; border-radius:7px; font-size:0.95rem; }

/* ── Error ───────────────────────────────────── */
.cw-error {
  padding:10px 12px; background:#fff0f0;
  border:1px solid #fca5a5; border-radius:8px;
  color:#b91c1c; font-size:0.92rem; margin-bottom:8px;
}

/* ── Success screen ──────────────────────────── */
.cw-success { text-align:center; padding:24px 12px; }
.cw-success-icon { font-size:3rem; color:#0f5257; margin-bottom:10px; }
.cw-success h3   { color:#0f5257; margin-bottom:8px; }

/* ── Dark-theme overrides for cleaning wizard ── */
body.dark-theme #cleaning-wizard .wizard-step {
  background:#041617; border-color:rgba(255,255,255,0.03);
  box-shadow:0 6px 18px rgba(0,0,0,0.5); color:#dff7f3;
}
body.dark-theme #cleaning-wizard .wizard-step h3 { color:#bfeee7; }
body.dark-theme .cw-estimate-badge  { background:#0e6e6a; }
body.dark-theme .cw-svc-card        { background:#0b2430; color:#e4eff8; border-color:rgba(255,255,255,0.08); }
body.dark-theme .cw-svc-card strong { color:#eaf4ff; }
body.dark-theme .cw-service-grid .cw-svc-card:nth-child(1) { background: linear-gradient(180deg, #0e2738, #0b2333); }
body.dark-theme .cw-service-grid .cw-svc-card:nth-child(2) { background: linear-gradient(180deg, #0f2b40, #0b2436); }
body.dark-theme .cw-svc-card.active,
body.dark-theme .cw-svc-card[aria-pressed="true"] { background:#11b3a8 !important; color:#ffffff !important; border-color:transparent; }
body.dark-theme .cw-svc-card.active strong,
body.dark-theme .cw-svc-card[aria-pressed="true"] strong { color:#ffffff !important; }
body.dark-theme .cw-svc-card.active .cw-svc-range,
body.dark-theme .cw-svc-card[aria-pressed="true"] .cw-svc-range,
body.dark-theme .cw-svc-card.active .cw-svc-desc,
body.dark-theme .cw-svc-card[aria-pressed="true"] .cw-svc-desc { color:#f2fffb !important; opacity:0.98; }
body.dark-theme .cw-cal-day         { background:#052422; border-color:rgba(255,255,255,0.03); }
body.dark-theme .cw-cal-day--dim    { background:#030e0e; opacity:.25; }
body.dark-theme .cw-cal-dn          { color:#bfeee7; }
body.dark-theme .cw-slot--am        { background:#073330; color:#bfeee7; }
body.dark-theme .cw-slot--pm        { background:#062e2c; color:#bfeee7; }
body.dark-theme .cw-slot.active     { background:#0db09f !important; color:#011 !important; }
body.dark-theme .cw-summary-line    { background:#021414; color:#dff7f3; }
body.dark-theme .cw-addon-row       { border-color:rgba(255,255,255,0.03); color:#dff7f3; }
body.dark-theme .cw-error           { background:#2d0808; border-color:#7f1d1d; color:#fca5a5; }
body.dark-theme #cleaning-wizard #cw-submit {
  background: linear-gradient(180deg, #34d399, #10b981);
  border-color: #059669;
  color: #03211a;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.35);
}

/* Cleaning page table accents */
body.cleaning-page .pricing-table {
  border-color: #bfd3ee;
  box-shadow: 0 4px 14px rgba(20, 66, 120, 0.08);
  background: #f8fbff;
}

body.cleaning-page .pricing-table th {
  background: #e6f0ff;
  border-bottom: 1px solid #c8daf4;
  color: #123f73;
}

body.cleaning-page .pricing-table td {
  background: #f8fbff;
  border-bottom: 1px solid #e3ecfa;
}

body.cleaning-page .pricing-table tbody tr:nth-child(even) td {
  background: #f2f7ff;
}

body.dark-theme.cleaning-page .pricing-table {
  border-color: #294767;
  background: #121d2a;
}

body.dark-theme.cleaning-page .pricing-table th {
  background: #18283a;
  border-bottom-color: #2d4a6b;
  color: #dcecff;
}

body.dark-theme.cleaning-page .pricing-table td {
  background: #121d2a;
  border-bottom-color: #22374f;
  color: #dce6f3;
}

body.dark-theme.cleaning-page .pricing-table tbody tr:nth-child(even) td {
  background: #152334;
}

/* Dark-mode readability fixes for cleaning page hero + cards */
body.dark-theme.cleaning-page {
  background: linear-gradient(180deg, #0b1622 0%, #102033 50%, #0e1a2a 100%);
}

body.dark-theme.cleaning-page .cleaning-hero__headline h2 {
  color: #f4f8ff;
}

body.dark-theme.cleaning-page .cleaning-hero__perks li {
  color: #d7e7fb;
}

body.dark-theme.cleaning-page #booking {
  background: rgba(11, 28, 43, 0.72);
  border-color: rgba(106, 154, 214, 0.28);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
