/*
 * Ziebart UAE - one look for the enquiry forms in the page content (see inner-v3/forms.js, inc/zb-forms.php).
 * Applies only to forms the script has prepared (class "zbf"). Several properties carry !important because older theme
 * styles force sizes on the fields and the Send button with !important.
 * Xtreme IT Services, 2026-11-20.
 */

html.zbfl .entry-content .wpcf7-form.zbf {
	--zbf-line: #cfd4da;
	--zbf-line-hover: #aeb4bb;
	color: var(--zb-text);
	text-align: start;
}

/* Get a quote had two floated halves: one column of fields instead. */
html.zbfl .entry-content .zbf .ofercontact {
	height: auto;
	overflow: visible;
}

html.zbfl .entry-content .zbf .ofercontact > .zbf-col {
	float: none;
	width: auto;
	padding: 0;
}

html.zbfl .entry-content .zbf br {
	display: none;
}

/* ---------- Fields and labels ---------- */

html.zbfl .entry-content .zbf .zbf-field {
	min-width: 0;
	margin: 0 0 18px;
}

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

html.zbfl .entry-content .zbf.zbf--wide .zbf-row {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

html.zbfl .entry-content .zbf .zbf-label {
	display: block;
	margin: 0 0 7px;
	padding: 0;
	color: var(--zb-ink) !important;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.35;
	text-transform: none;
	letter-spacing: 0;
}

html.zbfl .entry-content .zbf .zbf-req {
	margin-inline-start: 3px;
	color: var(--zb-red);
}

html.zbfl .entry-content .zbf .wpcf7-form-control-wrap {
	display: block;
	position: relative;
}

html.zbfl .entry-content .zbf :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
	display: block;
	width: 100% !important;
	height: 50px !important;
	min-height: 0;
	margin: 0 !important;
	padding: 0 14px !important;
	border: 1px solid var(--zbf-line) !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	color: var(--zb-ink) !important;
	font-family: inherit;
	font-size: 15.5px !important;
	font-weight: 400 !important;
	line-height: 1.4;
	text-transform: none !important;
	box-shadow: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

/* ".zbf-field" keeps these rules stronger than the shared field rule above. */
html.zbfl .entry-content .zbf .zbf-field textarea {
	height: 140px !important;
	min-height: 110px;
	padding: 12px 14px !important;
	resize: vertical;
}

html.zbfl .entry-content .zbf .zbf-field select {
	-webkit-appearance: none;
	appearance: none;
	padding-inline-end: 42px !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23676d74' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: right 15px center !important;
	background-size: 14px 14px !important;
	cursor: pointer;
}

html.zbfl--ar .entry-content .zbf .zbf-field select {
	background-position: left 15px center !important;
}

html.zbfl .entry-content .zbf :is(input, select, textarea):hover {
	border-color: var(--zbf-line-hover) !important;
}

html.zbfl .entry-content .zbf :is(input, select, textarea):focus {
	outline: none;
	border-color: var(--zb-red) !important;
	box-shadow: 0 0 0 3px rgba(221, 0, 23, .14);
}

html.zbfl .entry-content .zbf ::placeholder {
	color: #8a9097;
	opacity: 1;
	text-transform: none;
}

/* Phone field: the country flag sits at the start; numbers always read left to right. */
html.zbfl .entry-content .zbf .iti {
	display: block;
	width: 100%;
	margin: 0;
	direction: ltr !important; /* a site script sets "rtl" on it in Arabic, which put the arrow before the flag */
}

html.zbfl .entry-content .zbf .iti input[type="tel"] {
	padding-left: 56px !important;
	padding-right: 14px !important;
	direction: ltr;
	text-align: left;
}

html.zbfl .entry-content .zbf .iti__selected-flag,
html.zbfl .entry-content .zbf .iti__selected-country {
	padding: 0 8px 0 14px;
	border-radius: 10px 0 0 10px;
}

html.zbfl--ar .entry-content .zbf .iti__country-list {
	text-align: left;
}

/* Messages under a field when something is missing. */
html.zbfl .entry-content .zbf .wpcf7-not-valid {
	border-color: var(--zb-red) !important;
}

html.zbfl .entry-content .zbf .wpcf7-not-valid-tip {
	margin-top: 6px;
	background: none;
	color: var(--zb-red);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

/* ---------- Consent, robot check, Send ---------- */

html.zbfl .entry-content .zbf .zbf-consent {
	margin: 4px 0 18px !important;
	padding: 14px 16px;
	border-radius: 10px;
	background: var(--zb-soft);
}

html.zbfl .entry-content .zbf .zbf-consent .wpcf7-list-item-label,
html.zbfl .entry-content .zbf .zbf-consent .gb-privacy-notice-statement {
	color: var(--zb-text) !important;
	font-size: 13.5px;
	line-height: 1.6;
}

html.zbfl .entry-content .zbf .zbf-consent a {
	color: var(--zb-red) !important;
}

html.zbfl .entry-content .zbf .zbf-robot {
	margin: 0 0 18px;
}

html.zbfl .entry-content .zbf .zbf-robot:empty {
	margin: 0;
}

html.zbfl .entry-content .zbf .zbf-submit {
	position: relative;
	margin: 0 !important;
}

html.zbfl .entry-content .zbf input.wpcf7-submit {
	display: block;
	width: 100% !important;
	height: 52px;
	margin: 0;
	padding: 0 28px !important;
	border: 0 !important;
	border-radius: 10px;
	background: var(--zb-red) !important;
	color: #fff !important;
	font-family: inherit;
	font-size: 16.5px !important;
	font-weight: 700 !important;
	letter-spacing: 0;
	text-transform: none !important;
	cursor: pointer;
	transition: background-color .2s ease, box-shadow .2s ease;
}

html.zbfl .entry-content .zbf.zbf--wide input.wpcf7-submit {
	width: auto !important;
	min-width: 220px;
}

html.zbfl .entry-content .zbf input.wpcf7-submit:hover,
html.zbfl .entry-content .zbf input.wpcf7-submit:focus-visible {
	background: var(--zb-red-dark) !important;
	color: #fff !important;
	box-shadow: 0 10px 22px -12px rgba(221, 0, 23, .7);
}

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

html.zbfl .entry-content .zbf input.wpcf7-submit:disabled {
	opacity: .6;
	cursor: wait;
}

html.zbfl .entry-content .zbf .wpcf7-spinner {
	position: absolute;
	top: 50%;
	inset-inline-end: 14px;
	margin: -12px 0 0;
}

html.zbfl .entry-content .zbf.zbf--wide .wpcf7-spinner {
	position: static;
	margin: 0 12px;
	vertical-align: middle;
}

html.zbfl .entry-content .zbf.zbf--wide .zbf-submit {
	display: flex;
	align-items: center;
}

/* Message after sending. */
html.zbfl .entry-content .wpcf7 form.zbf .wpcf7-response-output {
	margin: 18px 0 0 !important;
	padding: 13px 16px !important;
	border: 1px solid #f0b429 !important;
	border-radius: 10px;
	background: #fff8e6;
	color: #6b4e00;
	font-size: 14.5px;
	line-height: 1.5;
}

html.zbfl .entry-content .wpcf7 form.zbf.sent .wpcf7-response-output {
	border-color: #2e9d57 !important;
	background: #edf8f1;
	color: #155c31;
}

html.zbfl .entry-content .wpcf7 form.zbf:is(.failed, .aborted, .spam) .wpcf7-response-output {
	border-color: var(--zb-red) !important;
	background: #fdeef0;
	color: #8a0010;
}

html.zbfl .entry-content .wpcf7 form.zbf.init .wpcf7-response-output {
	display: none;
}

/* Arabic */
html.zbfl--ar .entry-content .zbf .zbf-label,
html.zbfl--ar .entry-content .zbf input.wpcf7-submit {
	font-family: "Changa", "Noto Sans Kufi Arabic", Tahoma, Arial, sans-serif;
}

html.zbfl--ar .entry-content .zbf .zbf-label {
	font-size: 14.5px;
	font-weight: 600;
}

/* Phones: 16px text stops the phone from zooming in when a field is tapped. */
@media (max-width: 767px) {
	html.zbfl .entry-content .zbf :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea) {
		font-size: 16px !important;
	}

	html.zbfl .entry-content .zbf .zbf-field {
		margin-bottom: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html.zbfl .entry-content .zbf :is(input, select, textarea) {
		transition: none;
	}
}
