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

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

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

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

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

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

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

/* ---------- Quick ways to reach us ---------- */

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

html.zbfl .entry-content .zbct__quick > li {
	display: flex;
}

html.zbfl .entry-content .zbct__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	padding: 24px 24px 22px;
	border: 1px solid var(--zb-line);
	border-radius: 16px;
	background: #fff;
	color: var(--zb-text);
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

html.zbfl .entry-content .zbct__card > .zbct__icon {
	box-sizing: content-box;
	width: 22px;
	height: 22px;
	margin-bottom: 16px;
	padding: 12px;
	border-radius: 50%;
	background: #fdeef0;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbct__card-kicker {
	margin-bottom: 4px;
	color: var(--zb-muted);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

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

html.zbfl .entry-content .zbct__card-main {
	margin-bottom: 6px;
	color: var(--zb-ink);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.35;
}

html.zbfl--ar .entry-content .zbct__card-main[dir="ltr"] {
	text-align: right;
}

html.zbfl .entry-content .zbct__card-main--mail {
	font-size: 16.5px;
	overflow-wrap: break-word;
}

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

html.zbfl .entry-content .zbct__card-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: auto;
	padding-top: 2px;
	color: var(--zb-red);
	font-weight: 700;
}

html.zbfl .entry-content .zbct__card-link .zbct__icon {
	width: 17px;
	height: 17px;
	stroke-width: 2.2;
	transition: transform .2s ease;
}

html.zbfl--ar .entry-content .zbct__card-link .zbct__icon {
	transform: scaleX(-1);
}

html.zbfl .entry-content .zbct__card:hover,
html.zbfl .entry-content .zbct__card:focus-visible {
	border-color: rgba(221, 0, 23, .45);
	box-shadow: 0 14px 30px -18px rgba(18, 20, 23, .45);
	transform: translateY(-2px);
}

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

/* ---------- Form card beside the map and details ---------- */

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

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

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

html.zbfl .entry-content .zbct__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;
}

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

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

/* ---------- Map ---------- */

html.zbfl .entry-content .zbct__side {
	display: grid;
	gap: 20px;
}

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

html.zbfl .entry-content .zbct__map {
	position: relative;
	overflow: hidden;
	width: 100%;
	min-width: 0;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--zb-line);
	border-radius: 18px;
	background:
		repeating-linear-gradient(0deg, transparent 0 38px, rgba(18, 20, 23, .045) 38px 39px),
		repeating-linear-gradient(90deg, transparent 0 38px, rgba(18, 20, 23, .045) 38px 39px),
		var(--zb-soft);
}

html.zbfl .entry-content .zbct__map-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 28px;
	text-align: center;
}

html.zbfl .entry-content .zbct__map-ph > .zbct__icon {
	box-sizing: content-box;
	width: 26px;
	height: 26px;
	margin-bottom: 14px;
	padding: 13px;
	border-radius: 50%;
	background: #fff;
	color: var(--zb-red);
	box-shadow: 0 8px 20px -12px rgba(18, 20, 23, .5);
}

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

html.zbfl .entry-content .zbct__map-note {
	max-width: 300px;
	margin: 0 0 18px;
	color: var(--zb-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

html.zbfl .entry-content .zbct__map-btns {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
}

/* !important: the cookie tool styles its "cmp-revoke-consent" links as plain underlined text. */
html.zbfl .entry-content .zbct__btn {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	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-decoration: none !important;
	text-transform: none !important;
	transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

html.zbfl .entry-content .zbct__btn .zbct__icon {
	width: 16px;
	height: 16px;
	stroke-width: 2.2;
}

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

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

html.zbfl .entry-content .zbct__btn--line {
	border-color: #c9ced4 !important;
	background: #fff !important;
	color: var(--zb-ink) !important;
}

html.zbfl .entry-content .zbct__btn--line:hover,
html.zbfl .entry-content .zbct__btn--line:focus-visible {
	border-color: var(--zb-ink) !important;
}

/* The map itself: hidden while the cookie tool holds it back (no address yet), then it covers the card. */
html.zbfl .entry-content .zbct__map-frame {
	position: absolute;
	inset: 0;
	z-index: 1;
	width: 100%;
	height: 100%;
	border: 0;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbct__map-frame:not([src]),
html.zbfl .entry-content .zbct__map-frame[src=""],
html.zbfl .entry-content .zbct__map-frame[src="about:blank"] {
	visibility: hidden;
}

/* ---------- Working hours and address ---------- */

html.zbfl .entry-content .zbct__info {
	padding: 26px 26px 24px;
	border-radius: 18px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbct__info-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px !important;
	color: var(--zb-ink) !important;
	font-size: 17px !important;
	font-weight: 700;
	line-height: 1.3 !important;
}

html.zbfl .entry-content .zbct__info-title .zbct__icon {
	width: 20px;
	height: 20px;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbct__hours {
	margin: 0 0 24px;
}

html.zbfl .entry-content .zbct__hours-row {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 4px 16px;
	padding: 10px 0;
	border-bottom: 1px solid #e1e4e8;
	font-size: 15px;
	line-height: 1.45;
}

html.zbfl .entry-content .zbct__hours-row:last-child {
	border-bottom: 0;
	padding-bottom: 0;
}

html.zbfl .entry-content .zbct__hours dt {
	margin: 0;
	color: var(--zb-ink);
	font-weight: 600;
}

html.zbfl .entry-content .zbct__hours dd {
	margin: 0;
	color: var(--zb-muted);
}

html.zbfl .entry-content .zbct__address {
	margin: 0;
	color: var(--zb-text);
	font-size: 15px;
}

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

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

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

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

	/* Quick cards: one under the other, icon at the side. */
	html.zbfl .entry-content .zbct__quick {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	html.zbfl .entry-content .zbct__card {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr);
		column-gap: 16px;
		align-items: center;
		padding: 18px 20px;
	}

	html.zbfl .entry-content .zbct__card > .zbct__icon {
		grid-row: 1 / span 3;
		margin: 0;
	}

	html.zbfl .entry-content .zbct__card-main {
		margin-bottom: 2px;
	}

	html.zbfl .entry-content .zbct__card-link {
		margin-top: 2px;
	}

	html.zbfl .entry-content .zbct__main {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 24px;
	}

	/* Map beside the hours; the map is as tall as the hours card. */
	html.zbfl .entry-content .zbct__side {
		position: static;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		align-items: stretch;
	}

	html.zbfl .entry-content .zbct__map {
		aspect-ratio: auto;
		min-height: 300px;
	}
}

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

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

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

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbct__card,
	html.zbfl .entry-content .zbct__card-link .zbct__icon {
		transition: none;
	}

	html.zbfl .entry-content .zbct__card:hover {
		transform: none;
	}
}
