/* MB Limousines Booking — front-end widget
   Matches mblimousines.nl's own palette and type: near-black panels,
   the site's signature blue accent (#4d9ed0), Montserrat for headings/
   labels/buttons, PT Sans for body copy. */

.mblb-widget {
	--mblb-bg: #0d0d0d;
	--mblb-bg-alt: #1a1a1a;
	--mblb-accent: #4d9ed0;
	--mblb-accent-light: #7cbce3;
	--mblb-text: #ffffff;
	--mblb-text-muted: #a3a3a3;
	--mblb-border: #262626;
	--mblb-error: #e2555c;
	--mblb-radius: 3px;
	--mblb-font-heading: "Montserrat", "Helvetica Neue", Arial, sans-serif;
	--mblb-font-body: "PT Sans", "Helvetica Neue", Arial, sans-serif;
	font-family: var(--mblb-font-body);
	max-width: 640px;
	width: 100%;
	margin: 0 auto;
	background: var(--mblb-bg);
	color: var(--mblb-text);
	border-radius: var(--mblb-radius);
	box-shadow: 0 20px 60px rgba(0,0,0,.35);
	box-sizing: border-box;
	padding: 28px 28px 32px;
}

.mblb-widget.mblb-style-hero {
	background: rgba(13,13,13,.85);
	backdrop-filter: blur(6px);
}

.mblb-widget * { box-sizing: border-box; }

.mblb-widget h3.mblb-step-title {
	font-family: var(--mblb-font-heading);
	font-weight: 500;
	font-size: 19px;
	letter-spacing: .4px;
	margin: 4px 0 18px;
	color: var(--mblb-text);
}

/* Tabs */
.mblb-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--mblb-border);
}
.mblb-tab {
	flex: 0 0 auto;
	background: none;
	border: none;
	font-family: var(--mblb-font-heading);
	color: var(--mblb-text-muted);
	font-size: 13px;
	font-weight: 500;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 10px 4px 12px;
	margin-right: 22px;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}
.mblb-tab:hover { color: var(--mblb-text); }
.mblb-tab.is-active {
	color: var(--mblb-accent-light);
	border-bottom-color: var(--mblb-accent);
}

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

/* Fields */
.mblb-field { margin-bottom: 16px; position: relative; }
.mblb-field-row { display: flex; gap: 14px; }
.mblb-field-row .mblb-field { flex: 1; min-width: 0; }

.mblb-field label {
	display: block;
	font-family: var(--mblb-font-heading);
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: .7px;
	color: var(--mblb-text-muted);
	margin-bottom: 6px;
}
.mblb-optional { text-transform: none; letter-spacing: 0; opacity: .7; font-weight: 400; }

.mblb-field input[type=text],
.mblb-field input[type=email],
.mblb-field input[type=tel],
.mblb-field input[type=date],
.mblb-field input[type=time],
.mblb-field input[type=number],
.mblb-field select,
.mblb-field textarea {
	width: 100%;
	background: var(--mblb-bg-alt);
	border: 1px solid var(--mblb-border);
	color: var(--mblb-text);
	font-size: 15px;
	padding: 11px 12px;
	border-radius: var(--mblb-radius);
	transition: border-color .15s ease;
	font-family: var(--mblb-font-body);
}
.mblb-field input::placeholder,
.mblb-field textarea::placeholder { color: #6b6b6b; }
.mblb-field input:focus,
.mblb-field select:focus,
.mblb-field textarea:focus {
	outline: none;
	border-color: var(--mblb-accent);
}
.mblb-field input[type=date],
.mblb-field input[type=time] { color-scheme: dark; }
.mblb-field select {
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px;
	padding-right: 36px;
}
.mblb-field select option { background: var(--mblb-bg-alt); color: var(--mblb-text); }

/* Google Places dropdown sits above the widget */
.pac-container { z-index: 100000; font-family: var(--mblb-font-body); }

/* Buttons */
.mblb-btn {
	display: inline-block;
	width: 100%;
	border: 1px solid var(--mblb-accent);
	background: var(--mblb-accent);
	color: #0a0a0a;
	font-family: var(--mblb-font-heading);
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
	padding: 13px 20px;
	border-radius: var(--mblb-radius);
	cursor: pointer;
	transition: background .15s ease, opacity .15s ease, transform .1s ease;
	margin-top: 6px;
}
.mblb-btn:hover { background: var(--mblb-accent-light); border-color: var(--mblb-accent-light); }
.mblb-btn:active { transform: translateY(1px); }
.mblb-btn:disabled { opacity: .45; cursor: not-allowed; }
.mblb-btn-secondary {
	background: transparent;
	color: var(--mblb-accent-light);
}
.mblb-btn-secondary:hover { background: rgba(77,158,208,.1); }

.mblb-back {
	background: none;
	border: none;
	font-family: var(--mblb-font-heading);
	color: var(--mblb-text-muted);
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .3px;
	cursor: pointer;
	padding: 0 0 14px;
	display: inline-block;
}
.mblb-back:hover { color: var(--mblb-accent-light); }

.mblb-error {
	color: var(--mblb-error);
	font-size: 13px;
	margin: 10px 0;
}

/* Vehicle list */
.mblb-vehicle-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; max-height: 420px; overflow-y: auto; padding-right: 2px; }

