/*
 * Ziebart UAE - "Get a quote" page, new layout (see inc/zb-quote.php). Form fields: inner-v3/forms.css.
 * Some headings carry !important because older site-wide styles force sizes and margins on h2/h3.
 * Xtreme IT Services, 2026-11-20.
 */

/* The page template's wrapper hides overflow, which stopped "How it works" from staying in view while scrolling.
   "clip" still cuts off overflow but lets it follow the window; flow-root keeps the wrapper around its floats. */
html.zbfl .main-page-offer {
	display: flow-root;
	overflow: clip;
}

html.zbfl .entry-content .zbq {
	margin-top: 56px;
	margin-bottom: 8px;
	color: var(--zb-text);
}

html.zbfl .entry-content .zbq ul,
html.zbfl .entry-content .zbq ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

html.zbfl .entry-content .zbq li {
	margin: 0;
	padding: 0;
}

html.zbfl .entry-content .zbq li::before {
	content: none;
}

html.zbfl .entry-content .zbq a {
	text-decoration: none;
}

html.zbfl .entry-content .zbq .screen-reader-text {
	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;
}

html.zbfl .entry-content .zbq .zbq-nw {
	white-space: nowrap;
}

html.zbfl .entry-content .zbq__icon {
	flex: none;
	width: 22px;
	height: 22px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.9;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* ---------- Shared headings ---------- */

html.zbfl .entry-content .zbq__kicker {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	color: var(--zb-red);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .12em;
	text-transform: uppercase;
}

html.zbfl .entry-content .zbq__kicker::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--zb-red);
}

html.zbfl--ar .entry-content .zbq__kicker {
	font-size: 15px;
	letter-spacing: 0;
}

html.zbfl .entry-content .zbq__title {
	margin: 0 0 8px !important;
	color: var(--zb-ink) !important;
	font-size: clamp(25px, 1vw + 16px, 30px) !important;
	font-weight: 800;
	line-height: 1.2 !important;
	text-align: start !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbq__title:focus {
	outline: none;
}

html.zbfl .entry-content .zbq__intro {
	margin: 0 0 26px;
	color: var(--zb-muted);
	font-size: 16px;
	line-height: 1.6;
}

/* ---------- Form beside "How it works" ---------- */

html.zbfl .entry-content .zbq__top {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px;
	align-items: start;
}

html.zbfl .entry-content .zbq__form {
	scroll-margin-top: calc(var(--zb-pin, 90px) + 16px);
	padding: 36px 36px 32px;
	border: 1px solid var(--zb-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--zb-shadow);
}

html.zbfl .entry-content .zbq__form .wpcf7 {
	margin: 0;
}

/* The message box lights up briefly when a service is added to it. */
@keyframes zbq-flash {
	0%,
	100% {
		box-shadow: 0 0 0 0 rgba(221, 0, 23, 0);
	}
	25% {
		box-shadow: 0 0 0 4px rgba(221, 0, 23, .22);
	}
}

html.zbfl .entry-content .zbq__form textarea.zbq-flash {
	animation: zbq-flash 1.4s ease;
}

html.zbfl .entry-content .zbq__side {
	position: sticky;
	top: calc(var(--zb-pin, 90px) + 24px);
	display: grid;
	gap: 20px;
}

html.zbfl .entry-content .zbq__how {
	padding: 28px 28px 26px;
	border: 1px solid var(--zb-line);
	border-radius: 18px;
	background: #fff;
}

html.zbfl .entry-content .zbq__side-title {
	margin: 0 0 20px !important;
	color: var(--zb-ink) !important;
	font-size: 19px !important;
	font-weight: 800;
	line-height: 1.3 !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbq__step {
	position: relative;
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr);
	gap: 14px;
	padding-bottom: 22px;
}

html.zbfl .entry-content .zbq__step:last-child {
	padding-bottom: 0;
}

/* Line joining the numbers. */
html.zbfl .entry-content .zbq__step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 40px;
	bottom: 4px;
	inset-inline-start: 17px;
	width: 2px;
	border-radius: 1px;
	background: #f3c9ce;
}

