/* Bebetter — booking page. Loaded after styles.css. */
.bk { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 90px); align-items: start; max-width: 1320px; margin: 0 auto; padding: clamp(140px, 20vh, 200px) var(--gutter) clamp(100px, 14vh, 160px); }

/* left: pitch */
.bk-hero { position: sticky; top: 120px; }
.bk-hero .blob { position: absolute; left: -14%; top: -18%; width: 70%; color: var(--lime); z-index: -1; }
.bk-hero .pill { background: var(--black); color: var(--paper); }
.pill { display: inline-block; font-size: 17px; padding: 4px 10px 6px; border-radius: 9px; }
.bk-hero h1 { margin: 22px 0 0; font-size: clamp(52px, 6.6vw, 104px); }
.bk-hero h1 .serif { font-size: 1.06em; }
.bk-hero h1 .spark { width: .42em; height: .42em; right: -.2em; top: -.3em; }
.bk-hero h1 .spark svg { fill: var(--orange); }
.bk-hero p { max-width: 440px; margin: 26px 0 0; font-size: 19px; line-height: 1.5; color: var(--grey-30); }
.bk-how { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.bk-how li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; }
.bk-how b { flex: none; font-size: 14px; padding: 3px 8px 5px; border-radius: 7px; background: var(--lime); }

