/**
 * Band Baja quote tool — shortcode UI.
 *
 * Design: full-screen premium editorial quiz with gold accents,
 * warm beige cards, large serif headings, radio selection
 * indicators, bottom bar (BACK + step dots). Auto-advance on answer.
 */

/* ————————————————————————————————————
   0. Custom properties
   ———————————————————————————————————— */
.bandbaja-quote-tool {
	--qt-accent: #d4af37;
	--qt-accent-hover: #b8941c;
	--qt-text: #1a1a1a;
	--qt-text-muted: #8a847b;
	--qt-bg: #fafaf7;
	--qt-bg-card: #efebe3;
	--qt-bg-card-hover: #e8e3d9;
	--qt-border: #e0dcd4;
	--qt-border-muted: #ccc7be;
	--qt-radius: 8px;
	--qt-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	--qt-font-heading: "Arapey", serif;
	--qt-font-body: inherit;
}

/* ————————————————————————————————————
   1. Elementor host container — zero padding
   ———————————————————————————————————— */
.e-con:has(.bandbaja-quote-tool) {
	padding: 0 !important;
}

/* Hide Elementor heading widget on the quote-tool page */
.e-con:has(.bandbaja-quote-tool) > .elementor-widget-heading {
	display: none !important;
}

/* Mobile-only: close → home (top right) */
.bandbaja-quote-tool__close {
	display: none;
}

/* ————————————————————————————————————
   2. Brand logo (H1, top-left)
   ———————————————————————————————————— */
.bandbaja-quote-tool__brand {
	margin: 20px 0 0;
	padding: 0 3rem;
	text-align: center;
	flex-shrink: 0;
	line-height: 0;
}

.bandbaja-quote-tool__brand-link {
	display: inline-block;
	line-height: 0;
	text-decoration: none;
	color: inherit;
}

.bandbaja-quote-tool__brand-link:focus-visible {
	outline: 2px solid var(--qt-accent);
	outline-offset: 4px;
}

.bandbaja-quote-tool__brand img {
	display: block;
	width: auto;
	height: 60px;
	object-fit: contain;
}

@media (max-width: 768px) {
	.bandbaja-quote-tool__close {
		display: flex;
		align-items: center;
		justify-content: center;
		position: absolute;
		top: 0.75rem;
		right: 0.75rem;
		z-index: 20;
		min-width: 4.25rem;
		min-height: 4.25rem;
		margin: 0;
		padding: 0;
		border: none;
		background: transparent;
		color: var(--qt-text-muted);
		text-decoration: none;
		line-height: 1;
		border-radius: var(--qt-radius);
		box-sizing: border-box;
		-webkit-tap-highlight-color: transparent;
		transition:
			color var(--qt-transition),
			background-color var(--qt-transition);
	}

	.bandbaja-quote-tool__close:hover,
	.bandbaja-quote-tool__close:active {
		color: var(--qt-text);
	}

	.bandbaja-quote-tool__close:focus-visible {
		outline: 2px solid var(--qt-accent);
		outline-offset: 2px;
	}

	.bandbaja-quote-tool__close-x {
		font-family: Arial, Helvetica, sans-serif;
		font-size: 3.5rem;
		font-weight: 300;
		line-height: 1;
	}

	.bandbaja-quote-tool__brand {
		padding: 0 1.5rem;
	}

	.bandbaja-quote-tool__brand img {
		height: 42px;
	}
}

@media (max-width: 480px) {
	.bandbaja-quote-tool__close {
		top: 0.5rem;
		right: 0.5rem;
		min-width: 4rem;
		min-height: 4rem;
	}

	.bandbaja-quote-tool__close-x {
		font-size: 3.25rem;
	}

	.bandbaja-quote-tool__brand {
		padding: 0 1rem;
	}

	.bandbaja-quote-tool__brand img {
		height: 34px;
	}
}

/* ————————————————————————————————————
   3. Root container — full screen
   ———————————————————————————————————— */
.bandbaja-quote-tool {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	box-sizing: border-box;
	font-family: var(--qt-font-body);
	color: var(--qt-text);
	background: var(--qt-bg);
}

