/* HVR Quote Form */
.hvr-quote-form {
	--hvr-red: #c40c1c;
	--hvr-red-soft: #fdecee;
	--hvr-text: #111;
	--hvr-muted: #6b6b6b;
	--hvr-border: #e7e7e7;
	--hvr-radius: 14px;
	--hvr-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	box-sizing: border-box;
	color: var(--hvr-text);
	font-family: inherit;
	width: 100%;
	margin-left: auto;
	margin-right: auto;
}

/* The form fills 100% of its parent Elementor container at any viewport.
   Width is controlled by the Elementor section that hosts the shortcode. */

/* Tablet & below — collapse multi-column card grids to a single column so
   labels don't get clipped and the layout stays readable. */
@media (max-width: 1023px) {
	.hvr-qf__cards--2,
	.hvr-qf__cards--3,
	.hvr-qf__cards--4 {
		grid-template-columns: 1fr;
	}

	.hvr-qf__grid-2 {
		grid-template-columns: 1fr;
	}

	/* The van's drop shadow can bleed above the progress track on small
	   viewports, looking like a stray grey line. Drop the shadow on tablet. */
	.hvr-qf__progress-van {
		box-shadow: none;
	}
}

.hvr-quote-form *,
.hvr-quote-form *::before,
.hvr-quote-form *::after {
	box-sizing: border-box;
}

.hvr-qf__heading {
	text-align: center;
	color: var(--hvr-red);
	margin: 0 0 16px;
}

.hvr-qf__honeypot {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	opacity: 0 !important;
	pointer-events: none !important;
}

/* Progress bar */
.hvr-qf__progress {
	--hvr-van-size: 56px;
	--hvr-steps: 6;
	position: relative;
	padding: calc(var(--hvr-van-size) + 8px) 0 0;
	margin: 16px 0 40px;
}

/* Track sits between the centre of the first dot and the centre of the last dot */
.hvr-qf__progress-track {
	position: absolute;
	left: calc(50% / var(--hvr-steps));
	right: calc(50% / var(--hvr-steps));
	top: calc(var(--hvr-van-size) + 8px);
	height: 2px;
	background: var(--hvr-border);
	border-radius: 2px;
	overflow: hidden;
}

.hvr-qf__progress-fill {
	display: block;
	height: 100%;
	background: var(--hvr-red);
	transition: width 350ms ease;
}

.hvr-qf__progress-van {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--hvr-van-size);
	height: var(--hvr-van-size);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: translateX(-50%);
	transition: left 350ms ease;
	z-index: 2;
	background: transparent;
}

.hvr-qf__progress-van img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

/* Equal-width columns so dot centres align at 1/N, 3/N, 5/N ... */
.hvr-qf__progress-steps {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(var(--hvr-steps), 1fr);
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 1;
}

.hvr-qf__progress-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	color: var(--hvr-muted);
	margin: 0;
	padding: 0;
	min-width: 0;
}

.hvr-qf__progress-step-btn {
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: default;
}

.hvr-qf__progress-step.is-clickable .hvr-qf__progress-step-btn {
	cursor: pointer;
}

.hvr-qf__progress-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #cfcfcf;
	display: inline-block;
	transition: background 200ms ease;
	margin-top: -7px;
}

.hvr-qf__progress-step.is-active .hvr-qf__progress-dot,
.hvr-qf__progress-step.is-complete .hvr-qf__progress-dot {
	background: var(--hvr-red);
}

.hvr-qf__progress-step.is-active,
.hvr-qf__progress-step.is-complete {
	color: var(--hvr-red);
}

.hvr-qf__progress-label {
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
}

@media (max-width: 700px) {
	.hvr-qf__progress {
		--hvr-van-size: 44px;
	}
	.hvr-qf__progress-label {
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.hvr-qf__progress-label {
		display: none;
	}
}

/* Steps */
.hvr-qf__step {
	display: none;
}

.hvr-qf__step.is-active {
	display: block;
}

.hvr-qf__step-title {
	text-align: center;
	margin: 0 0 24px;
	font-size: 24px;
	font-weight: 700;
}

/* Cards */
.hvr-qf__cards {
	display: grid;
	gap: 16px;
	margin-bottom: 24px;
}

.hvr-qf__cards--2 { grid-template-columns: repeat(2, 1fr); }
.hvr-qf__cards--3 { grid-template-columns: repeat(3, 1fr); }
.hvr-qf__cards--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 800px) {
	.hvr-qf__cards--2,
	.hvr-qf__cards--3,
	.hvr-qf__cards--4 { grid-template-columns: 1fr; }
}

