/**
 * Frontend booking form – Limo Booking Pro
 */

.limo-booking-form {
	--limo-primary: #1d2327;
	--limo-accent: #2271b1;
	--limo-border: #dcdcde;
	--limo-bg: #f6f7f7;
	--limo-radius: 10px;
	max-width: 640px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1d2327;
	background: #fff;
	border: 1px solid var(--limo-border);
	border-radius: var(--limo-radius);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.limo-bf-progress {
	display: flex;
	background: var(--limo-primary);
	color: #fff;
}

.limo-bf-step-indicator {
	flex: 1;
	text-align: center;
	padding: 14px 8px;
	font-size: 13px;
	font-weight: 500;
	opacity: 0.55;
	border-bottom: 3px solid transparent;
}

.limo-bf-step-indicator span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	font-size: 12px;
	margin-right: 6px;
}

.limo-bf-step-indicator.active {
	opacity: 1;
	border-bottom-color: #72aee6;
}

.limo-bf-step-indicator.completed {
	opacity: 0.85;
}

.limo-bf-step-indicator.completed span {
	background: #00a32a;
}

.limo-bf-panel {
	display: none;
	padding: 28px 24px 24px;
}

.limo-bf-panel.active {
	display: block;
}

.limo-bf-title {
	margin: 0 0 20px;
	font-size: 1.25rem;
}

.limo-bf-field {
	margin-bottom: 16px;
}

.limo-bf-field label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	margin-bottom: 6px;
	color: #50575e;
}

.limo-bf-field .req {
	color: #d63638;
}

.limo-bf-field input[type="text"],
.limo-bf-field input[type="email"],
.limo-bf-field input[type="tel"],
.limo-bf-field input[type="number"],
.limo-bf-field input[type="datetime-local"],
.limo-bf-field textarea,
.limo-bf-field select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--limo-border);
	border-radius: 6px;
	font-size: 15px;
	line-height: 1.4;
	box-sizing: border-box;
	background: #fff;
	color: #1d2327;
}

.limo-bf-field input:focus,
.limo-bf-field textarea:focus {
	outline: none;
	border-color: var(--limo-accent);
	box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
}

.limo-bf-hint {
	font-size: 12px;
	color: #646970;
	margin: 6px 0 0;
}

.limo-bf-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.limo-bf-toggle {
	display: flex;
	gap: 8px;
}

.limo-bf-radio {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid var(--limo-border);
	border-radius: 6px;
	cursor: pointer;
	font-weight: 500;
	font-size: 14px;
}

.limo-bf-radio:has(input:checked) {
	border-color: var(--limo-accent);
	background: #f0f6fc;
}

.limo-bf-actions {
	display: flex;
	gap: 10px;
	margin-top: 24px;
	flex-wrap: wrap;
}

.limo-bf-btn {
	appearance: none;
	border: none;
	background: var(--limo-accent);
	color: #fff;
	padding: 12px 20px;
	border-radius: 6px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	line-height: 1.2;
}

.limo-bf-btn:hover {
	filter: brightness(1.05);
}

.limo-bf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.limo-bf-btn-secondary {
	background: #fff;
	color: #1d2327;
	border: 1px solid var(--limo-border);
}

.limo-bf-vehicles {
	display: grid;
	gap: 10px;
}

.limo-bf-vehicle {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 2px solid var(--limo-border);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color 0.15s, background 0.15s;
	text-align: left;
	background: #fff;
	width: 100%;
}

.limo-bf-vehicle:hover {
	border-color: #a7aaad;
}

.limo-bf-vehicle.selected {
	border-color: var(--limo-accent);
	background: #f0f6fc;
}

.limo-bf-vehicle-info {
	flex: 1;
}

.limo-bf-vehicle-name {
	font-weight: 600;
	font-size: 15px;
	margin: 0 0 2px;
}

.limo-bf-vehicle-meta {
	font-size: 12px;
	color: #646970;
	margin: 0;
}

.limo-bf-vehicle-price {
	font-weight: 700;
	font-size: 14px;
	color: var(--limo-primary);
	white-space: nowrap;
}

.limo-bf-quote,
.limo-bf-summary {
	margin-top: 16px;
	padding: 14px 16px;
	background: var(--limo-bg);
	border-radius: 8px;
	font-size: 14px;
}

.limo-bf-quote dl,
.limo-bf-summary dl {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 16px;
	margin: 0;
}

.limo-bf-quote dt,
.limo-bf-summary dt {
	color: #646970;
}

.limo-bf-quote dd,
.limo-bf-summary dd {
	margin: 0;
	text-align: right;
	font-weight: 500;
}

.limo-bf-quote .total dd,
.limo-bf-summary .total dd {
	font-size: 16px;
	font-weight: 700;
	color: var(--limo-primary);
}

.limo-bf-messages:empty {
	display: none;
}

.limo-bf-messages .limo-bf-error {
	background: #fcf0f1;
	color: #8a2424;
	padding: 12px 16px;
	margin: 16px 24px 0;
	border-radius: 6px;
	font-size: 14px;
}

.limo-bf-messages .limo-bf-ok {
	background: #edfaef;
	color: #1e4620;
	padding: 12px 16px;
	margin: 16px 24px 0;
	border-radius: 6px;
	font-size: 14px;
}

.limo-bf-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.limo-bf-success {
	text-align: center;
	padding: 48px 24px;
}

.limo-bf-success-icon {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background: #00a32a;
	color: #fff;
	font-size: 28px;
	line-height: 56px;
	margin: 0 auto 16px;
}

.limo-bf-booking-number {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: 0.04em;
}

/* Mobile */
@media screen and (max-width: 600px) {
	.limo-bf-row {
		grid-template-columns: 1fr;
	}

	.limo-bf-step-indicator {
		font-size: 11px;
		padding: 12px 4px;
	}

	.limo-bf-step-indicator span {
		display: block;
		margin: 0 auto 4px;
	}

	.limo-bf-panel {
		padding: 20px 16px;
	}

	.limo-bf-actions {
		flex-direction: column;
	}

	.limo-bf-btn {
		width: 100%;
		text-align: center;
	}
}