html.zbfl .entry-content .zbq__step-no {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--zb-red);
	color: #fff;
	font-size: 15px;
	font-weight: 800;
	line-height: 1;
}

html.zbfl .entry-content .zbq__step-text {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding-top: 6px;
}

html.zbfl .entry-content .zbq__step-text strong {
	color: var(--zb-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

html.zbfl .entry-content .zbq__step-text span {
	color: var(--zb-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* Call card */
html.zbfl .entry-content .zbq__call {
	padding: 26px 28px;
	border-radius: 18px;
	background: var(--zb-ink);
	color: #fff;
}

html.zbfl .entry-content .zbq__call-kicker {
	margin: 0 0 10px;
	color: rgba(255, 255, 255, .72);
	font-size: 14.5px;
	font-weight: 600;
}

html.zbfl .entry-content .zbq__call-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: #fff !important;
	font-size: 21px;
	font-weight: 800;
	line-height: 1.3;
}

html.zbfl .entry-content .zbq__call-phone .zbq__icon {
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 10px;
	border-radius: 50%;
	background: var(--zb-red);
	color: #fff;
	transition: background-color .2s ease;
}

html.zbfl .entry-content .zbq__call-phone:hover .zbq__icon,
html.zbfl .entry-content .zbq__call-phone:focus-visible .zbq__icon {
	background: var(--zb-red-dark);
}

html.zbfl .entry-content .zbq__call-note {
	margin: 10px 0 14px;
	color: rgba(255, 255, 255, .72);
	font-size: 14.5px;
	line-height: 1.5;
}

html.zbfl .entry-content .zbq__call-mail {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	max-width: 100%;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	color: #fff !important;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	overflow-wrap: break-word;
}

html.zbfl .entry-content .zbq__call-mail span {
	min-width: 0;
}

html.zbfl .entry-content .zbq__call-mail .zbq__icon {
	width: 19px;
	height: 19px;
	color: rgba(255, 255, 255, .72);
}

html.zbfl .entry-content .zbq__call-mail:hover span,
html.zbfl .entry-content .zbq__call-mail:focus-visible span {
	text-decoration: underline;
}

html.zbfl .entry-content .zbq__call a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

/* ---------- What we offer ---------- */

html.zbfl .entry-content .zbq__offer,
html.zbfl .entry-content .zbq__why {
	margin-top: 72px;
}

html.zbfl .entry-content .zbq__head {
	margin-bottom: 24px;
}

html.zbfl .entry-content .zbq__head .zbq__intro {
	margin: 0;
}

html.zbfl .entry-content .zbq__svcs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

html.zbfl .entry-content .zbq__svc {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--zb-line);
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html.zbfl .entry-content .zbq__svc:hover {
	border-color: rgba(221, 0, 23, .35);
	box-shadow: 0 16px 34px -20px rgba(18, 20, 23, .45);
	transform: translateY(-2px);
}

html.zbfl .entry-content .zbq__svc-photo {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbq__photo {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
	transition: transform .4s ease;
}

html.zbfl .entry-content .zbq__svc:hover .zbq__photo {
	transform: scale(1.03);
}

html.zbfl .entry-content .zbq__svc-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 24px 24px;
}

html.zbfl .entry-content .zbq__svc-title {
	margin: 0 0 8px !important;
	color: var(--zb-ink) !important;
	font-size: 19px !important;
	font-weight: 700;
	line-height: 1.3 !important;
	text-align: start !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbq__svc-text {
	margin: 0 0 20px;
	color: var(--zb-muted);
	font-size: 15px;
	line-height: 1.6;
	text-align: start;
}

html.zbfl .entry-content .zbq__pick {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	min-height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	background: #fdeef0;
	color: var(--zb-red) !important;
	font-size: 14.5px;
	font-weight: 700;
	line-height: 1.2;
	transition: background-color .2s ease, color .2s ease;
}

html.zbfl .entry-content .zbq__pick .zbq__icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.3;
	transition: transform .2s ease;
}

html.zbfl--ar .entry-content .zbq__pick .zbq__icon {
	transform: scaleX(-1);
}

html.zbfl .entry-content .zbq__pick:hover,
html.zbfl .entry-content .zbq__pick:focus-visible {
	background: var(--zb-red);
	color: #fff !important;
}

html.zbfl .entry-content .zbq__pick:focus-visible {
	outline: 2px solid var(--zb-ink);
	outline-offset: 2px;
}

/* ---------- Why choose us ---------- */

html.zbfl .entry-content .zbq__why-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	padding: 28px !important;
	border-radius: 20px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbq__why-item {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	padding: 20px !important;
	border-radius: 14px;
	background: #fff;
}

html.zbfl .entry-content .zbq__why-item > .zbq__icon {
	box-sizing: content-box;
	grid-row: 1 / span 2;
	width: 24px;
	height: 24px;
	padding: 12px;
	border-radius: 50%;
	background: #fdeef0;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbq__why-item strong {
	align-self: end;
	color: var(--zb-ink);
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
}

html.zbfl .entry-content .zbq__why-item span {
	align-self: start;
	color: var(--zb-muted);
	font-size: 14.5px;
	line-height: 1.5;
}

/* Arabic */
html.zbfl--ar .entry-content .zbq__step-text strong,
html.zbfl--ar .entry-content .zbq__svc-title,
html.zbfl--ar .entry-content .zbq__why-item strong {
	font-weight: 600;
}

html.zbfl--ar .entry-content .zbq__call-phone span,
html.zbfl--ar .entry-content .zbq__call-mail span {
	text-align: right;
}

/* ---------- Smaller screens ---------- */

@media (max-width: 1199px) {
	html.zbfl .entry-content .zbq__top {
		gap: 24px;
	}

	html.zbfl .entry-content .zbq__form {
		padding: 30px 28px 28px;
	}
}

@media (max-width: 991px) {
	html.zbfl .entry-content .zbq {
		margin-top: 40px;
	}

	html.zbfl .entry-content .zbq__top {
		grid-template-columns: minmax(0, 1fr);
	}

	/* "How it works" beside the call card. */
	html.zbfl .entry-content .zbq__side {
		position: static;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	html.zbfl .entry-content .zbq__svcs {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px;
	}

	html.zbfl .entry-content .zbq__why-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		padding: 22px !important;
	}

	html.zbfl .entry-content .zbq__offer,
	html.zbfl .entry-content .zbq__why {
		margin-top: 56px;
	}
}

@media (max-width: 767px) {
	html.zbfl .entry-content .zbq__side {
		grid-template-columns: minmax(0, 1fr);
	}

	html.zbfl .entry-content .zbq__form {
		padding: 24px 18px 22px;
		border-radius: 16px;
	}

	html.zbfl .entry-content .zbq__how,
	html.zbfl .entry-content .zbq__call {
		padding: 22px 20px;
	}
}

@media (max-width: 575px) {
	html.zbfl .entry-content .zbq__svcs,
	html.zbfl .entry-content .zbq__why-list {
		grid-template-columns: minmax(0, 1fr);
	}

	html.zbfl .entry-content .zbq__svcs {
		gap: 16px;
	}

	html.zbfl .entry-content .zbq__svc-photo {
		aspect-ratio: 2 / 1;
	}

	html.zbfl .entry-content .zbq__svc-body {
		padding: 18px 18px 20px;
	}

	html.zbfl .entry-content .zbq__why-list {
		gap: 12px;
		padding: 14px !important;
		border-radius: 16px;
	}

	html.zbfl .entry-content .zbq__why-item {
		padding: 16px !important;
	}

	html.zbfl .entry-content .zbq__call-phone {
		font-size: 19px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbq__svc,
	html.zbfl .entry-content .zbq__photo,
	html.zbfl .entry-content .zbq__pick {
		transition: none;
	}

	html.zbfl .entry-content .zbq__svc:hover,
	html.zbfl .entry-content .zbq__svc:hover .zbq__photo {
		transform: none;
	}

	html.zbfl .entry-content .zbq__form textarea.zbq-flash {
		animation: none;
	}
}
