/**
 * Airport Taxi Booking — front-end widget (light brand theme).
 *
 * Scoped under .atb-booking so it never leaks into the host theme.
 * BRAND COLOURS: change the three variables below to match your brand.
 *   --atb-primary : headings, dots, journey rail  (deep navy blue)
 *   --atb-accent  : call-to-action buttons          (taxi yellow)
 * Everything else is derived neutrals.
 */

.atb-booking {
	/* ---- Brand colours (edit these) ---- */
	--atb-primary: #0a2a53;
	--atb-accent: #f5b301;
	--atb-accent-ink: #1a1400;

	/* ---- Neutrals (light card) ---- */
	--atb-bg: #ffffff;
	--atb-surface: #ffffff;
	--atb-surface-2: #f3f6fb;
	--atb-line: #dde5f0;
	--atb-text: #13233d;
	--atb-muted: #6b7a90;
	--atb-danger: #d64545;
	--atb-radius: 14px;
	--atb-gap: 12px;

	max-width: 480px;
	margin: 0 auto;
	color: var(--atb-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.atb-booking *,
.atb-booking *::before,
.atb-booking *::after { box-sizing: border-box; }

.atb-card {
	background: var(--atb-surface);
	border: 1px solid var(--atb-line);
	border-radius: var(--atb-radius);
	padding: 22px 22px 20px;
	box-shadow: 0 18px 50px -22px rgba(10, 42, 83, 0.45);
}

.atb-card__title {
	margin: 2px 0 16px;
	font-size: 1.2rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--atb-primary);
}

/* ---- Progress rail ---- */
.atb-rail {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.atb-rail__step {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	position: relative;
	color: var(--atb-muted);
	font-size: 0.66rem;
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.atb-rail__dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #fff;
	border: 2px solid var(--atb-line);
	position: relative;
	z-index: 1;
	transition: all 0.25s ease;
}
.atb-rail__step::before {
	content: "";
	position: absolute;
	top: 5px;
	left: -50%;
	width: 100%;
	height: 2px;
	background: repeating-linear-gradient(90deg, var(--atb-line) 0 5px, transparent 5px 10px);
	z-index: 0;
}
.atb-rail__step:first-child::before { display: none; }
.atb-rail__step.is-active .atb-rail__dot {
	background: var(--atb-accent);
	border-color: var(--atb-accent);
	transform: scale(1.15);
	box-shadow: 0 0 0 4px rgba(245, 179, 1, 0.2);
}
.atb-rail__step.is-done .atb-rail__dot { background: var(--atb-primary); border-color: var(--atb-primary); }
.atb-rail__step.is-active .atb-rail__label { color: var(--atb-primary); font-weight: 600; }

/* ---- Steps ---- */
.atb-step { display: none; animation: atb-fade 0.25s ease both; }
.atb-step.is-active { display: block; }
@keyframes atb-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ---- Fields ---- */
.atb-field { margin-bottom: var(--atb-gap); }
.atb-field label { display: block; margin-bottom: 4px; font-size: 0.78rem; color: var(--atb-muted); font-weight: 600; }
.atb-muted { color: var(--atb-muted); font-weight: 400; }

.atb-input {
	width: 100%;
	padding: 10px 12px;
	background: var(--atb-surface-2);
	border: 1px solid var(--atb-line);
	border-radius: 9px;
	color: var(--atb-text);
	font-size: 0.95rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.atb-input::placeholder { color: #97a4b8; }
.atb-input:focus {
	outline: none;
	background: #fff;
	border-color: var(--atb-accent);
	box-shadow: 0 0 0 3px rgba(245, 179, 1, 0.18);
}

.atb-grid { display: grid; gap: var(--atb-gap); }
.atb-grid--2 { grid-template-columns: 1fr 1fr; }
.atb-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Journey rail (signature) ---- */
.atb-journey { position: relative; padding-left: 24px; }
.atb-journey__mark { position: absolute; left: 3px; width: 11px; height: 11px; border-radius: 50%; z-index: 2; }
.atb-journey__mark--from { top: 30px; border: 2px solid var(--atb-accent); background: #fff; }
.atb-journey__mark--to { bottom: 30px; background: var(--atb-accent); }
.atb-journey::before {
	content: "";
	position: absolute;
	left: 8px; top: 38px; bottom: 38px;
	width: 2px;
	background: repeating-linear-gradient(180deg, var(--atb-line) 0 4px, transparent 4px 8px);
}
.atb-stops .atb-field { margin-bottom: 8px; }

/* ---- Toggles & steppers ---- */
.atb-toggle { display: flex; align-items: center; gap: 9px; margin: 8px 0; font-size: 0.9rem; cursor: pointer; }
.atb-toggle input { width: 17px; height: 17px; accent-color: var(--atb-accent); }

.atb-stepper { display: flex; align-items: center; border: 1px solid var(--atb-line); border-radius: 9px; overflow: hidden; background: var(--atb-surface-2); }
.atb-stepper button { width: 38px; height: 40px; border: 0; background: transparent; color: var(--atb-primary); font-size: 1.1rem; cursor: pointer; transition: background 0.15s ease; }
.atb-stepper button:hover { background: #e9eef6; }
.atb-stepper input { flex: 1; width: 100%; border: 0; background: transparent; color: var(--atb-text); text-align: center; font-size: 0.95rem; }

.atb-link { background: none; border: 0; color: var(--atb-primary); cursor: pointer; padding: 2px 0 10px; font-size: 0.85rem; font-weight: 600; }

/* ---- Actions & buttons ---- */
.atb-actions { display: flex; gap: 10px; margin-top: 16px; }
.atb-btn { flex: 1; padding: 12px 16px; border: 0; border-radius: 10px; font-size: 0.98rem; font-weight: 700; cursor: pointer; transition: transform 0.12s ease, background 0.2s ease, opacity 0.2s ease; }
.atb-btn:active { transform: translateY(1px); }
.atb-btn--primary { background: var(--atb-accent); color: var(--atb-accent-ink); }
.atb-btn--primary:hover { background: #ffc326; }
.atb-btn--ghost { background: #fff; color: var(--atb-primary); border: 1px solid var(--atb-line); flex: 0 0 auto; padding-inline: 20px; }
.atb-btn[disabled] { opacity: 0.55; cursor: progress; }

/* ---- Alert ---- */
.atb-alert { background: #fdecec; border: 1px solid #f5c2c2; color: #a12a2a; padding: 11px 13px; border-radius: 9px; margin-bottom: 14px; font-size: 0.88rem; }

/* ---- Fleets ---- */
.atb-trip-summary { color: var(--atb-muted); font-size: 0.88rem; margin: 0 0 14px; }
.atb-fleets { display: flex; flex-direction: column; gap: 10px; }
.atb-fleet {
	display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center;
	padding: 12px; background: var(--atb-surface-2); border: 1px solid var(--atb-line); border-radius: 11px;
	animation: atb-fade 0.25s ease both;
}
.atb-fleet__img { width: 84px; height: 56px; object-fit: cover; border-radius: 7px; background: #e9eef6; }
.atb-fleet__name { font-weight: 700; color: var(--atb-primary); }
.atb-fleet__meta { color: var(--atb-muted); font-size: 0.8rem; margin-top: 2px; }
.atb-fleet__right { text-align: right; }
.atb-fleet__price { font-size: 1.2rem; font-weight: 800; color: var(--atb-primary); letter-spacing: -0.01em; }
.atb-fleet__select { margin-top: 6px; padding: 7px 15px; border: 0; border-radius: 8px; background: var(--atb-accent); color: var(--atb-accent-ink); font-weight: 700; cursor: pointer; }

/* ---- Confirm summary ---- */
.atb-summary { background: var(--atb-surface-2); border: 1px solid var(--atb-line); border-radius: 11px; padding: 14px; margin-bottom: 16px; }
.atb-summary__row { display: flex; justify-content: space-between; padding: 3px 0; font-size: 0.9rem; }
.atb-summary__row--total { border-top: 1px solid var(--atb-line); margin-top: 6px; padding-top: 9px; font-weight: 800; font-size: 1.02rem; color: var(--atb-primary); }
.atb-fineprint { margin-top: 12px; font-size: 0.78rem; color: var(--atb-muted); text-align: center; }

/* ---- Success ---- */
.atb-done { text-align: center; padding: 16px 0; }
.atb-done__tick { width: 58px; height: 58px; margin: 0 auto 12px; border-radius: 50%; background: var(--atb-accent); color: var(--atb-accent-ink); font-size: 1.8rem; line-height: 58px; font-weight: 700; }
.atb-done h3 { color: var(--atb-primary); margin: 0 0 6px; }

/* ---- Responsive ---- */
@media (max-width: 520px) {
	.atb-card { padding: 18px; }
	.atb-grid--3 { grid-template-columns: 1fr 1fr; }
	.atb-fleet { grid-template-columns: 64px 1fr; }
	.atb-fleet__img { width: 64px; height: 46px; }
	.atb-fleet__right { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
	.atb-fleet__select { margin-top: 0; }
	.atb-rail__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.atb-booking *, .atb-booking *::before, .atb-booking *::after { animation: none !important; transition: none !important; }
}
