/* booking flow */
.bk-top .top-in { max-width: 1320px; }
.steps { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.steps li { display: flex; align-items: center; }
.steps li + li::before { content: ""; width: 22px; height: 1.5px; background: var(--line2); margin: 0 4px; }
.steps button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--mu); cursor: default; }
.steps i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; border: 1.5px solid var(--line2); background: var(--card); }
.steps .reach button, .steps .done button { color: var(--ink2); cursor: pointer; }
.steps .reach button:hover, .steps .done button:hover { background: var(--tint); }
.steps .done i { background: var(--jun-t); border-color: var(--jun-t); font-size: 0; }
.steps .done i::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--jun); border-bottom: 2px solid var(--jun); transform: rotate(-45deg) translate(1px, -1px); }
.steps .done + li::before { background: var(--jun2); }
.steps .cur button { color: var(--ink); }
.steps .cur i { background: var(--jun); border-color: var(--jun); color: #fff; }
.back-site { display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 14px 0 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--jun); box-shadow: inset 0 0 0 1.5px var(--line2); }
.back-site:hover { background: var(--jun-t); }
.back-site svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-top .top-phone { display: none; }

.bk { max-width: 1320px; margin: 0 auto; padding: 28px 40px 64px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.bk-main { min-width: 0; }
.bk-head { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 22px; }
.bk-head h1 { font: 400 46px/1 var(--serif); letter-spacing: -.01em; margin-top: 6px; }
.bk-back { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); flex: none; }
.bk-back:hover { border-color: var(--jun2); }
.bk-back svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bk-back[hidden] { display: none; }
.panel[hidden] { display: none !important; }
.hint { margin-top: 14px; font-size: 13.5px; color: var(--ink2); }

/* services */
.svc-groups { display: flex; flex-direction: column; gap: 14px; }
.svc-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--sh); }
.svc-group .lbl { margin: 2px 4px 10px; }
.svc-group ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.svc { width: 100%; min-height: 60px; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); transition: border-color .15s, background .15s; }
.svc:hover { border-color: var(--line2); background: #fdfbf8; }
.svc span { display: flex; flex-direction: column; min-width: 0; }
.svc span b { font-weight: 600; font-size: 14.5px; }
.svc span small { color: var(--mu); font-size: 12.5px; line-height: 1.35; }
.svc em { font-style: normal; display: flex; flex-direction: column; align-items: flex-end; }
.svc em b { font-weight: 600; font-size: 14.5px; white-space: nowrap; }
.svc em small { color: var(--mu); font-size: 12px; white-space: nowrap; }
.radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--card); }
.svc.on { background: var(--jun-t); }
.svc.on .radio { border: 5px solid var(--jun); }
.adds { margin-top: 20px; }
.adds .lbl { margin-bottom: 10px; }
.adds .lbl span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--mu); margin-left: 6px; }
.add-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.addon { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 500; transition: border-color .15s, background .15s; }
.addon span { flex: 1; }
.addon b { font-weight: 600; }
.addon i { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line2); display: grid; place-items: center; flex: none; }
.addon.on { background: var(--clay-t); color: #7a3c22; }
.addon.on i { background: var(--clay); border-color: var(--clay); }
.addon.on i::after { content: ""; width: 8px; height: 4.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

/* stylists */
.sty-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sty { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; row-gap: 10px; align-items: center; padding: 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--sh); transition: border-color .15s, background .15s; }
.sty:hover:not(:disabled) { border-color: var(--line2); }
.sty .av { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line); }
.any-av { display: flex; width: 64px; height: 64px; align-items: center; }
.any-av img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--card); }
.any-av img + img { margin-left: -14px; }
.sty-t { display: flex; flex-direction: column; }
.sty-t b { font: 400 26px/1.05 var(--serif); }
.sty-t small { color: var(--ink2); font-size: 13.5px; }
.sty-m { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 13.5px; }
.sty-m b { font-weight: 600; font-size: 15px; }
.sty-m small { color: var(--ink2); font-size: 13px; text-align: right; }
.sty-m .no { color: var(--mu); text-align: left; }
.sty.on { background: var(--jun-t); }
.sty.on .av { box-shadow: 0 0 0 2px var(--jun-t), 0 0 0 4px var(--jun); }
.sty.on .sty-m { border-top-color: rgba(47,75,60,.2); }
.sty:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; background: transparent; }