/* right: the booking card */
.bk-card { position: relative; background: var(--white); border-radius: 30px; padding: clamp(22px, 2.6vw, 40px); box-shadow: 0 30px 70px rgba(0,0,0,.10), inset 0 0 0 1.5px rgba(0,0,0,.06); scroll-margin-top: 100px; }
.bk-progress { list-style: none; display: flex; gap: 8px; margin: 0 0 26px; padding: 0; counter-reset: s; }
.bk-progress li { flex: 1; font-size: 13px; font-weight: 700; color: var(--grey-50); padding-top: 10px; border-top: 4px solid #e8e8e8; transition: color .4s, border-color .4s; counter-increment: s; }
.bk-progress li::before { content: "0" counter(s) " "; }
.bk-progress li.is-on { color: var(--black); border-color: var(--black); }

.bk-step[hidden] { display: none !important; } /* the steps set display below, which would beat [hidden] */
.bk-pick { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 2.6vw, 40px); }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-month { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.bk-nav { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(0,0,0,.18); font-size: 16px; transition: background .3s, color .3s; }
.bk-nav:hover:not(:disabled) { background: var(--black); color: var(--paper); }
.bk-nav:disabled { opacity: .3; cursor: default; }
.bk-wk, .bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-wk span { text-align: center; font-size: 12px; font-weight: 600; color: var(--grey-50); padding-bottom: 6px; }
.bk-day { aspect-ratio: 1; border-radius: 50%; font-size: 16px; font-weight: 800; background: var(--blue-soft); color: var(--blue-deep); transition: background .25s, color .25s, transform .25s var(--ease); }
.bk-day:hover:not(:disabled) { background: #d6dcff; transform: scale(1.06); }
.bk-day:disabled { background: none; color: #c4c4c4; font-weight: 500; cursor: default; }
.bk-day.is-today { box-shadow: inset 0 0 0 2px currentColor; }
.bk-day.is-on { background: var(--black); color: var(--lime); }

.bk-times { display: flex; flex-direction: column; min-width: 0; }
.bk-slots-head { font-size: 19px; font-weight: 800; letter-spacing: -.02em; min-height: 1.4em; }
.bk-tz { display: block; margin-top: 4px; font-size: 13px; color: var(--grey-50); }
/* every slot visible: no inner scroll box (Lenis smooth scroll swallows the wheel inside one) */
.bk-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.bk-slot { height: 44px; min-width: 0; border-radius: 12px; font-size: 16px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--blue); color: var(--blue); transition: background .25s, color .25s, box-shadow .25s; }
.bk-slot:hover { background: var(--blue-soft); }
.bk-slot.is-on { background: var(--blue); color: var(--white); }
.bk-slot.is-taken { box-shadow: inset 0 0 0 1.5px #e2e2e2; color: #b9b9b9; background: repeating-linear-gradient(-45deg, #fafafa 0 6px, #f1f1f1 6px 12px); cursor: not-allowed; }
.bk-slot.is-taken s, .bk-legend s { text-decoration-thickness: 2px; }
.bk-legend { display: block; margin-top: 10px; font-size: 13px; color: var(--grey-50); }
.bk-legend s { color: #b9b9b9; font-weight: 700; margin-right: 4px; }
.bk-legend[hidden] { display: none; }
.bk-empty { margin: 16px 0 0; font-size: 15px; line-height: 1.5; color: var(--grey-50); }
.bk-go, .bk-send {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; margin-top: auto; border-radius: 99px;
  background: var(--black); color: var(--paper); font-weight: 700; font-size: 17px; transition: background .35s var(--ease), color .35s var(--ease), opacity .3s;
}
.bk-go { margin-top: 18px; }
.bk-go:hover:not(:disabled), .bk-send:hover { background: var(--lime); color: var(--black); }
.bk-go:disabled { opacity: .25; cursor: default; }
.bk-go i { font-style: normal; transition: transform .35s var(--ease); }
.bk-go:hover:not(:disabled) i { transform: translateX(4px); }

/* step 2 */
.bk-form { display: grid; gap: 18px; }
.bk-back { justify-self: start; font-size: 15px; font-weight: 600; color: var(--grey-30); border-bottom: 1.5px solid currentColor; padding: 0 0 1px; }
.bk-when { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-deep); }
.bk-when b, .bk-done-when b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.bk-when span, .bk-done-when span { font-size: 15px; font-weight: 600; }
.bk-field { display: grid; gap: 8px; }
.bk-field > span { font-size: 15px; font-weight: 700; }
.bk-field input, .bk-field textarea {
  width: 100%; font: inherit; font-size: 17px; padding: 13px 16px; border-radius: 14px; border: 1.5px solid rgba(0,0,0,.16); background: var(--white); color: var(--black);
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.bk-field input:focus, .bk-field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(67,96,255,.15); }
.bk-form.tried .bk-field input:invalid { border-color: var(--orange); }
.bk-fallback { position: relative; text-align: center; padding: 20px 0 6px; }
.bk-fallback .stk { position: relative; display: block; width: 100px; height: 100px; margin: 0 auto; }
.bk-fallback h2 { margin: 18px 0 0; font-size: clamp(40px, 4.4vw, 64px); }
.bk-fallback .bk-done-when { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 12px 22px; border-radius: 16px; background: var(--blue-soft); color: var(--blue-deep); }
.bk-fallback p { max-width: 440px; margin: 18px auto 0; font-size: 17px; line-height: 1.5; color: var(--grey-30); }
.bk-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-topic { height: 40px; padding: 0 16px; border-radius: 99px; font-size: 15px; font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); transition: background .25s, color .25s, box-shadow .25s; }
.bk-topic:hover { box-shadow: inset 0 0 0 1.5px var(--black); }
.bk-topic.is-on { background: var(--black); color: var(--lime); box-shadow: none; }
.bk-send { margin-top: 6px; }
.bk-send svg { width: 32px; height: 32px; color: #06c755; --line-ink: #fff; }
.bk-fine { font-size: 13px; line-height: 1.5; color: var(--grey-50); text-align: center; }

/* step 3 */
.bk-done { position: relative; text-align: center; padding: 20px 0 6px; }
.bk-done .stk { position: relative; display: block; width: 110px; height: 110px; margin: 0 auto; }
.bk-done h2 { margin: 18px 0 0; font-size: clamp(40px, 4.4vw, 64px); }
.bk-done-when { display: inline-flex; flex-direction: column; gap: 2px; margin-top: 18px; padding: 12px 22px; border-radius: 16px; background: var(--lime); }
.bk-done p { max-width: 420px; margin: 18px auto 0; font-size: 17px; line-height: 1.5; color: var(--grey-30); }
.bk-done-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 26px; }
.bk-done-links a { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 99px; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.2); transition: background .3s, color .3s; }
.bk-done-links a:hover { background: var(--black); color: var(--paper); }
.bk-relaunch { background: var(--black); color: var(--paper); box-shadow: none !important; }
.bk-relaunch svg { width: 28px; height: 28px; color: #06c755; --line-ink: #fff; }
.bk-again { margin-top: 22px; font-size: 15px; font-weight: 600; color: var(--grey-30); border-bottom: 1.5px solid currentColor; }

:lang(th) .bk-hero h1, :lang(th) .bk-done h2 { letter-spacing: 0; }

@media (max-width: 1023px) {
  .bk { grid-template-columns: 1fr; }
  .bk-hero { position: relative; top: 0; }
}
@media (max-width: 640px) {
  .bk { padding-top: 120px; }
  .bk-card { border-radius: 24px; padding: 20px 16px 24px; }
  .bk-pick { grid-template-columns: 1fr; }
  .bk-slots { grid-template-columns: repeat(3, 1fr); }
  .bk-day { font-size: 15px; }
}

/* booking flow states */
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot: people never see it */
.bk-notice { margin: 14px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1e9; color: #9a3412; font-size: 14px; font-weight: 600; line-height: 1.45; }
.bk-err { margin: 0; padding: 12px 16px; border-radius: 14px; background: #fff1e9; color: #9a3412; font-size: 15px; font-weight: 600; line-height: 1.5; }
.bk-notice[hidden], .bk-err[hidden] { display: none; }
.bk-send.is-busy { opacity: .6; cursor: progress; }
.bk-done-email { color: var(--black); }
.bk-line { background: var(--black); color: var(--paper); box-shadow: none !important; }
.bk-line svg { width: 28px; height: 28px; color: #06c755; --line-ink: #fff; }
.bk-code { display: grid; gap: 4px; justify-items: center; margin: 22px auto 0; padding: 14px 22px 16px; max-width: 380px; border-radius: 18px; border: 2px dashed rgba(0,0,0,.2); }
.bk-code[hidden] { display: none; }
.bk-code span { font-size: 13px; font-weight: 700; color: var(--grey-50); text-transform: uppercase; letter-spacing: .06em; }
.bk-code b { font-size: 32px; font-weight: 900; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; }
.bk-code small { font-size: 13px; line-height: 1.45; color: var(--grey-50); }