.hvr-qf__card {
	display: block;
	cursor: pointer;
	position: relative;
}

.hvr-qf__card input[type="radio"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.hvr-qf__card-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 20px 16px;
	background: #fff;
	border: 1px solid var(--hvr-border);
	border-radius: var(--hvr-radius);
	box-shadow: var(--hvr-shadow);
	text-align: center;
	min-height: 180px;
	position: relative;
}

.hvr-qf__card.is-selected .hvr-qf__card-inner {
	border-color: var(--hvr-red);
	box-shadow: 0 0 0 2px rgba(196, 12, 28, 0.12);
}

.hvr-qf__card-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	border: 1px solid var(--hvr-red);
	color: var(--hvr-red);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	padding: 4px 10px;
	border-radius: 999px;
}

.hvr-qf__card-icon {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: #f3f3f3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.hvr-qf__card-icon--img {
	background: transparent;
	width: 40px;
	height: 40px;
	border-radius: 0;
	overflow: visible;
}

.hvr-qf__card-icon--img img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}

.hvr-qf__card-title {
	font-weight: 700;
	font-size: 18px;
}

.hvr-qf__card-price {
	color: var(--hvr-red);
	font-weight: 600;
}

.hvr-qf__card-sub {
	color: var(--hvr-muted);
	font-size: 14px;
	line-height: 1.5;
}

.hvr-qf__card-cta {
	margin-top: auto;
	background: #f4f4f4;
	color: var(--hvr-muted);
	padding: 10px 22px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	min-width: 110px;
	text-align: center;
}

.hvr-qf__card.is-selected .hvr-qf__card-cta {
	background: var(--hvr-red);
	color: #fff;
}

.hvr-qf__card-cta-selected { display: none; }
.hvr-qf__card.is-selected .hvr-qf__card-cta-select { display: none; }
.hvr-qf__card.is-selected .hvr-qf__card-cta-selected { display: inline; }

/* Fields */
.hvr-qf__field {
	margin-bottom: 18px;
}

.hvr-qf__field label,
.hvr-qf__field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.hvr-qf__field input,
.hvr-qf__field select,
.hvr-quote-form select,
.hvr-quote-form input[type="text"],
.hvr-quote-form input[type="email"],
.hvr-quote-form input[type="tel"],
.hvr-quote-form input[type="url"],
.hvr-quote-form input[type="date"] {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--hvr-border);
	border-radius: 999px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
}

.hvr-qf__grid-2 {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
}
@media (max-width: 700px) {
	.hvr-qf__grid-2 { grid-template-columns: 1fr; }
}

/* Vehicle list */
.hvr-qf__vehicle-counter {
	font-weight: 500;
	font-size: 14px;
	margin: 24px 0 12px;
	color: lightgray;
}

.hvr-qf__vehicle-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.hvr-qf__vehicle {
	position: relative;
	background: transparent;
	border: 0;
	box-shadow: none;
	padding: 0;
}

.hvr-qf__vehicle.is-selected .hvr-qf__vehicle-card-html {
	outline: 2px solid var(--hvr-red);
	outline-offset: 2px;
	border-radius: var(--hvr-radius);
}

.hvr-qf__vehicle-card-html > * { max-width: 100%; }

/* Footer band beneath the rendered Elementor template — keeps the Select
   button accessible on narrow viewports. On desktop the footer floats to
   the top-right corner of the card. */
.hvr-qf__vehicle-footer {
	display: flex;
	justify-content: flex-end;
	padding: 12px 0 0;
}

@media (min-width: 1024px) {
	.hvr-qf__vehicle-footer {
		position: absolute;
		top: 16px;
		right: 16px;
		padding: 0;
		z-index: 5;
	}
}

