/* CVT quote wizards */

.cvt-wizard {
	--w-navy: #102235;
	--w-blue: #2bade0;
	--w-blue-dark: #18799e;
	--w-muted: #5a6b78;
	--w-line: rgba(16, 34, 53, 0.12);
	--w-wash: #f3f6f8;
	--w-white: #ffffff;
	--w-radius: 10px;
	--w-font: var(--cvt-font, Inter, "Helvetica Neue", Helvetica, Arial, sans-serif);
	--w-display: var(--cvt-display, "Barlow Condensed", sans-serif);
	--w-label: var(--cvt-label, Orbitron, Inter, sans-serif);
	--w-accent: var(--cvt-accent, "Chakra Petch", Orbitron, sans-serif);

	max-width: none;
	margin: 0;
	padding: 0;
	font-family: var(--w-font);
	color: var(--w-navy);
}

.cvt-wizard__disclaimer {
	margin: 0 0 1.35rem;
	padding: 0.85rem 1rem;
	border-radius: var(--w-radius);
	background: rgba(43, 173, 224, 0.1);
	color: var(--w-muted);
	font-size: 0.92rem;
	line-height: 1.45;
}

/* Progress stepper */
.cvt-wizard__progress {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0.35rem;
	list-style: none;
	margin: 0 0 1.75rem;
	padding: 0;
	counter-reset: cvt-step;
}

.cvt-wizard__progress li {
	counter-increment: cvt-step;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.4rem;
	text-align: center;
	font-family: var(--w-label);
	font-size: 0.62rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--w-muted);
	position: relative;
}

.cvt-wizard__progress li::before {
	content: counter(cvt-step);
	display: grid;
	place-items: center;
	width: 1.85rem;
	height: 1.85rem;
	border-radius: 999px;
	background: var(--w-wash);
	border: 2px solid var(--w-line);
	color: var(--w-muted);
	font-size: 0.78rem;
}

.cvt-wizard__progress li.is-current {
	color: var(--w-navy);
}

.cvt-wizard__progress li.is-current::before {
	background: var(--w-navy);
	border-color: var(--w-navy);
	color: var(--w-white);
}

.cvt-wizard__progress li.is-done {
	color: var(--w-blue-dark);
}

.cvt-wizard__progress li.is-done::before {
	content: "";
	background: var(--w-blue);
	border-color: var(--w-blue);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.2 6.4 11l6-6' stroke='%23102235' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 0.85rem;
}

/* Panels */
.cvt-wizard__panel {
	animation: cvt-wizard-in 0.28s ease both;
}

@keyframes cvt-wizard-in {
	from {
		opacity: 0;
		transform: translateY(6px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.cvt-wizard__question,
.cvt-wizard__panel > label,
.cvt-wizard__panel fieldset > legend {
	display: block;
	margin: 0 0 0.85rem;
	padding: 0;
	font-family: var(--w-display);
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--w-navy);
	float: none;
	width: auto;
}

.cvt-wizard__panel fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-inline-size: 0;
}

.cvt-wizard__panel fieldset > legend {
	margin-bottom: 0.95rem;
}

.cvt-wizard__panel > label {
	margin-top: 1rem;
	font-size: 0.95rem;
	letter-spacing: 0;
}

.cvt-wizard__panel > label:first-of-type {
	margin-top: 0;
}

/* Option cards */
.cvt-wizard__cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
	gap: 0.7rem;
	margin: 0 0 0.35rem;
}

.cvt-wizard__card {
	position: relative;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	cursor: pointer;
	font-weight: 600 !important;
}

