/* Halaman booking pelanggan (memakai token warna dari app.css) */
body.bk-page { display: block; min-height: 100vh; background: var(--bg); }
.bk-top { display: flex; justify-content: center; padding: 18px 16px 6px; padding-top: max(18px, env(safe-area-inset-top)); }
.bk-top .logo { height: 56px; width: auto; filter: var(--logo-filter); }
.bk-main { max-width: 640px; margin: 0 auto; padding: 0 16px 140px; }
.bk-done .bk-main { padding-bottom: 40px; }
.bk-foot { text-align: center; color: var(--ink-2); font-size: .8rem; padding: 0 16px 120px; }
.bk-done .bk-foot { padding-bottom: 32px; }

.bk-hero { text-align: center; padding: 10px 0 6px; }
.bk-hero h1 { font-size: 1.7rem; margin-bottom: .25em; }
.bk-hero p { margin: 0 auto; max-width: 30em; }

.bk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.bk-center { text-align: center; margin-top: 24px; }
.bk-step { margin-top: 26px; scroll-margin-top: 12px; }
.bk-step h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 12px; }
.bk-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font-size: .9rem; flex: none; }
.bk-hint { padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; margin: 0; }

/* pilihan (studio, paket) */
.bk-outlets { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.bk-opt {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; transition: border-color .15s, box-shadow .15s;
}
.bk-opt:hover { border-color: var(--ink-2); }
.bk-opt[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); background: color-mix(in srgb, var(--brand-soft) 35%, var(--surface)); }
.bk-opt strong { font-size: 1rem; }
.bk-group { margin: 16px 2px 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.bk-group:first-child { margin-top: 0; }
.bk-services { display: grid; gap: 8px; }
.bk-svc { flex-direction: row; align-items: center; gap: 12px; }
.bk-svc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bk-price { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bk-svc[aria-checked="true"] .bk-price { color: var(--brand); }
:root[data-theme="dark"] .bk-svc[aria-checked="true"] .bk-price { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .bk-svc[aria-checked="true"] .bk-price { color: var(--gold); } }

/* tanggal */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-snap-type: x proximity; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day {
  font: inherit; flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 0; padding: 8px 4px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); scroll-snap-align: center; position: relative;
}
.bk-day small { font-size: .72rem; color: var(--ink-2); font-weight: 600; }
.bk-day strong { font-size: 1.25rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.bk-day[aria-checked="true"], .bk-day.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bk-day[aria-checked="true"] small, .bk-day.on small { color: inherit; opacity: .85; }
.bk-day-other input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; padding: 0; width: 100%; }
.bk-day-other input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.bk-datelabel { margin: 6px 2px 10px; }

/* jam */
.bk-slotgroup h4 { margin: 12px 2px 6px; font-size: .8rem; color: var(--ink-2); font-weight: 600; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.bk-slot {
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; padding: 10px 4px; min-height: 44px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
}
.bk-slot:hover:not(:disabled) { border-color: var(--brand); }
.bk-slot[aria-checked="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.bk-slot:disabled { cursor: not-allowed; color: var(--ink-2); background: var(--bg); text-decoration: line-through; opacity: .55; }
.bk-full { padding: 14px 16px; border-radius: 14px; background: var(--gold-soft); color: var(--ink); margin: 0; }

/* data diri */
.bk-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-terms { margin: 4px 0 0; padding: 10px 12px; background: var(--bg); border-radius: 10px; color: var(--ink-2); }
#bk-err { margin-top: 10px; }

/* bar ringkasan di bawah */
.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0, 0, 0, .06); padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
.bk-bar-in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.bk-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-sum strong, .bk-sum small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-bar .btn { min-height: 46px; padding: 10px 18px; }

/* berhasil */
.bk-success { text-align: center; margin-top: 18px; outline: none; }
.bk-check { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem; font-weight: 700; background: var(--good-soft); color: var(--good); }
.bk-detail { text-align: left; margin: 18px 0 8px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.bk-detail div { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bk-detail div:last-child { border-bottom: 0; }
.bk-detail dt { color: var(--ink-2); font-size: .88rem; }
.bk-detail dd { margin: 0; font-weight: 600; }
.bk-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.1rem; letter-spacing: .06em; }
.bk-wa { background: #1F7A4D; }
.bk-wa:hover { background: #17643F !important; }
@media (prefers-reduced-motion: reduce) { .bk-opt { transition: none; } }
