/**
 * /book/ page — matches the home page (assets/css/home.css): navy backdrop,
 * one white card with a left panel (booking progress + visit info) and the
 * LatePoint form on the right. Markup: page.php ($is_book), steps: book.js.
 * style.css carries many !important rules (the strongest is
 * "html body.has-booking-hero:not(.has-customer-dashboard) .booking-area …"),
 * so form rules start with that prefix plus .lqb and use !important.
 */

.lqb {
	--lqb-navy: #0b1220;
	--lqb-ink: #0f172a;
	--lqb-copy: #475569;
	--lqb-muted: #64748b;
	--lqb-line: #e2e8f0;
	--lqb-soft: #f8fafc;
	--lqb-red: #AD0303;
	--lqb-red-ink: #8A0202;
	--lqb-green: #16a34a;

	background: var(--lqb-navy) !important;
	padding: calc(var(--nav-h, 76px) + 40px) 16px 64px !important;
	font-family: var(--font-body, 'Mona Sans', system-ui, sans-serif);
}
.lqb .lqb-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Card */
.lqb-shell {
	position: relative;
	z-index: 1;
	max-width: 1160px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	grid-template-areas:
		"progress form"
		"info     form";
	grid-template-rows: auto 1fr;
	color: var(--lqb-ink);
}
.lqb-progress,
.lqb-info {
	background: var(--lqb-soft);
	border-right: 1px solid var(--lqb-line);
	padding: 28px;
}
.lqb-progress {
	grid-area: progress;
}
.lqb-info {
	grid-area: info;
	border-top: 1px solid var(--lqb-line);
	display: flex;
	flex-direction: column;
	gap: 22px;
}
.lqb .lqb-kicker {
	margin: 0 0 14px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--lqb-muted);
	font-family: inherit;
}
.lqb-info .lqb-kicker {
	margin-bottom: 8px;
}

/* Progress */
.lqb .lqb-steps {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 18px;
}
.lqb .lqb-steps li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 0;
	padding: 0;
	position: relative;
}
.lqb .lqb-steps li::before {
	content: none;
}
.lqb .lqb-steps li + li::after {
	content: "";
	position: absolute;
	left: 15px;
	top: -16px;
	width: 2px;
	height: 14px;
	background: var(--lqb-line);
}
.lqb-num {
	width: 32px;
	height: 32px;
	flex-shrink: 0;
	border-radius: 999px;
	border: 2px solid #cbd5e1;
	background: #ffffff;
	color: var(--lqb-muted);
	font-size: 14px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.lqb .lqb-steps strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--lqb-muted);
}
.lqb .lqb-steps li span:not(.lqb-num) {
	display: block;
	margin-top: 2px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--lqb-muted);
}
.lqb .lqb-steps li.is-current .lqb-num {
	background: var(--lqb-red);
	border-color: var(--lqb-red);
	color: #ffffff;
}
.lqb .lqb-steps li.is-current strong {
	color: var(--lqb-ink);
}
.lqb .lqb-steps li.is-done .lqb-num {
	background: #ecfdf5;
	border-color: var(--lqb-green);
	color: var(--lqb-green);
	font-size: 0;
}
.lqb .lqb-steps li.is-done .lqb-num::after {
	content: "\2713";
	font-size: 15px;
}
.lqb .lqb-steps li.is-done strong {
	color: var(--lqb-ink);
}
.lqb .lqb-steps li.is-done + li::after,
.lqb .lqb-steps li.is-current::after {
	background: var(--lqb-green);
}

/* Info */
.lqb-hours {
	margin: 0;
}
.lqb-hours div {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 3px 0;
	font-size: 14px;
}
.lqb-hours dt {
	color: var(--lqb-muted);
	font-weight: 500;
}
.lqb-hours div > * {
	text-align: left;
}
.lqb-hours dd {
	margin: 0;
	font-weight: 600;
	color: var(--lqb-ink);
	text-align: right;
}
html body .lqb .lqb-info p {
	text-align: left;
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--lqb-copy);
}
.lqb a.lqb-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 600;
	color: var(--lqb-red-ink);
	text-decoration: none;
}
.lqb a.lqb-link:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}
.lqb a.lqb-wa {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid var(--lqb-line);
	border-radius: 10px;
	background: #ffffff;
	font-size: 14px;
	font-weight: 600;
	color: var(--lqb-ink);
	text-decoration: none;
}
.lqb a.lqb-wa:hover {
	border-color: #cbd5e1;
	background: var(--lqb-soft);
}
.lqb-wa i {
	color: var(--lqb-green);
	font-size: 16px;
}
.lqb a:focus-visible {
	outline: 2px solid #2563eb;
	outline-offset: 2px;
}