/* time */
.when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-box, .slot-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.cal-head .lbl { color: var(--ink); font-size: 13px; }
.cal-key { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mu); }
.cal-key i { width: 6px; height: 6px; border-radius: 50%; background: var(--clay); margin-left: 6px; }
.cal-key .k-few { background: var(--sand); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.dow { font-size: 11.5px; font-weight: 600; color: var(--mu); padding: 8px 0 4px; }
.cal button { position: relative; height: 48px; border-radius: 10px; text-align: center; font-size: 14.5px; font-weight: 500; transition: background .15s; }
.cal button:hover:not(:disabled) { background: var(--tint); }
.cal button:disabled { color: #c9c4bc; cursor: default; }
.cal button.av::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--clay); }
.cal button.few::after { background: var(--sand); }
.cal button.today:not(.on) { box-shadow: inset 0 0 0 1.5px var(--line2); }
.cal button.on { background: var(--jun); color: #fff; font-weight: 600; }
.cal button.on::after { background: #fff; }
.slots-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.slots-head .lbl { color: var(--ink); font-size: 13px; }
.avail { font-size: 12.5px; color: var(--clay); font-weight: 600; }
.sgroup + .sgroup { margin-top: 14px; }
.sgroup h3 { font-size: 12.5px; font-weight: 600; color: var(--mu); margin-bottom: 8px; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.slot { min-height: 46px; border-radius: 10px; border: 1px solid var(--line); text-align: center; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; transition: background .15s, border-color .15s; }
.slot small { font-size: 11.5px; font-weight: 500; color: var(--mu); }
.slot:hover { border-color: var(--jun2); }
.slot.on { background: var(--jun); border-color: var(--jun); color: #fff; }
.slot.on small { color: rgba(255,255,255,.8); }
.empty { color: var(--mu); font-size: 14px; padding: 12px 0; }
#slots.nudge { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* forms */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); max-width: 760px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f-wide { grid-column: 1 / -1; }
.f > span { font-size: 13.5px; font-weight: 600; }
.f em { font-style: normal; font-weight: 500; color: var(--mu); }
.f input, .f textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fdfbf8; font-size: 15.5px; }
.f textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--jun2); box-shadow: 0 0 0 3px var(--jun-t); background: #fff; }
.f small { font-size: 12.5px; color: var(--mu); }
.f.bad input { border-color: #c2502e; background: #fff8f5; }
.f .err { color: #b2421f; font-weight: 600; }
.f .err:empty { display: none; }
.seg { border: 0; margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.seg legend { font-size: 13.5px; font-weight: 600; margin-bottom: 8px; width: 100%; float: left; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; }
.seg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.seg input:checked + span { background: var(--jun); border-color: var(--jun); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }

.review { display: flex; flex-direction: column; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rv { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px 10px 16px; font-size: 14.5px; }
.rv + .rv { border-top: 1px solid var(--line); }
.rv span { color: var(--mu); font-size: 13px; font-weight: 600; }
.rv b { font-weight: 600; }
.rv-note b { font-weight: 500; color: var(--ink2); }
.edit { min-height: 44px; padding: 0 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--jun); }
.edit:hover { background: var(--jun-t); }
.pay .lbl { margin-bottom: 6px; color: var(--ink); }
.pay-note { font-size: 14px; color: var(--ink2); margin-bottom: 16px; }
.pay-note b { color: var(--ink); }
.demo-note { margin-top: 12px; font-size: 12.5px; color: var(--mu); }
.agree { margin-top: 14px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink2); cursor: pointer; min-height: 44px; }
.agree input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--jun); flex: none; }
.agree.bad span { color: #b2421f; }

/* done */
.booked { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.done-badge { width: 64px; height: 64px; border-radius: 50%; background: var(--jun); display: grid; place-items: center; box-shadow: 0 0 0 10px var(--jun-t); animation: pop .4s ease-out; }
.done-badge svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.done-h { font: 400 56px/1 var(--serif); margin-top: 10px; letter-spacing: -.01em; }
.done-h em { font-style: normal; color: var(--clay); }
.done-sub { color: var(--ink2); font-size: 16px; }
.ticket { width: 100%; margin-top: 6px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; }
.t-top { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px dashed var(--line2); }
.t-top img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.t-top div { display: flex; flex-direction: column; }
.t-top small { font-size: 12px; color: var(--mu); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.t-top b { font: 400 24px/1.1 var(--serif); }
.t-ref { margin-left: auto; text-align: right; align-items: flex-end; }
.t-ref b { font: 700 18px/1.2 var(--ui); letter-spacing: .04em; color: var(--jun); }
.t-dl { padding: 14px 20px; display: flex; flex-direction: column; gap: 8px; }
.t-dl div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; font-size: 15px; }
.t-dl dt { color: var(--mu); font-size: 13.5px; font-weight: 600; }
.t-dl dd { font-weight: 600; }
.t-paid { display: flex; gap: 10px; align-items: center; margin: 0 12px 12px; padding: 12px 14px; border-radius: 12px; background: var(--jun-t); color: var(--jun); font-size: 14.5px; }
.t-paid svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.done-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.done-cta svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.done-fine { font-size: 13.5px; color: var(--mu); }
body.is-done .bk { grid-template-columns: minmax(0, 1fr) 340px; }
body.is-done .bk-sum .confirm, body.is-done .bk-sum .note { display: none; }
body.is-done .mbar { display: none !important; }
body.is-done .bk-head { display: none; }

/* summary */
.bk-sum { position: sticky; top: 96px; }
.sum-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: var(--sh); }
.sum-ph { position: relative; height: 190px; }
.sum-ph > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.sum-ph::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,28,23,.72)); }
.sum-sty { position: absolute; z-index: 1; left: 16px; bottom: 14px; display: flex; align-items: center; gap: 10px; color: #fff; }
.sum-sty img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #fff; }
.sum-sty.anyone img { display: none; }
.sum-sty span { display: flex; flex-direction: column; line-height: 1.2; }
.sum-sty b { font-size: 15px; }
.sum-sty small { font-size: 12.5px; opacity: .85; }
.sum-body { padding: 16px 18px 18px; }
.sum-body h3 { font: 400 28px/1.1 var(--serif); }
.sum-dl { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.sum-dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sum-dl dt { color: var(--ink2); }
.sum-dl dd { font-weight: 600; text-align: right; }
.money { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line2); display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink2); }
.money div { display: flex; justify-content: space-between; gap: 12px; }
.money b { color: var(--ink); font-weight: 600; white-space: nowrap; }
.money .dep { margin: 4px -10px 0; padding: 8px 10px; border-radius: 10px; background: var(--clay-t); color: var(--clay-d); }
.money .dep b { color: var(--clay-d); }
.confirm { margin-top: 14px; width: 100%; height: 52px; border-radius: 14px; background: var(--jun); color: #fff; font-weight: 600; font-size: 15.5px; text-align: center; transition: background .15s; }
.confirm:hover { background: #253d30; }
.confirm.wait { background: var(--tint); color: var(--mu); }
.note { margin-top: 10px; display: flex; gap: 8px; font-size: 12.5px; color: var(--mu); line-height: 1.4; }
.note svg { width: 16px; height: 16px; flex: none; fill: none; stroke: var(--jun2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-top: 1px; }
.mbar { display: none; }

@media (max-width: 1180px) {
  .add-grid { grid-template-columns: 1fr 1fr; }
  .steps span { display: none; }
  .steps .cur span { display: inline; }
}
@media (max-width: 960px) {
  .bk, body.is-done .bk { grid-template-columns: 1fr; padding: 20px 28px 120px; }
  .bk-sum { display: none; }
  .when { grid-template-columns: 1fr; }
  .mbar { display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; background: rgba(255,255,255,.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .mbar div { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
  .mbar b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar small { font-size: 13px; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mbar .confirm { margin: 0; width: auto; padding: 0 22px; height: 50px; flex: none; }
}
@media (max-width: 760px) {
  .bk-top .top-in { gap: 10px; }
  .bk-top .logo span { display: none; }
  .steps { margin: 0; flex: 1; justify-content: center; }
  .steps li + li::before { width: 8px; margin: 0 1px; }
  .steps button { padding: 0 2px; gap: 6px; height: 44px; }
  .steps i { width: 24px; height: 24px; }
  .steps .cur span { display: none; }
  .back-site { padding: 0 12px 0 8px; font-size: 13.5px; }
  .bk, body.is-done .bk { padding: 16px 16px 120px; }
  .bk-head { margin-bottom: 16px; gap: 12px; }
  .bk-head h1 { font-size: 34px; }
  .svc-groups { gap: 12px; }
  .svc-group ul { grid-template-columns: 1fr; }
  .svc-group { padding: 12px; }
  .add-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .addon { padding: 0 12px; font-size: 13.5px; gap: 8px; }
  .addon span { line-height: 1.2; }
  .sty-grid { grid-template-columns: 1fr; gap: 10px; }
  .sty { padding: 14px; }
  .sty .av, .any-av { width: 52px; height: 52px; }
  .sty .av { width: 52px; }
  .any-av img { width: 30px; height: 30px; }
  .cal-box, .slot-box { padding: 12px; }
  .cal button { height: 42px; }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .form { padding: 16px; }
  .fgrid { grid-template-columns: 1fr; gap: 14px; }
  .pay .fgrid { grid-template-columns: 1fr 1fr; }
  .rv { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 6px 10px 14px; }
  .rv span { grid-column: 1; }
  .rv b { grid-column: 1; }
  .rv .edit { grid-column: 2; grid-row: 1 / span 2; }
  .done-h { font-size: 42px; }
  .t-top { padding: 14px 16px; gap: 12px; }
  .t-top img { width: 44px; height: 44px; }
  .t-top b { font-size: 21px; }
  .t-dl { padding: 12px 16px; }
  .t-dl div { grid-template-columns: 72px 1fr; font-size: 14.5px; }
  .done-cta { flex-direction: column; width: 100%; }
  .done-cta .btn { width: 100%; }
}
@media (min-width: 1181px) {
  #payForm:not([hidden]) { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  #payForm .review { margin-bottom: 0; }
  #payForm .rv { grid-template-columns: 64px minmax(0, 1fr) auto; }
}
.back-site { white-space: nowrap; }
.bs-s { display: none; }
@media (max-width: 760px) { .bs-l { display: none; } .bs-s { display: inline; } }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; width: max-content; max-width: min(520px, calc(100% - 32px)); padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px rgba(20,28,23,.25); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
#addCal.added { background: var(--jun-t); color: var(--jun); }

@media (max-width: 960px) { body[data-page="book"]:not(.is-done) { --jn-chat-b: 92px; } }
