/* ===================================================
   WASHING BEES — Shared Design System
   Theme: honeycomb / worker-bee efficiency
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

:root {
  --ink: #1C1C1E;
  --honey: #F5A623;
  --honey-deep: #D98E04;
  --cream: #FFF8E7;
  --cream-dim: #FBF1D9;
  --success: #3C8A5A;
  --danger: #C0392B;
  --line: #E7D9AE;
  --shadow: 0 8px 24px rgba(28,28,30,0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }

/* Suppress the browser's default focus ring on click/tap (which is what was
   showing up around every button/card and giving a "cheap" look) while
   keeping a clean, deliberate focus ring for keyboard navigation — so the
   site stays accessible without the default outline appearing on every
   mouse click. */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 2px;
  border-radius: 4px;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3, .display {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}
.brand .mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 2px solid var(--honey-deep);
  box-shadow: 0 2px 6px rgba(28,28,30,0.10);
  overflow: hidden;
  flex-shrink: 0;
}
.brand .mascot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
.brand span { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; }

.step-mascot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  margin: 0 auto 14px;
  border-radius: 16px;
  border: 2.5px solid var(--honey-deep);
  box-shadow: 0 3px 10px rgba(28,28,30,0.12);
  overflow: hidden;
}
.step-mascot img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}

