/* Booking flow. Themed per site with --bk-accent / --bk-ink / --bk-bg / --bk-soft / --bk-head (set on .bk by each site). */
.bk { --bk-accent: #c9704a; --bk-ink: #2b211c; --bk-bg: #f6efe6; --bk-soft: #ede3d6; --bk-head: Georgia, serif; --ease: cubic-bezier(.22, 1, .36, 1); position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; font-family: inherit; }
.bk[hidden] { display: none; }
html.bk-on, html.bk-on body { overflow: hidden; }
.bk-scrim { position: absolute; inset: 0; background: rgba(20, 16, 14, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .45s var(--ease); }
.bk.show .bk-scrim { opacity: 1; }
.bk-panel { position: relative; width: min(760px, calc(100% - 32px)); max-height: min(860px, calc(100svh - 40px)); display: grid; grid-template-rows: auto auto 1fr auto; background: var(--bk-bg); color: var(--bk-ink); border-radius: 28px; overflow: hidden; box-shadow: 0 50px 120px -30px rgba(0, 0, 0, .55); opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.bk.show .bk-panel { opacity: 1; transform: none; }
.bk-head { display: flex; justify-content: space-between; align-items: start; gap: 16px; padding: 24px 28px 8px; }
.bk-kick { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bk-accent); }
.bk-title { margin: 0; font: 400 32px/1 var(--bk-head); }
.bk-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--bk-soft); color: var(--bk-ink); font-size: 26px; line-height: 1; cursor: pointer; transition: transform .4s var(--ease); }
.bk-x:hover { transform: rotate(90deg); }
/* progress: dots on a line that fills as you go */
.bk-prog { position: relative; list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); margin: 10px 28px 4px; padding: 0; }
.bk-prog::before, .bk-prog::after { content: ''; position: absolute; left: 8.3%; right: 8.3%; top: 6px; height: 2px; background: var(--bk-soft); }
.bk-prog::after { background: var(--bk-accent); transform-origin: left; transform: scaleX(var(--prog, 0)); transition: transform .7s var(--ease); }
.bk-prog li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: rgba(0, 0, 0, .35); }
.bk-prog i { width: 14px; height: 14px; border-radius: 50%; background: var(--bk-bg); border: 2px solid var(--bk-soft); transition: .4s var(--ease); }
.bk-prog li.done i { background: var(--bk-accent); border-color: var(--bk-accent); }
.bk-prog li.on i { border-color: var(--bk-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--bk-accent) 22%, transparent); animation: bkbreath 3s ease-in-out infinite; }
.bk-prog li.on, .bk-prog li.done { color: var(--bk-ink); }
@keyframes bkbreath { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--bk-accent) 10%, transparent); } }
.bk-body { overflow-y: auto; padding: 14px 28px 20px; outline: none; overscroll-behavior: contain; }
.bk-stage { animation: bkin .55s var(--ease); }
@keyframes bkin { from { opacity: 0; transform: translateX(26px); } }
.bk-q { margin: 6px 0 4px; font: 400 26px/1.15 var(--bk-head); }
.bk-note { margin: 0 0 14px; color: rgba(0, 0, 0, .55); font-size: 15px; }
.bk-hint { margin: 14px 0 0; font-size: 13.5px; color: rgba(0, 0, 0, .5); }
.bk button { font: inherit; color: inherit; cursor: pointer; }
.bk .on { --sel: 1; }
.pop { animation: bkpop .45s var(--ease); }
@keyframes bkpop { 30% { transform: scale(.96); } }
/* treatments */
.bk-svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.bk-svc { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1.5px solid transparent; border-radius: 18px; background: #fff; text-align: left; transition: border-color .3s, transform .4s var(--ease), box-shadow .4s; }
.bk-svc:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .4); }
.bk-svc.on { border-color: var(--bk-accent); }
.bk-svc img { width: 58px; height: 58px; border-radius: 14px; object-fit: cover; flex: none; }
.bk-dot { width: 46px; height: 46px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, #fff, var(--bk-accent)); }
.bk-svc b { display: block; font-size: 15px; line-height: 1.25; }
.bk-svc small { color: var(--bk-accent); font-weight: 600; font-size: 13px; }
/* lengths */
.bk-opts { display: grid; gap: 8px; }
.bk-opt { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 16px; border: 1.5px solid transparent; background: #fff; font-weight: 600; transition: .3s var(--ease); }
.bk-opt b { font: 400 22px/1 var(--bk-head); color: var(--bk-accent); }
.bk-opt:hover { border-color: color-mix(in srgb, var(--bk-accent) 40%, transparent); }
.bk-opt.on { background: var(--bk-ink); color: var(--bk-bg); }
.bk-opt.on b { color: inherit; }
/* therapist */
.bk-who { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.bk-person { display: grid; justify-items: center; gap: 8px; padding: 18px 10px; border-radius: 18px; border: 1.5px solid transparent; background: #fff; transition: .3s var(--ease); }
.bk-person.on { border-color: var(--bk-accent); }
.bk-ini { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 400 26px/1 var(--bk-head); background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--bk-accent) 70%, #fff)); color: var(--bk-ink); }
.bk-person.on .bk-ini { animation: bkbreath2 3s ease-in-out infinite; }
@keyframes bkbreath2 { 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--bk-accent) 18%, transparent); } }
/* day strip + times */
.bk-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bk-days::-webkit-scrollbar { display: none; }
.bk-day { flex: 0 0 64px; display: grid; justify-items: center; gap: 2px; padding: 10px 0; border-radius: 16px; border: 1.5px solid transparent; background: #fff; scroll-snap-align: start; transition: .3s var(--ease); }
.bk-day small { font-size: 11.5px; opacity: .6; }
.bk-day b { font: 400 24px/1.1 var(--bk-head); }
.bk-day.on { background: var(--bk-ink); color: var(--bk-bg); }
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 12px; animation: bkin .5s var(--ease); }
.bk-time { padding: 12px 0; border-radius: 12px; border: 1.5px solid transparent; background: #fff; font-weight: 600; font-size: 14.5px; transition: .25s var(--ease); }
.bk-time:hover:not(:disabled) { border-color: var(--bk-accent); }
.bk-time.on { background: var(--bk-accent); color: #fff; }
.bk-time:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
/* details */
.bk-form { display: grid; gap: 14px; margin-top: 10px; }
.bk-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14.5px; }
.bk-form input:not([type=checkbox]), .bk-form textarea { font: inherit; font-weight: 400; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--bk-soft); background: #fff; color: var(--bk-ink); width: 100%; transition: border-color .3s; }
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--bk-accent); }
.bk-check { display: flex !important; align-items: center; gap: 10px; }
.bk-check input { width: 20px; height: 20px; accent-color: var(--bk-accent); }
.bk-opt-l { font-weight: 400; opacity: .5; }
/* confirm */
.bk-ticket { margin-top: 10px; padding: 8px 20px; border-radius: 20px; background: #fff; position: relative; }
.bk-ticket::before, .bk-ticket::after { content: ''; position: absolute; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--bk-bg); }
.bk-ticket::before { left: -11px; } .bk-ticket::after { right: -11px; }
.bk-tk-row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--bk-soft); font-size: 15px; }
.bk-tk-row:last-child { border: 0; }
.bk-tk-row span { color: rgba(0, 0, 0, .5); }
.bk-tk-row b { text-align: right; }
.bk-tk-row.total b { font: 400 26px/1 var(--bk-head); color: var(--bk-accent); }
.bk-send { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.bk-go { grid-column: 1 / -1; display: grid; place-items: center; padding: 18px; border-radius: 999px; background: var(--bk-accent); color: #fff; font-weight: 700; font-size: 16.5px; box-shadow: 0 16px 34px -16px var(--bk-accent); transition: transform .4s var(--ease); }
.bk-go:hover { transform: translateY(-2px); }
.bk-alt { display: grid; place-items: center; padding: 14px; border-radius: 999px; border: 1.5px solid var(--bk-ink); font-weight: 600; font-size: 14.5px; }
.bk-done { display: grid; justify-items: center; text-align: center; padding: 20px 0 10px; }
.bk-breath { position: relative; width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 10px; }
.bk-breath i { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--bk-accent) 45%, transparent), transparent 70%); animation: bkbig 4s ease-in-out infinite; }
@keyframes bkbig { 0%, 100% { transform: scale(.7); } 50% { transform: scale(1.05); } }
.bk-breath svg { position: relative; width: 64px; height: 64px; border-radius: 50%; background: var(--bk-accent); }
.bk-breath path { fill: none; stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: bkcheck .8s .2s var(--ease) forwards; }
@keyframes bkcheck { to { stroke-dashoffset: 0; } }
.bk-again { margin-top: 16px; padding: 14px 34px; border-radius: 999px; border: 0; background: var(--bk-ink); color: var(--bk-bg); font-weight: 700; }
/* footer */
.bk-foot { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 28px 18px; border-top: 1px solid var(--bk-soft); background: color-mix(in srgb, var(--bk-bg) 92%, #fff); }
.bk-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; font-size: 12.5px; }
.bk-sum span { padding: 5px 10px; border-radius: 999px; background: var(--bk-soft); font-weight: 600; white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.bk-sum b { font: 400 22px/1 var(--bk-head); color: var(--bk-accent); margin-left: 4px; }
.bk-sum em { color: rgba(0, 0, 0, .45); font-style: normal; }
.bk-nav { display: flex; gap: 8px; flex: none; }
.bk-back, .bk-next { padding: 13px 22px; border-radius: 999px; border: 0; font-weight: 700; font-size: 15px; }
.bk-back { background: transparent; box-shadow: inset 0 0 0 1.5px var(--bk-soft); }
.bk-next { background: var(--bk-ink); color: var(--bk-bg); transition: opacity .3s; }
.bk-next:disabled { opacity: .3; cursor: not-allowed; }
@media (max-width: 640px) {
  .bk { place-items: end center; }
  .bk-panel { width: 100%; max-height: 94svh; border-radius: 26px 26px 0 0; transform: translateY(100%); }
  .bk-head { padding: 20px 18px 4px; } .bk-title { font-size: 26px; }
  .bk-prog { margin: 8px 12px 2px; } .bk-prog span { font-size: 9.5px; }
  .bk-body { padding: 12px 18px 18px; }
  .bk-svcs { grid-template-columns: 1fr; }
  .bk-foot { padding: 12px 18px max(14px, env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }
  .bk-sum span:not(:last-of-type) { display: none; }
  .bk-nav { justify-content: space-between; } .bk-nav button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .bk *, .bk *::before { animation: none !important; transition: none !important; } }
