/* Grove & Gloss :: booking flow and calendar. Built on system.css tokens. */

.bk { min-height: 100svh; display: grid; grid-template-rows: auto 1fr; }
.bk-top { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--bg) 90%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding-top: env(safe-area-inset-top, 0px); }
.bk-top-in { display: flex; align-items: center; gap: 14px; height: 66px; }
.bk-top .lockup .ls { display: none; }
@media (min-width: 640px) { .bk-top .lockup .ls { display: block; } }
.bk-back { width: 42px; height: 42px; display: grid; place-content: center; border-radius: 12px; border: 1px solid var(--line); background: none; color: var(--ink-2); cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.bk-back:hover { color: var(--teal); border-color: var(--teal); }
.bk-step { margin-left: auto; white-space: nowrap; }
@media (max-width: 520px) { .bk-top .lockup .ln { font-size: 13px; } .bk-top-in { gap: 10px; } }
.bk-bar { height: 2px; background: var(--line-soft); }
.bk-bar i { display: block; height: 100%; background: var(--sweep); transition: width .5s var(--spring); }

.bk-body { padding-block: clamp(28px, 5vw, 56px) 150px; }
.bk-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1040px) { .bk-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; } }
.bk-root { min-width: 0; max-width: 760px; }
.bk-ticket { display: none; }
@media (min-width: 1040px) { .bk-ticket { display: block; position: sticky; top: 96px; } }
.tk-total { display: grid; gap: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.tk-num { font: 800 46px/1 var(--sans); letter-spacing: -.045em; color: var(--gold); }
.tk-lines { display: grid; gap: 4px; }
.tk-lines div { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-3); }
.tk-lines span:last-child { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.bk-ticket dd.dim { color: var(--ink-4); font-weight: 500; }
.bk-ticket .small svg { display: inline; vertical-align: -2px; margin-right: 4px; color: var(--teal); }

.bk-h { display: grid; gap: 12px; margin-bottom: 30px; }
.bk-h h1 { font-size: clamp(32px, 5.6vw, 54px); line-height: 1; letter-spacing: -.04em; }
.bk-h p { color: var(--ink-3); font-size: 16px; max-width: 56ch; }
.bk-root h3 { margin: 30px 0 12px; font-size: 18px; }
.bk-root h3:first-of-type { margin-top: 0; }

/* ----------------------------------------------------------- choice tiles */
.choices { display: grid; gap: 10px; }
.choices.two { grid-template-columns: repeat(2, 1fr); }
.choice {
  position: relative; display: grid; gap: 4px; width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--r);
  padding: 17px 52px 17px 20px; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.choice:hover { border-color: var(--line); background: var(--surface-2); }
.choice[aria-pressed="true"], .choice.sel { border-color: var(--teal); background: var(--teal-wash); }
.choice::after { content: ""; position: absolute; top: 50%; right: 18px; translate: 0 -50%; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); transition: background .25s var(--ease), border-color .25s var(--ease); }
.choice[aria-pressed="true"]::after, .choice.sel::after {
  border-color: var(--teal); background: var(--teal);
  box-shadow: inset 0 0 0 4px var(--bg);
}
.choice .ct { font-weight: 700; font-size: 16px; color: var(--ink); }
.choice .cs { font-size: 14px; color: var(--ink-3); }
.choice .cp { font: 800 14.5px/1.2 var(--sans); color: var(--gold); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------- make grid */
.makes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .makes { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 820px) { .makes { grid-template-columns: repeat(6, 1fr); } }
.make { aspect-ratio: 1; display: grid; place-content: center; justify-items: center; gap: 9px; padding: 10px; cursor: pointer; background: var(--surface); border: 1.5px solid var(--line-soft); border-radius: var(--r); transition: border-color .2s var(--ease), background .2s var(--ease), transform .35s var(--spring); }
.make:hover { border-color: var(--teal); background: var(--surface-2); transform: translateY(-2px); }
.make .mk, .make .mono { width: 42px; height: 42px; border-radius: 12px; display: grid; place-content: center; background: var(--sunk); border: 1px solid var(--line); font: 500 14px/1 var(--mono); letter-spacing: .04em; color: var(--teal); text-transform: none; }
.make .mn { font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.25; }
.search { width: 100%; background: var(--sunk); border: 1.5px solid var(--line); border-radius: var(--r); padding: 15px 18px 15px 46px; color: var(--ink); font-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A7B0C0' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 16px center; background-size: 19px; }
.search:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-wash); }

