/**
 * Advantage Rent A Car – corecții vizuale
 * Brand: albastru #2E37A4, accent #36B4FF
 */

:root {
	--adv-blue: #2e37a4;
	--adv-cyan: #36b4ff;
	--adv-text: #040406;
}

/* Buton Caută / Search – aliniat la brand (nu roz) */
.btn.vrcsearch,
.vrc-pref-color-btn,
button.vrcsearch,
.vrcmodcarsalform input[type="submit"],
.vrcmodcarsalform button[type="submit"],
.vrccarsearchform input[type="submit"],
.vrccarsearchform button[type="submit"],
form.vrcmodcarsalform .btn,
.vikrentcar-module input[type="submit"],
.vikrentcar input[type="submit"] {
	background-color: var(--adv-blue) !important;
	border: 1px solid var(--adv-blue) !important;
	border-color: var(--adv-blue) !important;
	color: #fff !important;
}

.btn.vrcsearch:hover,
.vrc-pref-color-btn:hover,
button.vrcsearch:hover,
.vrcmodcarsalform input[type="submit"]:hover,
.vrccarsearchform input[type="submit"]:hover,
.vikrentcar-module input[type="submit"]:hover,
.vikrentcar input[type="submit"]:hover {
	background-color: #252d8a !important;
	border-color: #252d8a !important;
	color: #fff !important;
}

/* Buton telefon din header – contrast clar */
.elementor-button[href*="tel:"],
a.elementor-button[href*="0725"] {
	background-color: var(--adv-cyan) !important;
	border-color: var(--adv-cyan) !important;
	color: #fff !important;
}

/* Contrast mai bun pe etichete / texte slabe */
.elementor-widget-heading .elementor-heading-title {
	opacity: 1;
}

/* Form rezervare – lizibilitate */
.vrcmodcarsalform label,
.vrccarsearchform label,
.vikrentcar label {
	color: var(--adv-text);
	font-weight: 500;
}

/* WhatsApp – backup CSS (stilurile principale sunt inline pe buton) */
#adv-whatsapp-float,
.adv-whatsapp-button {
	position: fixed !important;
	right: 16px !important;
	bottom: 100px !important;
	z-index: 2147483647 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 64px !important;
	height: 64px !important;
	padding: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #25d366 !important;
	color: #fff !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
	text-decoration: none !important;
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
}

@media (min-width: 901px) {
	#adv-whatsapp-float,
	.adv-whatsapp-button {
		bottom: 24px !important;
	}
}

/* Banner TVA — scos (ascuns daca mai exista din cache / functions vechi) */
#adv-vat-notice,
.adv-vat-notice {
	display: none !important;
}

.adv-vat-incl {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #e8f5e9;
	color: #1b5e20;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
	vertical-align: middle;
}

.adv-vat-breakdown {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	line-height: 1.35;
	color: #37474f;
	font-weight: 500;
}

/* ——— Pre-booking document upload (oconfirm) ——— */
.adv-booking-docs {
	margin: 1.75rem 0 1.25rem;
	padding: 0;
	border-top: 1px solid rgba(46, 55, 164, 0.18);
	padding-top: 1.25rem;
	color: var(--adv-text);
}

.adv-booking-docs__title {
	margin: 0 0 0.35rem;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--adv-blue);
	line-height: 1.3;
}

.adv-booking-docs__hint {
	margin: 0 0 1.1rem;
	font-size: 0.92rem;
	line-height: 1.45;
	color: #444;
	max-width: 42rem;
}

.adv-booking-docs__notice {
	margin: 0 0 0.65rem;
	padding: 0.75rem 0.9rem;
	font-size: 0.88rem;
	line-height: 1.5;
	color: #333;
	max-width: 42rem;
	background: #f4f6fb;
	border-left: 3px solid var(--adv-blue);
}

.adv-booking-docs__privacy-link {
	margin: 0 0 1.1rem;
	font-size: 0.9rem;
}

.adv-booking-docs__privacy-link a {
	color: var(--adv-blue);
	font-weight: 600;
	text-decoration: underline;
}

.adv-booking-docs__gdpr {
	margin-top: 1.25rem;
	padding-top: 1rem;
	padding-bottom: 0.25rem;
	border-top: 1px solid rgba(46, 55, 164, 0.14);
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	max-width: 42rem;
}

/* Bifa "Termeni și condiții" mutată în aceeași coloană — spațiu suplimentar jos
   pe mobil, ca butoanele flotante WhatsApp/chat să nu o acopere. */
@media (max-width: 782px) {
	.adv-booking-docs__gdpr {
		padding-bottom: 4.5rem;
	}
}

.adv-booking-docs__consent {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	margin: 0;
	cursor: pointer;
	font-weight: 400;
}

