/* 2026-10-31 popup BOOKING sesi private (#bookModal di index.html, assets/js/privat-book.js).
   Kerangka .modal/.sheet + tombol .btn-primary/.btn-secondary + tutup .icon-btn.boxed = sama dengan popup Beranda lain
   (home.css/home-tema.css), jadi warna & tombol (gradasi 180deg) ikut tema terang/gelap otomatis.
   Warna isi memakai token popup Beranda: --text-primary/--text-secondary, aksen --brand-primary-soft, harga --cyan. */
#bookModal .sheet { display: flex; flex-direction: column; gap: 10px; }
#bookModal .sheet-head { margin-bottom: 0; justify-content: flex-start; }
.pb-ava { flex: none; width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: #18181b; }
.pb-ttl { flex: 1; min-width: 0; display: grid; }
#bookModal .pb-ttl h2 { line-height: 1.2; }
.pb-nm { font-size: 13px; font-weight: 700; color: var(--brand-primary-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#bookModal .sheet-head .icon-btn { flex: none; width: 44px; height: 44px; }
.pb-prog { display: grid; gap: 6px; }
.pb-prog[hidden] { display: none; }
.pb-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pb-bars span { height: 4px; border-radius: 99px; background: var(--border-medium); }
.pb-bars span.on { background: var(--brand-primary-soft); }
.pb-step { margin: 0; font-size: 12px; font-weight: 700; color: var(--text-secondary); }
.pb-body { display: grid; gap: 8px; }
.pb-lbl { display: block; margin: 4px 0 0; font-size: 13px; font-weight: 800; color: var(--text-primary); }
.pb-hint { margin: 0; font-size: 12px; line-height: 1.5; color: var(--text-secondary); }
.pb-err { margin: 0; font-size: 13px; font-weight: 700; color: #f87171; }
.pb-err:empty { display: none; }
html[data-tema="terang"] .pb-err, html[data-tema="terang"] .pb-field-err { color: #b91c1c; }

/* pilihan (layanan, durasi, platform) */
.pb-svc, .pb-dur, .pb-plat { font: inherit; color: var(--text-primary); cursor: pointer; background: transparent;
  border: 1.5px solid var(--border-medium); -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.pb-svc.on, .pb-dur.on, .pb-plat.on { border-color: var(--brand-primary-soft); background: var(--bg-surface-elevated, rgba(144,105,201,.14));
  box-shadow: 0 0 0 2px var(--border-subtle); }
.pb-svc:focus-visible, .pb-dur:focus-visible, .pb-plat:focus-visible, .pb-input:focus-visible { outline: 2px solid #67e8f9; outline-offset: 2px; }
.pb-svcs { display: grid; gap: 8px; }
.pb-svc { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 12px; border-radius: 14px; text-align: left; }
.pb-ic { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 10px; fill: none; stroke: var(--brand-primary-soft); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; background: var(--border-subtle); }
.pb-svc-t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pb-svc-t b { font-size: 15px; font-weight: 800; }
.pb-svc-t small { font-size: 12px; font-weight: 700; color: var(--cyan); }
.pb-cek { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-medium); }
.pb-svc.on .pb-cek { border-color: var(--brand-primary-soft); background: var(--brand-primary-soft); box-shadow: inset 0 0 0 4px var(--bg-surface); }
.pb-durs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.pb-dur { position: relative; display: grid; justify-items: center; gap: 2px; min-height: 64px; padding: 12px 8px 8px; border-radius: 14px; }
.pb-dur b { font-size: 15px; font-weight: 800; }
.pb-price { font-size: 13px; font-weight: 800; color: var(--cyan); }
.pb-rek { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 1px 8px; border-radius: 99px; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: .2px; color: #fff; background: #6229ee; }
.pb-dur-wrap { display: grid; gap: 2px; }
.pb-plats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pb-plat { min-height: 44px; padding: 0 6px; border-radius: 12px; font-size: 13.5px; font-weight: 800; }

/* tanggal & jam: kolom bawaan HP (kalender & jam Android/iPhone), dua kolom berdampingan */
.pb-when { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pb-field { display: grid; gap: 4px; min-width: 0; }
.pb-input { width: 100%; min-width: 0; min-height: 46px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 16px; color: var(--text-primary);
  background: var(--bg-surface); border: 1.5px solid var(--border-medium); color-scheme: dark; }
html[data-tema="terang"] .pb-input { color-scheme: light; background: #fff; }
/* 2026-11-01: kotak tanggal/jam bertulisan + ikon; input asli transparan menutupi kotak (ketuk = pemilih bawaan HP) */
.pb-pick { position: relative; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 12px; border-radius: 12px;
  background: var(--bg-surface); border: 1.5px solid var(--border-medium); cursor: pointer; }
html[data-tema="terang"] .pb-pick { background: #fff; }
.pb-pick:focus-within { outline: 2px solid #67e8f9; outline-offset: 2px; }
.pb-pick-ic { flex: none; font-size: 16px; color: var(--brand-primary-soft); }
.pb-pick-tx { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--text-primary); }
.pb-pick-tx.kosong { font-weight: 500; color: var(--text-muted, var(--text-secondary)); }
.pb-pick-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; opacity: 0; cursor: pointer;
  font-size: 16px; -webkit-appearance: none; appearance: none; color-scheme: light dark; }
.pb-field-err { margin: 0; font-size: 12.5px; font-weight: 700; color: #f87171; }
.pb-field-err:empty { display: none; }

/* ringkasan */
.pb-sum { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0; padding: 12px; border-radius: 14px;
  background: var(--bg-surface-elevated, rgba(144,105,201,.1)); border: 1px solid var(--border-subtle); font-size: 14px; }
.pb-sum dt { color: var(--text-secondary); }
.pb-sum dd { margin: 0; font-weight: 800; text-align: right; overflow-wrap: anywhere; color: var(--text-primary); }
.pb-note { margin: 2px 0 0; padding: 10px 12px; border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary);
  background: rgba(103,232,249,.08); border: 1px solid rgba(103,232,249,.25); }
.pb-note.warn { color: var(--text-primary); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.45); }

/* kaki: total + tombol (tombol = .btn-primary/.btn-secondary popup Beranda) */
.pb-foot { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border-subtle); }
.pb-foot:empty { display: none; }
.pb-tot { display: flex; justify-content: space-between; align-items: baseline; }
.pb-tot span { font-size: 13px; color: var(--text-secondary); }
.pb-tot b { font-size: 19px; font-weight: 800; color: var(--cyan); }
.pb-btns { display: flex; gap: 8px; }
.pb-btns .btn { flex: 1; min-height: 46px; }
.pb-btns .pb-back { flex: 0 0 34%; }
#bookModal .pb-go:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* selesai */
.pb-done { display: grid; justify-items: center; gap: 6px; padding: 8px 4px 2px; text-align: center; }
.pb-done h3 { margin: 4px 0 0; font-size: 18px; font-weight: 800; color: var(--text-primary); }
.pb-done p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--text-secondary); }
.pb-done .pb-note { text-align: left; }
.pb-done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; font-size: 30px; font-weight: 800;
  color: #fff; background: linear-gradient(180deg, #34d399, #059669); }
.pb-setuju a { color: var(--brand-primary-soft); font-weight: 700; }
