/* =====================================================
   BOOKING MODAL  (values measured from the Book Appointment PDFs, 560px wide)
   ===================================================== */
.bk {
  --bk-bg: #fcf8ef; --bk-head: #f4f1ea; --bk-dark: #1f0302; --bk-line: #e7dbcb; --bk-ink: #1f2a37;
  --bk-gold: #b6885d; --bk-muted: #6b7280; --bk-soft: #f9f3e7; --bk-maroon: #7a1f2b;
  --bk-btn-off: #b9aea7;
  position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px;
  visibility: hidden; opacity: 0; transition: opacity .3s ease, visibility 0s linear .3s;
  font-family: "Poppins", sans-serif; color: var(--bk-ink);
}
.bk.open { visibility: visible; opacity: 1; transition: opacity .3s ease; }
html.bk-lock { overflow: hidden; }
.bk-backdrop { position: absolute; inset: 0; background: rgba(31, 3, 2, .58); backdrop-filter: blur(3px); }
.bk-dialog { position: relative; width: 560px; max-width: 100%; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; background: var(--bk-bg); border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .38); transform: translateY(20px) scale(.985); transition: transform .45s cubic-bezier(.22, .61, .36, 1); scrollbar-width: thin; }
.bk.open .bk-dialog { transform: none; }
.bk button { font-family: inherit; cursor: pointer; }
.bk :focus-visible { outline: 2px solid var(--bk-gold); outline-offset: 2px; }

