/**
 * Quote calculator page — interactive, futuristic layout.
 */

.ll-quote-page {
	--ll-accent-blue: #5b9cff;
	--ll-glass: rgba(18, 26, 43, 0.82);
	--ll-glass-border: rgba(148, 163, 184, 0.16);
	--ll-glow-gold: rgba(232, 163, 23, 0.35);
	--ll-glow-blue: rgba(91, 156, 255, 0.28);
}

/* Hero */
.ll-quote-hero {
	position: relative;
	padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2rem);
	overflow: hidden;
	background:
		radial-gradient(ellipse 80% 60% at 15% 20%, rgba(232, 163, 23, 0.16), transparent 55%),
		radial-gradient(ellipse 70% 50% at 88% 70%, rgba(91, 156, 255, 0.12), transparent 50%),
		var(--ll-canvas-deep);
}

.ll-quote-hero__ambient {
	position: absolute;
	inset: 0;
	pointer-events: none;
	overflow: hidden;
}

.ll-quote-hero__mesh {
	position: absolute;
	inset: 0;
	opacity: 0.35;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.07) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.07) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse 90% 80% at 50% 40%, #000 20%, transparent 75%);
}

.ll-quote-hero__orb {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
}

.ll-quote-hero__orb--gold {
	width: min(380px, 50vw);
	height: min(380px, 50vw);
	top: 8%;
	left: -10%;
	background: var(--ll-glow-gold);
	animation: ll-quote-orb 14s ease-in-out infinite;
}

.ll-quote-hero__orb--blue {
	width: min(320px, 42vw);
	height: min(320px, 42vw);
	bottom: 0;
	right: -8%;
	background: var(--ll-glow-blue);
	animation: ll-quote-orb 18s ease-in-out infinite reverse;
}

@keyframes ll-quote-orb {
	0%,
	100% {
		transform: translate(0, 0) scale(1);
	}
	50% {
		transform: translate(20px, -16px) scale(1.05);
	}
}

.ll-quote-hero__inner {
	position: relative;
	z-index: 1;
}

.ll-quote-hero-note {
	margin-top: var(--ll-space-md);
	color: var(--ll-muted);
	font-size: 0.92rem;
}

.ll-quote-section {
	padding-top: 0;
	margin-top: calc(var(--ll-space-xl) * -0.5);
}

/* Shell */
.ll-quote-shell {
	position: relative;
	max-width: 52rem;
	margin: 0 auto;
}

.ll-quote-shell::before {
	content: "";
	position: absolute;
	inset: -1px;
	border-radius: calc(var(--ll-radius) * 2.5);
	background: linear-gradient(135deg, rgba(232, 163, 23, 0.45), rgba(91, 156, 255, 0.25), rgba(232, 163, 23, 0.2));
	opacity: 0.55;
	filter: blur(0.5px);
	pointer-events: none;
}

.ll-quote-wizard {
	position: relative;
	max-width: none;
	margin: 0;
	padding: clamp(1.25rem, 3vw, 1.75rem);
	border-radius: calc(var(--ll-radius) * 2.5);
	background: var(--ll-glass);
	border: 1px solid var(--ll-glass-border);
	box-shadow:
		0 24px 60px rgba(0, 0, 0, 0.35),
		inset 0 1px 0 rgba(255, 255, 255, 0.04);
	backdrop-filter: blur(14px);
}

.ll-quote-wizard__header {
	margin-bottom: var(--ll-space-lg);
}

.ll-quote-wizard__progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.65rem;
	font-size: 0.82rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.ll-quote-wizard__step-label {
	color: var(--ll-accent);
	font-weight: 700;
}

.ll-quote-wizard__step-count {
	color: var(--ll-muted);
}

.ll-quote-wizard__progress {
	position: relative;
	height: 6px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	overflow: hidden;
}

