/*
 * Ziebart UAE - "Offers" and "Ziebart Offers" campaign pages, new layouts (see inc/zb-offers.php).
 * Form fields: inner-v3/forms.css. Headings and buttons carry !important because older site-wide styles force sizes,
 * margins, a grey background and a fixed height on h2/h3 and every button-like element.
 * Xtreme IT Services, 2026-11-20.
 */

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

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

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

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

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

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

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

/* ---------- Opening text ---------- */

html.zbfl .entry-content .zbof__lead {
	max-width: 680px;
	margin-bottom: 30px;
}

html.zbfl .entry-content .zbof__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 .zbof__kicker::before {
	content: "";
	width: 26px;
	height: 3px;
	border-radius: 2px;
	background: var(--zb-red);
}

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

html.zbfl .entry-content .zbof__title {
	margin: 0 0 10px !important;
	padding: 0 !important;
	color: var(--zb-ink) !important;
	font-size: clamp(26px, 1.2vw + 16px, 34px) !important;
	font-weight: 800;
	line-height: 1.2 !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbof__title--form {
	margin-bottom: 8px !important;
	font-size: clamp(25px, 1vw + 16px, 30px) !important;
}

html.zbfl .entry-content .zbof__title::after,
html.zbfl .entry-content .zbof__name::after,
html.zbfl .entry-content .zbof__box-title::after,
html.zbfl .entry-content .zbof__call-title::after {
	content: none !important;
}

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

html.zbfl .entry-content .zbof__intro--form {
	margin-bottom: 26px;
	font-size: 16px;
}

/* ---------- Buttons ---------- */

html.zbfl .entry-content .zbof__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: auto !important;
	height: auto !important;
	min-height: 46px;
	margin: 0 !important;
	padding: 0 18px !important;
	border: 1px solid transparent !important;
	border-radius: 10px !important;
	font-family: inherit !important;
	font-size: 14.5px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
	text-align: center;
	text-decoration: none !important;
	text-transform: none !important;
	white-space: nowrap;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

html.zbfl .entry-content .zbof__btn .zbof__icon {
	width: 17px;
	height: 17px;
	stroke-width: 2.1;
}

html.zbfl .entry-content .zbof__btn--red {
	background: var(--zb-red) !important;
	color: #fff !important;
}

html.zbfl .entry-content .zbof__btn--red:hover,
html.zbfl .entry-content .zbof__btn--red:focus-visible {
	background: var(--zb-red-dark) !important;
}

html.zbfl .entry-content .zbof__btn--white {
	background: #fff !important;
	color: var(--zb-red) !important;
}

html.zbfl .entry-content .zbof__btn--white:hover,
html.zbfl .entry-content .zbof__btn--white:focus-visible {
	background: #f3f4f6 !important;
}

html.zbfl .entry-content .zbof__btn--ghost {
	border-color: rgba(255, 255, 255, .55) !important;
	background: transparent !important;
	color: #fff !important;
}

html.zbfl .entry-content .zbof__btn--ghost:hover,
html.zbfl .entry-content .zbof__btn--ghost:focus-visible {
	border-color: #fff !important;
	background: rgba(255, 255, 255, .08) !important;
}

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

html.zbfl .entry-content .zbof__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--zb-red);
	font-size: 15px;
	font-weight: 700;
}

html.zbfl .entry-content .zbof__more .zbof__icon {
	width: 17px;
	height: 17px;
	stroke-width: 2.2;
}

html.zbfl .entry-content .zbof__more:hover,
html.zbfl .entry-content .zbof__more:focus-visible {
	color: var(--zb-red-dark);
	text-decoration: underline;
}

/* ---------- Offer cards ---------- */

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

html.zbfl .entry-content .zbof__item {
	display: flex;
	min-width: 0;
}

html.zbfl .entry-content .zbof__card {
	display: flex;
	flex-direction: column;
	width: 100%;
	overflow: hidden;
	border: 1px solid var(--zb-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--zb-shadow);
}

/* The offer pictures carry their own text, so they are always shown whole (never cropped). */
html.zbfl .entry-content .zbof__media {
	aspect-ratio: 1 / 1;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbof__img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: contain;
}

html.zbfl .entry-content .zbof__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 22px 24px 24px;
}