/* ————————————————————————————————————
   2. Progress section (step label + narrow bar + half-way text)
   ———————————————————————————————————— */
.bandbaja-quote-tool__progress-section {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 1.5rem 0.75rem;
	flex-shrink: 0;
}

.bandbaja-quote-tool__progress-section[hidden] {
	display: none;
}

.bandbaja-quote-tool__step-label {
	margin: 0 0 0.625rem;
	font-family: var(--qt-font-body);
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--qt-text-muted);
}

.bandbaja-quote-tool__progress-track {
	width: 100%;
	max-width: 360px;
	height: 4px;
	background: var(--qt-border);
	border-radius: 4px;
	overflow: hidden;
}

.bandbaja-quote-tool__progress-track[hidden] {
	display: none;
}

.bandbaja-quote-tool__progress-bar {
	height: 100%;
	background: var(--qt-accent);
	border-radius: 4px;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bandbaja-quote-tool__progress-half {
	margin: 0.5rem 0 0;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--qt-accent);
	text-align: center;
}

.bandbaja-quote-tool__progress-half[hidden] {
	display: none;
}

/* ————————————————————————————————————
   3. Body (step content)
   ———————————————————————————————————— */
.bandbaja-quote-tool__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2rem 3rem 2rem;
}

/* ———— Step container ———— */
.bandbaja-quote-tool__step {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
}

/* Step hook `.bandbaja-quote-tool__step--fade`: toggled in JS after each render so entrances replay. */