.adv-booking-docs__consent-input {
	flex: 0 0 auto;
	width: 1.15rem;
	height: 1.15rem;
	margin-top: 0.15rem;
	accent-color: var(--adv-blue);
	cursor: pointer;
}

.adv-booking-docs__consent-text {
	flex: 1 1 auto;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #222;
}

.adv-booking-docs__consent-text a {
	color: var(--adv-blue);
	font-weight: 600;
	text-decoration: underline;
}

.adv-booking-docs__section {
	margin-bottom: 1.15rem;
}

.adv-booking-docs__section-title {
	margin: 0 0 0.65rem;
	font-size: 0.98rem;
	font-weight: 650;
	color: var(--adv-text);
}

.adv-booking-docs__slots {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem 1.25rem;
}

.adv-booking-docs__slot {
	flex: 1 1 220px;
	min-width: 0;
	max-width: 320px;
}

.adv-booking-docs__slot-label {
	display: block;
	margin-bottom: 0.4rem;
	font-size: 0.9rem;
	font-weight: 600;
}

.adv-booking-docs__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 0.75rem;
}

.adv-booking-docs__filebtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.45rem 0.9rem;
	background: var(--adv-blue);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid var(--adv-blue);
	border-radius: 4px;
	cursor: pointer;
	user-select: none;
}

.adv-booking-docs__filebtn:hover {
	background: #252d8a;
	border-color: #252d8a;
}

.adv-booking-docs__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}

.adv-booking-docs__status {
	font-size: 0.85rem;
	line-height: 1.3;
	color: #555;
}

.adv-booking-docs__status.is-uploading {
	color: #1565c0;
}

.adv-booking-docs__status.is-done {
	color: #1b5e20;
	font-weight: 600;
}

.adv-booking-docs__status.is-error {
	color: #b71c1c;
}

.adv-booking-docs__preview {
	margin-top: 0.45rem;
	min-height: 0;
}

.adv-booking-docs__preview img {
	display: block;
	max-width: 140px;
	max-height: 100px;
	width: auto;
	height: auto;
	object-fit: cover;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 3px;
}

.adv-booking-docs__filename {
	display: inline-block;
	font-size: 0.8rem;
	color: #555;
	word-break: break-all;
}

.adv-booking-docs__slot.is-uploading .adv-booking-docs__filebtn {
	opacity: 0.7;
	pointer-events: none;
}

@media (max-width: 600px) {
	.adv-booking-docs__slot {
		flex: 1 1 100%;
		max-width: none;
	}

	.adv-booking-docs__filebtn {
		width: 100%;
		text-align: center;
	}

	.adv-booking-docs__controls {
		flex-direction: column;
		align-items: stretch;
	}
}

/* ——— Semnătură client (pre-booking, în același wrap ca documentele) ——— */
.adv-signature {
	margin: 0 0 1.15rem;
	padding-top: 1rem;
	border-top: 1px solid rgba(46, 55, 164, 0.14);
}

.adv-signature__hint {
	margin: 0 0 0.75rem;
	font-size: 0.9rem;
	line-height: 1.45;
	color: #444;
	max-width: 42rem;
}

.adv-signature__pad-wrap {
	position: relative;
	max-width: 480px;
	border: 1.5px solid rgba(46, 55, 164, 0.35);
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}

.adv-signature__pad {
	display: block;
	width: 100%;
	height: 160px;
	touch-action: none;
	cursor: crosshair;
	background: #fff;
}

.adv-signature__placeholder {
	position: absolute;
	left: 14px;
	top: 14px;
	font-size: 0.85rem;
	color: #9aa0b4;
	pointer-events: none;
	user-select: none;
}

.adv-signature__controls {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.6rem 1rem;
	margin-top: 0.6rem;
	max-width: 480px;
}

.adv-signature__clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0.4rem 0.85rem;
	background: #fff;
	color: var(--adv-blue);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.2;
	border: 1px solid var(--adv-blue);
	border-radius: 4px;
	cursor: pointer;
}

.adv-signature__clear:hover {
	background: #f4f6fb;
}

@media (max-width: 600px) {
	.adv-signature__pad-wrap,
	.adv-signature__controls {
		max-width: none;
	}
}

/* Ascunde upload-ul post-comandă VRC (documentele se cer la rezervare) */
.vrc-order-details-info-val-upload-docs,
.vrc-docsupload-container {
	display: none !important;
}

/* v1.6.18 — ascunde cutia „ai un cupon?” de pe formularul de rezervare */
.vrc-coupon-outer,
.vrc-oconfirm-summary-coupon-row,
.vrc-oconfirm-summary-coupon-newtot-row {
	display: none !important;
}

