/* Appointment booking wizard */
.pagehead--booking { padding-bottom: 110px; }
.bk { margin-top: -80px; padding-bottom: 80px; position: relative; z-index: 2; }
.bk-notice { display: flex; gap: 12px; align-items: flex-start; background: var(--gold-50); border: 1px solid #fde68a; color: #7a5b00; padding: 14px 18px; border-radius: 14px; margin-bottom: 16px; }
.bk-notice p { margin: 0; }
.bk-closed { text-align: center; padding: 56px 24px; }
.bk-closed .ic { color: var(--red); margin-bottom: 10px; }

.stepper { list-style: none; margin: 0 0 18px; padding: 10px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; backdrop-filter: blur(10px); }
.stepper li { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; color: #c9d4f2; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.stepper li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); font-size: 13px; flex: none; transition: all .25s var(--ease); }
.stepper li em { font-style: normal; }
.stepper li.is-current { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.stepper li.is-current span { background: var(--red); border-color: var(--red); color: #fff; }
.stepper li.is-done { color: #fff; }
.stepper li.is-done span { background: var(--gold); border-color: var(--gold); color: var(--navy); font-size: 0; }
.stepper li.is-done span::after { content: "✓"; font-size: 14px; font-weight: 800; }
.no-js .stepper { display: none; }

.bk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.bk-form { padding: clamp(22px, 3.5vw, 40px); position: relative; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-alert { background: var(--red-50); color: var(--red); border: 1px solid #fecdd3; padding: 12px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }

.step { border: 0; padding: 0; margin: 0 0 40px; min-width: 0; }
.is-wizard .step { display: none; margin: 0; }
.is-wizard .step.is-active { display: block; animation: stepIn .35s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.step.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.step__title { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; color: var(--ink); padding: 0; margin-bottom: 6px; outline: none; }
.step__num { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-family: var(--font); font-size: 15px; font-weight: 700; flex: none; }
.step__hint { color: var(--muted); margin-bottom: 22px; }
.step__nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.no-js .step__nav { display: none; }
.no-js .step[data-step="4"] .step__nav { display: flex; }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.svc { position: relative; cursor: pointer; display: block; }
.svc input { position: absolute; opacity: 0; pointer-events: none; }
.svc__box { display: flex; align-items: flex-start; gap: 14px; padding: 16px; height: 100%; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s, background .2s, transform .15s; }
.svc:hover .svc__box { border-color: var(--blue-100); transform: translateY(-1px); }
.svc input:focus-visible + .svc__box { outline: 3px solid var(--gold); outline-offset: 2px; }
.svc input:checked + .svc__box { border-color: var(--blue); background: linear-gradient(180deg, #f5f8ff, #fff); box-shadow: 0 0 0 3px rgba(0, 56, 168, .12); }
.svc__ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--bg); color: var(--ink-2); flex: none; transition: background .2s, color .2s; }
.svc input:checked + .svc__box .svc__ic { background: var(--blue); color: #fff; }
.svc__txt { display: grid; gap: 3px; flex: 1; }
.svc__txt strong { font-size: 15.5px; }
.svc__txt small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.svc__tick { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; transition: all .2s; }
.svc input:checked + .svc__box .svc__tick { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.08); }
.bk-info { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 14px; background: var(--blue-50); color: var(--navy); font-size: 14.5px; }
.bk-info p { margin: 0; }
.bk-info .ic { color: var(--blue); margin-top: 2px; }

/* fields */
.field { display: grid; gap: 6px; margin-bottom: 18px; }
.field[hidden] { display: none; }
.field label { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.field label b { color: var(--red); }
.field label .opt { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.field small { color: var(--muted); font-size: 13px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px; transition: border-color .15s, box-shadow .15s; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 56, 168, .12); }
.field .is-invalid, .is-invalid { border-color: var(--red) !important; box-shadow: 0 0 0 4px rgba(206, 17, 38, .1) !important; }
.field__err { color: var(--red); font-size: 13.5px; font-weight: 500; margin: 6px 0 0; display: flex; gap: 6px; align-items: center; }
.field__err::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--red); color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.field__err[hidden] { display: none; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.row--name { grid-template-columns: 1.2fr 1.2fr 90px; }
.name-preview { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; margin-bottom: 20px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg); transition: all .25s; }
.name-preview span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.name-preview strong { font-family: var(--display); font-size: 22px; color: #98a2b3; font-weight: 600; }
.name-preview.is-live { border-style: solid; border-color: var(--blue-100); background: var(--blue-50); }
.name-preview.is-live strong { color: var(--navy); }

/* calendar */
.cal { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.cal[hidden] { display: none; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal__head h3 { margin: 0; font-family: var(--display); font-size: 21px; }
.cal__head .iconbtn:disabled { opacity: .35; cursor: default; }
.cal__dow, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 4px 0; }
.cal__grid { min-height: 290px; transition: opacity .2s; }
.cal__grid.is-loading { opacity: .4; }
.day { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; aspect-ratio: 1 / .88; border-radius: 12px; border: 1.5px solid transparent; background: none; cursor: pointer; font: inherit; color: var(--ink); transition: transform .12s, background .15s, border-color .15s, box-shadow .15s; }
.day b { font-size: 16px; font-weight: 650; }
.day i { font-style: normal; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.day--open { background: var(--blue-50); }
.day--open i { color: var(--blue); }
.day--few { background: var(--gold-50); }
.day--few i { color: #9a6c00; }
.day--open:hover, .day--few:hover { transform: translateY(-2px); border-color: var(--blue); }
.day:disabled { cursor: default; }
.day--weekend b, .day--na b { color: #c3c8d2; font-weight: 500; }
.day--closed { background: repeating-linear-gradient(-45deg, #fff, #fff 5px, #f6f7f9 5px, #f6f7f9 10px); }
.day--closed b { color: #98a2b3; }
.day--closed i { color: var(--red); opacity: .75; }
.day.is-selected { background: var(--blue); border-color: var(--blue); box-shadow: 0 10px 22px -10px var(--blue); }
.day.is-selected b, .day.is-selected i { color: #fff; }
.cal__legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.cal__legend span { display: inline-flex; gap: 6px; align-items: center; }
.lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; }
.lg--open { background: var(--blue-100); } .lg--few { background: #fde68a; } .lg--full { background: repeating-linear-gradient(-45deg, #e4e7ec, #e4e7ec 2px, #fff 2px, #fff 4px); border: 1px solid var(--line); }
.cal__err { grid-column: 1 / -1; color: var(--red); text-align: center; padding: 40px 0; }

.slots { margin-top: 20px; animation: stepIn .35s var(--ease); }
.slots[hidden] { display: none; }
.slots__title { font-size: 17px; margin-bottom: 12px; }
.slots__group { margin-bottom: 14px; }
.slots__group h4 { display: flex; gap: 6px; align-items: center; font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.slots__group h4 .ic { color: var(--gold-d); }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 10px 6px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #fff; cursor: pointer; font: inherit; color: var(--ink); transition: all .15s; }
.slot b { font-size: 15px; font-variant-numeric: tabular-nums; }
.slot i { font-style: normal; font-size: 11px; color: var(--ok); font-weight: 600; }
.slot:hover:not(:disabled) { border-color: var(--blue); transform: translateY(-1px); }
.slot:disabled { cursor: default; background: var(--bg); border-color: var(--line); color: #b4bac5; text-decoration: line-through; }
.slot:disabled i { color: #b4bac5; }
.slot.is-selected { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 20px -10px var(--red); }
.slot.is-selected i { color: #ffd6db; }

.nojs-dt { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nojs-dt[hidden] { display: none; }

/* review */
.review { display: grid; grid-template-columns: 160px 1fr; margin: 0 0 22px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.review dt, .review dd { padding: 13px 16px; border-bottom: 1px solid var(--line); margin: 0; }
.review dt { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--bg); }
.review dd { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; overflow-wrap: anywhere; }
.review dt:nth-last-of-type(1), .review dd:last-of-type { border-bottom: 0; }
.review__edit { background: none; border: 0; color: var(--blue); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; flex: none; }
.review__edit:hover { text-decoration: underline; }
.consent { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--bg); font-size: 14px; color: var(--ink-2); cursor: pointer; line-height: 1.55; }
.consent input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--blue); flex: none; }
.consent:has(input:checked) { border-color: var(--blue); background: var(--blue-50); }
.btn.is-loading { position: relative; color: transparent !important; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }

/* sidebar */
.bk-side { position: sticky; top: 100px; display: grid; gap: 16px; }
.summary { padding: 22px; overflow: hidden; position: relative; }
.summary::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--blue) 0 33%, var(--gold) 33% 66%, var(--red) 66%); }
.summary h3 { font-size: 17px; margin: 4px 0 16px; }
.summary__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.summary__list li { display: flex; gap: 12px; align-items: flex-start; }
.summary__list li > .ic { width: 38px; height: 38px; padding: 9px; border-radius: 11px; background: var(--bg); color: #98a2b3; transition: all .25s; }
.summary__list li.is-filled > .ic { background: var(--blue-50); color: var(--blue); }
.summary__list small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; }
.summary__list span { font-weight: 600; font-size: 14.5px; color: #98a2b3; line-height: 1.35; overflow-wrap: anywhere; }
.summary__list li.is-filled span { color: var(--ink); }
.summary__place { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.tips ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); display: grid; gap: 6px; }
.status-link { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.status-link > .ic:first-child { color: var(--blue); }
.status-link div { flex: 1; display: grid; }
.status-link span { font-size: 13px; color: var(--muted); }
.status-link:hover { border-color: var(--blue-100); color: var(--ink); }

/* done / status pages */
.done { max-width: 760px; margin: -80px auto 80px; position: relative; z-index: 2; }
.done__card { padding: clamp(28px, 5vw, 52px); text-align: center; overflow: hidden; position: relative; }
.done__check { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-50); animation: pop .6s var(--ease) both; }
.done__check .ic { width: 42px; height: 42px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s ease forwards; }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h1 { font-size: clamp(28px, 3.6vw, 38px); }
.ref { display: inline-flex; flex-direction: column; gap: 4px; margin: 18px 0 26px; padding: 16px 28px; border-radius: 16px; border: 2px dashed var(--blue-100); background: var(--blue-50); }
.ref small { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.ref strong { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(24px, 4vw, 32px); letter-spacing: .06em; color: var(--navy); }
.done__details { text-align: left; margin: 0 auto 26px; }
.done__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.next-steps { text-align: left; margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.next-steps ol { padding-left: 20px; color: var(--ink-2); display: grid; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pending { background: var(--warn-50); color: var(--warn); }
.badge--confirmed, .badge--completed { background: var(--ok-50); color: var(--ok); }
.badge--declined, .badge--cancelled, .badge--no_show { background: #f2f4f7; color: var(--ink-2); }
.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; opacity: 0; animation: fall 2.6s ease-in forwards; }
@keyframes fall { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(520px) rotate(540deg); } }
.lookup { max-width: 560px; margin: -80px auto 80px; position: relative; z-index: 2; }
.lookup .card { padding: clamp(24px, 4vw, 40px); }

@media (max-width: 1000px) {
  .bk-grid { grid-template-columns: 1fr; }
  .bk-side { position: static; grid-row: 1; }
  .bk-side .tips, .bk-side .status-link { display: none; }
  .summary__list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .stepper { grid-template-columns: repeat(4, auto); justify-content: space-between; }
  .stepper li em { display: none; }
  .stepper li.is-current em { display: inline; }
  .svc-grid, .row, .nojs-dt { grid-template-columns: 1fr; }
  .row--name { grid-template-columns: 1fr 76px; }
  .row--name .field:first-child { grid-column: 1 / -1; }
  .day i { font-size: 9px; }
  .day b { font-size: 14px; }
  .cal { padding: 12px; }
  .cal__dow, .cal__grid { gap: 4px; }
  .review { grid-template-columns: 1fr; }
  .review dt { border-bottom: 0; padding-bottom: 4px; }
  .summary__list { grid-template-columns: 1fr; }
  .step__nav .btn--lg { padding: 14px 18px; }
}
@media print {
  .done__actions, .next-steps .btn { display: none !important; }
  .done { margin: 0; }
}
.bk-grid > *, .bk-form, .step { min-width: 0; }
@media (max-width: 640px) {
  .bk-side { display: none; }
  .bk-form { padding: 20px 16px; }
  .slots__grid { grid-template-columns: repeat(3, 1fr); }
}