/* ---------- Honeycomb step tracker (signature element) ---------- */
.hive-tracker {
  display: flex;
  justify-content: space-between;
  margin: 8px 0 32px;
  position: relative;
}
.hive-tracker::before {
  content: '';
  position: absolute;
  top: 23px; left: 24px; right: 24px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.hive-cell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.hive-hex {
  position: relative;
  width: 54px; height: 47px;
  clip-path: polygon(25% 1%, 75% 1%, 100% 50%, 75% 99%, 25% 99%, 0% 50%);
  background: linear-gradient(155deg, #e3d3a1, var(--line));
  filter: drop-shadow(0 3px 7px rgba(28,28,30,0.14));
  display: flex; align-items: center; justify-content: center;
  transition: all .35s ease;
}
.hive-hex::before {
  content: '';
  position: absolute;
  inset: 2.5px;
  clip-path: polygon(25% 1%, 75% 1%, 100% 50%, 75% 99%, 25% 99%, 0% 50%);
  background: #fff;
  transition: all .35s ease;
}
.hive-hex .hex-num {
  position: relative;
  z-index: 1;
  font-weight: 700;
  font-size: 15px;
  color: #9c8a5c;
  transition: color .35s ease;
}
.hive-cell.active .hive-hex {
  background: linear-gradient(155deg, var(--honey), var(--honey-deep));
  transform: scale(1.1);
}
.hive-cell.active .hive-hex::before { background: var(--honey); }
.hive-cell.active .hive-hex .hex-num { color: var(--ink); }
.hive-cell.done .hive-hex {
  background: linear-gradient(155deg, #3a3a3d, var(--ink));
}
.hive-cell.done .hive-hex::before { background: var(--ink); }
.hive-cell.done .hive-hex .hex-num { color: var(--honey); }
.hive-label { font-size: 11px; color: #8a7a52; text-align: center; max-width: 70px; }
.hive-cell.active .hive-label { color: var(--ink); font-weight: 600; }

/* ---------- Cards / panels ---------- */
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #6b5d38;
}
.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  background: var(--cream-dim);
  color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--honey);
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 20px;
  border-radius: 10px;
  border: none;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: var(--honey); }
.btn-primary:hover { box-shadow: 0 6px 16px rgba(28,28,30,0.25); }
.btn-primary:disabled { background: #cbbf9a; color: #fff; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-locate { background: var(--cream-dim); color: var(--honey-deep); border: 1.5px solid var(--honey); font-size: 13px; padding: 10px; }

.hint { font-size: 12px; color: #8a7a52; margin-top: 6px; }
.error-text { font-size: 12px; color: var(--danger); margin-top: 6px; display: none; }

.whatsapp-notice {
  background: #E7F8EC;
  border: 1px solid #A9DDB6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  color: #245C33;
  margin: 4px 0 14px;
  line-height: 1.5;
}
.whatsapp-notice a { color: #1C6E32; font-weight: 600; text-decoration: underline; }

.inapp-banner {
  background: #FDEDEC;
  border: 1.5px solid #E6A29B;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 13.5px;
  color: #7A2E24;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* ---------- Service category tabs ---------- */
.category-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.category-tab {
  flex: 1 1 auto;
  white-space: nowrap;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--cream-dim);
  color: #6b5d38;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s ease;
}
.category-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--honey);
}

/* ---------- Service cards ---------- */
.service-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  background: var(--cream-dim);
}
.service-option.selected {
  border-color: var(--honey-deep);
  background: #FFF3D6;
  box-shadow: 0 0 0 2px var(--honey);
}
.service-name { font-weight: 600; }
.service-desc { font-size: 12px; color: #8a7a52; margin-top: 2px; }
.service-price { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 18px; white-space: nowrap; flex-shrink: 0; }

/* ---------- Date & slot picker ---------- */
.slot-section { margin: 22px 0 6px; }
.slot-section h3 { font-size: 15px; margin-bottom: 10px; }
.date-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
  margin-bottom: 16px;
}
.date-pill {
  flex: 0 0 auto;
  min-width: 64px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--cream-dim);
  cursor: pointer;
  font-family: 'IBM Plex Sans', sans-serif;
}
.date-pill .dow { display: block; font-size: 11px; color: #8a7a52; font-weight: 600; }
.date-pill .dom { display: block; font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.date-pill.selected { background: var(--ink); border-color: var(--ink); }
.date-pill.selected .dow { color: #cbb87a; }
.date-pill.selected .dom { color: var(--honey); }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 8px;
}
.slot-option {
  text-align: center;
  padding: 11px 8px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: var(--cream-dim);
  font-size: 13.5px;
  font-weight: 600;
  color: #6b5d38;
  cursor: pointer;
}
.slot-option.selected {
  border-color: var(--honey-deep);
  background: #FFF3D6;
  box-shadow: 0 0 0 2px var(--honey);
  color: var(--ink);
}
.slot-option.full {
  opacity: 0.45;
  cursor: not-allowed;
  text-decoration: line-through;
  background: var(--cream-dim);
}
.slot-picked-summary {
  font-size: 13px;
  color: #6b5d38;
  background: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0 6px;
}

/* ---------- Coupon box ---------- */
.coupon-section {
  margin-top: 18px;
  padding: 16px;
  border-radius: 10px;
  background: var(--cream-dim);
  border: 1px solid var(--line);
}
.coupon-label {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.coupon-row {
  display: flex;
  gap: 8px;
}
.coupon-row input {
  flex: 1;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14.5px;
  text-transform: uppercase;
  background: #fff;
  color: var(--ink);
}
.coupon-row input:focus {
  outline: none;
  border-color: var(--honey);
}
.coupon-row .btn {
  width: auto;
  padding: 12px 22px;
  flex-shrink: 0;
}
.coupon-msg {
  font-size: 12.5px;
  margin-top: 8px;
  min-height: 15px;
}
.coupon-msg.success { color: var(--success); font-weight: 600; }
.coupon-msg.error { color: var(--danger); }

.price-summary {
  display: none;
  margin-top: 10px;
  font-size: 14.5px;
  align-items: baseline;
  gap: 8px;
}
.price-summary.show { display: flex; }
.price-original {
  text-decoration: line-through;
  color: #8a7a52;
}
.price-final {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--success);
}

/* ---------- Fuel Delivery card (petrol/diesel + litre stepper) ---------- */
.service-option.fuel-option {
  flex-direction: column;
  align-items: flex-start;
}
.fuel-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.fuel-select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  color: var(--ink);
}
.fuel-select:focus { outline: none; border-color: var(--honey); }
.fuel-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 6px 12px;
  font-weight: 600;
  font-size: 13.5px;
}
.fuel-qty-btn {
  width: 24px; height: 24px;
  border-radius: 50%;
  border: none;
  background: var(--cream-dim);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fuel-qty-btn:hover { background: var(--honey); }
.fuel-qty-btn:active { transform: scale(0.92); }

/* ---------- Payment badges ---------- */
.pay-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: .02em;
}
.pay-badge.paid { background: #E7F8EC; color: var(--success); border: 1px solid #A9DDB6; }
.pay-badge.pending { background: #FDEDEC; color: var(--danger); border: 1px solid #E6A29B; }

/* ---------- Consent modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0;
  background: rgba(28,28,30,0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center; justify-content: center;
  padding: 20px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .28s ease;
}
.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.modal {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 0;
  box-shadow: 0 24px 60px rgba(28,28,30,0.28);
  transform: translateY(18px) scale(0.97);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s ease;
}
.modal-backdrop.open .modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.modal-header .modal-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cream-dim);
  border: 1.5px solid var(--honey-deep);
}
.modal-header .modal-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { padding: 22px 28px 28px; }
.modal h2 { font-size: 19px; margin: 0; }
.modal .modal-subtitle { font-size: 12.5px; color: #8a7a52; margin-top: 2px; }
.modal .consent-text {
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a4130;
  background: var(--cream-dim);
  border-radius: 12px;
  padding: 16px 18px;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--line);
  margin-bottom: 18px;
  box-shadow: inset 0 -14px 12px -14px rgba(28,28,30,0.12);
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  cursor: pointer;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--cream-dim);
  transition: border-color .15s ease, background .15s ease;
}
.consent-check:hover { border-color: var(--honey); }
.consent-check:has(input:checked) {
  border-color: var(--honey-deep);
  background: #FFF3D6;
}
.consent-check input { margin-top: 2px; width: 19px; height: 19px; accent-color: var(--honey-deep); flex-shrink: 0; cursor: pointer; }
.consent-check-icon { font-size: 18px; flex-shrink: 0; line-height: 1; margin-top: 1px; }
.consent-check-text { display: flex; flex-direction: column; gap: 2px; }
.consent-check-text strong { font-weight: 600; color: var(--ink); }
.consent-check-text small { font-size: 12px; color: #8a7a52; }
.consent-check.required .consent-check-text strong::after {
  content: 'Required';
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--honey-deep);
  background: #FFF3D6;
  border: 1px solid var(--honey);
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.consent-summary-line { font-size: 13.5px; color: var(--ink); font-weight: 600; margin: 0 0 6px; }
.consent-text details summary {
  cursor: pointer;
  color: var(--honey-deep);
  font-weight: 600;
  font-size: 12.5px;
  list-style: none;
  margin-top: 4px;
}
.consent-text details summary::-webkit-details-marker { display: none; }
.consent-text details summary::before { content: '▸ '; }
.consent-text details[open] summary::before { content: '▾ '; }
.consent-text details .full-terms {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  line-height: 1.6;
  color: #6b5d38;
}

/* ---------- Booking step transition ---------- */
.step-anim { animation: stepFadeIn .38s cubic-bezier(.2,.8,.2,1); }
@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Confirm/payment screen (step 3) ---------- */
.text-swap { animation: textSwapIn .3s ease; }
@keyframes textSwapIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

.confirm-status-ring {
  position: relative;
  width: 84px; height: 84px;
  margin: 0 auto 20px;
}
.confirm-status-ring .step-mascot {
  width: 84px; height: 84px;
  transition: box-shadow .35s ease;
}
.confirm-status-icon {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid var(--cream);
  box-shadow: 0 3px 8px rgba(28,28,30,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: background .25s ease;
}
.confirm-status-icon .spinner {
  width: 13px; height: 13px;
  border: 2px solid rgba(28,28,30,0.15);
  border-top-color: var(--ink);
}

.confirm-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0 auto 6px;
  max-width: 320px;
}
.confirm-stepper-node { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.confirm-stepper-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--cream-dim);
  border: 1.5px solid var(--line);
  color: #9c8a5c;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .3s ease;
}
.confirm-stepper-label { font-size: 10.5px; color: #8a7a52; white-space: nowrap; }
.confirm-stepper-line {
  width: 34px; height: 2px;
  background: var(--line);
  margin-bottom: 18px;
  transition: background .3s ease;
}
.confirm-stepper-node.done .confirm-stepper-dot {
  background: var(--ink); border-color: var(--ink); color: var(--honey);
}
.confirm-stepper-node.active .confirm-stepper-dot {
  background: linear-gradient(155deg, var(--honey), var(--honey-deep));
  border-color: var(--honey-deep);
  color: var(--ink);
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.18);
}
.confirm-stepper-node.active .confirm-stepper-label,
.confirm-stepper-node.done .confirm-stepper-label { color: var(--ink); font-weight: 600; }
.confirm-stepper-node.failed .confirm-stepper-dot {
  background: #FDEDEC; border-color: var(--danger); color: var(--danger);
}

.receipt-card {
  background: var(--cream-dim);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 18px;
  text-align: left;
}
.receipt-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-icon { font-size: 16px; flex-shrink: 0; width: 20px; text-align: center; }
.receipt-label { color: #8a7a52; flex-shrink: 0; width: 64px; }
.receipt-value { color: var(--ink); font-weight: 600; text-align: right; flex: 1; }

/* ---------- Status / tracking ---------- */
.status-banner {
  text-align: center;
  padding: 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--honey);
  margin-bottom: 20px;
}
.status-banner .eta { font-family: 'Bricolage Grotesque', sans-serif; font-size: 32px; font-weight: 700; }
.status-banner .eta-label { font-size: 12px; color: #cbb87a; text-transform: uppercase; letter-spacing: .06em; }

#map { width: 100%; height: 320px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 20px; }

.spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: var(--honey);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--honey);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: var(--shadow);
  display: none;
  z-index: 200;
}
.toast.show { display: block; }

/* ---------- Cookie consent banner ---------- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 300;
  max-width: 480px;
  margin: 0 auto;
  background: var(--ink);
  color: var(--cream);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  flex-direction: column;
  gap: 12px;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.85); margin: 0; }
.cookie-banner a { color: var(--honey); font-weight: 600; text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { width: auto; padding: 10px 18px; font-size: 13px; }
.cookie-banner-actions .btn-ghost { border-color: rgba(255,255,255,0.35); color: var(--cream); }

/* ---------- Small phone safety net ---------- */
@media (max-width: 380px) {
  .wrap { padding: 20px 14px 60px; }
  .panel { padding: 18px; }
  .hive-hex { width: 42px; height: 37px; }
  .hive-hex .hex-num { font-size: 12px; }
  .hive-tracker::before { top: 19px; left: 19px; right: 19px; }
  .hive-label { font-size: 10px; max-width: 56px; }
  .service-price { font-size: 15px; }
  .modal { padding: 20px; }
}