.cvt-wizard__card input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.cvt-wizard__card-face {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-height: 4.75rem;
	padding: 1rem 0.95rem;
	border: 1.5px solid var(--w-line);
	border-radius: var(--w-radius);
	background: var(--w-white);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cvt-wizard__card-title {
	font-family: var(--w-accent);
	font-size: 1rem;
	font-weight: 700;
	color: var(--w-navy);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.cvt-wizard__card-meta {
	font-size: 0.85rem;
	font-weight: 500;
	color: var(--w-muted);
	line-height: 1.35;
}

.cvt-wizard__card:hover .cvt-wizard__card-face {
	border-color: rgba(43, 173, 224, 0.65);
}

.cvt-wizard__card input:focus-visible + .cvt-wizard__card-face {
	outline: 3px solid rgba(43, 173, 224, 0.45);
	outline-offset: 2px;
}

.cvt-wizard__card input:checked + .cvt-wizard__card-face {
	border-color: var(--w-blue);
	background: rgba(43, 173, 224, 0.1);
	box-shadow: inset 0 0 0 1px var(--w-blue);
}

.cvt-wizard__card--compact .cvt-wizard__card-face {
	min-height: 3.25rem;
	justify-content: center;
}

/* Text inputs */
.cvt-wizard__panel input[type="text"],
.cvt-wizard__panel input[type="email"],
.cvt-wizard__panel input[type="tel"],
.cvt-wizard__panel input[type="number"],
.cvt-wizard__panel textarea {
	width: 100%;
	min-height: 52px;
	padding: 0.7rem 0.95rem;
	margin: 0 0 0.15rem;
	border: 1.5px solid var(--w-line);
	border-radius: var(--w-radius);
	background: var(--w-white);
	color: var(--w-navy);
	font: inherit;
	font-size: 1.05rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cvt-wizard__panel textarea {
	min-height: 7.5rem;
	resize: vertical;
}

.cvt-wizard__panel input:hover,
.cvt-wizard__panel textarea:hover {
	border-color: rgba(16, 34, 53, 0.28);
}

.cvt-wizard__panel input:focus,
.cvt-wizard__panel textarea:focus {
	outline: none;
	border-color: var(--w-blue);
	box-shadow: 0 0 0 4px rgba(43, 173, 224, 0.2);
}

.cvt-wizard__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.85rem;
	margin-bottom: 0.35rem;
}

.cvt-wizard__field {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.cvt-wizard__field > span {
	font-family: var(--w-display);
	font-size: 0.95rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--w-navy);
}

/* Consent checkbox */
.cvt-wizard__consent {
	display: flex !important;
	align-items: flex-start;
	gap: 0.75rem;
	margin: 1.1rem 0 0 !important;
	padding: 0.95rem 1rem;
	border: 1.5px solid var(--w-line);
	border-radius: var(--w-radius);
	background: var(--w-wash);
	font-weight: 500 !important;
	cursor: pointer;
}

.cvt-wizard__consent input {
	width: 1.15rem !important;
	height: 1.15rem !important;
	min-height: 0 !important;
	margin: 0.15rem 0 0 !important;
	accent-color: var(--w-blue-dark);
	flex-shrink: 0;
}

.cvt-wizard__hint {
	margin: 0.45rem 0 0.85rem;
	color: var(--w-muted);
	font-size: 0.9rem;
	line-height: 1.4;
}

.cvt-wizard__lede {
	margin: 0 0 1rem;
	color: var(--w-muted);
	font-size: 1rem;
}

.cvt-wizard__error {
	color: #a22121;
	margin: 0.75rem 0;
	font-weight: 600;
	font-size: 0.95rem;
}

.cvt-wizard__success {
	margin: 0.85rem 0;
	padding: 0.9rem 1rem;
	background: #e6f4ec;
	color: #176b46;
	border-radius: var(--w-radius);
	font-weight: 600;
}

.cvt-wizard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.5rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--w-line);
}

.cvt-wizard .cvt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.7rem 1.35rem;
	border-radius: var(--w-radius);
	font-family: var(--w-display);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	border: 1.5px solid transparent;
	cursor: pointer;
	text-decoration: none;
}

.cvt-wizard .cvt-btn--primary {
	background: var(--w-blue);
	color: var(--w-navy);
	border-color: var(--w-blue);
}

.cvt-wizard .cvt-btn--primary:hover,
.cvt-wizard .cvt-btn--primary:focus-visible {
	background: #2396c4;
	border-color: #2396c4;
}

.cvt-wizard .cvt-btn--ghost {
	background: var(--w-white);
	color: var(--w-navy);
	border-color: var(--w-line);
}

.cvt-wizard .cvt-btn--ghost:hover,
.cvt-wizard .cvt-btn--ghost:focus-visible {
	border-color: var(--w-navy);
}

.cvt-wizard__summary {
	margin: 0;
	padding: 0;
	list-style: none;
	border: 1.5px solid var(--w-line);
	border-radius: var(--w-radius);
	overflow: hidden;
}

.cvt-wizard__summary li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--w-line);
	background: var(--w-white);
}

.cvt-wizard__summary li:last-child {
	border-bottom: 0;
}

.cvt-wizard__total {
	font-family: var(--w-accent);
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--w-navy);
	margin: 1.15rem 0 0;
}

.cvt-wizard__loading[aria-busy="true"]::after {
	content: " …";
}

@media (max-width: 640px) {
	.cvt-wizard__progress {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 0.2rem;
	}

	.cvt-wizard__progress li {
		font-size: 0.62rem;
	}

	.cvt-wizard__row {
		grid-template-columns: 1fr;
	}

	.cvt-wizard__actions .cvt-btn {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cvt-wizard__panel {
		animation: none;
	}
}