html.zbfl .entry-content .zbof__kind {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 8px;
	color: var(--zb-muted);
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

html.zbfl .entry-content .zbof__kind .zbof__icon {
	width: 15px;
	height: 15px;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbof__name {
	margin: 0 0 8px !important;
	padding: 0 !important;
	color: var(--zb-ink) !important;
	font-size: 22px !important;
	font-weight: 800;
	line-height: 1.25 !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbof__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 6px;
	margin: 0 0 18px;
	padding-bottom: 18px;
	border-bottom: 1px dashed var(--zb-line);
	color: var(--zb-ink);
}

html.zbfl .entry-content .zbof__cur {
	font-size: 15px;
	font-weight: 700;
}

html.zbfl .entry-content .zbof__amount {
	color: var(--zb-red);
	font-size: 30px;
	font-weight: 800;
	line-height: 1.1;
}

html.zbfl .entry-content .zbof__amount--text {
	font-size: 24px;
}

html.zbfl .entry-content .zbof__vat {
	flex-basis: 100%;
	color: var(--zb-muted);
	font-size: 13.5px;
}

html.zbfl .entry-content .zbof__list-title {
	margin: 0 0 10px;
	color: var(--zb-ink);
	font-size: 14.5px;
	font-weight: 700;
}

html.zbfl .entry-content .zbof__list {
	display: grid;
	gap: 9px;
	margin-bottom: 20px !important;
}

html.zbfl .entry-content .zbof__list > li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 15px;
	line-height: 1.45;
}

html.zbfl .entry-content .zbof__list .zbof__icon {
	box-sizing: content-box;
	width: 13px;
	height: 13px;
	margin-top: 1px;
	padding: 3px;
	border-radius: 50%;
	background: #fdeef0;
	color: var(--zb-red);
	stroke-width: 3;
}

html.zbfl .entry-content .zbof__card .zbof__more {
	margin: -6px 0 20px;
}

html.zbfl .entry-content .zbof__actions {
	margin-top: auto;
}

html.zbfl .entry-content .zbof__actions .zbof__btn {
	width: 100% !important;
}

/* ---------- Form beside the side boxes ---------- */

html.zbfl .entry-content .zbof__main {
	display: grid;
	grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
	gap: 32px;
	align-items: start;
	margin-top: 56px;
	scroll-margin-top: calc(var(--zb-pin, 90px) + 16px);
}

html.zbfl .entry-content .zbof--campaign .zbof__main {
	margin-top: 36px;
}

html.zbfl .entry-content .zbof__form {
	padding: 36px 36px 32px;
	border: 1px solid var(--zb-line);
	border-radius: 18px;
	background: #fff;
	box-shadow: var(--zb-shadow);
}

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

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

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

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

html.zbfl .entry-content .zbof__steps {
	display: grid;
	gap: 18px;
}

html.zbfl .entry-content .zbof__steps > li {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

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

html.zbfl .entry-content .zbof__step-title {
	display: block;
	margin: 5px 0 3px;
	color: var(--zb-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
}

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

/* Dark call box */
html.zbfl .entry-content .zbof__call {
	padding: 28px 26px 26px;
	border-radius: 18px;
	background: radial-gradient(120% 90% at 100% 0%, rgba(221, 0, 23, .38) 0%, rgba(221, 0, 23, 0) 60%), #17191c;
	color: #fff;
}

html.zbfl--ar .entry-content .zbof__call {
	background: radial-gradient(120% 90% at 0% 0%, rgba(221, 0, 23, .38) 0%, rgba(221, 0, 23, 0) 60%), #17191c;
}

html.zbfl .entry-content .zbof__call-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

html.zbfl .entry-content .zbof__call-title {
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: #fff !important;
	font-size: 20px !important;
	font-weight: 800;
	line-height: 1.3 !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbof__call-text {
	margin: 0 0 18px;
	color: rgba(255, 255, 255, .78);
	font-size: 15px;
	line-height: 1.55;
}

html.zbfl .entry-content .zbof__call-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

html.zbfl .entry-content .zbof__call-actions .zbof__btn {
	flex: 1 1 auto;
}

/* ---------- Campaign page ---------- */

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

html.zbfl .entry-content .zbsc__lead {
	margin-bottom: 0;
}

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

html.zbfl .entry-content .zbsc__stats > li {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 16px 16px;
	border: 1px solid var(--zb-line);
	border-radius: 14px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbsc__stat-num {
	color: var(--zb-red);
	font-size: 26px;
	font-weight: 800;
	line-height: 1.1;
}

html.zbfl .entry-content .zbsc__stat-label {
	color: var(--zb-text);
	font-size: 13.5px;
	line-height: 1.4;
}

html.zbfl .entry-content .zbsc__list {
	display: grid;
	margin: -8px 0 16px !important;
}

html.zbfl .entry-content .zbsc__list > li + li {
	border-top: 1px solid var(--zb-line);
}

html.zbfl .entry-content .zbsc__svc {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 0;
	color: var(--zb-text);
}

html.zbfl .entry-content .zbsc__thumb {
	flex: none;
	width: 48px;
	height: 48px;
	margin: 0;
	border-radius: 10px;
	object-fit: cover;
}

html.zbfl .entry-content .zbsc__svc-text {
	display: flex;
	flex: 1 1 auto;
	flex-wrap: wrap;
	align-items: center;
	gap: 2px 8px;
	min-width: 0;
}

html.zbfl .entry-content .zbsc__svc-name {
	color: var(--zb-ink);
	font-size: 15.5px;
	font-weight: 700;
	line-height: 1.35;
}

html.zbfl .entry-content .zbsc__svc-name sup {
	font-size: .6em;
}

html.zbfl .entry-content .zbsc__badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: #fdeef0;
	color: var(--zb-red);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
}

html.zbfl .entry-content .zbsc__svc-line {
	flex-basis: 100%;
	color: var(--zb-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

html.zbfl .entry-content .zbsc__svc > .zbof__icon {
	width: 18px;
	height: 18px;
	color: var(--zb-red);
	stroke-width: 2.2;
	transition: transform .2s ease;
}

html.zbfl .entry-content .zbsc__svc:hover .zbsc__svc-name,
html.zbfl .entry-content .zbsc__svc:focus-visible .zbsc__svc-name {
	color: var(--zb-red);
}

html.zbfl .entry-content .zbsc__svc:hover > .zbof__icon {
	transform: translateX(3px);
}

html.zbfl--ar .entry-content .zbsc__svc:hover > .zbof__icon {
	transform: scaleX(-1) translateX(3px);
}

html.zbfl .entry-content .zbsc__svc:focus-visible {
	outline: 2px solid var(--zb-red);
	outline-offset: 2px;
	border-radius: 6px;
}

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

@media (max-width: 1199px) {
	html.zbfl .entry-content .zbof__form {
		padding: 30px 28px 28px;
	}

	html.zbfl .entry-content .zbof__body {
		padding: 20px 20px 22px;
	}
}

@media (max-width: 1080px) {
	html.zbfl .entry-content .zbof__main {
		scroll-margin-top: 88px;
	}
}

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

	/* Offer cards: one under the other, picture at the side. */
	html.zbfl .entry-content .zbof__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

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

	html.zbfl .entry-content .zbof__media {
		align-self: start;
	}

	html.zbfl .entry-content .zbof__main,
	html.zbfl .entry-content .zbsc__top {
		grid-template-columns: minmax(0, 1fr);
		gap: 24px;
	}

	html.zbfl .entry-content .zbof__main {
		margin-top: 40px;
	}

	html.zbfl .entry-content .zbof__side {
		position: static;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: start;
	}

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

@media (max-width: 767px) {
	html.zbfl .entry-content .zbof__lead {
		margin-bottom: 24px;
	}

	html.zbfl .entry-content .zbof__card {
		display: flex;
	}

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

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

	html.zbfl .entry-content .zbof__box,
	html.zbfl .entry-content .zbof__call {
		padding: 22px 20px 20px;
		border-radius: 16px;
	}

	html.zbfl .entry-content .zbsc__stats {
		gap: 8px;
	}

	html.zbfl .entry-content .zbsc__stats > li {
		padding: 14px 12px 12px;
	}

	html.zbfl .entry-content .zbsc__stat-num {
		font-size: 22px;
	}

	html.zbfl .entry-content .zbsc__stat-label {
		font-size: 12.5px;
	}
}

@media (max-width: 400px) {
	html.zbfl .entry-content .zbof__call-actions .zbof__btn {
		flex-basis: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbof__btn,
	html.zbfl .entry-content .zbsc__svc > .zbof__icon {
		transition: none;
	}
}
