/**
 * Repair Hub — booking wizard styles.
 * Loaded only on pages using the Repair Booking template.
 */

.rh-booking {
	background: var(--rh-ceramic);
	padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 90px);
	background-image:
		linear-gradient(rgba(18, 34, 44, .035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(18, 34, 44, .035) 1px, transparent 1px);
	background-size: 40px 40px;
}

.rh-booking__head {
	max-width: 46ch;
	margin-bottom: 30px;
}

.rh-booking__title {
	margin-bottom: .3em;
}

.rh-booking__lede {
	color: var(--rh-muted);
	margin: 0;
}

/* ---------------------------------------------------------------
   Progress rail — the flow really is a sequence, so it is numbered
   --------------------------------------------------------------- */

.rh-progress {
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 4px;
}

.rh-progress__item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 8px 14px 8px 8px;
	border-radius: 999px;
	color: var(--rh-muted);
	font-size: .88rem;
	background: transparent;
	cursor: default;
}

.rh-progress__num {
	display: grid;
	place-items: center;
	width: 25px;
	height: 25px;
	border-radius: 50%;
	border: 1.5px solid var(--rh-line);
	background: #fff;
	font-family: var(--rh-font-display);
	font-size: .8rem;
	font-weight: 600;
	color: var(--rh-muted);
}

.rh-progress__item.is-done {
	cursor: pointer;
	color: var(--rh-mat-deep);
}

.rh-progress__item.is-done .rh-progress__num {
	background: var(--rh-mat-tint);
	border-color: var(--rh-mat);
	color: var(--rh-mat-deep);
}

.rh-progress__item.is-current {
	background: #fff;
	color: var(--rh-ink);
	box-shadow: var(--rh-shadow);
}

.rh-progress__item.is-current .rh-progress__num {
	background: var(--rh-ink);
	border-color: var(--rh-ink);
	color: #fff;
}

/* ---------------------------------------------------------------
   Wizard shell and steps
   --------------------------------------------------------------- */

.rh-wizard {
	background: #fff;
	border: 1px solid var(--rh-line);
	border-radius: var(--rh-radius-lg);
	padding: clamp(22px, 3vw, 38px);
	box-shadow: var(--rh-shadow);
	max-width: 900px;
}

.rh-step__title {
	font-size: clamp(1.35rem, 1.1rem + .8vw, 1.75rem);
	margin-bottom: .3em;
}

.rh-step__hint {
	color: var(--rh-muted);
	font-size: .96rem;
	margin-bottom: 24px;
}

.rh-step.is-entering-forward {
	animation: rh-slide-in-right .3s ease both;
}

.rh-step.is-entering-back {
	animation: rh-slide-in-left .3s ease both;
}

@keyframes rh-slide-in-right {
	from { opacity: 0; transform: translateX(22px); }
	to   { opacity: 1; transform: translateX(0); }
}

@keyframes rh-slide-in-left {
	from { opacity: 0; transform: translateX(-22px); }
	to   { opacity: 1; transform: translateX(0); }
}

.rh-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

/* ---------------------------------------------------------------
   Choice groups
   --------------------------------------------------------------- */

.rh-choice {
	display: grid;
	gap: 14px;
}