/* v1.6.18 — „Număr zbor” (câmp nativ VikRentCar) e ascuns prin JS după ID
   exact (vezi advantage-fixes.js + inc/vrc-address-fields.php); regula de
   mai jos e doar o plasă de siguranță ca eticheta să nu „sară” vizual dacă
   JS întârzie. Nu putem viza un ID fix aici (diferă per instalare). */

/* v1.6.23 — câmpul nativ „Oraș” (ORDER_CITY) e ascuns prin JS după ID exact,
   la fel ca „Număr zbor” — redundant față de „Localitate/Oraș” din grupul
   „Adresa domiciliu”. */

/* v1.6.18 — secțiunea „Adresa domiciliu” (câmpuri custom adăugate de temă) */
.vrccustomfields .vrcseparatorcf,
.vrccustomfields .vrcseparatorcflong {
	margin-top: 1.1rem;
}

/* Datepicker — pe mobil trebuie vizibil deasupra formularului / chat */
.ui-datepicker {
	z-index: 2147483000 !important;
	position: absolute !important;
}

/* cardetails — zile disponibile in calendarul VRC */
.vrc-cdetails-cal-pickday {
	cursor: pointer;
}

/* Evită tăierea calendarului în containere overflow */
#rezerva-masina,
#rezerva-masina .elementor-widget-container,
.vrcdivsearch,
.vrcsfentrydate,
.vrc-searchmod-section-datetimes {
	overflow: visible !important;
}

/* v1.6.21/1.6.26 — „Vezi oferta” în locul prețului pe cardurile de mașină
   (homepage + lista de rezultate căutare) — vezi adv_child_filter_output()
   din functions.php, care înlocuiește textul de preț cu acest span/link. */
.adv-vezi-oferta,
a.adv-vezi-oferta {
	display: inline-block;
	font-weight: 700;
	color: var(--adv-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

a.eael-infobox-button[data-adv-offer-linked="1"] {
	text-decoration: none;
}

.eael-infobox .infobox-button a.eael-infobox-button,
.eael-infobox .infobox-button a.eael-infobox-button .adv-vezi-oferta {
	pointer-events: auto;
	cursor: pointer;
}

/* v1.6.33 — pictograme SAL / SOL — bandă brand + chenar badge, fără bandă albă */
#site-footer.site-footer.site-footer--adv-sal-sol {
	box-sizing: border-box;
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
}

.adv-sal-sol {
	box-sizing: border-box;
	width: 100%;
	margin: 0;
	padding: 0.75rem 1rem 0.85rem;
	background: var(--adv-blue);
	border-top: 3px solid var(--adv-cyan);
	border-bottom: 1px solid #1e2470;
}

.adv-sal-sol__items {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.65rem 1rem;
	max-width: 1140px;
	margin: 0 auto;
}

.adv-sal-sol__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5rem 0.75rem;
	line-height: 0;
	text-decoration: none;
	background: #fff;
	border: 2px solid #d8deef;
	border-radius: 5px;
	box-shadow: 0 1px 4px rgba(4, 4, 6, 0.12);
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.adv-sal-sol__link:hover {
	border-color: var(--adv-cyan);
	box-shadow: 0 2px 8px rgba(4, 4, 6, 0.18);
	transform: translateY(-1px);
}

.adv-sal-sol__link:focus-visible {
	outline: 2px solid var(--adv-cyan);
	outline-offset: 2px;
	border-color: #fff;
}

.adv-sal-sol__img {
	display: block;
	width: auto;
	max-width: 150px;
	height: auto;
	max-height: 40px;
}

.adv-sal-sol--terms {
	margin: 0.85rem 0 1.25rem;
	border: 1px solid #1e2470;
	border-radius: 6px;
	overflow: hidden;
}

.adv-sal-sol--terms .adv-sal-sol__items {
	justify-content: flex-start;
}

.adv-sal-sol--footer {
	margin: 0;
	border-top: none;
}

/* Subsol: lipit de ultima secțiune Elementor, fără spațiu alb (#page / body) */
.elementor-page .elementor {
	margin-bottom: 0;
}

.elementor-page-5 .elementor-element-1eac03d6 {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

@media (max-width: 480px) {
	.adv-sal-sol {
		padding: 0.65rem 0.75rem 0.75rem;
	}

	.adv-sal-sol__items {
		gap: 0.5rem;
		justify-content: center;
	}

	.adv-sal-sol__link {
		flex: 1 1 calc(50% - 0.5rem);
		min-width: 130px;
		max-width: 100%;
		padding: 0.45rem 0.5rem;
	}

	.adv-sal-sol__img {
		max-width: 100%;
		max-height: 36px;
	}
}

