/* ==========================================================================
   Home banner "Book Your Vehicle" card (me-book) — shortcode [me_booking_form]
   ========================================================================== */
.me-book {
	--me-accent: #14a79d;
	--me-accent-dark: #0e8a82;
	--me-ink: #1b2a3a;
	--me-text: #4a5663;
	--me-muted: #8a94a0;
	--me-field: #f1f4f7;
	--me-danger: #d92d20;

	position: relative;
	z-index: 2;
	width: 100%;
	container-type: inline-size; /* the layout follows the card's own width, not the screen */
	font-family: var(--wvh-font, "Poppins", Helvetica, Arial, sans-serif);
}
.me-book,
.me-book *,
.me-book *::before,
.me-book *::after { box-sizing: border-box; }

.me-book__form {
	margin: 0;
	padding: 26px 30px 30px 32px;
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(16, 42, 67, 0.1);
}

/* ---- heading ------------------------------------------------------------- */
.me-book__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin: 0 0 22px;
}
.me-book__head-icon { flex: 0 0 auto; color: var(--me-accent); line-height: 0; }
.me-book__head-icon svg { width: 40px; height: 40px; }
.me-book .me-book__title {
	margin: 0;
	padding: 0;
	font-family: inherit;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--me-ink);
}

/* ---- fields: the shared field styles further down (.me-req__field / __control) -------------
   Banner card = its own 2-column grid:  First Name · Mobile Number  /  Book Now · Support
   (fields picked with [me_booking_form fields="…"]; a message field would take a full row)
   Very narrow card (< 340px) → one column.                                                        */
