/* IMM Theme Bridge: colours the Immigway theme hard-codes, corrected to the site's palette (navy #14305E, gold #C9A54A).
   Loaded only while the Immigway theme is active. The palette itself comes from the theme options and the Elementor colour kit; these rules
   cover what those cannot reach. */

/* Buttons are gold: navy text keeps them readable (white on gold is about 2.3:1). */
body a.btn,
body .pxl-button .btn {
	color: #14305e;
}

body a.btn:hover,
body .pxl-button .btn:hover {
	color: #fff;
}

/* Awards counter: the theme hard-codes blue for the number and red for the plus (style.css, .pxl-icon-box4). */
body .pxl-icon-box4 .pxl-item--inner .pxl-item--icon .pxl-item--title {
	color: #14305e;
}

body .pxl-icon-box4 .pxl-item--inner .pxl-item--icon i {
	color: #c9a54a;
}

/* Team grid on Contact (class imm-team-grid, set in content/pages/contact.html): this theme has no block-gap support, so WordPress ignores the
   gap set on the grid block and the photos would sit 9 px apart. 24 px between columns, 40 px between rows (also used when it is one column). */
body .wp-block-group.is-layout-grid.imm-team-grid {
	column-gap: 24px;
	row-gap: 40px;
}

/* 404 page: the header is transparent and laid over the page (class bd-px-header--transparent) and is 158 px tall from 1200 px up, but the theme
   keeps only 115 px above the big 404, so the top 43 px of the digits sat behind the header. 200 px puts them clear of it (below 1200 px the
   header is in the flow and the theme's own padding is right). */
@media screen and (min-width: 1200px) {
	body.error404 #pxl-main {
		padding-top: 200px;
	}
}

/* Home hero, slide 3 (EB-2 NIW; the slide's repeater id is 5e3fede): its background is a photograph of business professionals, set in the slide's own
   settings on the Home page. A navy gradient over the photo keeps the white text readable: dark behind the text on the left, almost clear on the
   right. Below 1200 px the text spans the width, so the tint is even. The photo is cropped a little above its middle so the faces stay in view.
   The gradient is drawn on the picture wrapper of that slide, which lies under the slide's text. No other slide is touched. */
.pxl-slider--inner.elementor-repeater-item-5e3fede .pxl-slider--image {
	background-position: 50% 38%;
}

.pxl-slider--inner.elementor-repeater-item-5e3fede .pxl-slider--mainimage::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, rgba(20, 48, 94, 0.9) 0%, rgba(20, 48, 94, 0.72) 40%, rgba(20, 48, 94, 0.1) 78%);
}

@media screen and (max-width: 1199px) {
	.pxl-slider--inner.elementor-repeater-item-5e3fede .pxl-slider--mainimage::after {
		background: linear-gradient(180deg, rgba(20, 48, 94, 0.82) 0%, rgba(20, 48, 94, 0.78) 100%);
	}
}

/* WhatsApp: below 782 px the phone bar of imm-quick-contact has its own WhatsApp button, so the round Click to Chat button is hidden there.
   On a phone or tablet that plugin already hides it (it decides from the screen's size and the browser's signature); in a desktop window narrower
   than 782 px it was shown and sat on the theme's back-to-top arrow (35 x 20 px). Only where the bar exists (body:has) so nothing disappears
   without a replacement. */
@media screen and (max-width: 781px) {
	body:has(nav.imm-qc) #ht-ctc-chat {
		display: none !important;
	}
}

/* Footer newsletter row (form 4, section class imm-nl-row): the newsletter sits in its own row under the three footer columns, dark like the rest
   of the footer, one line wide (heading and short text | email | Subscribe) with the consent line under the email; it stacks below 768 px.
   The email's label stays for screen readers and is only hidden visually; the placeholder says what to type. */
.elementor-section.imm-nl-row {
	margin-top: 40px;
}

.elementor-section.imm-nl-row > .elementor-container {
	border-top: 1px solid rgba(255, 255, 255, 0.14);
	padding-top: 32px;
}

.imm-nl-row .fluentform fieldset {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto;
	column-gap: 24px;
	align-items: start;
	min-width: 0;
}

.imm-nl-row .fluentform .ff-el-section-break {
	grid-column: 1;
	grid-row: 1 / span 2;
	margin: 0;
}

.imm-nl-row .fluentform .ff-el-section-break > .ff-el-section-title,
.imm-nl-row .fluentform .ff-el-section-break hr {
	display: none;
}

