/* Tiny Custom House — /book scheduler */
.bk-hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4.5rem, 9vw, 6.5rem); }
.bk-hero .eyebrow { color: var(--gold); }
.bk-hero h1 { font-size: var(--text-2xl); color: #fff; max-width: 18ch; }
.bk-hero p:last-child { margin-top: var(--space-4); max-width: 54ch; color: rgba(255,255,255,.78); font-size: var(--text-lg); line-height: 1.55; }

.bk-section { padding-bottom: clamp(3rem, 7vw, 6rem); }
.bk-layout { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; margin-top: clamp(-3.5rem, -6vw, -2.5rem); }
@media (max-width: 1000px) { .bk-layout { grid-template-columns: 1fr; } }

.bk-main { min-width: 0; background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(1.25rem, 3.5vw, 2.5rem); }

/* stepper */
.bk-steps { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0 0 clamp(1.5rem, 3vw, 2rem); counter-reset: none; }
.bk-steps li { display: flex; align-items: center; gap: .5rem; font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); }
.bk-steps li + li::before { content: ''; width: clamp(1rem, 4vw, 2.5rem); height: 1.5px; background: var(--line); margin-right: .25rem; }
.bk-steps li span { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: .8125rem; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink-muted); }
.bk-steps li.on { color: var(--ink); }
.bk-steps li.on span { background: var(--accent); border-color: var(--accent); color: #fff; }
.bk-steps li.done span { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }

.bk-q + .bk-q { margin-top: clamp(1.75rem, 3.5vw, 2.25rem); }
.bk-q-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: var(--space-4); }
.bk-q h2 { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
.bk-dayname { display: block; margin-top: .25rem; font-family: var(--font-body); font-size: var(--text-sm); font-weight: 600; color: var(--ink-muted); }
.bk-tz { display: inline-flex; align-items: center; gap: .4rem; font-size: var(--text-sm); font-weight: 600; color: var(--teal); background: #E8F3F1; padding: .375rem .75rem; border-radius: 999px; }
.bk-tz svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* day chips */
.bk-days-wrap { position: relative; display: flex; align-items: center; gap: .5rem; }
.bk-days { flex: 1; min-width: 0; display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x proximity; padding: .25rem .125rem .625rem; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.bk-day { flex: 0 0 4.25rem; scroll-snap-align: start; display: grid; justify-items: center; gap: .125rem; padding: .75rem .25rem .625rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--white); color: var(--ink); cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), transform .15s var(--ease); }
.bk-day:hover:not(:disabled) { border-color: var(--ink-muted); transform: translateY(-1px); }
.bk-day-dow { font-size: .6875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.bk-day-num { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.1; }
.bk-day-mon { font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.bk-day.on { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(164,73,34,.25); }
.bk-day.on .bk-day-dow, .bk-day.on .bk-day-mon { color: rgba(255,255,255,.85); }
.bk-day:disabled { opacity: .45; cursor: not-allowed; background: var(--surface); }
.bk-scroll { flex: 0 0 2.25rem; height: 2.25rem; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); font-size: 1.375rem; line-height: 1; color: var(--ink); cursor: pointer; display: grid; place-items: center; padding-bottom: 2px; }
.bk-scroll:disabled { opacity: .3; cursor: default; }
@media (max-width: 760px) { .bk-scroll { display: none; } .bk-days { margin-inline: calc(-1 * clamp(1.25rem, 3.5vw, 2.5rem)); padding-inline: clamp(1.25rem, 3.5vw, 2.5rem); scroll-padding-inline: clamp(1.25rem, 3.5vw, 2.5rem); } }

/* time grid */
.bk-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(6.5rem, 1fr)); gap: .5rem; }
@media (max-width: 420px) { .bk-times { grid-template-columns: repeat(3, 1fr); } }
.bk-time { padding: .8125rem .25rem; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); font-size: var(--text-sm); font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color .15s var(--ease), background .15s var(--ease); }
.bk-time:hover { border-color: var(--accent); color: var(--accent-deep); }
.bk-time.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.bk-msg { margin: 0 0 var(--space-4); padding: .875rem 1rem; border-radius: 12px; background: #FDF4EC; border: 1px solid #F0D4BE; color: var(--accent-deep); font-size: var(--text-sm); font-weight: 600; }
.bk-loading { display: flex; align-items: center; gap: .75rem; color: var(--ink-muted); font-size: var(--text-sm); padding: 1rem 0; }
.bk-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: bkspin .8s linear infinite; }
@keyframes bkspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bk-spin { animation-duration: 2.4s; } }
.bk-alert { display: grid; gap: .5rem; justify-items: start; margin-top: var(--space-4); padding: 1rem 1.125rem; border-radius: 12px; background: #FDF4F1; border: 1px solid #E8C4B8; color: #7E2F1B; font-size: var(--text-sm); line-height: 1.5; }
.bk-alert a, .bk-msg a { color: inherit; text-decoration: underline; }
.bk-alert-inline { display: block; }

/* details form */
.bk-chosen { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.125rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-soft); margin-bottom: var(--space-6); }
.bk-chosen-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.bk-chosen-time { font-family: var(--font-display); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); line-height: 1.2; margin-top: .25rem; }
.bk-chosen-sub { font-size: var(--text-sm); color: var(--ink-muted); margin-top: .125rem; }
.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 620px) { .bk-fields { grid-template-columns: 1fr; } }
.bk-wide { grid-column: 1 / -1; }
.bk-fields input, .bk-fields textarea { font-size: 16px; }
.bk-fields .invalid { border-color: #B3452B !important; background: #FDF4F1; }
.bk-err { min-height: 0; font-size: var(--text-xs); font-weight: 600; color: #9A3A22; }
.bk-err:empty { display: none; }
.bk-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bk-submit { margin-top: var(--space-6); display: grid; gap: var(--space-3); justify-items: start; }
.bk-submit p { font-size: var(--text-sm); color: var(--ink-muted); max-width: 52ch; line-height: 1.5; }
.bk-submit p a { color: var(--accent-deep); text-decoration: underline; }
@media (max-width: 620px) { .bk-submit .btn { width: 100%; } }

/* confirmation */
.bk-done { text-align: center; padding: clamp(1rem, 3vw, 2rem) 0; outline: none; }
.bk-done-mark { width: 64px; height: 64px; margin: 0 auto var(--space-5); border-radius: 50%; background: var(--sage-deep); display: grid; place-items: center; }
.bk-done-mark svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-done h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem); margin-top: .25rem; }
.bk-done-sub { margin-top: .375rem; color: var(--ink-muted); font-weight: 600; }
.bk-done-copy { margin: var(--space-5) auto 0; max-width: 46ch; color: var(--ink-soft); line-height: 1.6; }
.bk-done-copy a { color: var(--accent-deep); text-decoration: underline; }
.bk-done-actions { justify-content: center; margin-top: var(--space-6); }
@media (max-width: 620px) { .bk-done-actions .btn { width: 100%; } }
.bk-done-ref { margin-top: var(--space-5); font-size: var(--text-xs); color: var(--ink-muted); }
.bk-done-ref span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

