/* ==========================================================================
   Chauffeur Booking — Public Styles
   Palette: near-black + brushed gold, evoking an executive car service.
   ========================================================================== */

.cb-wrap {
	--cb-black: #101012;
	--cb-charcoal: #1b1b1f;
	--cb-charcoal-2: #232328;
	--cb-gold: #c6a15b;
	--cb-gold-light: #e6cc94;
	--cb-white: #f6f4f1;
	--cb-gray: #9a9a9f;
	--cb-line: #2e2e33;
	--cb-error: #e2685c;
	--cb-radius: 4px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
	box-sizing: border-box;
	max-width: 640px;
	margin: 0 auto;
}
.cb-wrap *, .cb-wrap *::before, .cb-wrap *::after { box-sizing: border-box; }

.cb-card {
	background: var(--cb-black);
	color: var(--cb-white);
	border: 1px solid var(--cb-line);
	border-radius: var(--cb-radius);
	padding: 32px;
}

.cb-header { margin-bottom: 20px; }
.cb-eyebrow {
	font-size: 11px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: var(--cb-gold);
	margin: 0 0 6px;
	font-weight: 600;
}
.cb-title {
	font-family: Georgia, "Times New Roman", serif;
	font-size: 28px;
	line-height: 1.15;
	margin: 0;
	color: var(--cb-white);
	font-weight: 400;
	letter-spacing: 0.01em;
}

/* Signature element: animated route line with a travelling car glyph */
.cb-route {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 22px 0 18px;
}
.cb-route-point {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--cb-gray);
	flex: none;
}
.cb-route-pickup { background: var(--cb-gold); }
.cb-route-line {
	position: relative;
	flex: 1;
	height: 1px;
	background: var(--cb-line);
}
.cb-route-fill {
	position: absolute;
	left: 0; top: 0;
	height: 1px;
	width: 0%;
	background: var(--cb-gold);
	transition: width 0.6s ease;
}
.cb-route-car {
	position: absolute;
	top: -9px;
	left: 0%;
	transform: translateX(-50%);
	font-size: 15px;
	transition: left 0.6s ease;
	filter: grayscale(1) brightness(1.6);
}

.cb-steps {
	display: flex;
	gap: 4px;
	margin-bottom: 24px;
	border-bottom: 1px solid var(--cb-line);
	padding-bottom: 12px;
}
.cb-step {
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--cb-gray);
	padding: 4px 0;
	flex: 1;
	text-align: center;
	border-bottom: 2px solid transparent;
}
.cb-step.is-active { color: var(--cb-gold-light); border-color: var(--cb-gold); }
.cb-step.is-done { color: var(--cb-gold); }

.cb-alert {
	background: rgba(226, 104, 92, 0.12);
	border: 1px solid var(--cb-error);
	color: #f3c9c4;
	padding: 10px 14px;
	border-radius: var(--cb-radius);
	font-size: 13px;
	margin-bottom: 16px;
}

.cb-panel { display: none; }
.cb-panel.is-active { display: block; animation: cb-fade 0.35s ease; }
@keyframes cb-fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.cb-field { margin-bottom: 16px; }
.cb-field-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.cb-field label {
	display: block;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: var(--cb-gray);
	margin-bottom: 6px;
	text-transform: uppercase;
}
.cb-input {
	width: 100%;
	background: transparent;
	border: none;
	border-bottom: 1px solid var(--cb-line);
	color: var(--cb-white);
	font-size: 15px;
	padding: 8px 2px;
	outline: none;
	transition: border-color 0.2s ease;
	font-family: inherit;
}
.cb-input:focus { border-color: var(--cb-gold); }
.cb-input::placeholder { color: #6a6a6f; }
textarea.cb-input { resize: vertical; }

.cb-panel-hint { color: var(--cb-gray); font-size: 13px; margin: 0 0 16px; }

.cb-btn {
	font-family: inherit;
	font-size: 13px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	padding: 13px 22px;
	border-radius: var(--cb-radius);
	border: 1px solid transparent;
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 600;
}
.cb-btn-primary {
	background: var(--cb-gold);
	color: #171712;
	width: 100%;
}
.cb-btn-primary:hover { background: var(--cb-gold-light); }
.cb-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.cb-btn-ghost {
	background: transparent;
	color: var(--cb-gray);
	border-color: var(--cb-line);
}
.cb-btn-ghost:hover { color: var(--cb-white); border-color: var(--cb-gray); }

.cb-actions {
	display: flex;
	gap: 12px;
	margin-top: 8px;
}
.cb-actions .cb-btn-primary { flex: 1; }
.cb-actions .cb-btn-ghost { flex: none; }

/* Vehicle cards */
.cb-vehicles { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.cb-vehicle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	border: 1px solid var(--cb-line);
	border-radius: var(--cb-radius);
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color 0.2s ease, background 0.2s ease;
}
.cb-vehicle:hover { border-color: var(--cb-gray); }
.cb-vehicle.is-selected { border-color: var(--cb-gold); background: rgba(198,161,91,0.08); }
.cb-vehicle-name { font-size: 15px; font-weight: 600; margin: 0 0 2px; }
.cb-vehicle-meta { font-size: 12px; color: var(--cb-gray); margin: 0; }
.cb-vehicle-fare { font-size: 18px; font-weight: 700; color: var(--cb-gold-light); white-space: nowrap; }
.cb-loading { color: var(--cb-gray); font-size: 13px; padding: 20px 0; text-align: center; }

.cb-summary, .cb-pay-summary {
	background: var(--cb-charcoal);
	border: 1px solid var(--cb-line);
	border-radius: var(--cb-radius);
	padding: 14px 16px;
	font-size: 13px;
	color: var(--cb-gray);
	margin-bottom: 18px;
	line-height: 1.6;
}
.cb-summary strong, .cb-pay-summary strong { color: var(--cb-white); }

.cb-card-element {
	background: var(--cb-charcoal-2);
	border: 1px solid var(--cb-line);
	border-radius: var(--cb-radius);
	padding: 12px;
}
.cb-card-errors { color: var(--cb-error); font-size: 12px; margin-top: 6px; min-height: 16px; }

.cb-confirmation { text-align: center; padding: 20px 0; }
.cb-confirmation-mark {
	width: 52px; height: 52px;
	border-radius: 50%;
	border: 1px solid var(--cb-gold);
	color: var(--cb-gold);
	font-size: 24px;
	display: flex; align-items: center; justify-content: center;
	margin: 0 auto 16px;
}
.cb-confirmation h3 { font-family: Georgia, serif; font-weight: 400; margin: 0 0 8px; }
#cb-confirmation-ref { color: var(--cb-gold-light); font-size: 15px; margin: 0 0 4px; }

/* Mobile responsiveness */
@media (max-width: 560px) {
	.cb-card { padding: 20px; border-radius: 0; }
	.cb-title { font-size: 22px; }
	.cb-field-row { grid-template-columns: 1fr; gap: 0; }
	.cb-step { font-size: 9.5px; }
	.cb-vehicle { flex-direction: column; align-items: flex-start; gap: 6px; }
	.cb-vehicle-fare { font-size: 20px; }
}