.mblb-vehicle-card {
	position: relative;
	display: flex;
	align-items: stretch;
	gap: 14px;
	background: var(--mblb-bg-alt);
	border: 1px solid var(--mblb-border);
	border-radius: 10px;
	padding: 10px;
	cursor: pointer;
	transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease;
}
.mblb-vehicle-card:hover { border-color: #444; }
.mblb-vehicle-card.is-selected {
	border-color: var(--mblb-accent);
	box-shadow: 0 0 0 1px var(--mblb-accent);
}

/* Photo sits on a soft, light backdrop (rotating tint per card) so a black
   car — which is what most chauffeur fleet photos are — actually reads
   clearly, instead of disappearing into the widget's dark theme. */
.mblb-vehicle-media {
	position: relative;
	flex-shrink: 0;
	width: 110px;
	border-radius: 7px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	background: linear-gradient(160deg, #e7ecef, #d6dee3);
}
.mblb-vehicle-card:nth-child(4n+2) .mblb-vehicle-media { background: linear-gradient(160deg, #eee4d8, #e3d5c2); }
.mblb-vehicle-card:nth-child(4n+3) .mblb-vehicle-media { background: linear-gradient(160deg, #dde7ee, #c9dbe8); }
.mblb-vehicle-card:nth-child(4n+4) .mblb-vehicle-media { background: linear-gradient(160deg, #e2ece4, #d2e2d7); }

.mblb-vehicle-img { width: 100%; height: 100%; object-fit: contain; }

.mblb-vehicle-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--mblb-accent);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transform: scale(.6);
	transition: opacity .15s ease, transform .15s ease;
}
.mblb-vehicle-card.is-selected .mblb-vehicle-badge { opacity: 1; transform: scale(1); }

.mblb-vehicle-body { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 2px 2px 2px 0; }

.mblb-vehicle-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mblb-vehicle-name { font-family: var(--mblb-font-heading); font-size: 14px; font-weight: 600; margin: 0; color: var(--mblb-text); line-height: 1.3; }

.mblb-vehicle-meta { display: flex; align-items: center; gap: 12px; color: var(--mblb-text-muted); font-size: 12px; }
.mblb-meta-item { display: inline-flex; align-items: center; gap: 4px; }
.mblb-meta-item svg { flex-shrink: 0; opacity: .8; }

.mblb-vehicle-desc { font-size: 12px; color: var(--mblb-text-muted); margin: 0; line-height: 1.4; }

.mblb-vehicle-price { text-align: right; flex-shrink: 0; }
.mblb-vehicle-price .mblb-price-amount { font-family: var(--mblb-font-heading); font-size: 15px; font-weight: 700; color: var(--mblb-accent-light); display: block; white-space: nowrap; }
.mblb-vehicle-price .mblb-price-amount.mblb-price-quote { font-size: 12.5px; }
.mblb-vehicle-price .mblb-price-note { font-size: 11px; color: var(--mblb-text-muted); }

/* Summary box on contact step */
.mblb-summary {
	background: var(--mblb-bg-alt);
	border: 1px solid var(--mblb-border);
	border-radius: var(--mblb-radius);
	padding: 14px 16px;
	margin-bottom: 20px;
	font-size: 13px;
	color: var(--mblb-text-muted);
}
.mblb-summary strong { color: var(--mblb-text); font-weight: 600; }
.mblb-summary .mblb-summary-row { display: flex; justify-content: space-between; padding: 3px 0; }
.mblb-summary .mblb-summary-total { border-top: 1px solid var(--mblb-border); margin-top: 8px; padding-top: 10px; font-size: 15px; }
.mblb-summary .mblb-summary-total strong { color: var(--mblb-accent-light); font-family: var(--mblb-font-heading); }

/* Terms */
.mblb-terms {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12.5px;
	color: var(--mblb-text-muted);
	margin: 6px 0 16px;
	cursor: pointer;
}
.mblb-terms input { margin-top: 3px; accent-color: var(--mblb-accent); }
.mblb-terms a { color: var(--mblb-accent-light); }

/* Success */
.mblb-step-success { text-align: center; padding: 20px 10px 6px; }
.mblb-success-icon {
	width: 56px; height: 56px; line-height: 54px;
	border: 1px solid var(--mblb-accent);
	border-radius: 50%;
	margin: 0 auto 18px;
	font-size: 22px;
	color: var(--mblb-accent-light);
}
.mblb-step-success h3 { font-family: var(--mblb-font-heading); font-weight: 500; font-size: 19px; margin: 0 0 10px; color: var(--mblb-text); }
.mblb-step-success p { color: var(--mblb-text-muted); font-size: 14px; line-height: 1.6; margin: 0 0 6px; }
.mblb-success-ref { color: var(--mblb-accent-light) !important; font-family: var(--mblb-font-heading); font-weight: 600; letter-spacing: .5px; }
#mblb-book-again { max-width: 240px; margin: 18px auto 0; }

/* Loading state */
.mblb-btn.is-loading .mblb-btn-label { opacity: .6; }

@media (max-width: 520px) {
	.mblb-widget { padding: 20px 18px 24px; border-radius: 0; }
	.mblb-field-row { flex-direction: column; gap: 0; }
	.mblb-vehicle-media { width: 88px; }
	.mblb-vehicle-desc { display: none; } /* keep compact cards readable on small phones */
}

/* ------------------------------------------------------------------ *
 * Desktop: stretch into a single long horizontal search bar (Blacklane-
 * style) instead of a tall stacked card. The vehicle/contact/success
 * steps stay at a comfortable reading width, centered inside the wider
 * widget, so only the initial search bar goes full width.
 * ------------------------------------------------------------------ */
@media (min-width: 900px) {
	.mblb-widget {
		max-width: 1140px;
		padding: 22px 32px 26px;
	}

	.mblb-tabs { margin-bottom: 20px; }

	/* Turn the step-1 form into one continuous row. mblb-field-row wrappers
	   (date+time, hours/passengers/flight) are unwrapped with display:contents
	   so every field becomes a direct sibling in the same flex row. Wrapping
	   is allowed (not nowrap) so the error message — and, on narrower desktop
	   widths, an overflowing field — drops to its own line instead of
	   squeezing every field down to fit one row. */
	#mblb-step-trip.is-active {
		display: flex;
		flex-wrap: wrap;
		align-items: flex-end;
		gap: 14px 16px;
	}
	#mblb-step-trip .mblb-field-row { display: contents; }
	#mblb-step-trip .mblb-field { margin-bottom: 0; min-width: 130px; }

	#mblb-step-trip .mblb-field-pickup,
	#mblb-step-trip .mblb-field-dropoff { flex: 2 1 200px; }
	#mblb-step-trip .mblb-field-date,
	#mblb-step-trip .mblb-field-hours,
	#mblb-step-trip .mblb-field-flight { flex: 1 1 140px; }
	#mblb-step-trip .mblb-field-time,
	#mblb-step-trip .mblb-field-passengers { flex: 1 1 120px; }

	#mblb-trip-submit {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		margin-top: 0;
		padding-left: 26px;
		padding-right: 26px;
		align-self: stretch;
	}

	#mblb-trip-error { flex-basis: 100%; width: 100%; order: 99; margin: 4px 0 0; }

	/* The vehicle step uses the full wide widget so cards get real room to
	   breathe; the contact/success steps stay narrower and centered since
	   a form/confirmation message doesn't benefit from being stretched. */
	.mblb-step-contact,
	.mblb-step-success {
		max-width: 720px;
		margin-left: auto;
		margin-right: auto;
	}

	/* Responsive multi-column vehicle grid: as many columns as comfortably
	   fit (never fewer than 1), so cards stay a sensible size and never
	   force horizontal overflow. */
	.mblb-vehicle-list {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
		gap: 14px;
		max-height: none;
	}

	.mblb-vehicle-card {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 12px;
		border-radius: 12px;
	}
	.mblb-vehicle-media {
		width: 100%;
		height: 148px;
		border-radius: 8px;
		padding: 14px;
		margin-bottom: 14px;
	}
	.mblb-vehicle-badge { top: 10px; right: 10px; }
	.mblb-vehicle-body { padding: 0 2px; gap: 6px; }
	.mblb-vehicle-name { font-size: 15px; }
	.mblb-vehicle-price .mblb-price-amount { font-size: 16px; }

	#mblb-vehicle-continue { max-width: 320px; margin: 4px auto 0; }
}

@media (min-width: 1280px) {
	.mblb-widget { max-width: 1320px; }
}

@media (min-width: 1600px) {
	.mblb-widget { max-width: 1480px; }
}