.ll-quote-wizard__progress-fill {
	height: 100%;
	border-radius: inherit;
	background: linear-gradient(90deg, var(--ll-accent), var(--ll-accent-blue));
	box-shadow: 0 0 18px rgba(232, 163, 23, 0.45);
	transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ll-quote-wizard__body {
	min-height: 18rem;
}

.ll-quote-panel {
	display: none;
	padding: clamp(1rem, 2.5vw, 1.35rem);
	border-radius: calc(var(--ll-radius) * 1.75);
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(148, 163, 184, 0.1);
}

.ll-quote-panel.is-active {
	display: block;
}

.ll-quote-panel.is-entering {
	animation: ll-quote-panel-in 0.34s ease;
}

.ll-quote-panel.is-invalid {
	animation: ll-quote-shake 0.45s ease;
	border-color: rgba(239, 68, 68, 0.45);
}

@keyframes ll-quote-panel-in {
	from {
		opacity: 0;
		transform: translateY(10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes ll-quote-shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20%,
	60% {
		transform: translateX(-6px);
	}
	40%,
	80% {
		transform: translateX(6px);
	}
}

.ll-quote-panel__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: var(--ll-space-sm);
}

.ll-quote-panel__badge,
.ll-quote-panel__count {
	display: inline-flex;
	align-items: center;
	padding: 0.28rem 0.65rem;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ll-quote-panel__badge {
	color: var(--ll-accent-blue);
	background: rgba(91, 156, 255, 0.12);
	border: 1px solid rgba(91, 156, 255, 0.22);
}

.ll-quote-panel__count {
	color: var(--ll-muted);
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--ll-border);
}

.ll-quote-panel h2 {
	margin-top: 0;
	font-size: clamp(1.2rem, 2.4vw, 1.45rem);
	line-height: 1.35;
}

.ll-quote-panel__lead,
.ll-quote-panel__hint {
	margin: var(--ll-space-md) 0 0;
	color: var(--ll-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

/* Choice options */
.ll-quote-options {
	display: grid;
	gap: 0.75rem;
	margin: var(--ll-space-lg) 0 0;
}

@media (min-width: 640px) {
	.ll-quote-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ll-quote-option {
	display: flex;
	align-items: flex-start;
	gap: 0.85rem;
	width: 100%;
	padding: 0.95rem 1rem;
	border: 1px solid var(--ll-border);
	border-radius: calc(var(--ll-radius) * 1.25);
	background: rgba(11, 18, 32, 0.55);
	color: var(--ll-ink);
	text-align: left;
	cursor: pointer;
	transition:
		border-color var(--ll-transition),
		background var(--ll-transition),
		box-shadow var(--ll-transition),
		transform var(--ll-transition);
}

.ll-quote-option:hover,
.ll-quote-option:focus-visible {
	border-color: rgba(91, 156, 255, 0.45);
	background: rgba(91, 156, 255, 0.06);
	outline: none;
}

.ll-quote-option.is-selected {
	border-color: rgba(232, 163, 23, 0.55);
	background: rgba(232, 163, 23, 0.08);
	box-shadow: 0 0 0 1px rgba(232, 163, 23, 0.15), 0 12px 30px rgba(232, 163, 23, 0.08);
	transform: translateY(-1px);
}

.ll-quote-option__key {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.75rem;
	height: 1.75rem;
	border-radius: 0.45rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ll-accent-blue);
	background: rgba(91, 156, 255, 0.12);
	border: 1px solid rgba(91, 156, 255, 0.22);
}

.ll-quote-option.is-selected .ll-quote-option__key {
	color: var(--ll-accent);
	background: rgba(232, 163, 23, 0.15);
	border-color: rgba(232, 163, 23, 0.35);
}

.ll-quote-option__copy strong {
	display: block;
	margin-bottom: 0.15rem;
	font-size: 0.95rem;
}

.ll-quote-option__copy span {
	display: block;
	color: var(--ll-muted);
	font-size: 0.84rem;
	line-height: 1.45;
}

/* Feature grid */
.ll-quote-feature-grid {
	display: grid;
	gap: 0.65rem;
	margin: var(--ll-space-lg) 0 0;
}

@media (min-width: 640px) {
	.ll-quote-feature-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

.ll-quote-feature {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.85rem 0.95rem;
	border: 1px solid var(--ll-border);
	border-radius: calc(var(--ll-radius) * 1.15);
	background: rgba(11, 18, 32, 0.55);
	cursor: pointer;
	transition:
		border-color var(--ll-transition),
		background var(--ll-transition),
		box-shadow var(--ll-transition);
}

.ll-quote-feature input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.ll-quote-feature__box {
	flex-shrink: 0;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 0.3rem;
	border: 1px solid var(--ll-border);
	background: rgba(255, 255, 255, 0.03);
	transition:
		border-color var(--ll-transition),
		background var(--ll-transition),
		box-shadow var(--ll-transition);
}

.ll-quote-feature__box::after {
	content: "";
	display: block;
	width: 100%;
	height: 100%;
	background: center / 0.65rem no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b1220' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
	opacity: 0;
}

.ll-quote-feature.is-selected,
.ll-quote-feature:has(input:checked) {
	border-color: rgba(232, 163, 23, 0.45);
	background: rgba(232, 163, 23, 0.06);
}

.ll-quote-feature.is-selected .ll-quote-feature__box,
.ll-quote-feature:has(input:checked) .ll-quote-feature__box {
	background: var(--ll-accent);
	border-color: var(--ll-accent);
	box-shadow: 0 0 12px rgba(232, 163, 23, 0.35);
}

.ll-quote-feature.is-selected .ll-quote-feature__box::after,
.ll-quote-feature:has(input:checked) .ll-quote-feature__box::after {
	opacity: 1;
}

.ll-quote-feature__label {
	font-size: 0.92rem;
	color: var(--ll-ink);
}

/* Summary + contact */
.ll-quote-panel--contact {
	text-align: center;
}

.ll-quote-panel--contact h2,
.ll-quote-panel--contact > p {
	text-align: center;
}

.ll-quote-summary {
	display: grid;
	gap: 0.55rem;
	max-width: 32rem;
	margin: var(--ll-space-lg) auto;
	padding: var(--ll-space-lg);
	border-radius: calc(var(--ll-radius) * 1.25);
	background: rgba(232, 163, 23, 0.06);
	border: 1px solid rgba(232, 163, 23, 0.22);
	text-align: left;
}

.ll-quote-summary__row {
	display: grid;
	gap: 0.15rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ll-quote-summary__row:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.ll-quote-summary__label {
	color: var(--ll-muted);
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.ll-quote-summary__value {
	color: var(--ll-ink);
	font-size: 0.95rem;
	line-height: 1.45;
}

.ll-quote-contact-form {
	max-width: 28rem;
	margin: var(--ll-space-lg) auto 0;
	text-align: left;
}

.ll-quote-panel--contact .ll-form__fine {
	max-width: 28rem;
	margin: var(--ll-space-sm) auto 0;
	text-align: left;
}

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

/* Actions + alert */
.ll-quote-wizard__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: space-between;
	margin-top: var(--ll-space-lg);
}

.ll-quote-wizard__alert {
	margin: var(--ll-space-md) 0 0;
	padding: 0.75rem 0.95rem;
	border-radius: var(--ll-radius);
	font-size: 0.88rem;
	color: #fecaca;
	background: rgba(239, 68, 68, 0.12);
	border: 1px solid rgba(239, 68, 68, 0.35);
}

.ll-quote-wizard__alert[hidden],
.ll-quote-wizard [hidden] {
	display: none !important;
}

.ll-quote-wizard.is-alert .ll-quote-wizard__actions {
	margin-top: var(--ll-space-sm);
}

.ll-quote-wizard button[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* Success state */
.ll-quote-success {
	max-width: 36rem;
	margin: 0 auto;
	text-align: center;
	padding: var(--ll-space-2xl) var(--ll-space-lg);
	border-radius: calc(var(--ll-radius) * 2.5);
	background: var(--ll-glass);
	border: 1px solid var(--ll-glass-border);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.ll-quote-success__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 4rem;
	height: 4rem;
	margin-bottom: var(--ll-space-md);
	border-radius: 999px;
	color: var(--ll-accent);
	background: rgba(232, 163, 23, 0.12);
	border: 1px solid rgba(232, 163, 23, 0.28);
}

.ll-quote-success__list {
	list-style: none;
	padding: 0;
	margin: var(--ll-space-lg) 0;
	text-align: left;
}

.ll-quote-success__list li {
	position: relative;
	padding: 0.55rem 0 0.55rem 1.35rem;
	color: var(--ll-text);
}

.ll-quote-success__list li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.95rem;
	width: 0.45rem;
	height: 0.45rem;
	border-radius: 999px;
	background: var(--ll-accent);
	box-shadow: 0 0 10px rgba(232, 163, 23, 0.45);
}

@media (prefers-reduced-motion: reduce) {
	.ll-quote-hero__orb,
	.ll-quote-panel.is-entering,
	.ll-quote-wizard__progress-fill {
		animation: none;
		transition: none;
	}
}
