/* Ride Booking Form: dark glass panel that expands on focus */
.rbf {
	--rbf-accent: #2f6bed;
	--rbf-panel: rgba(27, 33, 44, .85);
	--rbf-text: #fff;
	--rbf-muted: color-mix(in srgb, var(--rbf-text) 55%, transparent);
	--rbf-line: color-mix(in srgb, var(--rbf-text) 22%, transparent);
	--rbf-soft: color-mix(in srgb, var(--rbf-text) 10%, transparent);
	--rbf-glow: color-mix(in srgb, var(--rbf-accent) 45%, transparent);
	position: relative;
	width: 100%;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--rbf-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
	box-sizing: border-box;
}
.rbf *, .rbf *::before, .rbf *::after { box-sizing: border-box; }
.rbf [hidden] { display: none !important; }
.rbf button, .rbf input, .rbf select, .rbf textarea { font: inherit; color: inherit; }
.rbf button { cursor: pointer; }

.rbf-panel {
	position: relative;
	padding: 16px 22px 18px;
	background: var(--rbf-panel);
	border: 1px solid var(--rbf-line);
	border-radius: 26px;
	-webkit-backdrop-filter: blur(16px) saturate(120%);
	backdrop-filter: blur(16px) saturate(120%);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .28);
}
.rbf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ---------- labels & lines ---------- */
.rbf-field { position: relative; display: block; min-width: 0; margin: 0; }
.rbf-lbl { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--rbf-muted); }
.rbf-line {
	display: block; width: 100%; min-height: 44px; margin: 0; padding: 8px 0;
	background: transparent; border: 0; border-bottom: 1px solid var(--rbf-line); border-radius: 0;
	font-size: 16px; color: var(--rbf-text); outline: none; box-shadow: none;
	transition: border-color .15s;
}
.rbf-line:focus, .rbf-line:focus-within { border-bottom-color: var(--rbf-accent); }
.rbf input::placeholder, .rbf textarea::placeholder { color: var(--rbf-muted); opacity: 1; }
.rbf textarea.rbf-line { resize: vertical; min-height: 56px; }
.rbf-field.has-error .rbf-line { border-bottom-color: #ff6b6b; }
.rbf-err { display: block; margin-top: 4px; font-size: 12.5px; font-style: normal; color: #ff8a8a; }

/* ---------- route row (always visible) ---------- */
.rbf-route { display: flex; align-items: flex-end; gap: 18px; }
.rbf-loc { flex: 1 1 0; }
.rbf-line--loc { display: flex; align-items: center; gap: 10px; padding: 0 0 4px; }
.rbf-line--loc > input { flex: 1; min-width: 0; min-height: 40px; padding: 4px 0; background: transparent; border: 0; outline: none; box-shadow: none; font-size: 16px; color: var(--rbf-text); }
.rbf-vdiv { align-self: stretch; width: 1px; margin: 8px 0 2px; background: var(--rbf-line); flex: 0 0 1px; }

.rbf-plane {
	flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
	color: var(--rbf-text); background: var(--rbf-soft); border: 0; border-radius: 9px; transition: background .15s, color .15s;
}
.rbf-plane:hover, .rbf-plane:focus-visible { background: var(--rbf-accent); color: #fff; outline: none; }

.rbf-clock {
	flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px; padding: 0; margin-bottom: 0;
	background: transparent; border: 1px solid var(--rbf-line); border-radius: 50%; color: var(--rbf-text); transition: border-color .15s, background .15s;
}
.rbf-clock:hover, .rbf-clock:focus-visible { border-color: var(--rbf-accent); background: var(--rbf-soft); outline: none; }

.rbf-go, .rbf-send {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 999px;
	background: var(--rbf-accent); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .01em;
	box-shadow: 0 6px 20px var(--rbf-glow); transition: transform .08s, filter .15s;
}
.rbf-go { flex: 0 0 auto; height: 48px; padding: 0 24px; white-space: nowrap; }
.rbf-send { width: 100%; height: 50px; }
.rbf-go:hover, .rbf-send:hover { filter: brightness(1.08); }
.rbf-go:active, .rbf-send:active { transform: translateY(1px); }
.rbf-send[disabled] { opacity: .65; cursor: wait; }

/* ---------- suggestions ---------- */
.rbf-sugg {
	position: absolute; z-index: 30; top: 100%; left: -6px; right: -6px; margin: 6px 0 0; padding: 6px; list-style: none;
	max-height: 280px; overflow-y: auto;
	background: #1b212c; color: #fff; border: 1px solid rgba(255, 255, 255, .18); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
}
.rbf-sugg li { margin: 0; padding: 10px 12px; border-radius: 9px; font-size: 15px; cursor: pointer; list-style: none; }
.rbf-sugg li::before { content: none; }
.rbf-sugg li:hover, .rbf-sugg li.is-active { background: color-mix(in srgb, var(--rbf-accent) 35%, transparent); }
.rbf-sugg li.is-airport { font-weight: 600; }

/* ---------- expanding section ---------- */
.rbf-more { display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden; transition: grid-template-rows .32s ease, opacity .25s ease .05s, visibility 0s linear .32s; }
.rbf-more__inner { overflow: hidden; min-height: 0; margin: 0 -24px -28px; padding: 0 24px 28px; }
.rbf.is-open .rbf-more { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows .32s ease, opacity .25s ease .05s, visibility 0s; }
.rbf.is-open .rbf-go { display: none; }
.rbf.is-open .rbf-panel { padding-bottom: 20px; }

.rbf-grid {
	display: grid; gap: 14px 40px; padding: 18px 2px 4px;
	grid-template-columns: 1fr 1fr;
	grid-template-areas:
		"name phone"
		"email time"
		"date vehicle"
		"notes vehicle"
		"submit submit";
	grid-template-rows: auto auto auto 1fr auto;
	align-items: start;
}
.rbf-a-name { grid-area: name; } .rbf-a-phone { grid-area: phone; } .rbf-a-email { grid-area: email; } .rbf-a-time { grid-area: time; }
.rbf-a-date { grid-area: date; } .rbf-a-vehicle { grid-area: vehicle; } .rbf-a-notes { grid-area: notes; } .rbf-a-submit { grid-area: submit; padding-top: 6px; }
.rbf-a-notes .rbf-line { min-height: 60px; }

/* time */
.rbf-selwrap { position: relative; display: block; }
.rbf-selwrap select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer; }
.rbf-selwrap select option { color: #111; background: #fff; }
.rbf-selwrap > svg { position: absolute; right: 2px; top: 50%; width: 16px; height: 16px; margin-top: -8px; color: var(--rbf-muted); pointer-events: none; }

/* date chips */
.rbf-chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.rbf-calwrap { position: relative; display: inline-flex; }
.rbf-chip {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
	min-width: 58px; height: 58px; padding: 6px 10px; line-height: 1.1;
	background: transparent; border: 1px solid var(--rbf-line); border-radius: 12px; color: var(--rbf-text);
	transition: background .15s, border-color .15s, box-shadow .15s;
}
.rbf-chip small { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--rbf-muted); }
.rbf-chip b { font-size: 19px; font-weight: 600; }
.rbf-chip:hover { border-color: var(--rbf-accent); }
.rbf-chip.is-on { background: var(--rbf-accent); border-color: var(--rbf-accent); box-shadow: 0 8px 22px var(--rbf-glow); }
.rbf-chip.is-on small { color: rgba(255, 255, 255, .85); }
.rbf-chip.is-on, .rbf-chip.is-on b { color: #fff; }
.rbf-cal__txt { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rbf-datepick { position: absolute; left: 0; bottom: 0; width: 1px; height: 1px; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* vehicle */
.rbf-a-vehicle { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 6px; }
.rbf-vimg { display: none; width: 100%; max-width: 420px; }
.rbf-vimg.is-on { display: block; animation: rbf-fade .3s ease; }
.rbf-vimg img { display: block; width: 100%; height: 170px; margin: 0 auto; object-fit: contain; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
@keyframes rbf-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.rbf-seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px; background: var(--rbf-soft); border: 1px solid var(--rbf-line); border-radius: 999px; }
.rbf-seg label { position: relative; margin: 0; cursor: pointer; }
.rbf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.rbf-seg span { display: block; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--rbf-muted); transition: background .15s, color .15s; white-space: nowrap; }
.rbf-seg input:checked + span { background: var(--rbf-accent); color: #fff; box-shadow: 0 4px 14px var(--rbf-glow); }
.rbf-seg input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.rbf-vinfo { display: none; margin: 0; font-size: 13px; line-height: 1.35; color: var(--rbf-text); }
.rbf-vinfo.is-on { display: block; }
.rbf-vinfo b { display: block; font-weight: 600; }
.rbf-vinfo span { display: block; font-size: 12px; color: var(--rbf-muted); }

.rbf-msg { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 107, 107, .15); border: 1px solid rgba(255, 107, 107, .4); color: #ffb3b3; font-size: 14px; }

/* success */
.rbf-done { text-align: center; padding: 36px 24px; }
.rbf-done__icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--rbf-accent); color: #fff; font-size: 26px; box-shadow: 0 8px 26px var(--rbf-glow); }
.rbf-done p { margin: 0; font-size: 17px; }

/* ---------- tablet / mobile ---------- */
@media (max-width: 860px) {
	.rbf-grid { gap: 14px 24px; }
}
@media (max-width: 720px) {
	.rbf-panel { padding: 16px 16px 18px; border-radius: 22px; }
	.rbf-route { flex-wrap: wrap; gap: 14px 10px; }
	.rbf-loc { flex: 1 1 100%; }
	.rbf-loc[data-role="destination"] { flex: 1 1 0; }
	.rbf-vdiv { display: none; }
	.rbf-go { flex: 1 1 100%; width: 100%; height: 50px; order: 5; }
	.rbf-clock { align-self: flex-end; margin-bottom: 2px; }
	.rbf-sugg { left: 0; right: 0; }

	.rbf-grid {
		grid-template-columns: 1fr;
		grid-template-areas: "name" "phone" "email" "date" "time" "vehicle" "notes" "submit";
		gap: 14px;
	}
	.rbf-chips { gap: 6px; }
	.rbf-chip { min-width: 0; flex: 1 1 calc(25% - 6px); max-width: 76px; }
	.rbf-calwrap { flex: 1 1 calc(25% - 6px); max-width: 76px; }
	.rbf-calwrap .rbf-chip { width: 100%; max-width: none; }
	.rbf-vimg img { height: 140px; }
	.rbf-seg span { padding: 8px 13px; }
}
@media (max-width: 380px) {
	.rbf-chip { flex-basis: calc(33.33% - 6px); }
}
@media (prefers-reduced-motion: reduce) {
	.rbf *, .rbf *::before, .rbf *::after { transition: none !important; animation: none !important; }
}