.rh-choice--stores {
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.rh-choice--cats {
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.rh-choice--issues {
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.rh-storepick,
.rh-catpick,
.rh-issue,
.rh-brandpick,
.rh-model {
	font: inherit;
	text-align: left;
	background: #fff;
	border: 1.5px solid var(--rh-line);
	border-radius: var(--rh-radius);
	cursor: pointer;
	color: var(--rh-ink);
	transition: border-color .15s ease, background-color .15s ease, transform .15s ease;
}

.rh-storepick:hover,
.rh-catpick:hover,
.rh-issue:hover,
.rh-brandpick:hover,
.rh-model:hover {
	border-color: var(--rh-mat);
}

.rh-storepick.is-selected,
.rh-catpick.is-selected,
.rh-issue.is-selected,
.rh-brandpick.is-selected,
.rh-model.is-selected {
	border-color: var(--rh-ink);
	background: var(--rh-mat-tint);
	box-shadow: inset 0 0 0 1px var(--rh-ink);
}

/* Store cards */

.rh-storepick {
	display: grid;
	gap: 10px;
	padding: 22px 20px;
}

.rh-storepick__name {
	font-family: var(--rh-font-display);
	font-weight: 600;
	font-size: 1.15rem;
}

.rh-storepick__row {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: .92rem;
	color: var(--rh-muted);
	line-height: 1.5;
}

.rh-storepick__ic svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: var(--rh-mat);
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
	margin-top: 2px;
}

.rh-storepick__row--phone {
	color: var(--rh-ink);
	font-weight: 500;
}

.rh-storepick__row--phone .rh-storepick__ic svg {
	fill: var(--rh-mat);
	stroke: none;
}

/* Category cards */

.rh-catpick {
	display: grid;
	gap: 6px;
	padding: 22px 18px;
	text-align: center;
	justify-items: center;
}

.rh-catpick__icon {
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: var(--rh-ceramic);
	margin-bottom: 6px;
}

.rh-catpick.is-selected .rh-catpick__icon {
	background: #fff;
}

.rh-catpick__icon svg {
	width: 26px;
	height: 26px;
	fill: none;
	stroke: var(--rh-mat-deep);
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rh-catpick__name {
	font-family: var(--rh-font-display);
	font-weight: 600;
}

.rh-catpick__blurb {
	font-size: .85rem;
	color: var(--rh-muted);
	line-height: 1.45;
}

/* Issue tags */

.rh-issue {
	display: grid;
	gap: 3px;
	padding: 16px 18px;
}

.rh-issue__name {
	font-family: var(--rh-font-display);
	font-weight: 600;
}

.rh-issue__note {
	font-size: .85rem;
	color: var(--rh-muted);
}

/* ---------------------------------------------------------------
   Brands and models
   --------------------------------------------------------------- */

.rh-brands {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 22px;
}

.rh-brandpick {
	display: inline-grid;
	gap: 2px;
	padding: 12px 18px;
	border-radius: 999px;
}

.rh-brandpick__name {
	font-family: var(--rh-font-display);
	font-weight: 600;
	font-size: .98rem;
}

.rh-brandpick__count {
	font-size: .76rem;
	color: var(--rh-muted);
}

.rh-search {
	position: relative;
	display: block;
	margin-bottom: 14px;
}

.rh-search input {
	width: 100%;
	font: inherit;
	padding: 14px 16px 14px 46px;
	border: 1.5px solid var(--rh-line);
	border-radius: var(--rh-radius);
	background: #fff;
	color: var(--rh-ink);
}

.rh-search input:focus {
	border-color: var(--rh-mat);
	outline-offset: 1px;
}

.rh-search__icon {
	position: absolute;
	left: 16px;
	top: 50%;
	transform: translateY(-50%);
	pointer-events: none;
}

.rh-search__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: var(--rh-muted);
	stroke-width: 2;
	stroke-linecap: round;
}

.rh-modellist {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(212px, 1fr));
	gap: 8px;
	max-height: 360px;
	overflow-y: auto;
	padding: 4px;
	border: 1px solid var(--rh-line-soft);
	border-radius: var(--rh-radius);
	background: var(--rh-ceramic);
}

.rh-model {
	padding: 12px 14px;
	font-size: .93rem;
	border-radius: var(--rh-radius-sm);
	border-width: 1px;
}

.rh-model--other {
	color: var(--rh-mat-deep);
	font-weight: 600;
	border-style: dashed;
}

.rh-modellist__empty {
	margin: 12px 0 0;
	color: var(--rh-muted);
	font-size: .92rem;
}

/* ---------------------------------------------------------------
   Customer details
   --------------------------------------------------------------- */

.rh-summary {
	background: var(--rh-ceramic);
	border-radius: var(--rh-radius);
	padding: 16px 18px;
	margin-bottom: 24px;
}

.rh-summary__list {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
}

.rh-summary__list dt {
	font-size: .76rem;
	color: var(--rh-muted);
	margin-bottom: 3px;
}

.rh-summary__list dd {
	margin: 0;
	font-family: var(--rh-font-display);
	font-weight: 600;
	font-size: .98rem;
	line-height: 1.35;
}

.rh-fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.rh-field {
	margin: 0;
	display: grid;
	gap: 6px;
	grid-column: span 2;
}

.rh-field--half {
	grid-column: span 1;
}

.rh-field--full {
	grid-column: span 2;
}

.rh-field label {
	font-size: .88rem;
	font-weight: 500;
	color: var(--rh-ink);
}

.rh-field input,
.rh-field textarea {
	font: inherit;
	width: 100%;
	padding: 13px 15px;
	border: 1.5px solid var(--rh-line);
	border-radius: var(--rh-radius-sm);
	background: #fff;
	color: var(--rh-ink);
}

.rh-field input:focus,
.rh-field textarea:focus {
	border-color: var(--rh-mat);
}

.rh-field textarea {
	resize: vertical;
	min-height: 96px;
}

.rh-field__help {
	font-size: .83rem;
	color: var(--rh-muted);
}

/* ---------------------------------------------------------------
   Errors, nav and result
   --------------------------------------------------------------- */

.rh-error {
	display: none;
	margin: 0;
	color: var(--rh-danger);
	font-size: .88rem;
}

.rh-error.is-visible {
	display: block;
}

.rh-error--form.is-visible {
	margin-top: 18px;
	padding: 12px 14px;
	background: #fdeeea;
	border-radius: var(--rh-radius-sm);
}

.rh-wizard__nav {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 30px;
	padding-top: 22px;
	border-top: 1px solid var(--rh-line-soft);
}

.rh-wizard__nav #rh-back {
	margin-right: auto;
}

