/*
 * Ziebart UAE - site-wide layout and readability fixes (2026-11-20).
 * Loaded after the theme and plugin styles so these rules win. Remove the link in header.php to undo.
 */

/* ---------- Consent checkbox on every form ---------- */
/* Tick box and its text sit side by side; the privacy line lines up under the text. */
.wpcf7 .wpcf7-acceptance .wpcf7-list-item { display: block; margin: 0; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item > label {
	display: grid !important;
	grid-template-columns: 18px minmax(0, 1fr);
	column-gap: 10px;
	align-items: start;
	margin: 0 !important;
	padding: 0 !important;
	text-align: start;
	font-size: 13px;
	line-height: 1.55;
	font-weight: 400;
	cursor: pointer;
}
.wpcf7 .wpcf7-acceptance label > input[type="checkbox"] {
	grid-column: 1;
	grid-row: 1;
	width: 18px !important;
	height: 18px !important;
	min-height: 0 !important;
	margin: 2px 0 0 !important;
	padding: 0 !important;
	border: 0;
	box-shadow: none;
	accent-color: #dd0017;
	cursor: pointer;
}
.wpcf7 .wpcf7-acceptance label > .wpcf7-list-item-label {
	grid-column: 2;
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
	text-indent: 0;
	font-size: 13px;
	line-height: 1.55;
}
.wpcf7 .wpcf7-acceptance label > .gb-privacy-notice-statement { margin-top: 6px !important; }
.wpcf7 .wpcf7-acceptance .wpcf7-list-item-label a { text-decoration: underline; font-weight: 600; }

/* ---------- Get a Free Quote block (red) ---------- */
/* The block had a fixed 400px height on desktop, so the robot check and the Send button
   fell below it and were hidden behind the next section. Let it grow with the form. */
@media (min-width: 1025px) {
	#redcbg,
	#redcbg .container.vc-cont { height: auto !important; }
	#redcbg { display: flow-root; padding-bottom: 50px; }
	#redcbg .container.vc-cont { display: flow-root; }
}

/* Text on the red block: white so it can be read; links white and underlined. */
#redcbg,
#redcbg label,
#redcbg span.wpcf7-list-item-label,
#redcbg .gb-marketing-consent-text,
#redcbg .gb-privacy-notice-statement { color: #fff !important; }
#redcbg span.wpcf7-list-item-label a,
#redcbg .gb-privacy-notice-statement a,
#redcbg .wpcf7-acceptance a { color: #fff !important; text-decoration: underline !important; }
#redcbg .wpcf7-acceptance label > input[type="checkbox"] { accent-color: #fff; }
#redcbg .wpcf7-not-valid-tip { color: #fff !important; font-weight: 600; font-size: 13px; }
#redcbg .wpcf7-response-output { color: #fff !important; border-color: #fff !important; }
#redcbg input.wpcf7-submit { border: 1px solid #fff !important; }
#redcbg input.wpcf7-submit:hover,
#redcbg input.wpcf7-submit:focus { background: #fff !important; color: #b80012 !important; }

/* ---------- Form field labels ---------- */
/* The Arabic contact form labels were a pale grey that was hard to read. */
.wpcf7 form p > label { color: #333; }

/* ---------- Phones: no sideways scrolling ---------- */
/* Rows with column gaps stuck out 10-20px past the screen edge on some service pages,
   so the whole page could be dragged sideways. Trim that overhang; nothing visible is cut. */
@media (max-width: 767px) {
	div.page,
	div.main-page { overflow-x: clip; }
}

/* ---------- Links: no box after a click or tap ---------- */
/* The theme framework drew a black box round a link when it was clicked (seen on the top menu).
   Mouse and touch users no longer see it; keyboard users still see where they are as a red underline. */
a:focus,
a:active { outline: none !important; box-shadow: none; }
a:focus-visible {
	outline: none !important;
	text-decoration: underline !important;
	text-decoration-color: #dd0017 !important;
	text-decoration-thickness: 2px !important;
	text-underline-offset: 4px;
}

/* ---------- Footer (the same footer on every page, home included) ---------- */
/* Links no longer jump sideways on hover. */
footer a:hover { padding-left: 0; }
footer .social-footer a:hover { padding-left: 10px; }

/* Warranty block: tidy, evenly spaced grid; headings line up with their items. */
footer > .container > .row::before,
footer > .container > .row::after,
footer > .container .row .row::before,
footer > .container .row .row::after { content: none; display: none; }
footer > .container > .row > .col-md-1 { display: none; }
/* Lifetime group first, 5 Years second, in both languages. */
footer > .container > .row > .col-md-8 { order: 1; }
footer > .container > .row > .col-md-3 { order: 2; }
footer > .container h4 { margin: 0 0 18px; }
footer > .container .row .row { display: grid; margin: 0; row-gap: 20px; }
footer > .container .row .row > div { float: none !important; width: auto !important; min-height: 0; padding: 0; }
footer > .container .row .row p { margin: 0; line-height: 1.4; }
footer > .container .row .row p + p { margin-top: 8px; }
footer > .container .row .row img { display: block; height: auto; }

/* Desktop: the two warranty groups sit under the three columns above
   (Lifetime under the first two, 5 Years under the third), everything left-aligned. */
@media (min-width: 992px) {
	footer > .container > .row { display: flex; align-items: flex-start; }
	footer > .container > .row > .col-md-8 { float: none; width: 66.6667%; }
	footer > .container > .row > .col-md-3 { float: none; width: 33.3333%; }
	footer > .container h4 { text-align: start; }
	footer > .container .col-md-8 > .row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 30px; }
	footer > .container .col-md-3 > .row { grid-template-columns: minmax(0, 1fr); }
	footer > .container .row .row p { text-align: start !important; }
}

/* Tablets and phones: centred, with an even grid of badges. */
@media (max-width: 991px) {
	footer > .container > .row { display: flex; flex-direction: column; }
	footer > .container > .row > [class*="col-"] { float: none; width: 100%; margin-bottom: 30px; }
	footer > .container h4 { text-align: center; }
	footer > .container .col-md-8 > .row { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 12px; }
	footer > .container .col-md-3 > .row { grid-template-columns: minmax(0, 1fr); }
	footer > .container .row .row p { text-align: center !important; }
	footer > .container .row .row img { margin: 0 auto; }
	/* Arabic: the three top blocks are stored in reverse for the desktop layout;
	   on phones show them in reading order (contact, hours, social). */
	html[dir="rtl"] footer .widgets .container > .row { display: flex; flex-direction: column-reverse; }
	html[dir="rtl"] footer .widgets .container > .row::before,
	html[dir="rtl"] footer .widgets .container > .row::after { content: none; display: none; }
	/* Bottom bar: normal line spacing, and each link kept on one line. */
	.last-foot .copy { line-height: 1.8; }
	.last-foot .copy .row { padding: 6px 0 2px; }
	.last-foot .copy .col-md-6 + .col-md-6 { margin-top: 8px; }
}
@media (max-width: 575px) {
	footer > .container .col-md-8 > .row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.last-foot .copy .right a { white-space: nowrap; }

/* ---------- "Request a callback" popup (home and services pages) ---------- */
body .hustle-ui.hustle-popup[data-id] .hustle-popup-content { max-width: 620px !important; }
body .hustle-ui.hustle-popup[data-id] .hustle-popup-content .hustle-info { padding: 0 !important; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
body .hustle-ui.hustle-popup[data-id] .hustle-layout { position: relative; }
body .hustle-ui.hustle-popup[data-id] .hustle-layout .hustle-content { padding: 34px 40px 32px !important; }
body .hustle-ui.hustle-popup[data-id] .hustle-layout .hustle-content .hustle-content-wrap { padding: 0 !important; }
/* Close button: a round, clearly visible button in the corner. */
body .hustle-ui.hustle-popup[data-id] .hustle-button-close { position: absolute; top: 12px; right: 12px; z-index: 2; margin: 0 !important; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .16) !important; transition: background-color .2s; }
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .hustle-button-close { right: auto; left: 12px; }
body .hustle-ui.hustle-popup[data-id] .hustle-button-close:hover { background: rgba(255, 255, 255, .3) !important; }
/* Heading area: icon, then the title, then the short line under it, all centred. */
body .hustle-ui.hustle-popup[data-id] .hustle-group-content { display: flex; flex-direction: column; text-align: center; color: #fff; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > * { order: 4; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:first-child { order: 1; margin: 0 0 14px !important; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:first-child img { width: 56px !important; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > h2 { order: 2; margin: 0 0 6px !important; font-size: 28px !important; line-height: 1.25 !important; text-align: center !important; color: #fff !important; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:nth-child(2) { order: 3; margin: 0 0 24px !important; font-size: 16px !important; line-height: 1.5 !important; color: #fff !important; opacity: .92; }
body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:empty { display: none; }
/* Form */
body .hustle-ui.hustle-popup[data-id] .wpcf7-form { text-align: start; }
body .hustle-ui.hustle-popup[data-id] .hustle-layout .hustle-content .hustle-group-content .wpcf7-form p { margin: 0 !important; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .fbx { gap: 12px; margin-bottom: 12px; align-items: flex-start; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .fbx p { flex: 1 1 0; min-width: 0; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-form-control-wrap,
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .iti { display: block; width: 100%; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="text"],
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="email"],
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="tel"],
body .hustle-ui.hustle-popup[data-id] .wpcf7-form select { display: block; width: 100% !important; height: 46px !important; margin: 0; border: 1px solid transparent !important; border-radius: 8px !important; background-color: #fff; color: #222 !important; font-size: 15px !important; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .08); }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="text"],
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="email"] { padding: 0 14px !important; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form select { -webkit-appearance: none; appearance: none; padding: 0 38px 0 14px !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 14px center !important; cursor: pointer; }
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .wpcf7-form select { padding: 0 14px 0 38px !important; background-position: left 14px center !important; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form ::placeholder { color: #767676; opacity: 1; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form input:focus,
body .hustle-ui.hustle-popup[data-id] .wpcf7-form select:focus { outline: 3px solid rgba(255, 255, 255, .6) !important; outline-offset: 1px; }
/* Consent text, robot check and send button */
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-acceptance { display: block; margin: 6px 0 18px; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-list-item-label,
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .gb-privacy-notice-statement { font-size: 13px; line-height: 1.55; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-form-control-wrap.g-recaptcha-explicit { margin-bottom: 18px; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form > p:has(> input[name="contact_form_7_recaptcha"]) + div { display: flex; justify-content: center; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form p:has(> .wpcf7-submit) { position: relative; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-submit { display: block; width: 100% !important; height: 50px; margin: 0 !important; padding: 0 20px !important; border: 0 !important; border-radius: 8px !important; background: #fff !important; color: #dd0017 !important; font-size: 15px !important; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-submit:hover { background: #1a1a1a !important; color: #fff !important; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-submit:focus-visible { outline: 3px solid rgba(255, 255, 255, .7); outline-offset: 2px; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-spinner { position: absolute; top: 50%; right: 14px; margin: -12px 0 0; }
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-spinner { right: auto; left: 14px; }
/* Messages after sending, and field errors, stay readable on red. */
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-not-valid-tip { margin-top: 4px; color: #fff; font-size: 12px; text-align: start; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-not-valid { box-shadow: 0 0 0 2px #ffd166 !important; }
body .hustle-ui.hustle-popup[data-id] .wpcf7-form .wpcf7-response-output { margin: 14px 0 0 !important; padding: 10px 14px !important; border: 1px solid rgba(255, 255, 255, .7) !important; border-radius: 8px; color: #fff; text-align: center; }
/* Arabic popup uses the site's Arabic font. */
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .hustle-group-content,
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .hustle-group-content h2,
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .wpcf7-form input,
html[dir="rtl"] body .hustle-ui.hustle-popup[data-id] .wpcf7-form select { font-family: Changa, sans-serif !important; }
@media (max-width: 600px) {
	body .hustle-ui.hustle-popup[data-id] .hustle-layout .hustle-content { padding: 26px 20px 22px !important; }
	body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:first-child img { width: 46px !important; }
	body .hustle-ui.hustle-popup[data-id] .hustle-group-content > h2 { font-size: 23px !important; padding: 0 30px; }
	body .hustle-ui.hustle-popup[data-id] .hustle-group-content > p:nth-child(2) { font-size: 15px !important; margin-bottom: 18px !important; }
	body .hustle-ui.hustle-popup[data-id] .wpcf7-form .fbx { flex-direction: column; gap: 10px; margin-bottom: 10px; }
	body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="text"],
	body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="email"],
	body .hustle-ui.hustle-popup[data-id] .wpcf7-form input[type="tel"],
	body .hustle-ui.hustle-popup[data-id] .wpcf7-form select { height: 44px !important; }
}

/* 981-1080px wide (tablets held sideways, small laptops): the theme shows its phone header here, but the phone
   header layout only starts at 980px, so the logo came out oversized and the menu button fell below the white bar. */
@media only screen and (min-width: 981px) and (max-width: 1080px) {
	header.mobileheadernew .logo.dddd { display: flex; align-items: center; justify-content: space-between; width: 100%; top: 0; }
	header.mobileheadernew .logo img { width: 55px; padding: 4px; }
}

/* 1081-1320px wide: when the header pins on scroll the theme grew the Ziebart logo from 143px to 180px. That pushed the
   Arabic logo below the white bar and made the shield cover "HOME" in English. Keep the logo at its normal size there.
   From 1081 to 1199px the English menu needs more room, so the logo is a little smaller and the shield keeps its
   normal size when the header pins. (2026-11-20) */
@media only screen and (min-width: 1081px) and (max-width: 1320px) {
	.sticky .logo.icon img { width: 143px; }
}
@media only screen and (min-width: 1081px) and (max-width: 1199px) {
	html[dir="ltr"] header .main-header .logo.icon img { width: 120px; }
	html[dir="ltr"] header.sticky .main-header .logo.shield img { height: 40px; margin: 25px 12px 0; }
}
