/* The Book a call piece (section.booking, /book/book.js): one question at a time, then a day, then a time. Scoped to
   .booking and self-sufficient: it uses the site's palette variables when they are there and VANDR's own colours when
   they are not, so a restyled page keeps it whole. */
.booking {
	--b-page: var(--charcoal, #171116);
	--b-pane: var(--pane, #242024);
	--b-pane-2: var(--pane-2, #322d31);
	--b-line: var(--line, #3d373c);
	--b-text: var(--text, #d8d2d8);
	--b-quiet: var(--quiet, #a8a1a8);
	--b-purple: var(--purple, #7b3fd1);
	--b-purple-hover: var(--purple-hover, #8d55dd);
	--b-tint: var(--tint, #b385f2);
	--b-gold: var(--gold, #e0a458);
	--b-head: #f1edf1;
	border-top: 0;
}
.booking h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); margin: 0; }
.booking .sub { color: var(--b-quiet); margin: 16px 0 0; max-width: 46ch; font-size: clamp(1rem, 1.2vw, 1.2rem); }
.booking .form-note { margin: 24px 0 0; padding: 12px 16px; border-radius: 10px; background: var(--b-pane-2); color: var(--b-text); max-width: 720px; }

/* Wide screens: the title on the left, the questions on the right, using the width (C-302). */
.booking-wrap { display: grid; gap: 32px; }
@media (min-width: 1100px) {
	.booking-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(48px, 6vw, 120px); align-items: start; }
	.booking-intro { grid-column: 1; grid-row: 1; }
	.booking-more { grid-column: 1; grid-row: 2; }
	.booking-wrap > .form-note, .booking-wrap > noscript, .booking-card, .booking-done { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
	.booking-wrap > .form-note { margin-top: 0; }
}

.booking-more { max-width: 60ch; }
.booking-more h2 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); margin: 0 0 10px; color: var(--b-head); }
.booking-more h2 + p { margin-top: 0; }
.booking-more p { color: var(--b-quiet); margin: 12px 0 0; }
.booking-more p + h2 { margin-top: 28px; }

.booking-card {
	background: color-mix(in srgb, var(--b-pane) 94%, transparent); border: 1px solid var(--b-line); border-radius: 20px;
	padding: 22px 18px 20px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
@media (min-width: 720px) { .booking-card { padding: 32px 36px 30px; } }

.q-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.q-count { margin: 0; color: var(--b-quiet); font-size: 0.875rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.q-bar { display: flex; gap: 6px; flex: 0 1 260px; }
.q-bar span { flex: 1; height: 4px; border-radius: 4px; background: var(--b-line); transition: background 0.3s ease; }
.q-bar span.on { background: linear-gradient(90deg, var(--b-purple), var(--b-tint)); }

.q-form { display: grid; }
.q-step { min-height: 248px; animation: q-in 0.38s cubic-bezier(0.2, 0.7, 0.2, 1); }
.q-step.q-back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-step { animation: none; } }
.q-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.15; color: var(--b-head); outline: none; }
.booking .q-title label { display: inline; margin: 0; font: inherit; color: inherit; cursor: default; }
.q-hint { margin: 10px 0 0; color: var(--b-quiet); font-size: 0.9375rem; }

/* Answers to tap: two wide on every screen (C-296). */
.q-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.booking .q-opt {
	position: relative; display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 12px 14px; margin: 0;
	border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-page); color: var(--b-text);
	font-weight: 600; font-size: 0.9375rem; line-height: 1.25; cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.q-opt:last-child:nth-child(odd) { grid-column: 1 / -1; }
.q-opt:hover { border-color: var(--b-tint); }
.q-opt:active { transform: scale(0.98); }
.q-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.q-opt svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--b-tint); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.q-opt:has(input:checked) { border-color: var(--b-purple); background: color-mix(in srgb, var(--b-purple) 22%, var(--b-page)); color: #fff; }
.q-opt:has(input:checked) svg { stroke: #fff; }
.q-opt:has(input:focus-visible) { outline: 2px solid var(--b-tint); outline-offset: 2px; }
@media (max-width: 479px) { .booking .q-opt { flex-direction: column; align-items: flex-start; gap: 8px; font-size: 0.875rem; } .booking .q-opt:last-child:nth-child(odd) { flex-direction: row; align-items: center; } }

.q-input {
	display: block; width: 100%; margin-top: 26px; padding: 10px 2px 12px;
	background: transparent; color: var(--b-head); border: 0; border-bottom: 2px solid var(--b-line); border-radius: 0;
	font: 500 clamp(1.25rem, 2.2vw, 1.6rem)/1.3 var(--body, system-ui, sans-serif);
}
.q-input::placeholder { color: #6f686e; }
.q-input:focus { border-bottom-color: var(--b-tint); outline: none; }

.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { margin-top: 18px; }
.cal-head span { text-align: center; font-size: 0.8125rem; color: var(--b-quiet); padding-bottom: 4px; }
.cal-day {
	aspect-ratio: 1 / 1; min-height: 40px; max-height: 52px; width: 100%; display: grid; place-items: center;
	border: 1px solid var(--b-line); border-radius: 10px; background: var(--b-page); color: var(--b-text);
	font: 600 1rem/1 var(--body, system-ui, sans-serif); cursor: pointer;
}
.cal-day:hover:not(:disabled) { border-color: var(--b-tint); }
.cal-day:disabled { background: transparent; border-color: transparent; color: #6f686e; cursor: default; text-decoration: line-through; }
.cal-day[aria-pressed="true"] { background: var(--b-purple); border-color: var(--b-purple); color: #fff; }
.cal-blank { min-height: 40px; }

.time-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 20px; }
.time-slot {
	min-height: 46px; border: 1px solid var(--b-line); border-radius: 999px; background: var(--b-page); color: var(--b-text);
	font: 600 0.9375rem/1 var(--body, system-ui, sans-serif); cursor: pointer;
}
.time-slot:hover { border-color: var(--b-tint); }
.time-slot[aria-pressed="true"] { background: var(--b-purple); border-color: var(--b-purple); color: #fff; }

.booking-chosen { margin: 14px 0 0; font: 700 1.25rem/1.4 var(--head, system-ui, sans-serif); color: var(--b-gold); }
.q-summary { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 18px 0 0; }
.q-summary dt { color: var(--b-quiet); font-size: 0.9375rem; }
.q-summary dd { margin: 0; color: var(--b-text); overflow-wrap: anywhere; }

.q-nav { display: flex; gap: 12px; margin-top: 26px; }
.q-nav .btn { border: 0; cursor: pointer; }
.q-nav #booking-next { margin-left: auto; min-width: 132px; }
.q-nav .btn-ghost { border: 1px solid var(--b-line); background: transparent; }
.q-nav .btn:disabled { opacity: 0.7; cursor: default; }
.booking .form-error { margin: 18px 0 0; min-height: 1.5em; color: var(--b-gold); font-weight: 600; }
.booking .form-error:empty { min-height: 0; margin: 0; }
.booking .trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.booking-done { background: var(--b-pane); border: 1px solid var(--b-line); border-radius: 20px; padding: 28px; }
.booking-done h2 { font-size: 1.75rem; }
.booking-done p { margin: 10px 0 0; color: var(--b-quiet); }
.booking-done #booking-done-when { color: var(--b-gold); font-weight: 700; font-size: 1.125rem; }
.booking [hidden] { display: none !important; }
