/**
 * Gated Content Module
 * Coloured banner (Blue or Orange), left content + form column, right
 * promotional image. Icon/text colour pattern mirrors cta_module: white
 * text throughout, submit icon switches to white on the Orange background
 * so it doesn't disappear against it.
 */

/* ===========================
   # Section
=========================== */

.gated-content-module {
	padding: 80px 0;
}
.gated-content-module .container {max-width:1290px!important;margin:auto}
/* ===========================
   # Box
=========================== */

.gated-content-module__box {
	display: flex;
	align-items: center;
	gap: 48px;
	padding: 48px;
}

.gated-content-module__box--blue {
	background: linear-gradient(72deg, #093781 50%, #002B62 50%);
}

.gated-content-module__box--orange {
	background: var(--nec-orange, #EB6E00);
}

/* ===========================
   # Columns
=========================== */

.gated-content-module__col--content {
	flex: 1 1 55%;
	min-width: 0;
}

.gated-content-module__col--image {
	flex: 0 0 auto;
	max-width: 45%;
}

.gated-content-module__image {
	display: block;
	width: 100%;
	height: auto;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

/* ===========================
   # Header / content
=========================== */

.gated-content-module__header {
	margin: 0 0 16px;
	color: var(--nec-white, #fff);
	font-family: var(--nec-font);
	font-size: clamp(1.5rem, calc(1.3rem + 1vw), 2rem);
	font-weight: 500;
	line-height: 1.25;
}

.gated-content-module__content {
	color: var(--nec-white, #fff);
	font-size: 0.9375rem;
	line-height: 1.6;
	max-width: 46ch;
	margin-bottom: 28px;
}
.gated-content-module__content p {color: var(--nec-white, #fff);}

.gated-content-module__content p:first-child {
	margin-top: 0;
}

.gated-content-module__content p:last-child {
	margin-bottom: 0;
}

/* ===========================
   # Form
=========================== */

.gated-content-module__placeholder-form {
	display: flex;
	flex-direction: column;
	gap: 16px;
	max-width: 420px;
}

.gated-content-module__label-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.gated-content-module__input {
	width: 100%;
	background: var(--nec-white, #fff);
	border: none;
	border-radius: 2px;
	padding: 14px 18px;
	font-family: var(--nec-font);
	font-size: 0.9375rem;
	color: var(--nec-grey);
}

.gated-content-module__input::placeholder {
	color: var(--nec-grey);
	opacity: 0.55;
}

.gated-content-module__input:focus-visible {
	outline: 2px solid var(--nec-white, #fff);
	outline-offset: 2px;
}

.gated-content-module__submit {
	align-self: flex-start;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: none;
	border: none;
	padding: 4px 0 0;
	cursor: pointer;
	color: var(--nec-white, #fff);
	font-family: var(--nec-font);
	font-size: 1rem;
	font-weight: 500;
}

.gated-content-module__submit:focus-visible {
	outline: none;
}

.gated-content-module__submit-icon {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	transition: transform 0.25s ease;
}

.gated-content-module__submit:hover .gated-content-module__submit-icon,
.gated-content-module__submit:focus-visible .gated-content-module__submit-icon {
	transform: translateY(4px);
}

.gated-content-module__submit-icon svg {
	width: 34px;
	height: 34px;
	color: var(--nec-orange, #EB6E00);
}

/* Orange background: switch the submit icon to white for contrast. */
.gated-content-module__box--orange .gated-content-module__submit-icon svg {
	color: var(--nec-white, #fff);
}

/* ===========================
   # Responsive — 1280px
=========================== */

@media (max-width: 1280px) {
	.gated-content-module__box {
		gap: 36px;
		padding: 40px;
	}
}

/* ===========================
   # Responsive — 991px (stack, image below content)
=========================== */

@media (max-width: 991px) {
	.gated-content-module {
		padding: 40px 0;
	}

	.gated-content-module__box {
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		padding: 32px;
	}

	.gated-content-module__col--image {
		max-width: 320px;
		margin: 0 auto;
	}

	.gated-content-module__content {
		max-width: none;
	}
	.gated-content-module__placeholder-form {
		max-width: 100%;
	}
}

/* ===========================
   # Responsive — 599px
=========================== */

@media (max-width: 599px) {
	.gated-content-module__box {
		padding: 24px;
	}

	.gated-content-module__col--image {
		max-width: 240px;
	}
}
