/*
 * Ziebart UAE - CoverME page, new layout (see inc/zb-coverme.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.
 */

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

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

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

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

html.zbfl .entry-content .zbcv figure {
	margin: 0;
}

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

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

html.zbfl .entry-content .zbcv__title {
	margin: 0 0 8px !important;
	padding: 0 !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 .zbcv__title::after {
	content: none !important;
}

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

html.zbfl .entry-content .zbcv__head {
	margin-bottom: 22px;
}

html.zbfl .entry-content .zbcv__head .zbcv__intro {
	margin: 0;
}

html.zbfl .entry-content .zbcv__block {
	margin-top: 72px;
}

/* ---------- Gallery beside the order form ---------- */

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

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

html.zbfl .entry-content .zbcv__stage {
	position: relative;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 18px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbcv__slide {
	position: absolute;
	inset: 0;
}

html.zbfl .entry-content .zbcv__slide[hidden] {
	display: none;
}

html.zbfl .entry-content .zbcv__photo {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

html.zbfl .entry-content .zbcv__gallery--js .zbcv__slide.is-on {
	animation: zbcv-fade .35s ease;
}

@keyframes zbcv-fade {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

/* Small photos: only once the script can switch them. */
html.zbfl .entry-content .zbcv__thumbs {
	display: none;
}

html.zbfl .entry-content .zbcv__gallery--js .zbcv__thumbs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(0, 1fr);
	gap: 10px;
	margin-top: 12px;
}

/* The theme gives every button a 35px height, a grey background and capitals. */
html.zbfl .entry-content .zbcv__thumb {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 2px solid transparent;
	border-radius: 12px;
	background: var(--zb-soft);
	cursor: pointer;
	opacity: .72;
	transition: border-color .2s ease, opacity .2s ease;
}

html.zbfl .entry-content .zbcv__thumb:hover,
html.zbfl .entry-content .zbcv__thumb:focus-visible {
	opacity: 1;
}

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

html.zbfl .entry-content .zbcv__thumb.is-on {
	border-color: var(--zb-red);
	opacity: 1;
}

html.zbfl .entry-content .zbcv__thumb-img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
	object-fit: cover;
}

/* Form card */
html.zbfl .entry-content .zbcv__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 .zbcv__form .wpcf7 {
	margin: 0;
}

/* ---------- Features at a glance ---------- */

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

html.zbfl .entry-content .zbcv__feat {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 22px 20px !important;
	border: 1px solid var(--zb-line);
	border-radius: 16px;
	background: #fff;
}

html.zbfl .entry-content .zbcv__feat > .zbcv__icon,
html.zbfl .entry-content .zbcv__why-item > .zbcv__icon {
	box-sizing: content-box;
	width: 24px;
	height: 24px;
	margin-bottom: 14px;
	padding: 12px;
	border-radius: 50%;
	background: #fdeef0;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbcv__feat strong {
	margin-bottom: 4px;
	color: var(--zb-ink);
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.35;
}

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

/* ---------- Specifications ---------- */

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

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

html.zbfl .entry-content .zbcv__spec {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	column-gap: 16px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid var(--zb-line);
}

html.zbfl .entry-content .zbcv__spec:last-child {
	border-bottom: 0;
}

html.zbfl .entry-content .zbcv__spec > .zbcv__icon {
	box-sizing: content-box;
	grid-row: 1 / span 2;
	width: 20px;
	height: 20px;
	padding: 12px;
	border-radius: 50%;
	background: var(--zb-soft);
	color: var(--zb-red);
}

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

html.zbfl .entry-content .zbcv__spec dd {
	margin: 2px 0 0;
	color: var(--zb-muted);
	font-size: 15px;
	line-height: 1.55;
}

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

html.zbfl .entry-content .zbcv__season {
	overflow: hidden;
	border-radius: 18px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbcv__season-img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	margin: 0;
	border: 0;
	border-radius: 0;
}

/* ---------- Why CoverME? ---------- */

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

html.zbfl .entry-content .zbcv__why-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	padding: 22px 22px 20px !important;
	border-radius: 14px;
	background: #fff;
}

html.zbfl .entry-content .zbcv__why-item > .zbcv__icon {
	background: #fff;
	box-shadow: inset 0 0 0 1px #f3c9ce;
}

html.zbfl .entry-content .zbcv__why-item h3 {
	margin: 0 0 6px !important;
	padding: 0 !important;
	color: var(--zb-ink) !important;
	font-size: 16.5px !important;
	font-weight: 700;
	line-height: 1.35 !important;
	text-transform: none !important;
}

html.zbfl .entry-content .zbcv__why-item p {
	margin: 0;
	color: var(--zb-muted);
	font-size: 14.5px;
	line-height: 1.55;
}

/* ---------- English page: introduction with links ---------- */

html.zbfl .entry-content .zbcv__about {
	padding-top: 28px;
	border-top: 1px solid var(--zb-line);
}

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

html.zbfl .entry-content .zbcv__about-title::after {
	content: none !important;
}

html.zbfl .entry-content .zbcv__about p {
	max-width: 900px;
	margin: 0;
	color: var(--zb-muted);
	font-size: 15px;
	line-height: 1.7;
}

html.zbfl .entry-content .zbcv__about a {
	color: var(--zb-red);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Arabic */
html.zbfl--ar .entry-content .zbcv__feat strong,
html.zbfl--ar .entry-content .zbcv__spec dt,
html.zbfl--ar .entry-content .zbcv__why-item h3 {
	font-weight: 600;
}

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

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

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

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

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

	/* The first photo is square with words at the bottom, so it stays square and is not cut. */
	html.zbfl .entry-content .zbcv__gallery {
		position: static;
		width: 100%;
		max-width: 560px;
		margin-inline: auto;
	}

	html.zbfl .entry-content .zbcv__feats,
	html.zbfl .entry-content .zbcv__why-list {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	html.zbfl .entry-content .zbcv__why-list {
		padding: 22px !important;
	}

	html.zbfl .entry-content .zbcv__block {
		margin-top: 56px;
	}

	/* The theme zeroes figure margins, so the grid centres it instead. */
	html.zbfl .entry-content .zbcv__season {
		width: 100%;
		max-width: 560px;
		justify-self: center;
	}
}

@media (max-width: 767px) {
	html.zbfl .entry-content .zbcv__form {
		padding: 24px 18px 22px;
		border-radius: 16px;
	}

	html.zbfl .entry-content .zbcv__stage {
		border-radius: 16px;
	}

	html.zbfl .entry-content .zbcv__gallery--js .zbcv__thumbs {
		gap: 8px;
	}

	html.zbfl .entry-content .zbcv__thumb {
		border-radius: 10px;
	}

	html.zbfl .entry-content .zbcv__specs {
		padding: 4px 18px !important;
	}
}

@media (max-width: 575px) {
	html.zbfl .entry-content .zbcv__feats {
		gap: 12px;
	}

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

	html.zbfl .entry-content .zbcv__feat > .zbcv__icon {
		width: 20px;
		height: 20px;
		margin-bottom: 10px;
		padding: 10px;
	}

	html.zbfl .entry-content .zbcv__feat strong {
		font-size: 15px;
	}

	html.zbfl .entry-content .zbcv__feat span {
		font-size: 13.5px;
	}

	html.zbfl .entry-content .zbcv__why-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
		padding: 14px !important;
		border-radius: 16px;
	}

	/* Why cards: icon at the side to keep the list short. */
	html.zbfl .entry-content .zbcv__why-item {
		display: grid;
		grid-template-columns: 44px minmax(0, 1fr);
		column-gap: 14px;
		padding: 16px !important;
	}

	html.zbfl .entry-content .zbcv__why-item > .zbcv__icon {
		grid-row: 1 / span 2;
		width: 20px;
		height: 20px;
		margin: 0;
		padding: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbcv__gallery--js .zbcv__slide.is-on {
		animation: none;
	}

	html.zbfl .entry-content .zbcv__thumb {
		transition: none;
	}
}