/* rail */
.bk-rail { display: grid; gap: var(--space-4); }
@media (min-width: 1001px) { .bk-rail { position: sticky; top: 96px; } }
.bk-rail-card { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow); }
.bk-rail-label { font-size: var(--text-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.bk-rail-lines { margin-top: var(--space-3); display: grid; }
.bk-rail-lines div { display: flex; justify-content: space-between; gap: 1rem; padding: .625rem 0; border-bottom: 1px solid rgba(255,255,255,.12); font-size: var(--text-sm); }
.bk-rail-lines dt { color: rgba(255,255,255,.65); }
.bk-rail-lines dd { font-weight: 600; text-align: right; }
.bk-rail-list { margin-top: var(--space-3); display: grid; gap: .5rem; list-style: none; padding: 0; }
.bk-rail-list li { position: relative; padding-left: 1.125rem; font-size: var(--text-sm); color: rgba(255,255,255,.78); line-height: 1.45; }
.bk-rail-list li::before { content: ''; position: absolute; left: 0; top: .5rem; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.bk-call { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-5); text-align: center; display: grid; gap: .5rem; }
.bk-call > p:first-child { font-weight: 700; font-size: var(--text-sm); }
.bk-call-hours { font-size: var(--text-xs); color: var(--ink-muted); }
@media (max-width: 1000px) { .bk-rail-card .bk-rail-label:nth-of-type(2), .bk-rail-list { display: none; } }
@media (max-width: 620px) {
  .bk-chosen { align-items: flex-start; padding: .875rem 1rem; }
  .bk-chosen .btn { padding: .5rem .75rem; margin: -.25rem -.375rem 0 0; }
}