.imm-nl-row .fluentform .ff-section_break_desk h3 {
	margin: 0 0 8px;
	color: #fff;
	font-family: "PT Serif", serif;
	font-size: 24px;
	text-align: left;
}

.imm-nl-row .fluentform .ff-section_break_desk p {
	margin: 0;
	color: #e7e7e7;
	font-size: 15px;
	line-height: 1.5;
	text-align: left;
}

.imm-nl-row .fluentform .imm-nl-email {
	grid-column: 2;
	grid-row: 1;
	position: relative;
	margin: 0;
}

.imm-nl-row .fluentform .imm-nl-email .ff-el-input--label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.imm-nl-row .fluentform .ff-el-form-control {
	height: 52px;
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
}

.imm-nl-row .fluentform .ff-el-form-control::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.imm-nl-row .fluentform .ff-el-form-control:focus {
	border-color: #c9a54a;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

.imm-nl-row .fluentform .ff-el-is-error .ff-el-form-control {
	border-color: #f56c6c;
}

.imm-nl-row .fluentform .text-danger {
	color: #ff8a8a;
	font-size: 14px;
}

.imm-nl-row .fluentform .imm-nl-consent {
	grid-column: 2 / 4;
	grid-row: 2;
	margin: 12px 0 0;
}

.imm-nl-row .fluentform .imm-nl-consent .ff_tc_label,
.imm-nl-row .fluentform .imm-nl-consent .ff_tc_label * {
	color: #cfd3da;
	font-size: 14px;
	line-height: 1.5;
}

.imm-nl-row .fluentform .ff_submit_btn_wrapper {
	grid-column: 3;
	grid-row: 1;
	margin: 0;
	text-align: left;
}

.imm-nl-row .fluentform .ff-btn-submit {
	height: 52px;
	padding: 0 28px !important;
	border: 1.5px solid #c9a54a !important;
	border-radius: 10px !important;
	background: transparent !important;
	color: #c9a54a !important;
	font-size: 16px;
	font-weight: 500;
	box-shadow: none;
}

.imm-nl-row .fluentform .ff-btn-submit:hover,
.imm-nl-row .fluentform .ff-btn-submit:focus-visible {
	background: #c9a54a !important;
	color: #14305e !important;
}

.imm-nl-row .fluentform .ff-message-success {
	margin: 0;
	padding: 16px 20px;
	border: 1px solid rgba(201, 165, 74, 0.6);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.06);
	color: #fff;
	font-size: 16px;
}

@media screen and (max-width: 767px) {
	.imm-nl-row .fluentform fieldset {
		grid-template-columns: 1fr;
	}

	.imm-nl-row .fluentform .ff-el-section-break,
	.imm-nl-row .fluentform .imm-nl-email,
	.imm-nl-row .fluentform .imm-nl-consent,
	.imm-nl-row .fluentform .ff_submit_btn_wrapper {
		grid-column: 1;
		grid-row: auto;
	}

	.imm-nl-row .fluentform .ff-el-section-break {
		margin-bottom: 14px;
	}

	.imm-nl-row .fluentform .ff_submit_btn_wrapper {
		margin-top: 4px;
	}
}

/* Home hero, slide 6 (Overseas Pakistanis; the slide's repeater id is b17a5e2): its background is a photograph of a card handed across a counter, set in the
   slide's own settings on the Home page. Same method as slide 3: a navy gradient on the picture wrapper keeps the white text readable, dark behind the text
   on the left and almost clear on the right, where the two hands are. Below 1200 px the text spans the width, so the tint is even. The photo is already
   cropped around the hands, so it is centred. No other slide is touched. */
.pxl-slider--inner.elementor-repeater-item-b17a5e2 .pxl-slider--image {
	background-position: 50% 50%;
}

.pxl-slider--inner.elementor-repeater-item-b17a5e2 .pxl-slider--mainimage::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, rgba(20, 48, 94, 0.92) 0%, rgba(20, 48, 94, 0.78) 36%, rgba(20, 48, 94, 0.08) 68%);
}

@media screen and (max-width: 1199px) {
	.pxl-slider--inner.elementor-repeater-item-b17a5e2 .pxl-slider--mainimage::after {
		background: linear-gradient(180deg, rgba(20, 48, 94, 0.84) 0%, rgba(20, 48, 94, 0.8) 100%);
	}
}
