/* Rezbee web booking — customer pages. Tokens follow the site (index.html). */
:root {
  --primary: #00BCD4;
  --primary-dark: #0097A7;
  --primary-ink: #00747F;
  --primary-light: #B2EBF2;
  --secondary: #1A1A2E;
  --text: #333333;
  --text-light: #666666;
  --muted: #8A9699;
  --line: #E3EBED;
  --bg: #F4F8F9;
  --card: #FFFFFF;
  --ok: #2E9E5B;
  --warn: #D97706;
  --bad: #D14343;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 30, 35, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
button, input, select, textarea { font: inherit; }
a { color: var(--primary-ink); }
.book { max-width: 720px; margin: 0 auto; padding-bottom: 120px; }

/* Hero */
.book-hero { position: relative; background: var(--secondary); color: #fff; overflow: hidden; }
.book-hero-cover {
  height: 200px; background: var(--cover) center/cover no-repeat, linear-gradient(160deg, #06222A, #00505C);
}
.book-hero-cover::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(6,34,42,.85) 100%);
}
.book-hero-body { position: relative; padding: 0 20px 18px; margin-top: -56px; }
.book-title { font-size: 24px; font-weight: 800; margin: 0 0 4px; line-height: 1.2; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.book-address { margin: 0; color: rgba(255,255,255,.85); font-size: 14px; }
.book-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 10px; font-size: 13px; color: rgba(255,255,255,.9); align-items: center; }
.book-meta .star { color: #FFC857; }
.book-badge { display: inline-block; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 600; font-size: 12px; }
.book-badge.open { background: rgba(46,158,91,.85); }
.book-badge.closed { background: rgba(209,67,67,.85); }
.book-hours-toggle { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; cursor: pointer; font-size: 13px; }
.book-hours { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; color: rgba(255,255,255,.9); }
.book-hours li { display: flex; justify-content: space-between; }
.book-hours li.today { font-weight: 700; color: #fff; }
.book-topbar { position: absolute; top: 10px; right: 10px; left: 10px; display: flex; justify-content: space-between; align-items: center; z-index: 2; }
.book-brand { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 800; text-decoration: none; font-size: 15px; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.book-brand img { width: 26px; height: 26px; border-radius: 7px; }
.rw-lang { display: inline-flex; background: rgba(0,0,0,.35); border-radius: 999px; padding: 3px; backdrop-filter: blur(6px); }
.rw-lang-btn { background: none; border: 0; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; cursor: pointer; opacity: .8; }
.rw-lang-btn.active { background: #fff; color: var(--secondary); opacity: 1; }

/* App banner */
.book-appbar { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; color: var(--text-light); }
.book-appbar img { width: 32px; height: 32px; border-radius: 8px; }
.book-appbar span { flex: 1; }
.book-appbar a { font-weight: 700; color: var(--primary-ink); text-decoration: none; white-space: nowrap; }
.book-appbar button { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 0 2px; }

/* Main */
.book-main { padding: 12px 16px 0; }
.book-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.book-notice { padding: 14px 16px; border-radius: 12px; background: #FFF4E5; color: #7A4B00; font-size: 14px; margin-bottom: 12px; }
.book-notice.bad { background: #FDECEC; color: #8B1D1D; }
.book-error { padding: 12px 14px; border-radius: 12px; background: #FDECEC; color: #8B1D1D; font-size: 14px; margin: 10px 0; }

/* Steps */
.step { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.step-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: default; }
.step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--primary-light); color: var(--primary-ink); font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; }
.step.active .step-num { background: var(--primary); color: #fff; }
.step.done .step-num { background: var(--ok); color: #fff; }
.step-title { font-weight: 700; font-size: 16px; margin: 0; flex: 1; }
.step-summary { font-size: 13px; color: var(--text-light); margin: 2px 0 0; }
.step-change { background: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; color: var(--primary-ink); cursor: pointer; }
.step-body { padding: 0 16px 16px; }
.step.collapsed .step-body { display: none; }
.step.locked { opacity: .55; }
.step-hint { color: var(--muted); font-size: 13px; margin: -4px 0 10px; }

/* Services */
.svc-group-title { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.svc { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 8px; cursor: pointer; transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--primary-light); }
.svc.selected { border-color: var(--primary); background: #F0FBFD; }
.svc-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; font-size: 13px; }
.svc.selected .svc-check { background: var(--primary); border-color: var(--primary); }
.svc-photo { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg); }
.svc-body { flex: 1; min-width: 0; }
.svc-name { font-weight: 600; font-size: 15px; margin: 0; }
.svc-desc { font-size: 12px; color: var(--muted); margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.svc-meta { font-size: 13px; color: var(--text-light); margin: 2px 0 0; }
.svc-price { font-weight: 700; color: var(--secondary); white-space: nowrap; font-size: 15px; }
.svc-price.soft { color: var(--primary-ink); font-size: 12px; font-weight: 600; }

/* Workers */
.workers { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.worker { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 10px; text-align: center; cursor: pointer; }
.worker.selected { border-color: var(--primary); background: #F0FBFD; }
.worker.off { opacity: .45; }
.worker-avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: var(--primary-light); margin: 0 auto 8px; display: grid; place-items: center; font-weight: 800; color: var(--primary-ink); font-size: 20px; }
.worker-name { font-weight: 600; font-size: 14px; margin: 0; }
.worker-sub { font-size: 12px; color: var(--muted); margin: 3px 0 0; }

/* Dates and times */
.dates { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: none; width: 64px; padding: 10px 0; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; text-align: center; cursor: pointer; }
.date.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.date-dow { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.date.selected .date-dow { color: rgba(255,255,255,.85); }
.date-day { font-size: 20px; font-weight: 800; line-height: 1.1; }
.date-mon { font-size: 11px; color: var(--muted); }
.date.selected .date-mon { color: rgba(255,255,255,.85); }
.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.time { padding: 10px 0; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; cursor: pointer; font-size: 14px; }
.time.selected { border-color: var(--primary); background: var(--primary); color: #fff; }
.times-empty { color: var(--muted); font-size: 14px; padding: 12px 0; }
.times-label { font-size: 12px; font-weight: 700; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; letter-spacing: .06em; }

/* Confirm */
.summary { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.summary-row .k { color: var(--muted); }
.summary-row.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; font-weight: 700; }
.field { margin-top: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.field .sub { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.field textarea { width: 100%; min-height: 80px; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--primary); }
.pay-note { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--text-light); }
.hold { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: #EAF8FB; color: var(--primary-ink); font-size: 13px; font-weight: 600; }
.hold.expired { background: #FDECEC; color: #8B1D1D; }
.signed-in { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: #F0FBFD; font-size: 13px; }
.signed-in .rw-link { padding: 0; }
.signin-mount { margin-top: 14px; }

/* Phone sign-in */
.rw-signin { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; }
.rw-title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.rw-hint { margin: 0 0 12px; font-size: 13px; color: var(--text-light); }
.rw-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.rw-phone-row { display: flex; gap: 8px; }
.rw-select { flex: 0 0 44%; min-width: 0; border: 1.5px solid var(--line); border-radius: 10px; padding: 10px 8px; background: #fff; }
.rw-input { flex: 1; min-width: 0; width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 16px; }
.rw-input:focus, .rw-select:focus { outline: none; border-color: var(--primary); }
.rw-code { letter-spacing: .4em; text-align: center; font-size: 22px; font-weight: 700; }
.rw-name-row { display: flex; gap: 8px; }
.rw-btn { display: block; width: 100%; margin-top: 12px; padding: 13px; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.rw-btn:disabled { opacity: .6; cursor: default; }
.rw-btn.secondary { background: #fff; color: var(--primary-ink); border: 1.5px solid var(--primary-light); }
.rw-links { display: flex; justify-content: space-between; margin-top: 10px; }
.rw-link { background: none; border: 0; color: var(--primary-ink); font-weight: 600; font-size: 13px; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.rw-error { margin: 10px 0 0; color: var(--bad); font-size: 13px; }

/* Sticky bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.bar-inner { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bar-info { flex: 1; min-width: 0; font-size: 13px; color: var(--text-light); }
.bar-info strong { display: block; color: var(--secondary); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-btn { flex: none; padding: 12px 22px; border: 0; border-radius: 999px; background: linear-gradient(90deg, var(--primary), var(--primary-dark)); color: #fff; font-weight: 700; font-size: 15px; cursor: pointer; }
.bar-btn:disabled { opacity: .5; cursor: default; }

/* Done */
.done { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 18px; text-align: center; }
.done-icon { width: 64px; height: 64px; border-radius: 50%; background: #E8F7EE; color: var(--ok); display: grid; place-items: center; font-size: 30px; margin: 0 auto 12px; }
.done h2 { margin: 0 0 6px; font-size: 22px; }
.done p { margin: 0 0 16px; color: var(--text-light); font-size: 14px; }
.done .summary { text-align: left; }
.done-actions { display: grid; gap: 8px; margin-top: 16px; }
.done-actions a, .done-actions button { display: block; text-align: center; text-decoration: none; }

/* App CTA + locked cards */
.rw-app-cta { background: linear-gradient(135deg, #06222A, #00505C); color: #fff; border-radius: var(--radius); padding: 18px; margin-top: 12px; }
.rw-app-cta h3 { margin: 0 0 6px; }
.rw-app-cta p { margin: 0 0 12px; font-size: 14px; color: rgba(255,255,255,.85); }
.rw-stores { display: flex; gap: 8px; }
.rw-store { flex: 1; text-align: center; padding: 10px; border-radius: 999px; background: #fff; color: var(--secondary); font-weight: 700; text-decoration: none; font-size: 14px; }
.locked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--card); border: 1px dashed var(--line); margin-bottom: 8px; color: var(--text-light); font-size: 14px; }
.locked .lock { font-size: 18px; }
.locked strong { color: var(--secondary); display: block; }
.locked small { color: var(--muted); }

/* My bookings */
.mb-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; }
.mb-head h1 { margin: 0; font-size: 20px; }
.mb-section { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 14px 0 8px; }
.bk { background: var(--card); border-radius: 14px; box-shadow: var(--shadow); padding: 14px 16px; margin-bottom: 10px; }
.bk-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.bk-name { font-weight: 700; font-size: 16px; margin: 0; }
.bk-when { color: var(--text-light); font-size: 14px; margin: 2px 0 0; }
.bk-sub { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.chip { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.pending { background: #FFF4E5; color: #7A4B00; }
.chip.accepted { background: #E8F7EE; color: #1E6F3F; }
.chip.refused, .chip.cancelled { background: #FDECEC; color: #8B1D1D; }
.chip.completed { background: #EEF1F3; color: #4B5A60; }
.bk-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.bk-actions a, .bk-actions button { font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--primary-ink); cursor: pointer; text-decoration: none; }
.bk-actions button.danger { color: var(--bad); }
.confirm-row { display: flex; gap: 8px; margin-top: 8px; }
.book-noscript { padding: 20px; text-align: center; }
.book-footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px 16px 0; }
.book-footer a { color: var(--muted); }

@media (min-width: 720px) {
  .book-hero { border-radius: 0 0 24px 24px; margin-top: 0; }
  .book-hero-cover { height: 260px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