.hvr-qf__vehicle-selected-label { display: none; }
.hvr-qf__vehicle.is-selected .hvr-qf__vehicle-select-label { display: none; }
.hvr-qf__vehicle.is-selected .hvr-qf__vehicle-selected-label { display: inline; }
.hvr-qf__vehicle.is-selected .hvr-qf__vehicle-select {
	background: var(--hvr-red);
	color: #fff;
	border-color: var(--hvr-red);
}

.hvr-qf__vehicle-selected-count {
	margin: 16px 0 0;
	text-align: right;
	color: var(--hvr-red);
	font-weight: 600;
}

.hvr-qf__vehicle-empty,
.hvr-qf__vehicle-loading {
	color: var(--hvr-muted);
	padding: 24px;
	text-align: center;
}

/* Summary */
.hvr-qf__summary {
	background: #fff;
	border: 1px solid var(--hvr-border);
	border-radius: var(--hvr-radius);
	padding: 8px 24px;
}

.hvr-qf__summary-list { margin: 0; }
.hvr-qf__summary-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid var(--hvr-border);
}
.hvr-qf__summary-row:last-child { border-bottom: 0; }
.hvr-qf__summary-row dt { font-weight: 700; margin: 0; }
.hvr-qf__summary-row dd { margin: 0; color: var(--hvr-muted); text-align: right; }

/* Nav */
.hvr-qf__nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 24px;
	gap: 12px;
}

.hvr-qf__btn {
	border: 1px solid var(--hvr-red);
	background: #fff;
	color: var(--hvr-red);
	padding: 12px 32px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	cursor: pointer;
	font-family: inherit;
}

.hvr-qf__btn--primary {
	background: var(--hvr-red);
	color: #fff;
}

.hvr-qf__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Feedback */
.hvr-qf__feedback {
	display: none;
	margin: 0 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
}
.hvr-qf__feedback.is-visible { display: block; }
.hvr-qf__feedback[data-type="error"] {
	background: var(--hvr-red-soft);
	color: var(--hvr-red);
	border: 1px solid rgba(196, 12, 28, 0.25);
}
.hvr-qf__feedback[data-type="success"] {
	background: #e9f7ee;
	color: #1f7a3a;
}

/* Success */
.hvr-qf__success {
	text-align: center;
	padding: 32px 16px 16px;
	font-size: 18px;
}

.hvr-qf__success-heading {
	font-size: 28px;
	font-weight: 700;
	margin: 0 0 8px;
}

.hvr-qf__success-subhead {
	color: var(--hvr-muted);
	margin: 0 0 24px;
	font-size: 16px;
}

.hvr-qf__success-icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 24px;
	border-radius: 50%;
	background: var(--hvr-red);
	display: flex;
	align-items: center;
	justify-content: center;
	transform: scale(0.6);
	opacity: 0;
	transition: opacity 350ms ease, transform 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hvr-qf__success-icon svg {
	width: 60%;
	height: 60%;
	display: block;
}

.hvr-qf__step[data-hvr-step="success"].is-active .hvr-qf__success-icon {
	transform: scale(1);
	opacity: 1;
	transition-delay: 200ms;
}

.hvr-qf__success-portal-intro {
	margin: 0 0 16px;
	color: var(--hvr-text);
	font-size: 16px;
}

.hvr-qf__success-portal-cta {
	margin: 0 0 16px;
}

.hvr-qf__success-portal-cta .hvr-qf__btn {
	text-decoration: none;
}

.hvr-qf__success-message {
	color: var(--hvr-muted);
	font-size: 15px;
	margin-top: 16px;
}

.hvr-qf__nav--center {
	justify-content: center;
}

/* Progress van: always render a checkmark pseudo-element on top of the truck
   image. Initial state hides it; .is-complete reveals it and fades the truck out. */
.hvr-qf__progress-van img {
	transition: opacity 200ms ease;
}

.hvr-qf__progress-van::after {
	content: '';
	position: absolute;
	inset: 22%;
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 16.5l5 5 9-11' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: contain;
	opacity: 0;
	transform: scale(0.5);
	pointer-events: none;
	transition: opacity 250ms ease 150ms, transform 250ms cubic-bezier(0.34, 1.56, 0.64, 1) 150ms;
}

.hvr-qf__progress.is-complete .hvr-qf__progress-van img {
	opacity: 0;
}