.messcard { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 20px; margin-bottom: 26px; display: grid; gap: 14px; }
.messcard .top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.messcard .top b { color: var(--ink); font-size: 17px; }
.messcard .top span { font-weight: 800; color: var(--gold); }
.messrange { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; outline: none; background: linear-gradient(90deg, var(--teal) 0 var(--p, 25%), var(--line) var(--p, 25%) 100%); }
.messrange::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 5px solid var(--void); box-shadow: 0 0 0 1.5px var(--teal), 0 6px 18px rgb(0 0 0 / .6); cursor: grab; }
.messrange::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); border: 5px solid var(--void); box-shadow: 0 0 0 1.5px var(--teal); cursor: grab; }
.messmarks { display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.addr-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }

/* ================================================================ CALENDAR
   A month grid with availability baked into every cell. Big tap targets,
   one accent, nothing else. */
.cal { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; transition: opacity .2s var(--ease); }
.cal.is-loading .cal-month { opacity: .45; }
@media (prefers-reduced-motion: no-preference) {
  .cal-day:not(.outside) { animation: dayIn .3s var(--ease) backwards; animation-delay: calc(var(--i) * 7ms); }
}
@keyframes dayIn { from { opacity: 0; transform: scale(.9); } }
.cal-dur { display: grid; gap: 4px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); background: var(--sunk); }
.cal-dur-k { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cal-dur-v { font: 800 24px/1.15 var(--sans); letter-spacing: -.02em; color: var(--teal); }
.cal-dur-s { font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 10px; }
.cal-title { font: 800 19px/1.2 var(--sans); letter-spacing: -.015em; color: var(--ink); }
.cal-title span { color: var(--ink-3); font-weight: 600; }
.cal-nav { display: flex; gap: 6px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--sunk); color: var(--ink-2); cursor: pointer; display: grid; place-content: center; transition: color .2s var(--ease), border-color .2s var(--ease); }
.cal-nav button:hover:not([disabled]) { color: var(--teal); border-color: var(--teal); }
.cal-nav button[disabled] { opacity: .3; cursor: not-allowed; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); padding: 0 8px 6px; }
.cal-dow span { text-align: center; font: 500 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-4); }
.cal-view { overflow: hidden; touch-action: pan-y; }
.cal-track { display: flex; width: 100%; transition: transform .34s var(--ease); }
.cal-track.nosnap { transition: none; }
.cal-month { flex: 0 0 100%; display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 8px 10px; }
.cal-day { position: relative; aspect-ratio: 1; max-height: 64px; width: 100%; justify-self: center; min-height: 44px; display: grid; place-content: center; background: none; border: 0; border-radius: 12px; cursor: pointer; font: 600 15.5px/1 var(--sans); color: var(--ink); font-variant-numeric: tabular-nums; transition: background .15s var(--ease), color .15s var(--ease), transform .3s var(--spring); }
.cal-day:hover:not(:disabled) { background: var(--surface-2); }
.cal-day:disabled, .cal-day.shut { color: var(--ink-4); opacity: .45; cursor: default; }
.cal-day.outside { opacity: .2; }
.cal-day.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.cal-day.today::before { content: "Today"; position: absolute; top: 4px; left: 0; right: 0; font: 500 7.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.cal-day.sel, .cal-day.sel:hover { background: var(--sweep); color: var(--c-black); transform: scale(1.04); }
.cal-day.sel .dot { background: var(--c-black); }
.cal-day .d { position: relative; z-index: 1; }
.cal-day .dot { position: absolute; bottom: 7px; left: 50%; translate: -50% 0; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.cal-day .cold { position: absolute; top: 4px; right: 5px; font-size: 9px; line-height: 1; color: color-mix(in oklab, var(--c-teal), var(--c-white) 45%); }
.cal-day.full .dot { background: var(--ink-4); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 12px 18px 16px; border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--ink-3); }
.cal-legend i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: middle; }
.cal-times { border-top: 1px solid var(--line-soft); padding: 18px; display: grid; gap: 13px; }
.cal-times h4 { font-size: 15.5px; }
.time-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(146px, 1fr)); }
.time { display: grid; gap: 2px; text-align: left; padding: 13px 15px; cursor: pointer; background: var(--sunk); border: 1.5px solid var(--line-soft); border-radius: var(--r-sm); transition: border-color .2s var(--ease), background .2s var(--ease), transform .3s var(--spring); }
@media (prefers-reduced-motion: no-preference) { .time { animation: timeIn .34s var(--spring) backwards; animation-delay: calc(var(--i) * 26ms); } }
@keyframes timeIn { from { opacity: 0; transform: translateY(8px) scale(.97); } }
.time:hover:not(:disabled) { border-color: var(--teal); transform: translateY(-1px); }
.time[aria-pressed="true"], .time[aria-pressed="true"]:hover { border-color: var(--teal); background: var(--teal-wash); }
.time .tt { font: 500 18px/1.2 var(--mono); color: var(--ink); }
.time .ts { font-size: 12.5px; color: var(--ink-3); }
.time .tl { font-size: 11.5px; color: var(--teal); margin-top: 2px; }