.me-book .me-book__grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 16px;
}
.me-book .me-book__grid > .me-book__cell { grid-column: auto; }
.me-book .me-book__grid > .me-book__cell--message { grid-column: 1 / -1; }
.me-book .me-book__grid .me-req__control textarea {
	height: 50px;
	min-height: 50px;
	padding: 13px 16px;
	resize: none;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.me-book .me-book__grid .me-req__control textarea:focus { white-space: normal; overflow: auto; }
/* the three-across fields are ~185px wide: slightly smaller text so the hints fit */
.me-book .me-book__grid .me-req__control input,
.me-book .me-book__grid .me-req__control textarea { padding-left: 14px; padding-right: 14px; font-size: 14px; }

/* ---- button (overrides Hello's pink button reset) ---------------------------- */
.me-book .me-book__btn,
.me-book .me-book__btn:hover,
.me-book .me-book__btn:focus {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 20px;
	border: 0;
	border-radius: 12px;
	background: var(--me-accent);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.me-book .me-book__btn:hover,
.me-book .me-book__btn:focus-visible { background: var(--me-accent-dark); }
.me-book .me-book__btn:focus-visible { outline: 2px solid var(--me-accent); outline-offset: 3px; }
.me-book .me-book__btn:disabled { opacity: 0.75; cursor: progress; }
.me-book a.me-book__btn { text-decoration: none; }
.me-book .me-book__btn--support,
.me-book .me-book__btn--support:visited,
.me-book .me-book__btn--support:focus { background: #a3d5f2; color: var(--me-ink); }
.me-book .me-book__btn--support:hover,
.me-book .me-book__btn--support:focus-visible { background: #86c5ea; color: var(--me-ink); }
.me-book .me-book__btn--support svg { width: 22px; height: 22px; flex-basis: 22px; }
.me-book .me-book__btn--support:hover svg { transform: none; }
.me-book__btn svg { width: 20px; height: 20px; flex: 0 0 20px; transition: transform 0.2s ease; }
.me-book__btn:hover svg { transform: translateX(3px); }
.me-book__btn.is-loading svg { opacity: 0; }
.me-book__btn.is-loading::after {
	content: "";
	position: absolute;
	right: 24px;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: me-req-spin 0.7s linear infinite;
}

/* ---- thank-you (replaces the fields after sending) ------------------------------ */
.me-book__request[hidden],
.me-book__done[hidden] { display: none; }
.me-book__done { padding: 6px 0 4px; text-align: center; }
.me-book .me-book__done-title {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--me-ink);
	outline: 0;
}
.me-book .me-book__done-text {
	max-width: 460px;
	margin: 0 auto;
	font-size: 15px;
	line-height: 1.6;
	color: var(--me-text);
}
.me-book .me-book__again,
.me-book .me-book__again:hover,
.me-book .me-book__again:focus {
	margin: 18px 0 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--me-accent);
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.me-book .me-book__again:focus-visible { outline: 2px solid var(--me-accent); outline-offset: 3px; }

/* ---- stretch over the banner image on large screens: [me_booking_form overlap="300"] */
@media (min-width: 1200px) {
	.me-book[style*="--me-book-overlap"] {
		width: calc(100% + var(--me-book-overlap));
		max-width: none;
		margin-right: calc(-1 * var(--me-book-overlap));
	}
}

/* ---- tablets: the section under the banner is pulled up 110px (Elementor, negative margin) and the
   banner only leaves ~100px under this card, so give the card a little room so the two never touch */
@media (min-width: 768px) and (max-width: 1199.98px) {
	.me-book { margin-bottom: 30px; }
}

/* ---- medium card: two columns ----------------------------------------------------- */
@container (max-width: 599.98px) {
	.me-book .me-book__btn { height: 54px; }
	.me-book .me-book__grid .me-req__control input,
	.me-book .me-book__grid .me-req__control textarea { padding-left: 16px; padding-right: 16px; font-size: 15px; }
	.me-book .me-book__grid .me-req__control textarea { height: auto; min-height: 84px; white-space: normal; overflow: auto; resize: vertical; }
}
/* ---- narrow card: fields stacked ---------------------------------------------- */
@container (max-width: 520px) {
	.me-book__form { padding: 22px 18px 24px; border-radius: 20px; }
	.me-book__head { gap: 12px; margin-bottom: 18px; }
	.me-book__head-icon svg { width: 32px; height: 32px; }
	.me-book .me-book__title { font-size: 22px; }
	.me-book .me-book__grid { gap: 14px 12px; }
	.me-book .me-book__btn { gap: 8px; padding: 0 12px; font-size: 15px; }
	/* two ~150px fields side by side: tighter so "+971 50 123 4567" fits */
	.me-book .me-book__grid .me-req__control input { padding-left: 12px; padding-right: 12px; font-size: 14px; }
}
@container (max-width: 339.98px) {
	.me-book .me-book__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   "Request A Rental" popup (me-req) — opened by the vehicle cards' Book Now
   ========================================================================== */
html.me-req-open { overflow: hidden; }

.me-req {
	--me-accent: #14a79d;
	--me-accent-dark: #0e8a82;
	--me-ink: #1b2a3a;
	--me-text: #4a5663;
	--me-muted: #8a94a0;
	--me-field: #f1f4f7;
	--me-danger: #d92d20;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 28px 16px;
	font-family: var(--wvh-font, "Poppins", Helvetica, Arial, sans-serif);
}
.me-req[hidden] { display: none; }
.me-req,
.me-req *,
.me-req *::before,
.me-req *::after { box-sizing: border-box; }

.me-req__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 30, 45, 0.62);
	opacity: 0;
	transition: opacity 0.25s ease;
}
.me-req.is-visible .me-req__backdrop { opacity: 1; }

.me-req__dialog {
	position: relative;
	display: flex;
	width: 100%;
	max-width: 830px;
	max-height: calc(100vh - 56px);
	max-height: calc(100dvh - 56px);
	background: #fff;
	border-radius: 24px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
	opacity: 0;
	transform: translateY(16px) scale(0.98);
	transition: opacity 0.25s ease, transform 0.25s ease;
	outline: 0;
}
.me-req.is-visible .me-req__dialog { opacity: 1; transform: none; }

.me-req__scroll {
	width: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 44px 44px 38px;
	border-radius: 24px;
}

/* round ✕ hanging off the corner (overrides Hello's pink button reset) */
.me-req .me-req__close,
.me-req .me-req__close:hover,
.me-req .me-req__close:focus {
	position: absolute;
	top: -18px;
	right: -18px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	margin: 0;
	padding: 0;
	border: 3px solid #fff;
	border-radius: 50%;
	background: var(--me-accent);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.me-req .me-req__close:hover,
.me-req .me-req__close:focus-visible { background: var(--me-accent-dark); transform: rotate(90deg); }
.me-req__close svg { width: 22px; height: 22px; }

.me-req .me-req__title {
	margin: 0 0 12px;
	padding: 0;
	font-family: inherit;
	font-size: 30px;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	color: var(--me-ink);
	outline: 0;
}
.me-req .me-req__intro {
	max-width: 640px;
	margin: 0 auto 30px;
	font-size: 15px;
	line-height: 1.6;
	text-align: center;
	color: var(--me-text);
}

/* ==========================================================================
   Fields — shared by the banner card and the popup
   ========================================================================== */
.me-req__grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 18px 20px;
}
.me-req__span-3 { grid-column: span 3; }
.me-req__span-6 { grid-column: span 6; }

:is(.me-req, .me-book) .me-req__label {
	display: block;
	margin: 0 0 8px;
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--me-ink);
}
.me-req__star { margin-left: 2px; color: var(--me-accent); }

.me-req__control { position: relative; }

/* Hello Elementor's reset.css styles inputs — reset them inside our forms */
:is(.me-req, .me-book) .me-req__control input,
:is(.me-req, .me-book) .me-req__control textarea {
	-webkit-appearance: none;
	appearance: none;
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: var(--me-field);
	box-shadow: none;
	outline: 0;
	font-family: inherit;
	font-size: 15px;
	font-weight: 400;
	line-height: normal;
	color: var(--me-ink);
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
:is(.me-req, .me-book) .me-req__control textarea {
	height: auto;
	min-height: 112px;
	padding: 14px 16px;
	line-height: 1.5;
	resize: vertical;
}
:is(.me-req, .me-book) .me-req__control input::placeholder,
:is(.me-req, .me-book) .me-req__control textarea::placeholder { color: var(--me-muted); opacity: 1; }

:is(.me-req, .me-book) .me-req__control input:focus,
:is(.me-req, .me-book) .me-req__control textarea:focus {
	background: #fff;
	border-color: var(--me-accent);
	box-shadow: 0 0 0 3px rgba(20, 167, 157, 0.15);
}

.me-req__error {
	display: block;
	margin-top: 6px;
	font-size: 12.5px;
	line-height: 1.4;
	color: var(--me-danger);
}
.me-req__error:empty { display: none; }
:is(.me-req, .me-book) .me-req__field.is-invalid .me-req__control input,
:is(.me-req, .me-book) .me-req__field.is-invalid .me-req__control textarea {
	background: #fff;
	border-color: var(--me-danger);
}

/* spam trap — hidden from people */
.me-req__hp {
	/* hidden from people, still fillable by bots. Parking it at left:-9999px added
	   10,000px of sideways scroll on right-to-left (Arabic) pages, so clip it instead. */
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.me-req__alert {
	margin: 22px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: #fdecea;
	font-size: 14px;
	line-height: 1.5;
	color: #a4231a;
}
.me-req__alert[hidden] { display: none; }

/* ---- popup submit ----------------------------------------------------------- */
.me-req .me-req__submit,
.me-req .me-req__submit:hover,
.me-req .me-req__submit:focus {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-width: 240px;
	height: 54px;
	margin: 28px auto 0;
	padding: 0 34px;
	border: 0;
	border-radius: 12px;
	background: var(--me-accent);
	box-shadow: none;
	color: #fff;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}
.me-req .me-req__submit:hover,
.me-req .me-req__submit:focus-visible { background: var(--me-accent-dark); }
.me-req .me-req__submit:focus-visible,
.me-req .me-req__close:focus-visible { outline: 2px solid var(--me-accent); outline-offset: 3px; }
.me-req__submit svg { width: 20px; height: 20px; flex: 0 0 20px; }
.me-req .me-req__submit:disabled { opacity: 0.75; cursor: progress; }
.me-req__submit.is-loading svg { opacity: 0; }
.me-req__submit.is-loading::after {
	content: "";
	position: absolute;
	right: 30px;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, 0.45);
	border-top-color: #fff;
	border-radius: 50%;
	animation: me-req-spin 0.7s linear infinite;
}
@keyframes me-req-spin { to { transform: rotate(360deg); } }

/* ---- thank-you icon (both forms) + popup thank-you view ------------------------ */
.me-req__done { padding: 20px 0 6px; text-align: center; }
.me-req__done-icon { display: inline-block; margin-bottom: 14px; line-height: 0; color: var(--me-accent); }
.me-req__done-icon svg { width: 64px; height: 64px; }
.me-book .me-req__done-icon { margin-bottom: 10px; }
.me-book .me-req__done-icon svg { width: 56px; height: 56px; }
.me-req .me-req__done-btn { min-width: 160px; }

/* ---- phones ---------------------------------------------------------------- */
@media (max-width: 640px) {
	.me-req { padding: 12px; }
	.me-req__dialog { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 18px; }
	.me-req__scroll { padding: 50px 18px 24px; border-radius: 18px; }
	.me-req .me-req__close,
	.me-req .me-req__close:hover,
	.me-req .me-req__close:focus { top: 10px; right: 10px; width: 40px; height: 40px; border-width: 0; box-shadow: none; }
	.me-req .me-req__title { font-size: 24px; }
	.me-req .me-req__intro { margin-bottom: 22px; font-size: 14px; }
	.me-req__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.me-req__span-3,
	.me-req__span-6 { grid-column: auto; }
	.me-req .me-req__submit { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.me-book *, .me-book *::before, .me-book *::after,
	.me-req *, .me-req *::before, .me-req *::after { transition: none !important; }
	.me-req__submit.is-loading::after,
	.me-book__btn.is-loading::after { animation-duration: 2s; }
}

/*Arabic Translation*/
.rtl input#me-req-phone {
    text-align: end;
}

/* ==========================================================================
   Popup — VEHICLE layout (opened by a vehicle card's Book Now):
   name + mobile + button on the left, the vehicle's photo on the right.
   The pricing "Book Now" buttons keep the full form above.
   ========================================================================== */
.me-req__field[hidden],
.me-req__media[hidden] { display: none !important; }

.me-req--vehicle .me-req__grid .me-req__field { grid-column: 1 / -1; }
.me-req.me-req--vehicle .me-req__submit { width: 100%; min-width: 0; margin-top: 24px; }

.me-req--has-media .me-req__body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
	gap: 32px;
	align-items: stretch;
}
.me-req--has-media .me-req__form {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.me-req .me-req__media {
	position: relative;
	margin: 0;
	min-height: 260px;
	overflow: hidden;
	border-radius: 16px;
	background: var(--me-field);
}
.me-req .me-req__media-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	border-radius: 0;
}
.me-req .me-req__media-name {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	padding: 40px 18px 14px;
	background: linear-gradient(to top, rgba(15, 30, 45, 0.75), rgba(15, 30, 45, 0));
	color: #fff;
	font-size: 18px;
	font-style: normal;
	font-weight: 600;
	line-height: 1.3;
	text-align: start;
}
.me-req .me-req__media-name[hidden] { display: none; }

/* phones: photo on top (short), form below */
@media (max-width: 640px) {
	.me-req--has-media .me-req__body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
	.me-req .me-req__media { order: -1; min-height: 0; height: 180px; }
	.me-req.me-req--vehicle .me-req__submit { margin-top: 18px; }
}