/* ---------- LatePoint form inside the card ---------- */
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area {
	grid-area: form;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	min-width: 0;
}
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .latepoint-w {
	padding-bottom: 0 !important;
	margin: 0 !important;
}
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .latepoint-w .latepoint-booking-form-element {
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-height: 100%;
	max-width: none !important;
	margin: 0 !important;
}
/* Our left panel replaces LatePoint's step description panel. */
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .latepoint-side-panel {
	display: none !important;
}
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .latepoint-summary-w {
	border-left: 1px solid var(--lqb-line) !important;
}

/* Service rows: price as a red pill like the home page. */
html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .os-item-price {
	display: inline-flex !important;
	align-items: center;
	min-height: 32px;
	padding: 0 12px !important;
	border-radius: 999px !important;
	background: #fef2f2 !important;
	border: 1px solid #fecaca !important;
	color: var(--lqb-red-ink) !important;
	font-weight: 800 !important;
	font-variant-numeric: tabular-nums;
	white-space: nowrap;
}

/* Category + bundle icons: isometric illustrations need room to read. */
html body .lqb .lqb-form .os-item-category-info-w .os-item-img-w,
html body .lqb .lqb-form .os-bundles .os-item-img-w,
html body .lqb .lqb-form .os-item-img-w:has(> .latepoint-icon-shopping-bag) {
	width: 88px !important;
	height: 88px !important;
	min-width: 88px !important;
	flex: 0 0 88px !important;
	background-size: contain !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
}
@media (max-width: 768px) {
	html body .lqb .lqb-form .os-item-category-info-w .os-item-img-w,
	html body .lqb .lqb-form .os-bundles .os-item-img-w,
	html body .lqb .lqb-form .os-item-img-w:has(> .latepoint-icon-shopping-bag) {
		width: 64px !important;
		height: 64px !important;
		min-width: 64px !important;
		flex: 0 0 64px !important;
	}
}

/* ---------- Tablet: summary drops below so the form keeps room ---------- */
@media (max-width: 1100px) and (min-width: 769px) {
	.lqb-shell {
		grid-template-columns: 240px minmax(0, 1fr);
	}
	.lqb-progress,
	.lqb-info {
		padding: 22px;
	}
}

/* ---------- Mobile: white full-bleed like the home page ---------- */
@media (max-width: 768px) {
	.lqb {
		background: #ffffff !important;
		padding: calc(var(--nav-h, 64px) + 4px) 0 0 !important;
	}
	.lqb-shell {
		display: flex;
		flex-direction: column;
		border-radius: 0;
		box-shadow: none;
		overflow: visible;
	}
	.lqb-progress {
		order: 1;
		border-right: 0;
		border-bottom: 1px solid var(--lqb-line);
		padding: 14px 12px;
		background: #ffffff;
	}
	.lqb-progress .lqb-kicker {
		display: none;
	}
	.lqb .lqb-steps {
		flex-direction: row;
		gap: 4px;
	}
	.lqb .lqb-steps li {
		flex: 1 1 0;
		flex-direction: column;
		align-items: center;
		text-align: center;
		gap: 6px;
	}
	.lqb .lqb-steps li + li::after {
		left: calc(-50% + 16px);
		top: 14px;
		width: calc(100% - 32px);
		height: 2px;
	}
	.lqb-num {
		width: 28px;
		height: 28px;
		font-size: 13px;
		position: relative;
		z-index: 1;
	}
	.lqb .lqb-steps strong {
		font-size: 11.5px;
		line-height: 1.25;
	}
	.lqb .lqb-steps li span:not(.lqb-num) {
		display: none;
	}
	html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area {
		order: 2;
	}
	html body.has-booking-hero:not(.has-customer-dashboard) .lqb .lqb-form.booking-area .latepoint-booking-form-element {
		box-shadow: none !important;
	}
	.lqb-info {
		order: 3;
		border-right: 0;
		padding: 20px 16px 28px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lqb * {
		transition: none !important;
	}
}

/* "Bundle & Save" uses LatePoint's shopping-bag icon font; show the theme's
   bundle illustration instead (browsers without :has() keep the icon). */
html body .lqb .lqb-form .os-item-img-w:has(> .latepoint-icon-shopping-bag) {
	background: url(../img/bundle-save.png?v=ad0303) center / contain no-repeat !important;
}
html body .lqb .lqb-form .os-item-img-w > .latepoint-icon-shopping-bag {
	visibility: hidden;
}