/* The appointment summary inside the last step */
.appt { display: grid; gap: 3px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); border-left: 3px solid var(--teal); }
.appt-k { font: 500 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.appt-v { font: 800 21px/1.2 var(--sans); color: var(--ink); letter-spacing: -.015em; }
.appt-t { font: 500 17px/1.3 var(--mono); color: var(--teal); margin-top: 2px; }
.appt-s { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; line-height: 1.55; }

/* ---------------------------------------------------------- quote dock */
.quote-dock { position: fixed; inset: auto 0 0; z-index: 60; background: color-mix(in oklab, var(--void) 95%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px)); }
.quote-dock-in { display: flex; align-items: center; gap: 16px; }
.qd-price { flex: 1; min-width: 0; display: grid; gap: 2px; }
.qd-price .qv { font: 800 26px/1.05 var(--sans); letter-spacing: -.03em; color: var(--gold); }
.qd-price .qv small { font: 500 11px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; margin-left: 4px; }
.qtoggle { justify-self: start; background: none; border: 0; padding: 2px 0; color: var(--teal); font-size: 12.5px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1040px) { .qd-price .qtoggle { display: none; } }
.quote-dock .btn { flex: none; }
@media (max-width: 460px) { .quote-dock .btn { --h: 52px; padding: 0 16px 0 20px; gap: 16px; font-size: 13.5px; } .qd-price .qv { font-size: 23px; } }
#qdBreak { margin-bottom: 12px; }

.qlines { display: grid; border-top: 1px solid var(--line); }
.qlines > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14.5px; }
.qlines .ql-l { color: var(--ink-2); }
.qlines .ql-l small { display: block; color: var(--ink-4); font-size: 12px; }
.qlines .ql-v { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); font-weight: 600; }
.qlines .ql-total { font-weight: 800; }
.qlines .ql-total .ql-l { color: var(--ink); }
.qlines .ql-total .ql-v { color: var(--gold); font-weight: 800; font-size: 17px; }

#card-element { background: var(--sunk); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 15px; min-height: 52px; }

/* ----------------------------------------------------------- confirmed */
.bk-done { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1040px) { .bk-done { grid-template-columns: minmax(0, 1fr) 400px; gap: 72px; } }
.bk-done-h { font-size: clamp(40px, 7vw, 84px); }
.bk-where { padding: 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line-soft); }
.stamped { rotate: 1.2deg; }
@media (prefers-reduced-motion: no-preference) { .stamped { animation: stamp .9s var(--spring) .15s backwards; } @keyframes stamp { from { opacity: 0; rotate: -4deg; scale: 1.06; } } }