/* ----- header ----- */
.bk-head { position: relative; height: 161px; background: var(--bk-dark); border-bottom: 1px solid var(--bk-dark); color: #f4f1ea; overflow: hidden; transition: background .35s ease, color .35s ease; }
.bk-title { position: absolute; left: 26px; top: 26px; font-family: "Inter", sans-serif; font-size: 29px; font-weight: 600; line-height: 36px; letter-spacing: -.1px; }
.bk-title svg { display: inline-block; width: 23px; height: 23px; margin: 0 0 6px 6px; vertical-align: middle; color: #b98b60; }
.bk-sub { position: absolute; left: 26px; top: 109px; max-width: 280px; font-size: 12.5px; line-height: 17px; }
.bk-art { position: absolute; left: 322px; top: 0; width: 190px; height: 160px; pointer-events: none; }
.bk-art img { position: absolute; inset: 0; width: 190px; height: 160px; }
.bk-spark { position: absolute; color: #b98b60; }
.bk-x { display: block; position: absolute; top: 14px; right: 14px; z-index: 3; width: 32px; height: 32px; border-radius: 50%; background: rgba(244, 241, 234, .14); color: #f4f1ea; transition: background .25s; }
.bk-x:hover { background: rgba(244, 241, 234, .26); }
.bk-x::before, .bk-x::after { content: ""; position: absolute; left: 9px; right: 9px; top: 15px; height: 2px; background: currentColor; transform: rotate(45deg); }
.bk-x::after { transform: rotate(-45deg); }

/* ----- stepper ----- */
.bk-steps { display: flex; align-items: flex-start; margin: 20px 26px 0; padding: 0; list-style: none; }
.bk-step { display: flex; flex-direction: column; align-items: center; flex: none; }
.bk-dot { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: #f5efeb; color: var(--bk-ink); font-size: 13px; font-weight: 400; transition: background .35s ease; }
.bk-dot svg { width: 14px; height: 14px; opacity: 0; position: absolute; transition: opacity .3s; }
.bk-step { position: relative; }
.bk-step.done .bk-dot { background: var(--bk-dark); color: transparent; }
.bk-step.done .bk-dot svg { opacity: 1; }
.bk-dot svg { top: 7px; color: #f4f1ea; }
.bk-label { margin-top: 7px; font-size: 13px; font-weight: 400; line-height: 20px; color: var(--bk-muted); white-space: nowrap; transition: color .3s; }
.bk-step.done .bk-label { color: var(--bk-dark); font-weight: 600; }
.bk-line { flex: 1; height: 2px; margin-top: 13px; background: #d6d9de; transition: background .35s ease; }
.bk-line.done { background: var(--bk-dark); }

/* ----- content box ----- */
.bk-box { margin: 18px 25px 0; height: 284px; padding: 16px 17px; border: 1px solid var(--bk-line); border-radius: 12px; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: #f0d7c3 transparent; }
.bk.is-select .bk-box { overflow: visible; }
.bk-pane { animation: bkIn .4s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes bkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bk-h { font-size: 13.5px; font-weight: 600; line-height: 20px; color: var(--bk-dark); }
.bk-eyebrow { font-size: 12.5px; font-weight: 500; line-height: 20px; letter-spacing: .1px; text-transform: uppercase; color: var(--bk-maroon); }
.bk-lbl { display: block; font-size: 13px; font-weight: 500; line-height: 20px; color: var(--bk-ink); }
.bk-note { font-size: 12px; font-style: italic; line-height: 18px; color: var(--bk-muted); }
.bk-err { display: none; margin-top: 4px; font-size: 11.5px; line-height: 16px; color: #b4472f; }
.bk-field.invalid .bk-err { display: block; } .bk-field.invalid input { border-color: #c9674c; }

/* step 1 */
.bk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 6px; margin-top: 8px; }
.bk-cat { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 7px; height: 60px; padding: 8px 4px 0; border-radius: 8px; background: #f5f0e6; color: var(--bk-ink); font-size: 12.5px; line-height: 16px; transition: background .3s, transform .3s, color .3s; }
.bk-cat img { width: 24px; height: 24px; object-fit: contain; }
.bk-cat:hover { transform: translateY(-2px); }
.bk-cat[aria-checked="true"] { background: var(--bk-dark); color: #f4f1ea; }
.bk-field { display: block; }
.bk-service { margin-top: 21px; }
.bk-select { position: relative; margin-top: 5px; }
.bk-select-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 37px; padding: 0 12px 0 13px; border: 1px solid var(--bk-line); border-radius: 6px; background: var(--bk-bg); font-family: "Inter", sans-serif; font-size: 14.5px; color: var(--bk-ink); text-align: left; }
.bk-select-btn .pr { margin-left: auto; margin-right: 12px; font-weight: 600; color: var(--bk-dark); }
.bk-select-btn svg { width: 12px; height: 12px; color: #6b1f1f; transition: transform .3s; }
.bk-select.open .bk-select-btn svg { transform: rotate(180deg); }
.bk-list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); max-height: 168px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; background: #fffdf8; border: 1px solid var(--bk-line); border-radius: 8px; box-shadow: 0 12px 30px rgba(31, 3, 2, .16); display: none; scrollbar-width: thin; }
.bk-select.open .bk-list { display: block; animation: bkIn .25s both; }
.bk-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; font-family: "Inter", sans-serif; font-size: 14px; cursor: pointer; }
.bk-list li:hover, .bk-list li.act { background: #f6ecda; }
.bk-list li[aria-selected="true"] { font-weight: 600; }
.bk-list li b { font-weight: 600; }

/* step 2 */
.bk-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.bk-grid2 .full { grid-column: 1 / -1; }
.bk-field + .bk-field, .bk-grid2 .bk-field { margin-bottom: 0; }
.bk-in { display: block; width: 100%; height: 37px; margin-top: 3px; padding: 0 13px; border: 1px solid var(--bk-line); border-radius: 6px; background: var(--bk-bg); font-family: "Inter", sans-serif; font-size: 14.5px; color: var(--bk-ink); outline: none; transition: border-color .25s, box-shadow .25s; }
.bk-in::placeholder { color: #9ca3af; }
.bk-in:focus { border-color: #c9a46e; box-shadow: 0 0 0 3px rgba(201, 164, 110, .2); }
.bk-row2 { margin-top: 21px; }
.bk-row2 + .bk-note, .bk-help { margin-top: 8px; }

/* step 3 */
.bk-days { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 11px; }
.bk-day { height: 26px; padding: 0 12px; border-radius: 6px; background: #f5f0e6; color: var(--bk-ink); font-size: 13px; transition: background .25s, color .25s; }
.bk-day[aria-checked="true"] { background: var(--bk-dark); color: #f4f1ea; }
.bk-day:not([aria-checked="true"]):hover { background: #ece4d6; }
.bk-slot-h { margin-top: 30px; font-size: 12.5px; font-weight: 500; line-height: 20px; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; margin-top: 12px; }
.bk-slot { height: 28px; border: 1px solid transparent; border-radius: 6px; background: #f5f0e6; color: var(--bk-dark); font-size: 13px; transition: background .2s, transform .2s; }
.bk-slot:hover:not(:disabled) { transform: translateY(-1px); background: #ece4d6; }
.bk-slot:disabled { background: #f6f0e4; color: #cfc7b9; cursor: not-allowed; }
.bk-slot[aria-pressed="true"], .bk-slot[aria-pressed="true"]:hover:not(:disabled) { background: var(--bk-dark); border-color: var(--bk-dark); color: #f4f1ea; }

/* step 4 */
.bk-sub2 { margin-top: 8px; font-size: 12.5px; line-height: 19px; }
.bk-consents { margin: 15px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bk-consent { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border-radius: 8px; background: var(--bk-soft); font-size: 12px; line-height: 18px; cursor: pointer; }
.bk-consent:nth-child(2n) { background: #faf1e3; }
.bk-consent input { position: absolute; opacity: 0; pointer-events: none; }
.bk-cb { flex: none; display: flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 4px; border: 1.5px solid #cdbfae; background: #fff; transition: background .2s, border-color .2s; }
.bk-cb svg { width: 11px; height: 11px; color: #fff; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .2s; }
.bk-consent input:checked + .bk-cb { background: var(--bk-dark); border-color: var(--bk-dark); }
.bk-consent input:checked + .bk-cb svg { opacity: 1; transform: none; }
.bk-consent input:focus-visible + .bk-cb { outline: 2px solid var(--bk-gold); outline-offset: 2px; }


/* success */
.bk-done { display: flex; flex-direction: column; align-items: center; text-align: center; }
.bk-done .big { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin: 2px 0 10px; border-radius: 50%; background: var(--bk-dark); color: #fff; animation: bkPop .6s cubic-bezier(.22, 1.4, .36, 1) both; }
.bk-done .big svg { width: 24px; height: 24px; }
@keyframes bkPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-done h3 { font-size: 15px; font-weight: 600; line-height: 22px; color: var(--bk-dark); }
.bk-done p.msg { margin-top: 3px; font-size: 12.5px; line-height: 18px; color: var(--bk-muted); }
.bk-sum { width: 100%; margin: 12px 0 0; padding: 0; list-style: none; text-align: left; }
.bk-sum li { display: flex; justify-content: space-between; gap: 14px; padding: 5px 10px; border-radius: 6px; font-size: 12.5px; line-height: 18px; }
.bk-sum li:nth-child(odd) { background: var(--bk-soft); }
.bk-sum li span { color: var(--bk-muted); flex: none; } .bk-sum li b { font-weight: 500; text-align: right; color: var(--bk-dark); }

/* ----- actions ----- */
.bk-actions { display: flex; gap: 17px; margin: 24px 24px 0; }
.bk-btn { height: 45px; padding: 0 28px; border-radius: 4px; border: 1px solid var(--bk-dark); font-family: "Inter", sans-serif; font-size: 14px; font-weight: 600; line-height: 17px; cursor: pointer; transition: background-color .3s ease, color .3s ease, border-color .3s ease; }
.bk-btn--ghost:hover:not(:disabled) { background: var(--bk-dark); color: #f4f1ea; }
.bk-btn--primary:hover:not(:disabled) { background: #f4f1ea; color: var(--bk-dark); }
.bk .bk-btn { font-family: "Inter", sans-serif; }  /* same font as the site buttons */
.bk-btn--ghost { flex: none; width: 125px; background: #f4f1ea; color: var(--bk-dark); }
.bk-btn--primary { flex: 1; background: var(--bk-dark); color: #f4f1ea; }
.bk-btn:disabled { background: var(--bk-btn-off); border-color: #a89e97; color: #f4f1ea; cursor: not-allowed; }
.bk-pad { height: 24px; }

@media (prefers-reduced-motion: reduce) { .bk, .bk-dialog, .bk-pane, .bk-done .big { transition: none !important; animation: none !important; } }

/* ----- phones: full-screen sheet ----- */
@media (max-width: 600px) {
  .bk { padding: 0; align-items: flex-end; }
  .bk-dialog { width: 100%; max-height: 100vh; max-height: 100dvh; min-height: 100vh; min-height: 100dvh; border-radius: 0; transform: translateY(40px); }
  .bk-head { height: 138px; } .bk-title { left: 20px; top: 22px; font-size: 24px; line-height: 30px; } .bk-title svg { width: 19px; height: 19px; }
  .bk-sub { left: 20px; top: 88px; max-width: 58%; font-size: 12px; line-height: 16px; } .bk-br { display: none; }
  .bk-x { top: 10px; right: 10px; background: rgba(31, 3, 2, .6); }
  .bk-art { left: auto; right: -14px; transform: scale(.82); transform-origin: right bottom; top: auto; bottom: 0; }
  .bk-steps { margin: 18px 18px 0; } .bk-label { font-size: 11px; } .bk-line { min-width: 8px; }
  .bk-box { height: auto; min-height: 284px; margin: 16px 16px 0; padding: 16px 14px; }
  .bk-grid2 { grid-template-columns: 1fr; } .bk-grid2 .bk-field + .bk-field { margin-top: 14px; } .bk-row2 { margin-top: 14px; }
  .bk-days { gap: 8px; }
  .bk-actions { margin: 20px 16px 0; gap: 12px; } .bk-btn--ghost { width: 96px; }
  .bk-pad { height: 28px; }
  .bk-dialog.bk-fit { overflow-y: auto; }
}

.bk-spark.s { color: #c9a077; }