.hvr-qf__progress.is-complete .hvr-qf__progress-van::after {
	opacity: 1;
	transform: scale(1);
}

/* Fallback card */
.hvr-qf-fallback-card {
	display: grid;
	grid-template-columns: 220px 1fr;
	gap: 16px;
}
.hvr-qf-fallback-card__media img { width: 100%; height: auto; display: block; border-radius: 8px; }
.hvr-qf-fallback-card__title { margin: 0 0 8px; }
@media (max-width: 600px) {
	.hvr-qf-fallback-card { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   Elementor / theme overrides
   Elementor's `.elementor-kit-N button` rule (0,1,1) styles every
   <button> with red pill background, padding, white text, etc.
   These selectors chain the parent class + element + own class to
   reach (0,2,1) or higher and reliably win regardless of load order.
   ---------------------------------------------------------------- */

.hvr-quote-form button.hvr-qf__progress-step-btn,
.hvr-quote-form button.hvr-qf__progress-step-btn:hover,
.hvr-quote-form button.hvr-qf__progress-step-btn:focus,
.hvr-quote-form button.hvr-qf__progress-step-btn:active {
	background: transparent;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: inherit;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
	cursor: default;
	min-width: 0;
	min-height: 0;
	line-height: 1;
	text-shadow: none;
	width: auto;
	height: auto;
}

.hvr-quote-form .hvr-qf__progress-step.is-clickable button.hvr-qf__progress-step-btn {
	cursor: pointer;
}

.hvr-quote-form .hvr-qf__progress-step.is-active button.hvr-qf__progress-step-btn,
.hvr-quote-form .hvr-qf__progress-step.is-complete button.hvr-qf__progress-step-btn {
	color: var(--hvr-red);
}

.hvr-quote-form button.hvr-qf__btn,
.hvr-quote-form button.hvr-qf__btn:hover,
.hvr-quote-form button.hvr-qf__btn:focus {
	display: inline-block;
	border: 1px solid var(--hvr-red);
	border-radius: 999px;
	background: #fff;
	background-color: #fff;
	color: var(--hvr-red);
	padding: 12px 32px;
	font-family: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
	width: auto;
	height: auto;
	min-width: 0;
	min-height: 0;
}

.hvr-quote-form button.hvr-qf__btn--primary,
.hvr-quote-form button.hvr-qf__btn--primary:hover,
.hvr-quote-form button.hvr-qf__btn--primary:focus {
	background: var(--hvr-red);
	background-color: var(--hvr-red);
	color: #fff;
}

.hvr-quote-form button.hvr-qf__btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.hvr-quote-form button.hvr-qf__vehicle-select,
.hvr-quote-form button.hvr-qf__vehicle-select:hover,
.hvr-quote-form button.hvr-qf__vehicle-select:focus {
	position: relative;
	border: 1px solid var(--hvr-red);
	border-radius: 999px;
	background: #fff;
	background-color: #fff;
	color: var(--hvr-red);
	padding: 10px 28px;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	line-height: 1.2;
	cursor: pointer;
	box-shadow: none;
	text-shadow: none;
}

.hvr-quote-form .hvr-qf__vehicle.is-selected button.hvr-qf__vehicle-select,
.hvr-quote-form .hvr-qf__vehicle.is-selected button.hvr-qf__vehicle-select:hover {
	background: var(--hvr-red);
	background-color: var(--hvr-red);
	color: #fff;
}

/* Form controls — beat Elementor input/select global styles */
.hvr-quote-form .hvr-qf__form input[type="text"],
.hvr-quote-form .hvr-qf__form input[type="email"],
.hvr-quote-form .hvr-qf__form input[type="tel"],
.hvr-quote-form .hvr-qf__form input[type="url"],
.hvr-quote-form .hvr-qf__form input[type="date"],
.hvr-quote-form .hvr-qf__form select,
.hvr-quote-form .hvr-qf__form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--hvr-border);
	border-radius: 999px;
	font-size: 15px;
	font-family: inherit;
	background: #fff;
	background-color: #fff;
	color: var(--hvr-text);
	box-shadow: none;
	line-height: 1.4;
}

.hvr-quote-form .hvr-qf__form textarea {
	border-radius: var(--hvr-radius);
}