.rh-done {
	text-align: center;
	padding-block: 12px 8px;
}

.rh-done__icon {
	display: inline-grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--rh-mat-tint);
	margin-bottom: 18px;
}

.rh-done__icon svg {
	width: 28px;
	height: 28px;
	fill: none;
	stroke: var(--rh-mat-deep);
	stroke-width: 2.4;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.rh-done__body p {
	margin: 0 auto .35em;
	max-width: 44ch;
}

.rh-done__ref {
	font-family: var(--rh-font-display);
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--rh-mat-deep);
	margin-bottom: .8em !important;
}

.rh-done__note {
	color: var(--rh-muted);
	font-size: .92rem;
	margin-top: 14px !important;
}

.rh-done__actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 26px;
}

.rh-assurance {
	margin-top: 20px;
	color: var(--rh-muted);
	font-size: .95rem;
}

.rh-assurance p {
	margin: 0;
}

/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */

@media (max-width: 620px) {
	.rh-progress__label {
		display: none;
	}

	.rh-progress {
		gap: 6px;
	}

	.rh-progress__item {
		padding: 6px;
	}

	.rh-progress__item.is-current {
		padding-inline: 12px;
	}

	.rh-progress__item.is-current .rh-progress__label {
		display: inline;
	}

	.rh-fields {
		grid-template-columns: 1fr;
	}

	.rh-field,
	.rh-field--half,
	.rh-field--full {
		grid-column: span 1;
	}

	.rh-modellist {
		grid-template-columns: 1fr;
		max-height: 300px;
	}

	.rh-wizard__nav {
		flex-direction: column-reverse;
	}

	.rh-wizard__nav .rh-btn {
		width: 100%;
	}

	.rh-wizard__nav #rh-back {
		margin-right: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rh-step.is-entering-forward,
	.rh-step.is-entering-back {
		animation: none;
	}
}
