/* ===== Limo Booking Form - Styles ===== */

.lbf-wrap {
	--lbf-gold: #c9a227;
	--lbf-dark: #1a1a1a;
	--lbf-gray-bg: #f5f5f6;
	--lbf-border: #e3e3e3;
	--lbf-text: #222;
	--lbf-muted: #777;

	max-width: 480px;
	margin: 0 auto;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.08);
	padding: 28px 26px 32px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--lbf-text);
	box-sizing: border-box;
}
.lbf-wrap *, .lbf-wrap *::before, .lbf-wrap *::after { box-sizing: border-box; }

.lbf-progress {
	height: 4px;
	background: var(--lbf-border);
	border-radius: 4px;
	margin-bottom: 24px;
	overflow: hidden;
}
.lbf-progress-bar {
	height: 100%;
	background: var(--lbf-gold);
	transition: width .3s ease;
}

.lbf-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0 0 20px;
}
.lbf-title-inline { display: inline-block; margin-left: 10px; vertical-align: middle; }

.lbf-back {
	background: var(--lbf-dark);
	color: #fff;
	border: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	font-size: 16px;
	cursor: pointer;
	vertical-align: middle;
}
.lbf-back:hover { background: #333; }

.lbf-field { margin-bottom: 14px; position: relative; }
.lbf-small-label { display:block; font-size: 13px; color: var(--lbf-muted); margin-bottom: 4px; }

.lbf-field input[type="text"],
.lbf-field input[type="tel"],
.lbf-field input[type="email"],
.lbf-field input[type="date"],
.lbf-field input[type="time"],
.lbf-field select {
	width: 100%;
	padding: 14px 16px;
	background: var(--lbf-gray-bg);
	border: 1px solid var(--lbf-border);
	border-radius: 10px;
	font-size: 15px;
	color: var(--lbf-text);
	outline: none;
	transition: border-color .2s;
}
.lbf-field input:focus, .lbf-field select:focus { border-color: var(--lbf-gold); }
.lbf-field input.lbf-invalid { border-color: #d9534f; }

.lbf-error {
	display: block;
	color: #d9534f;
	font-size: 12px;
	margin-top: 4px;
	min-height: 14px;
}

.lbf-vehicle-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin: 18px 0 22px;
}
.lbf-vehicle-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var(--lbf-gray-bg);
	border: 2px solid transparent;
	border-radius: 12px;
	padding: 16px 10px 14px;
	cursor: pointer;
	transition: border-color .2s;
}
.lbf-vehicle-card input { position: absolute; opacity: 0; }
.lbf-vehicle-card.lbf-selected { border-color: var(--lbf-gold); background: #fffdf6; }
.lbf-vehicle-card img { width: 100%; max-width: 130px; height: 70px; object-fit: contain; margin-bottom: 8px; }
.lbf-vehicle-name { font-weight: 600; font-size: 15px; }
.lbf-vehicle-sub { font-size: 12px; color: var(--lbf-muted); margin-top: 2px; }
.lbf-badge {
	position: absolute;
	top: -10px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--lbf-gold);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	white-space: nowrap;
}

.lbf-btn-primary {
	width: 100%;
	background: var(--lbf-dark);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 16px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}
.lbf-btn-primary:hover { background: #000; }
.lbf-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.lbf-fineprint {
	text-align: center;
	font-size: 11px;
	color: var(--lbf-gold);
	margin-top: 12px;
}

.lbf-notice {
	background: #fff4e5;
	border: 1px solid #f0c674;
	color: #7a5200;
	font-size: 13px;
	padding: 12px 14px;
	border-radius: 10px;
	margin-bottom: 16px;
}

#lbf-turnstile { margin-bottom: 4px; }

.lbf-map { width: 100%; height: 200px; border-radius: 12px; margin-bottom: 16px; background: #e8eef1; }
.lbf-map-small { width: 100%; height: 140px; border-radius: 10px; margin-top: 14px; background: #e8eef1; }

.lbf-summary-box {
	background: var(--lbf-gray-bg);
	border-radius: 12px;
	padding: 16px 18px;
	margin-bottom: 18px;
	font-size: 14px;
}
.lbf-row {
	display: flex;
	justify-content: space-between;
	padding: 5px 0;
	color: var(--lbf-text);
}
.lbf-row span { color: var(--lbf-muted); }
.lbf-summary-box hr { border: none; border-top: 1px solid var(--lbf-border); margin: 8px 0; }
.lbf-total-row { font-size: 17px; font-weight: 700; }
.lbf-total-row strong { color: var(--lbf-gold); }

.lbf-tip-label { font-size: 13px; color: var(--lbf-muted); margin: 0 0 8px; }
.lbf-tip-options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin-bottom: 18px;
}
.lbf-tip-btn {
	background: var(--lbf-gray-bg);
	border: 2px solid var(--lbf-border);
	border-radius: 8px;
	padding: 10px 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all .15s;
}
.lbf-tip-btn.active { border-color: var(--lbf-gold); color: var(--lbf-gold); background: #fffdf6; }

.lbf-step3-grid { display: block; }
.lbf-step3-summary {
	background: var(--lbf-gray-bg);
	border-radius: 12px;
	padding: 16px 18px;
	margin-top: 22px;
	font-size: 14px;
}
.lbf-step3-summary h3 { margin: 0 0 10px; font-size: 15px; }
.lbf-step3-summary hr { border: none; border-top: 1px solid var(--lbf-border); margin: 8px 0; }

.lbf-confirm-box { text-align: center; padding: 30px 10px; }
.lbf-spinner {
	width: 44px; height: 44px;
	border: 4px solid var(--lbf-border);
	border-top-color: var(--lbf-gold);
	border-radius: 50%;
	margin: 0 auto 16px;
	animation: lbf-spin 0.9s linear infinite;
}
@keyframes lbf-spin { to { transform: rotate(360deg); } }
#lbf-success h2 { color: #2e9c56; }
#lbf-failed h2 { color: #d9534f; }

/* Moneris renders its secure iframe inside this div; keep it above everything. */
#lbf-monerischeckout { position: relative; z-index: 99999; min-height: 500px; }

/* ===== Fullscreen payment overlay (Step 4) ===== */
.lbf-step.lbf-fullscreen {
	position: fixed;
	inset: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(15, 15, 15, 0.95);
	backdrop-filter: blur(4px);
	z-index: 999999;
	padding: 40px 20px;
	overflow-y: auto;
	display: flex !important;
	flex-direction: column;
	align-items: center;
}
.lbf-step.lbf-fullscreen .lbf-confirm-box,
.lbf-step.lbf-fullscreen #lbf-monerischeckout {
	width: 100%;
	max-width: 640px;
	background: #fff;
	border-radius: 16px;
	padding: 20px;
}
body.lbf-payment-open { overflow: hidden; }

/* --- Responsive: side-by-side summary on wider screens --- */
@media (min-width: 760px) {
	.lbf-wrap { max-width: 900px; padding: 34px 40px 40px; }
	.lbf-step3-grid {
		display: grid;
		grid-template-columns: 1.3fr 1fr;
		gap: 32px;
	}
	.lbf-step3-summary { margin-top: 0; height: fit-content; }
}

@media (max-width: 480px) {
	.lbf-wrap { padding: 20px 16px 26px; border-radius: 12px; }
	.lbf-title { font-size: 20px; }
}