@keyframes bandbaja-quote-soft-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__title {
	animation: bandbaja-quote-soft-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.03s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__description {
	animation: bandbaja-quote-soft-in 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.08s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(1) {
	animation-delay: 0.085s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(2) {
	animation-delay: 0.105s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(3) {
	animation-delay: 0.125s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(4) {
	animation-delay: 0.145s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(5) {
	animation-delay: 0.165s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(6) {
	animation-delay: 0.185s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(7) {
	animation-delay: 0.205s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(8) {
	animation-delay: 0.225s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(9) {
	animation-delay: 0.245s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(10) {
	animation-delay: 0.265s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(11) {
	animation-delay: 0.285s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(12) {
	animation-delay: 0.305s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(13) {
	animation-delay: 0.325s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(14) {
	animation-delay: 0.345s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(15) {
	animation-delay: 0.365s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li:nth-child(16) {
	animation-delay: 0.385s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__input-block {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.1s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__final-form {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.11s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__quote-total-wrap {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.12s;
}

.bandbaja-quote-tool__step--fade > .bandbaja-quote-tool__submit.bandbaja-quote-tool__continue {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.11s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__inline-back-wrap {
	animation: bandbaja-quote-soft-in 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.22s;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__thankyou {
	animation: bandbaja-quote-soft-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.04s;
}

/* Async-loaded estimate (review step): inner wrapper is new DOM so animation runs once. */
.bandbaja-quote-tool__quote-breakdown-inner {
	width: 100%;
}

.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__quote-breakdown-inner {
	animation: bandbaja-quote-soft-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
	animation-delay: 0.02s;
}

/* ————————————————————————————————————
   4. Question title + description  (+25% from base sizes)
   ———————————————————————————————————— */
.bandbaja-quote-tool__title {
	margin: 0 0 2.5rem;
	font-family: var(--qt-font-heading);
	font-size: 2.8125rem;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: -0.01em;
	text-align: center;
	color: var(--qt-text);
	max-width: 700px;
}

.bandbaja-quote-tool__description {
	margin: -1.25rem 0 2rem;
	font-size: 1.125rem;
	line-height: 1.6;
	color: var(--qt-text-muted);
	text-align: center;
	max-width: 520px;
}

/* ————————————————————————————————————
   5. Option card grid
   ———————————————————————————————————— */
.bandbaja-quote-tool__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	width: 100%;
	max-width: 800px;
	margin: 0;
	padding: 0;
	list-style: none;
}

/* Exactly 5 cards: 3 on row 1, 2 centered on row 2 (equal side space) */
.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) {
	grid-template-columns: repeat(6, 1fr);
}

.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) > li:nth-child(-n + 3) {
	grid-column: span 2;
}

.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) > li:nth-child(4) {
	grid-column: 2 / span 2;
}

.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) > li:nth-child(5) {
	grid-column: 4 / span 2;
}

/* 6+ cards: classic3-column grid */
.bandbaja-quote-tool__grid:has(li:nth-child(6)) {
	grid-template-columns: repeat(3, 1fr);
}

.bandbaja-quote-tool__grid li {
	margin: 0;
	padding: 0;
	display: flex;
}

.bandbaja-quote-tool__card {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 88px;
	margin: 0;
	padding: 1.25rem 2.75rem 1.25rem 1.25rem;
	border: 1.5px solid var(--qt-border);
	border-radius: var(--qt-radius);
	background: transparent;
	font: inherit;
	font-family: var(--qt-font-heading);
	font-size: 1.125rem;
	font-weight: 400;
	line-height: 1.3;
	text-align: center;
	color: var(--qt-text);
	cursor: pointer;
	box-sizing: border-box;
	transition:
		border-color var(--qt-transition),
		background-color var(--qt-transition),
		color var(--qt-transition);
}

/* Radio indicator via pseudo-element */
.bandbaja-quote-tool__card::after {
	content: '';
	position: absolute;
	top: 0.875rem;
	right: 0.875rem;
	width: 18px;
	height: 18px;
	border: 2px solid var(--qt-border-muted);
	border-radius: 50%;
	box-sizing: border-box;
	transition:
		border-color var(--qt-transition),
		background var(--qt-transition),
		box-shadow var(--qt-transition);
}

.bandbaja-quote-tool__card:hover {
	background-color: var(--qt-accent);
	border-color: var(--qt-accent-hover);
	color: #fff;
}

.bandbaja-quote-tool__card:hover::after {
	border-color: rgba(255, 255, 255, 0.9);
}

.bandbaja-quote-tool__card.is-selected:hover::after {
	border-color: #fff;
	background: #fff;
	box-shadow: inset 0 0 0 3px var(--qt-accent);
}

.bandbaja-quote-tool__card:hover .bandbaja-quote-tool__card-icon {
	color: #fff;
}

.bandbaja-quote-tool__card:focus-visible {
	outline: 2px solid var(--qt-accent);
	outline-offset: 2px;
}

.bandbaja-quote-tool__card.is-selected {
	border-color: var(--qt-accent);
}

.bandbaja-quote-tool__card.is-selected::after {
	border-color: var(--qt-accent);
	background: var(--qt-accent);
	box-shadow: inset 0 0 0 3px var(--qt-bg);
}

/* Taller cards when only 1–2 options */
.bandbaja-quote-tool__grid:not(:has(li:nth-child(3))) .bandbaja-quote-tool__card {
	min-height: 180px;
	font-size: 1.375rem;
}

.bandbaja-quote-tool__card-label {
	display: block;
}

.bandbaja-quote-tool__card--has-image {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.875rem;
	padding: 1.75rem 1.25rem 1.25rem;
	text-align: center;
}

.bandbaja-quote-tool__card--has-image .bandbaja-quote-tool__card-media {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	line-height: 0;
	text-align: center;
}

.bandbaja-quote-tool__card--has-image .bandbaja-quote-tool__card-img {
	margin-left: auto;
	margin-right: auto;
}

.bandbaja-quote-tool__card--has-image .bandbaja-quote-tool__card-label {
	width: 100%;
	text-align: center;
}

.bandbaja-quote-tool__card-img {
	display: block;
	width: auto;
	max-width: 100%;
	height: auto;
	max-height: 120px;
	margin: 0 auto;
	object-fit: contain;
	transition: filter var(--qt-transition);
}

.bandbaja-quote-tool__card:hover .bandbaja-quote-tool__card-img {
	filter: brightness(20);
}

.bandbaja-quote-tool__grid:not(:has(li:nth-child(3))) .bandbaja-quote-tool__card--has-image {
	min-height: 220px;
}

/* Occasion cards: Lucide icons (`data-lucide` → SVG via lucide.createIcons) */
.bandbaja-quote-tool__card--has-icon:not(.bandbaja-quote-tool__card--has-image) {
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.5rem;
	padding: 1.15rem 1rem 1rem;
	text-align: center;
}

.bandbaja-quote-tool__card-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
	color: var(--qt-text-muted);
	flex-shrink: 0;
	transition: color var(--qt-transition);
}

.bandbaja-quote-tool__card-icon svg {
	width: 2rem;
	height: 2rem;
	stroke: currentColor;
}

.bandbaja-quote-tool__card-lucide {
	display: block;
	line-height: 0;
}

.bandbaja-quote-tool__card--has-icon:not(.bandbaja-quote-tool__card--has-image) .bandbaja-quote-tool__card-label {
	width: 100%;
	text-align: center;
}

.bandbaja-quote-tool__card.is-selected .bandbaja-quote-tool__card-icon {
	color: var(--qt-accent);
}

@media (max-width: 768px) {
	.bandbaja-quote-tool__card-icon svg {
		width: 1.75rem;
		height: 1.75rem;
	}
}

/* ————————————————————————————————————
   6. Text / date / time input step
   ———————————————————————————————————— */
.bandbaja-quote-tool__input-block {
	width: 100%;
	max-width: 480px;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.bandbaja-quote-tool__input-block > .bandbaja-quote-tool__submit {
	margin-top: 0;
	width: 100%;
}

/* Date/time Continue: primary (gold) on mobile only; desktop advances on change. */
.bandbaja-quote-tool__input-block > .bandbaja-quote-tool__datetime-continue {
	display: none;
}

@media (max-width: 768px) {
	.bandbaja-quote-tool__input-block > .bandbaja-quote-tool__datetime-continue {
		display: flex;
	}
}

.bandbaja-quote-tool__field {
	display: block;
	width: 100%;
	padding: 0.85rem 1rem;
	border: 1.5px solid var(--qt-border);
	border-radius: var(--qt-radius);
	font: inherit;
	font-size: 1rem;
	color: var(--qt-text);
	background: #fff;
	box-sizing: border-box;
	transition:
		border-color var(--qt-transition),
		box-shadow var(--qt-transition);
}

.bandbaja-quote-tool__field::placeholder {
	color: #9ca3af;
}

.bandbaja-quote-tool__field:focus {
	border-color: var(--qt-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

/* Only after the user has interacted (empty required date/time otherwise matched :invalid). */
.bandbaja-quote-tool__field:user-invalid:not(:focus) {
	border-color: #b91c1c;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.1);
}

/* ————————————————————————————————————
   6b. Quote total (final step — Dhol path)
   ———————————————————————————————————— */
.bandbaja-quote-tool__quote-total-wrap {
	margin: 0 auto 2rem;
	padding: 0;
	max-width: 36rem;
	width: 100%;
	text-align: center;
}

.bandbaja-quote-tool__quote-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	width: 100%;
	font-family: var(--qt-font-heading);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: -0.02em;
	text-align: center;
	color: var(--qt-text);
}

.bandbaja-quote-tool__quote-total-label {
	color: var(--qt-text-muted);
	font-family: var(--qt-font-body);
	font-size: 0.9375rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	display: block;
	margin: 0;
}

.bandbaja-quote-tool__quote-total-amount {
	display: block;
	color: var(--qt-accent);
	white-space: nowrap;
	font-family: var(--qt-font-heading);
	font-size: clamp(2.75rem, 9vw, 4.25rem);
	font-weight: 400;
	line-height: 1.1;
}

.bandbaja-quote-tool__quote-total-note {
	margin: 1.25rem 0 0;
	padding: 0 0.5rem;
	font-family: var(--qt-font-body);
	font-size: 1.0625rem;
	font-weight: 400;
	line-height: 1.6;
	color: var(--qt-text-muted);
	text-align: center;
	max-width: 32rem;
	margin-left: auto;
	margin-right: auto;
}

.bandbaja-quote-tool__whatsapp-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 36rem;
	margin: 1.5rem auto 0;
	padding: 0 0.5rem;
	box-sizing: border-box;
}

/* Matches hero Elementor WhatsApp control: pill, gray fill, white icon + label (elementor-size-md feel). */
.bandbaja-quote-tool__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	min-height: 2.75rem;
	box-sizing: border-box;
	background-color: #707070;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 0.9375rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	line-height: 1.2;
	cursor: pointer;
	transition:
		background-color var(--qt-transition),
		color var(--qt-transition),
		opacity var(--qt-transition);
}

.bandbaja-quote-tool__whatsapp:hover {
	background-color: #5a5a5a;
	color: #fff;
}

.bandbaja-quote-tool__whatsapp:focus-visible {
	outline: 2px solid var(--qt-text);
	outline-offset: 3px;
}

.bandbaja-quote-tool__whatsapp-icon {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
	display: block;
}

.bandbaja-quote-tool__whatsapp-text {
	white-space: nowrap;
}

.bandbaja-quote-tool__sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bandbaja-quote-tool__quote-pricing-loading-wrap {
	margin: 0 auto 1.5rem;
	max-width: 36rem;
	width: 100%;
}

.bandbaja-quote-tool__quote-breakdown-loading {
	margin: 0;
	text-align: center;
	font-family: var(--qt-font-body);
	font-size: 1rem;
	color: var(--qt-text-muted);
}

.bandbaja-quote-tool__quote-breakdown-loading--error {
	color: var(--qt-text);
}

/* Quote breakdown skeleton (travel / pricing fetch) */
@keyframes bandbaja-quote-skeleton-shimmer {
	0% {
		background-position: 100% 0;
	}

	100% {
		background-position: -100% 0;
	}
}

.bandbaja-quote-tool__quote-skeleton {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 1rem;
}

.bandbaja-quote-tool__quote-skeleton-total {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.25rem;
}

.bandbaja-quote-tool__quote-skeleton-heading {
	height: 1.35rem;
	width: min(72%, 14rem);
	margin: 0 auto;
	border-radius: var(--qt-radius);
	background: linear-gradient(
		90deg,
		var(--qt-bg-card) 0%,
		var(--qt-border-muted) 50%,
		var(--qt-bg-card) 100%
	);
	background-size: 200% 100%;
	animation: bandbaja-quote-skeleton-shimmer 1.35s ease-in-out infinite;
}

.bandbaja-quote-tool__quote-skeleton-card {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 1.25rem 1.25rem 1.35rem;
	background: var(--qt-bg-card);
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius);
}

.bandbaja-quote-tool__quote-skeleton-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
}

.bandbaja-quote-tool__quote-skeleton-line {
	display: block;
	height: 1rem;
	border-radius: 4px;
	background: linear-gradient(
		90deg,
		var(--qt-bg) 0%,
		var(--qt-border-muted) 45%,
		var(--qt-border) 55%,
		var(--qt-bg) 100%
	);
	background-size: 200% 100%;
	animation: bandbaja-quote-skeleton-shimmer 1.35s ease-in-out infinite;
}

.bandbaja-quote-tool__quote-skeleton-line--total-label {
	width: 8rem;
	height: 0.75rem;
}

.bandbaja-quote-tool__quote-skeleton-line--total-amount {
	width: min(55%, 10rem);
	height: clamp(2.25rem, 8vw, 3rem);
	border-radius: 6px;
}

.bandbaja-quote-tool__quote-skeleton-line--label {
	flex: 1;
	max-width: 70%;
	min-width: 0;
}

.bandbaja-quote-tool__quote-skeleton-line--price {
	flex-shrink: 0;
	width: 3.5rem;
}

.bandbaja-quote-tool__quote-breakdown {
	margin: 0 auto 2rem;
	max-width: 36rem;
	width: 100%;
}

.bandbaja-quote-tool__quote-breakdown-heading {
	margin: 1rem 0 1rem;
	font-family: var(--qt-font-heading);
	font-size: clamp(1.25rem, 3.5vw, 1.5rem);
	font-weight: 400;
	color: var(--qt-text);
	text-align: center;
}

.bandbaja-quote-tool__quote-breakdown-lines {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin: 0 0 1.5rem;
	padding: 1.25rem 1.25rem 1.35rem;
	background: var(--qt-bg-card);
	border: 1px solid var(--qt-border);
	border-radius: var(--qt-radius);
	text-align: left;
}

.bandbaja-quote-tool__quote-line {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	font-family: var(--qt-font-body);
	font-size: 1rem;
	line-height: 1.45;
	color: var(--qt-text);
}

.bandbaja-quote-tool__quote-line-label {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.2rem;
}

.bandbaja-quote-tool__quote-line-label-meta {
	font-size: 0.875rem;
	line-height: 1.35;
	color: var(--qt-text-muted);
}

.bandbaja-quote-tool__quote-line-amount {
	flex-shrink: 0;
	font-weight: 700;
	color: var(--qt-text);
	white-space: nowrap;
}

.bandbaja-quote-tool__quote-breakdown-footnote {
	margin: 0 0 1rem;
	font-family: var(--qt-font-body);
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--qt-text-muted);
	text-align: center;
}

.bandbaja-quote-tool__quote-total--breakdown {
	margin-top: 0;
	margin-bottom: 0.25rem;
}

@media (max-width: 480px) {
	.bandbaja-quote-tool__quote-total-label {
		font-size: 0.8125rem;
		letter-spacing: 0.1em;
	}

	.bandbaja-quote-tool__quote-total-amount {
		font-size: clamp(2.25rem, 11vw, 3.25rem);
	}

	.bandbaja-quote-tool__quote-total-note {
		font-size: 1rem;
	}
}

/* ————————————————————————————————————
   7. Final form (contact details)
   ———————————————————————————————————— */
.bandbaja-quote-tool__final-form {
	width: 100%;
	max-width: 480px;
}

.bandbaja-quote-tool__form-fields {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.bandbaja-quote-tool__form-field label {
	display: block;
	margin-bottom: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--qt-text);
}

.bandbaja-quote-tool__required-mark {
	color: var(--qt-accent);
	font-weight: 700;
	margin-left: 0.125em;
}

.bandbaja-quote-tool__form-field .bandbaja-quote-tool__field {
	margin-bottom: 0;
}

.bandbaja-quote-tool__honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ———— Submit button ———— */
.bandbaja-quote-tool__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	margin-top: 1.5rem;
	padding: 0.9rem 1.5rem;
	border: 1.5px solid var(--qt-accent);
	border-radius: var(--qt-radius);
	background: transparent;
	color: var(--qt-accent);
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
	transition:
		border-color var(--qt-transition),
		color var(--qt-transition),
		background var(--qt-transition),
		box-shadow var(--qt-transition);
}

.bandbaja-quote-tool__submit:hover {
	background: transparent;
	border-color: var(--qt-accent-hover);
	color: var(--qt-accent-hover);
	box-shadow: none;
}

.bandbaja-quote-tool__submit:focus-visible {
	outline: 2px solid var(--qt-text);
	outline-offset: 2px;
}

.bandbaja-quote-tool__submit:disabled {
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
}

/* Continue: filled primary (outline style stays on default .bandbaja-quote-tool__submit) */
.bandbaja-quote-tool__submit.bandbaja-quote-tool__continue {
	max-width: 480px;
	margin-left: auto;
	margin-right: auto;
	background: var(--qt-accent);
	border-color: var(--qt-accent);
	color: #fff;
}

.bandbaja-quote-tool__submit.bandbaja-quote-tool__continue:hover {
	background: var(--qt-accent-hover);
	border-color: var(--qt-accent-hover);
	color: #fff;
	box-shadow: none;
}

/* ————————————————————————————————————
   8. Footer (BACK + step dots)
   ———————————————————————————————————— */
.bandbaja-quote-tool__footer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2rem;
	border-top: 1px solid var(--qt-border);
	flex-shrink: 0;
}

.bandbaja-quote-tool__footer[hidden] {
	display: none;
}

/* Inline Back (below step content; footer keeps dots only) */
.bandbaja-quote-tool__inline-back-wrap {
	display: flex;
	justify-content: center;
	width: 100%;
	max-width: 480px;
	margin-top: 2rem;
	padding-top: 0.25rem;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* Tighter gap only under Continue + fields (“Your Quote is Ready!” step) */
.bandbaja-quote-tool__inline-back-wrap--contact {
	margin-top: 0.625rem;
	padding-top: 0;
}

/* Match .bandbaja-quote-tool__submit sizing and type (paired with Continue on contact step) */
.bandbaja-quote-tool__back-inline {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	box-sizing: border-box;
	padding: 0.9rem 1.5rem;
	border: 1.5px solid var(--qt-accent);
	border-radius: var(--qt-radius);
	background: transparent;
	font: inherit;
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qt-accent);
	cursor: pointer;
	transition:
		border-color var(--qt-transition),
		color var(--qt-transition),
		background var(--qt-transition);
}

.bandbaja-quote-tool__back-inline:hover {
	background: transparent;
	border-color: var(--qt-accent-hover);
	color: var(--qt-accent-hover);
}

.bandbaja-quote-tool__back-inline:focus-visible {
	outline: 2px solid var(--qt-text);
	outline-offset: 2px;
}

.bandbaja-quote-tool__back-inline-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}

.bandbaja-quote-tool__back-inline-icon svg,
.bandbaja-quote-tool__back-inline-lucide {
	width: 1.125rem;
	height: 1.125rem;
	flex-shrink: 0;
}

/* Step dots (centered) */
.bandbaja-quote-tool__step-dots {
	display: flex;
	gap: 6px;
	align-items: center;
}

.bandbaja-quote-tool__dot {
	width: 22px;
	height: 3px;
	border-radius: 2px;
	background: var(--qt-border);
	transition: background var(--qt-transition);
}

.bandbaja-quote-tool__dot.is-active {
	background: var(--qt-text);
}

/* ————————————————————————————————————
   9. Thank-you state
   ———————————————————————————————————— */
.bandbaja-quote-tool__step:has(.bandbaja-quote-tool__thankyou) {
	justify-content: center;
}

.bandbaja-quote-tool__thankyou {
	margin: 0;
	padding: 3rem 1rem;
	font-family: var(--qt-font-heading);
	font-size: 2rem;
	line-height: 1.4;
	font-weight: 400;
	text-align: center;
	color: var(--qt-text);
}

/* ————————————————————————————————————
   10. Feedback / error area
   ———————————————————————————————————— */
.bandbaja-quote-tool__feedback {
	min-height: 1.25rem;
	margin: 0;
	padding: 0.5rem 2rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: #b91c1c;
	text-align: center;
	flex-shrink: 0;
}

.bandbaja-quote-tool__feedback:empty {
	display: none;
}

.bandbaja-quote-tool__feedback.is-success {
	color: #15803d;
}

/* ————————————————————————————————————
   11. Responsive
   ———————————————————————————————————— */

@media (max-width: 768px) {
	.bandbaja-quote-tool__progress-section {
		padding: 1.5rem 1.5rem 0.5rem;
	}

	.bandbaja-quote-tool__body {
		padding: 1.5rem 1.5rem 1rem;
	}

	.bandbaja-quote-tool__title {
		font-size: 2.1875rem;
	}

	.bandbaja-quote-tool__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.bandbaja-quote-tool__grid:has(li:nth-child(6)) {
		grid-template-columns: repeat(2, 1fr);
	}

	/* Keep centered pair on row 2 (same as desktop) */
	.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) {
		grid-template-columns: repeat(6, 1fr);
	}

	.bandbaja-quote-tool__card {
		min-height: 76px;
		font-size: 1rem;
		padding-right: 2.25rem;
	}

	.bandbaja-quote-tool__grid:not(:has(li:nth-child(3))) .bandbaja-quote-tool__card {
		min-height: 120px;
	}

	.bandbaja-quote-tool__footer {
		padding: 0.875rem 1.5rem;
	}
}

@media (max-width: 480px) {
	.bandbaja-quote-tool__progress-section {
		padding: 1.25rem 1rem 0.5rem;
	}

	.bandbaja-quote-tool__body {
		padding: 1rem 1rem 1rem;
	}

	.bandbaja-quote-tool__title {
		font-size: 1.72rem;
		margin-bottom: 1.75rem;
	}

	.bandbaja-quote-tool__grid {
		grid-template-columns: 1fr;
		gap: 10px;
	}

	.bandbaja-quote-tool__grid:has(li:nth-child(5)):not(:has(li:nth-child(6))) > li {
		grid-column: auto;
	}

	.bandbaja-quote-tool__card {
		min-height: 60px;
		padding: 0.875rem 2.5rem 0.875rem 1rem;
	}

	.bandbaja-quote-tool__grid:not(:has(li:nth-child(3))) .bandbaja-quote-tool__card {
		min-height: 80px;
	}

	.bandbaja-quote-tool__footer {
		padding: 0.75rem 1rem;
	}

	.bandbaja-quote-tool__dot {
		width: 16px;
	}

}

@media (min-width: 900px) {
	.bandbaja-quote-tool__title {
		font-size: 3.28rem;
	}

	.bandbaja-quote-tool__body {
		padding: 2.5rem 4rem 2.5rem;
	}

	/*
	 * Dhol player count step (10 options): first row 6, second row 4.
	 * Only this card step has exactly 10 items in the current quiz.
	 */
	.bandbaja-quote-tool__grid:has(li:nth-child(10)):not(:has(li:nth-child(11))) {
		grid-template-columns: repeat(6, 1fr);
		max-width: 1120px;
	}

	/* Second row: indent by one column so four cards sit centered (cols 2–5). */
	.bandbaja-quote-tool__grid:has(li:nth-child(10)):not(:has(li:nth-child(11))) li:nth-child(7) {
		grid-column: 2;
	}
}

/* ————————————————————————————————————
   12. Accessibility
   ———————————————————————————————————— */

@media (prefers-reduced-motion: reduce) {
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__title,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__description,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__grid > li,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__input-block,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__final-form,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__quote-total-wrap,
	.bandbaja-quote-tool__step--fade > .bandbaja-quote-tool__submit.bandbaja-quote-tool__continue,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__inline-back-wrap,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__thankyou,
	.bandbaja-quote-tool__step--fade .bandbaja-quote-tool__quote-breakdown-inner {
		animation: none !important;
		opacity: 1 !important;
		transform: none !important;
	}

	.bandbaja-quote-tool__progress-bar {
		transition: none;
	}

	.bandbaja-quote-tool__card,
	.bandbaja-quote-tool__card::after,
	.bandbaja-quote-tool__field,
	.bandbaja-quote-tool__submit,
	.bandbaja-quote-tool__whatsapp,
	.bandbaja-quote-tool__close,
	.bandbaja-quote-tool__back-inline,
	.bandbaja-quote-tool__dot {
		transition: none;
	}

	.bandbaja-quote-tool__quote-skeleton-line,
	.bandbaja-quote-tool__quote-skeleton-heading {
		animation: none;
		background: var(--qt-border-muted);
	}
}

@media (forced-colors: active) {
	.bandbaja-quote-tool__card.is-selected {
		outline: 3px solid Highlight;
	}

	.bandbaja-quote-tool__card::after {
		forced-color-adjust: none;
	}

	.bandbaja-quote-tool__progress-bar {
		background: Highlight;
	}

	.bandbaja-quote-tool__feedback {
		color: Mark;
	}

	.bandbaja-quote-tool__submit {
		border: 1px solid ButtonText;
	}
}

/* Google Places Autocomplete — .pac-container is appended to body */
body:has(.bandbaja-quote-tool) .pac-container {
	z-index: 100050;
	font-family: var(--qt-font-body);
	border-radius: var(--qt-radius);
	border: 1px solid var(--qt-border);
	box-shadow: 0 10px 28px rgba(26, 26, 26, 0.12);
	margin-top: 4px;
}

body:has(.bandbaja-quote-tool) .pac-item {
	padding: 0.5rem 0.75rem;
	font-size: 0.95rem;
	color: var(--qt-text);
}

body:has(.bandbaja-quote-tool) .pac-item-query {
	color: var(--qt-text);
}

body:has(.bandbaja-quote-tool) .pac-item:hover,
body:has(.bandbaja-quote-tool) .pac-item-selected {
	background-color: var(--qt-bg-card);
}
