﻿:root {
	--bg: #0f172a;
	--panel: #111827;
	--panel-2: #1f2937;
	--text: #1b2124;
	--muted: #424242;
	--accent: #00a1b2;
	--accent-2: #22c55e;
	--road: #374151;
	--road-line: #fbbf24;
	--bay: #334155;
	--bay-dark: #cdfffd;
	--glass: rgba(56, 189, 248, 0.22);
	--shadow: rgba(0, 0, 0, 0.35);
}

.booking-loader-card {
	width: min(100%, 680px);
	margin: 0 auto;
	padding: 1.5rem;
	/*border-radius: 20px;*/
	/*background: linear-gradient(180deg, var(--panel) 0%, #0b1220 100%);*/
	color: var(--text);
	/*box-shadow: 0 18px 50px var(--shadow);*/
	/*border: 1px solid rgba(255, 255, 255, 0.06);*/
}

.booking-loader-title {
	font-size: 1.4rem;
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.booking-loader-subtitle {
	color: var(--muted);
	line-height: 1.5;
	margin-bottom: 1.25rem;
}

.fitment-scene {
	position: relative;
	height: 240px;
	overflow: hidden;
	border-radius: 16px;
	background: linear-gradient(180deg, #18f0f8 0%, #a1ffff 45%, #18f0f8 100%);
	margin-bottom: 1rem;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.sky {
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.08), transparent 18%), radial-gradient(circle at 75% 15%, rgba(255,255,255,0.05), transparent 14%);
}

.bay {
	position: absolute;
	right: 40px;
	bottom: 52px;
	width: 240px;
	height: 130px;
	background: linear-gradient(180deg, var(--bay) 0%, var(--bay-dark) 100%);
	border-radius: 10px 10px 6px 6px;
	box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.bay-roof {
	position: absolute;
	top: -18px;
	left: -8px;
	right: -8px;
	height: 22px;
	background: #475569;
	border-radius: 8px 8px 0 0;
}

.bay-sign {
	position: absolute;
	top: -48px;
	left: 50%;
	transform: translateX(-50%);
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	background: rgba(15, 23, 42, 0.88);
	color: #e2e8f0;
	font-size: 0.72rem;
	letter-spacing: 0.08em;
	font-weight: 700;
	border: 1px solid rgba(255,255,255,0.08);
}

.bay-opening {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 0;
	height: 92px;
	background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
	border-radius: 8px 8px 0 0;
	box-shadow: inset 0 0 25px rgba(0,0,0,0.35);
}

.road {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 58px;
	background: linear-gradient(180deg, #4b5563 0%, var(--road) 100%);
}

.road-line {
	position: absolute;
	bottom: 26px;
	width: 48px;
	height: 6px;
	background: var(--road-line);
	border-radius: 999px;
	animation: roadMove 1.3s linear infinite;
	opacity: 0.9;
}

.line-1 {
	left: 10%;
	animation-delay: 0s;
}

.line-2 {
	left: 40%;
	animation-delay: 0.25s;
}

.line-3 {
	left: 70%;
	animation-delay: 0.5s;
}

.car {
	position: absolute;
	left: -140px;
	bottom: 44px;
	width: 126px;
	height: 56px;
	animation: carJourney 12s ease-in-out infinite;
}

.car-body {
	position: absolute;
	left: 12px;
	bottom: 10px;
	width: 102px;
	height: 26px;
	background: linear-gradient(180deg, #ef4444 0%, #b91c1c 100%);
	border-radius: 16px 20px 10px 12px;
	box-shadow: 0 5px 12px rgba(0,0,0,0.25);
}

.car-cabin {
	position: absolute;
	left: 36px;
	bottom: 26px;
	width: 44px;
	height: 18px;
	background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
	border-radius: 12px 14px 2px 2px;
}

.car-window {
	position: absolute;
	left: 42px;
	bottom: 30px;
	width: 30px;
	height: 10px;
	background: linear-gradient(135deg, rgba(255,255,255,0.7), rgba(186,230,253,0.35));
	border-radius: 8px 8px 2px 2px;
}

.car-headlight {
	position: absolute;
	right: 8px;
	bottom: 18px;
	width: 10px;
	height: 6px;
	background: #fde68a;
	border-radius: 4px;
	box-shadow: 0 0 10px rgba(253, 230, 138, 0.8);
}

.wheel {
	position: absolute;
	bottom: 0;
	width: 24px;
	height: 24px;
	background: #111827;
	border-radius: 50%;
	border: 4px solid #94a3b8;
	animation: wheelSpin 0.8s linear infinite;
}

	.wheel::after {
		content: "";
		position: absolute;
		inset: 6px;
		border-radius: 50%;
		background: #475569;
	}

.wheel-front {
	right: 14px;
}

.wheel-back {
	left: 18px;
}

.glass-shine {
	position: absolute;
	left: 54px;
	bottom: 20px;
	width: 120px;
	height: 74px;
	border-radius: 10px;
	background: linear-gradient(110deg, transparent 0%, transparent 36%, rgba(255,255,255,0.08) 45%, rgba(125,211,252,0.35) 50%, rgba(255,255,255,0.08) 55%, transparent 64%, transparent 100%);
	opacity: 0;
	animation: glassShine 12s ease-in-out infinite;
	pointer-events: none;
}

.paperwork-card {
	position: absolute;
	right: 18px;
	top: 22px;
	width: 58px;
	height: 74px;
	background: #f8fafc;
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(0,0,0,0.22);
	opacity: 0;
	transform: translateY(12px) scale(0.95);
	animation: paperworkPop 12s ease-in-out infinite;
}

.paperwork-line {
	height: 6px;
	margin: 10px 10px 0;
	border-radius: 999px;
	background: #cbd5e1;
}

	.paperwork-line.short {
		width: 60%;
		background: #94a3b8;
	}

.reference-badge {
	position: absolute;
	left: 18px;
	top: 16px;
	padding: 0.35rem 0.55rem;
	border-radius: 999px;
	background: rgba(34, 197, 94, 0.18);
	color: #bbf7d0;
	border: 1px solid rgba(34, 197, 94, 0.35);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	opacity: 0;
	transform: scale(0.95);
	animation: refGlow 12s ease-in-out infinite;
}

.booking-loader-status {
	display: flex;
	justify-content: center;
	margin-bottom: 0.85rem;
}

.status-pill {
	padding: 0.6rem 0.9rem;
	border-radius: 999px;
	font-size: 0.95rem;
	font-weight: 600;
	background: #00a1b2;
	border: 1px solid rgba(56, 189, 248, 0.24);
	color: #125867;
	min-width: 280px;
	text-align: center;
}

.booking-loader-steps {
	display: grid;
	gap: 0.5rem;
}

.step {
	position: relative;
	padding: 0.75rem 0.9rem 0.75rem 2.4rem;
	border-radius: 12px;
	background: rgba(255,255,255,0.04);
	color: #053B47;
	border: 1px solid rgba(255,255,255,0.05);
}

	.step::before {
		content: "";
		position: absolute;
		left: 0.85rem;
		top: 50%;
		transform: translateY(-50%);
		width: 0.95rem;
		height: 0.95rem;
		border-radius: 50%;
		background: #475569;
	}

	.step.done {
		color: #088596;
		background: rgba(34, 197, 94, 0.08);
		border-color: rgba(34, 197, 94, 0.18);
	}

		.step.done::before {
			background: var(--accent-2);
			box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
		}

	.step.active {
		color: #088596;
		background: rgba(56, 189, 248, 0.08);
		border-color: rgba(56, 189, 248, 0.18);
	}

		.step.active::before {
			background: var(--accent);
			box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
			animation: pulse 1.5s ease-in-out infinite;
		}

@keyframes carJourney {
	0% {
		transform: translateX(0);
	}

	20% {
		transform: translateX(120px);
	}

	40% {
		transform: translateX(250px);
	}

	50% {
		transform: translateX(320px);
	}

	68% {
		transform: translateX(320px);
	}

	82% {
		transform: translateX(320px);
	}

	100% {
		transform: translateX(560px);
	}
}

@keyframes wheelSpin {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

@keyframes roadMove {
	0% {
		transform: translateX(0);
		opacity: 0.9;
	}

	100% {
		transform: translateX(-70px);
		opacity: 0.25;
	}
}

@keyframes glassShine {
	0%, 45% {
		opacity: 0;
	}

	50%, 62% {
		opacity: 1;
	}

	68%, 100% {
		opacity: 0;
	}
}

@keyframes paperworkPop {
	0%, 58% {
		opacity: 0;
		transform: translateY(12px) scale(0.95);
	}

	64%, 82% {
		opacity: 1;
		transform: translateY(0) scale(1);
	}

	100% {
		opacity: 0;
		transform: translateY(-4px) scale(1);
	}
}

@keyframes refGlow {
	0%, 72% {
		opacity: 0;
		transform: scale(0.95);
	}

	78%, 92% {
		opacity: 1;
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.35);
	}

	86% {
		box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
	}

	100% {
		opacity: 0;
		transform: scale(1.03);
	}
}

@keyframes pulse {
	0%, 100% {
		transform: translateY(-50%) scale(1);
	}

	50% {
		transform: translateY(-50%) scale(1.12);
	}
}

@media (prefers-reduced-motion: reduce) {
	.car,
	.wheel,
	.road-line,
	.glass-shine,
	.paperwork-card,
	.reference-badge,
	.step.active::before {
		animation: none !important;
	}
}
