/* ==========================================================================
   Booking flow — "At the counter"
   ========================================================================== */

.bk-hero { padding-top: clamp(1.5rem, 4vw, 3.5rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.bk-hero .h1 { margin-bottom: .3em; }
.bk-section { padding-bottom: var(--section); }
.bk-noscript { background: var(--shell); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); max-width: 640px; }

.bk { display: grid; gap: 1.5rem; align-items: start; }
html:not(.js) .bk { display: none; }
@media (min-width: 1000px) { .bk { grid-template-columns: minmax(0, 1fr) 340px; gap: 2rem; } }
.bk__main {
	background: var(--shell); border-radius: var(--radius); box-shadow: var(--shadow-soft);
	padding: clamp(1.1rem, .6rem + 2.4vw, 2.5rem); min-width: 0;
}

/* ---------- Progress (tide line + paw) ---------- */
.bk-progress { position: relative; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); --progress: 0; }
.bk-progress ol { display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; position: relative; z-index: 1; }
.bk-progress li { display: flex; flex-direction: column; align-items: center; gap: .4rem; text-align: center; color: var(--stone); font-size: .78rem; font-weight: 600; }
.bk-progress__num {
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--linen);
	box-shadow: inset 0 0 0 1.5px var(--line-strong); font-family: var(--f-display); font-size: 1rem; color: var(--navy);
	transition: background var(--t) var(--ease), color var(--t) var(--ease), box-shadow var(--t) var(--ease), transform var(--t) var(--ease);
}
.bk-progress li.is-current .bk-progress__num { background: var(--navy); color: var(--linen); box-shadow: 0 0 0 5px rgba(27, 42, 65, .12); transform: scale(1.08); }
.bk-progress li.is-done .bk-progress__num { background: var(--seaglass); box-shadow: none; }
.bk-progress li.is-current { color: var(--navy); }
.bk-progress__label { line-height: 1.2; }
@media (max-width: 420px) { .bk-progress li:not(.is-current) .bk-progress__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.bk-progress__tide { position: absolute; left: 10%; right: 10%; top: 16px; height: 2px; background: var(--line); border-radius: 2px; }
.bk-progress__tide span { position: absolute; inset: 0; transform-origin: left; transform: scaleX(var(--progress)); background: var(--teal); transition: transform var(--t-slow) var(--ease); }
.bk-progress__paw { position: absolute; top: -26px; left: calc(var(--progress) * 100%); width: 18px; height: 18px; margin-left: -9px; color: var(--teal); transition: left var(--t-slow) var(--ease); }

/* ---------- Steps ---------- */
.bk-step[hidden] { display: none; }
.bk-step:not([hidden]) { animation: stepIn var(--t) var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.bk-step__title { display: block; margin-bottom: 1.4rem; padding: 0; outline: 0; }
.bk-step__title:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 4px; }
.bk-group { margin-bottom: 1.75rem; }
.bk-group > legend { margin-bottom: .8rem; }
.bk-optional { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--stone); }
.bk-hint { display: block; font-size: .88rem; color: var(--stone); margin-top: .6rem; }
.bk-error { color: #9B3B2E; font-weight: 600; font-size: .95rem; margin: 1rem 0 0; min-height: 0; }
.bk-error:empty { display: none; }
.bk-subhead { margin: 1.75rem 0 .9rem; }

/* ---------- Choice cards ---------- */
.choices { display: grid; gap: .75rem; }
.choices--2 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: 1fr 1fr; } }
.choices--sizes { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .choices--sizes { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__body {
	display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.15rem; border-radius: 20px;
	background: var(--linen); box-shadow: inset 0 0 0 1.5px var(--line);
	transition: box-shadow var(--t-fast) var(--ease), background var(--t-fast) var(--ease), transform var(--t) var(--ease);
}
.choice:hover .choice__body { box-shadow: inset 0 0 0 1.5px var(--line-strong); transform: translateY(-2px); }
.choice input:checked + .choice__body { background: #fff; box-shadow: inset 0 0 0 2px var(--navy), var(--shadow-soft); }
.choice input:focus-visible + .choice__body { outline: 3px solid var(--teal-ink); outline-offset: 3px; }
.choice__icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; margin-bottom: .5rem; }
.choice--day .choice__icon { background: radial-gradient(circle at 35% 35%, #FBE7C8, var(--amber)); color: var(--navy); }
.choice--night .choice__icon { background: var(--navy); color: var(--linen); }
.choice__title { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.2; }
.choice__text { font-size: .9rem; color: var(--stone); }
.choice__price { margin-top: auto; padding-top: .5rem; font-size: .9rem; color: var(--stone); }
.choice__price strong { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; color: var(--navy); }
.choice--size .choice__body { align-items: flex-start; }
.choice--size .choice__title { font-size: 1.1rem; }
.choice--size .dog { margin-bottom: .3rem; width: auto; justify-content: start; }
.choice--size .choice__price:empty { display: none; }
.choice input:checked + .choice__body::after {
	content: ""; position: absolute; top: 12px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--navy)
	url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23F6F0E4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='m6 12.5 4 4L18 8'/%3E%3C/svg%3E") center / 16px no-repeat;
	animation: pop var(--t) var(--ease);
}
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Segmented control ---------- */
.segmented { display: inline-flex; flex-wrap: wrap; gap: .5rem; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.segmented span {
	display: inline-flex; align-items: center; min-height: 48px; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 600;
	background: var(--linen); box-shadow: inset 0 0 0 1.5px var(--line); transition: all var(--t-fast) var(--ease);
}
.segmented input:checked + span { background: var(--navy); color: var(--linen); box-shadow: none; }
.segmented input:focus-visible + span { outline: 3px solid var(--teal-ink); outline-offset: 3px; }

/* ---------- Checkbox ---------- */
.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; margin-top: 1rem; position: relative; line-height: 1.5; }
.check input { position: absolute; opacity: 0; width: 24px; height: 24px; margin: 0; cursor: pointer; }
.check__box { flex: none; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: #fff; display: grid; place-items: center; color: transparent; transition: all var(--t-fast) var(--ease); margin-top: 1px; }
.check__box .icon { width: 16px; height: 16px; }
.check input:checked + .check__box { background: var(--navy); color: var(--linen); box-shadow: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.check a { color: var(--teal-ink); }
.check--consent { padding: 1rem 1.1rem; border-radius: 16px; background: var(--linen); }

/* ---------- Calendar ---------- */
.bk-time { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .bk-time { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2rem; align-items: start; } }
.bk-time[hidden] { display: none; }
.cal { min-width: 0; transition: opacity var(--t) var(--ease); }
.cal.is-loading { opacity: .55; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.cal__title { font-family: var(--f-display); font-size: 1.35rem; font-weight: 400; margin: 0; text-transform: capitalize; }
.cal__nav { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--linen); color: var(--navy); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.cal__nav:hover:not([disabled]) { background: var(--navy); color: var(--linen); }
.cal__nav[disabled] { opacity: .35; cursor: default; }
.cal__grid { width: 100%; border-collapse: separate; border-spacing: 3px; table-layout: fixed; }
.cal__grid th { font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--stone); padding: .3rem 0; }
.cal__grid td { padding: 0; }
.cal__day {
	position: relative; width: 100%; aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 12px; background: transparent;
	font-weight: 600; font-size: .98rem; color: var(--navy); display: grid; place-items: center;
	transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.cal__day i { position: absolute; bottom: 6px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--teal); }
.cal__day.is-free { background: var(--linen); box-shadow: inset 0 0 0 1px var(--line); }
.cal__day:hover:not([disabled]) { background: var(--seaglass); transform: translateY(-1px); }
.cal__day[disabled] { color: rgba(27, 42, 65, .32); cursor: not-allowed; }
.cal__day.is-full[disabled] span { text-decoration: line-through; text-decoration-color: rgba(27, 42, 65, .25); }
.cal__day.is-pending { background: linear-gradient(90deg, var(--linen), #fff, var(--linen)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.cal__day.is-selected, .cal__day.is-start, .cal__day.is-end { background: var(--navy) !important; color: var(--linen) !important; box-shadow: 0 6px 16px -8px rgba(15, 26, 43, .6); }
.cal__day.is-selected i, .cal__day.is-start i { background: var(--amber); }
.cal__day.in-range { background: rgba(169, 198, 194, .55); border-radius: 6px; }
.cal__day.is-occupied:not(.is-start):not(.is-end) { background: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(27, 42, 65, .07) 5px 7px); }
.cal__day:focus-visible { outline: 3px solid var(--teal-ink); outline-offset: 1px; z-index: 1; }

/* ---------- Slots ---------- */
.slots { min-width: 0; }
.slots__hint { color: var(--stone); padding: 1.25rem; border-radius: 16px; background: var(--linen); text-align: center; }
.slots__title { font-family: var(--f-display); font-size: 1.15rem; margin-bottom: .9rem; text-transform: none; }
.slots__title::first-letter { text-transform: uppercase; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.slot span {
	display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 58px; border-radius: 14px;
	background: var(--linen); box-shadow: inset 0 0 0 1.5px var(--line); transition: all var(--t-fast) var(--ease);
}
.slot strong { font-family: var(--f-display); font-weight: 400; font-size: 1.25rem; line-height: 1.1; }
.slot small { font-size: .75rem; color: var(--stone); }
.slot:hover span { box-shadow: inset 0 0 0 1.5px var(--navy); }
.slot input:checked + span { background: var(--navy); color: var(--linen); box-shadow: none; }
.slot input:checked + span small { color: rgba(246, 240, 228, .75); }
.slot input:focus-visible + span { outline: 3px solid var(--teal-ink); outline-offset: 2px; }
.slots__dur { font-size: .88rem; color: var(--stone); margin-top: .9rem; }

/* ---------- Range info ---------- */
.range-info { background: var(--linen); border-radius: 20px; padding: 1.25rem; }
.range-info__dates { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; }
.range-info__dates > div { display: flex; flex-direction: column; gap: .25rem; flex: 1; min-width: 0; }
.range-info__dates strong { font-family: var(--f-display); font-weight: 400; font-size: 1.1rem; line-height: 1.25; }
.range-info__dates .icon { color: var(--teal); flex: none; }
.range-info__hint { color: var(--stone); margin-bottom: .5rem; }

/* ---------- Fields ---------- */
.fields { display: grid; gap: 1rem; }
@media (min-width: 640px) { .fields { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.req { color: var(--teal-ink); }
.field input, .field textarea {
	width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 14px; border: 0; background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 1rem; transition: box-shadow var(--t-fast) var(--ease);
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px var(--stone); }
.field input:focus, .field textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px rgba(91, 138, 143, .25); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { box-shadow: inset 0 0 0 2px #9B3B2E; }
.field__error { color: #9B3B2E; font-size: .86rem; font-weight: 600; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Review ---------- */
.review { display: grid; gap: 0; margin: 0 0 1.25rem; }
.review > div { display: grid; gap: .2rem; padding: .9rem 0; border-bottom: 1px dashed var(--line-strong); }
@media (min-width: 640px) { .review > div { grid-template-columns: 140px 1fr; gap: 1rem; } }
.review dt { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); padding-top: .2rem; }
.review dd { margin: 0; overflow-wrap: anywhere; }
.review__edit { margin-left: .5rem; font-size: .85rem; border-bottom-width: 1px; }

/* ---------- Nav ---------- */
.bk-nav { display: flex; justify-content: space-between; gap: .75rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.bk-nav [data-next], .bk-nav [data-submit] { margin-left: auto; }
@media (max-width: 479px) { .bk-nav .btn { flex: 1; padding-inline: 1rem; } }

/* ---------- Ticket ---------- */
.ticket {
	position: relative; border-radius: 22px; background: var(--navy); color: var(--linen); padding: 1.4rem 1.4rem 1.6rem; box-shadow: var(--shadow-lift);
}
@media (min-width: 1000px) { .ticket { position: sticky; top: 100px; } }
.admin-bar .ticket { top: 132px; }
.ticket__head { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.ticket__head img { border-radius: 50%; box-shadow: 0 0 0 3px rgba(246, 240, 228, .15); }
.ticket .label { color: var(--seaglass); }
.ticket__rows { margin: 0; display: grid; gap: .8rem; }
.ticket__rows > div { display: grid; gap: .1rem; }
.ticket dt { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(246, 240, 228, .6); }
.ticket dd { margin: 0; font-size: 1rem; line-height: 1.4; }
.ticket__tear { position: relative; height: 26px; margin: 1.1rem -1.4rem; }
.ticket__tear::before { content: ""; position: absolute; left: 1.4rem; right: 1.4rem; top: 50%; border-top: 2px dashed rgba(246, 240, 228, .25); }
.ticket__tear::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(circle at 0 50%, var(--linen) 12px, transparent 13px), radial-gradient(circle at 100% 50%, var(--linen) 12px, transparent 13px);
}
.ticket__total strong { display: block; font-family: var(--f-display); font-weight: 400; font-size: 2.2rem; line-height: 1.1; margin-top: .3rem; }
.ticket__note { font-size: .86rem; color: rgba(246, 240, 228, .72); margin-top: .5rem; }
.ticket__note:empty { display: none; }

/* ---------- Done ---------- */
.bk-done { text-align: center; padding: clamp(1.5rem, 4vw, 3rem) 0; outline: 0; }
.bk-done:not([hidden]) { animation: rise 1s var(--ease) both; }
.bk-done__seal { width: 140px; height: 140px; margin: 0 auto 1.5rem; border-radius: 50%; padding: 8px; background: var(--linen); box-shadow: 0 0 0 1px var(--line), 0 0 0 14px rgba(169, 198, 194, .25), var(--shadow-lift); animation: peekSeal 1.2s var(--ease) both; }
.bk-done__seal img { width: 100%; height: 100%; border-radius: 50%; }
@keyframes peekSeal { from { transform: translateY(24px) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.bk-done .lead { margin-inline: auto; }
.bk-done__ref { display: inline-flex; gap: .6rem; align-items: center; padding: .55rem 1.1rem; border-radius: 999px; background: var(--linen); margin: .5rem 0 1.5rem; }
.bk-done__ref strong { white-space: nowrap; font-family: var(--f-display); font-size: 1.2rem; font-weight: 400; letter-spacing: .04em; }
.bk-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1rem; }
.bk.is-done .ticket { opacity: .9; }

@media (prefers-reduced-motion: reduce) {
	.bk-step:not([hidden]), .bk-done:not([hidden]), .bk-done__seal { animation: none; }
}

/* ---------- Two dogs & sitting times ---------- */
.bk-dog + .bk-dog { margin-top: .5rem; padding-top: 1.5rem; border-top: 1px dashed var(--line-strong); }
.bk-dog__title { font-family: var(--f-display); font-size: 1.25rem; margin: 0 0 .9rem; }
.range-times { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .25rem 0 .75rem; }
.range-times select {
	width: 100%; min-height: 52px; padding: .6rem .9rem; border-radius: 14px; border: 0; background: #fff;
	box-shadow: inset 0 0 0 1.5px var(--line-strong); font-size: 1.05rem; font-weight: 600;
}
.range-times select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--navy), 0 0 0 4px rgba(91, 138, 143, .25); }
.range-info__note { font-size: .9rem; color: var(--teal-ink); font-weight: 600; margin: 0 0 .5rem; }
.bk-notes { margin-top: 1rem; }
