/* Public pages: booking, manage, payment */

.site-header { padding: 36px 16px 8px; text-align: center; }
.site-header a { display: inline-block; }
.site-header img { width: min(420px, 86vw); height: auto; margin: 0 auto; }

.page { max-width: 1040px; margin: 0 auto; padding: 8px 16px 64px; }
.page.narrow { max-width: 640px; }

.intro { text-align: center; margin: 24px auto 32px; max-width: 560px; }
.intro h1 { font-style: italic; color: var(--aubergine); }
.intro p { margin: 10px 0 0; color: var(--muted); }

/* Steps */
.steps { display: flex; justify-content: center; gap: 6px 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 32px; }
.steps li { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.steps li .n { width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--mauve); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; letter-spacing: 0; }
.steps li[aria-current=step] { color: var(--plum); font-weight: 500; }
.steps li[aria-current=step] .n { background: var(--plum); border-color: var(--plum); color: #fff; }
@media (max-width: 599px) {
  .steps { gap: 6px 14px; margin-bottom: 22px; }
  .steps li:not([aria-current=step]) .t { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .intro { margin: 14px auto 20px; }
  .site-header { padding-top: 24px; }
  .panel-title .back { margin-left: -12px; }
}
.steps li.done .n { background: var(--mist); border-color: var(--mist); color: var(--aubergine); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; }
}

.panel { background: var(--white); border: 1px solid var(--line); padding: 28px 24px; }
@media (min-width: 600px) { .panel { padding: 36px 40px; } }
.panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; flex-wrap: wrap; }
.back { min-height: 44px; }

/* Service menu */
.cat { margin-bottom: 34px; }
.cat:last-child { margin-bottom: 0; }
.cat-head { margin-bottom: 8px; }
.cat-head h2 { font-size: 26px; letter-spacing: .14em; text-transform: uppercase; }
.cat-head p { margin: 2px 0 0; font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--plum); }
.svc-list { list-style: none; margin: 0; padding: 0; }
.svc {
  width: 100%; display: block; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  padding: 16px 10px; cursor: pointer; border-radius: 0; transition: background .15s;
}
.svc:hover { background: #FBF7F7; }
.svc[aria-pressed=true] { background: #F3E9EB; }
.svc-row { display: flex; align-items: baseline; gap: 10px; }
.svc-name { font-size: 17px; }
.svc-leader { flex: 1; border-bottom: 1px dotted #A48D97; transform: translateY(-4px); min-width: 16px; }
.svc-price { font-family: var(--serif); font-size: 22px; font-weight: 500; white-space: nowrap; }
.svc-meta { margin-top: 4px; font-size: 14px; color: var(--muted); display: flex; gap: 6px 14px; flex-wrap: wrap; }
.svc-desc { margin-top: 4px; font-size: 14px; color: var(--muted); }
.svc .tick { display: none; color: var(--plum); }
.svc[aria-pressed=true] .tick { display: inline; }

/* Calendar */
.cal { user-select: none; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head h3 { font-size: 24px; }
.cal-nav { width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: var(--plum); }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px 2px; justify-items: center; }
.cal-dow { text-align: center; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 6px 0; }
.cal-day {
  width: 44px; height: 44px; border: 0; background: none; border-radius: 50%; cursor: pointer;
  font-size: 16px; color: var(--aubergine); position: relative; display: flex; align-items: center; justify-content: center;
}
.cal-day.avail::after { content: ''; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--plum); }
.cal-day.avail:hover { background: var(--mist); }
.cal-day:disabled { color: #BBAAB3; cursor: default; }
.cal-day.today { font-weight: 600; }
.cal-day[aria-pressed=true] { background: var(--plum); color: #fff; }
.cal-day[aria-pressed=true]::after { background: #fff; }
.cal-empty { width: 44px; height: 44px; }

.slots-wrap { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 22px; }
.slot-group { margin-bottom: 18px; }
.slot-group .label { display: block; margin-bottom: 10px; color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot {
  min-height: 46px; border: 1px solid var(--mauve); background: var(--white); color: var(--aubergine); cursor: pointer; border-radius: var(--radius);
  font-size: 15px;
}
.slot:hover { border-color: var(--plum); color: var(--plum); }
.slot[aria-pressed=true] { background: var(--plum); border-color: var(--plum); color: #fff; }
.empty-state { padding: 22px 0; color: var(--muted); }

/* Summary */
.summary { position: sticky; top: 24px; }
.summary .panel { padding: 26px 24px; }
.summary h3 { font-size: 24px; margin-bottom: 14px; }
.sum-list { margin: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.sum-row dt { color: var(--muted); }
.sum-row dd { margin: 0; text-align: right; }
.sum-row.total dd { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.sum-empty { color: var(--muted); font-size: 15px; }

.mobile-bar { display: none; }
@media (max-width: 899px) {
  .summary { display: none; }
  .mobile-bar {
    display: flex; position: sticky; bottom: 0; z-index: 20; margin: 24px -16px -64px;
    background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    align-items: center; gap: 12px; box-shadow: 0 -6px 18px rgba(46, 29, 40, .06);
  }
  .mobile-bar .mb-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; }
  .mobile-bar .mb-text strong { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.form-grid { display: grid; grid-template-columns: 1fr; gap: 0 18px; }
@media (min-width: 600px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }

.policy-box { background: var(--porcelain); border: 1px solid var(--line); padding: 14px 16px; font-size: 14px; margin: 4px 0 16px; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* Done / manage */
.done { text-align: center; }
.done .mark { width: 76px; height: auto; margin: 0 auto 18px; }
.done h1 { font-style: italic; }
.done p.lead { color: var(--muted); margin: 10px auto 24px; max-width: 460px; }
.detail-card { text-align: left; border: 1px solid var(--line); background: var(--white); padding: 6px 22px; margin: 0 auto 24px; max-width: 520px; }
.detail-card .sum-row:last-child { border-bottom: 0; }

.status-line { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 6px 0 20px; }

.site-footer { text-align: center; padding: 40px 16px 48px; border-top: 1px solid var(--line); margin-top: 24px; }
.site-footer .tag { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--plum); margin-bottom: 10px; }
.site-footer .contact { font-size: 14px; display: flex; gap: 6px 18px; justify-content: center; flex-wrap: wrap; }
.site-footer .contact a { color: var(--aubergine); }
.site-footer .fine { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(46, 29, 40, .45); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 900; }
.modal { background: var(--white); max-width: 460px; width: 100%; padding: 30px 26px; box-shadow: var(--shadow); }
.modal h2 { font-size: 28px; margin-bottom: 10px; }
.modal p { margin: 0 0 20px; color: var(--muted); }

/* Payment */
.pay-frame-wrap { background: var(--white); border: 1px solid var(--line); min-height: 560px; position: relative; }
.pay-frame-wrap iframe { width: 100%; min-height: 640px; border: 0; display: block; }
.pay-loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 12px; color: var(--muted); }
.secure-note { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); margin-top: 14px; }

.waitlist-cats { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 4px 0 18px; }
