/**
 * Newsletter Module
 * Coloured banner (Orange, Blue, or dark Grey) — header/content left, an
 * email signup form right. White text/header throughout all three
 * backgrounds; the submit icon defaults to orange and only switches to
 * white on the Orange background, where orange-on-orange would disappear —
 * same contrast pattern as cta_module.
 */

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

.newsletter-module {
	padding: 80px 100px;
}

/* ===========================
   # Box
=========================== */

.newsletter-module__box {
	display: flex;
	align-items: center;
	gap: 100px;
	padding: 60px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.newsletter-module__box--orange {
	background-color: var(--nec-orange, #EB6E00);
	background-image: url(../../../img/contact_orange.svg);
}

.newsletter-module__box--blue {
	background-color: var(--nec-blue, #1414A0);
}

.newsletter-module__box--grey {
	background-color: var(--nec-light-grey, #f5f5f6);
	background-image: url(../../../img/contact_grey.svg);
}

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

.newsletter-module__col--content {
	min-width: 0;
}

.newsletter-module__col--form {
	flex: 1 1 auto;
	width: 100%;
}

/* ===========================
   # Header / content — white throughout
=========================== */

.newsletter-module__header {
	margin: 0 0 12px;
	color: var(--nec-white, #fff);
	font-family: var(--nec-font);
	font-size: clamp(1.375rem, calc(1.25rem + 0.7vw), 1.75rem);
	font-weight: 500;
	line-height: 1.3;
}

.newsletter-module__content p {
	color: var(--nec-white, #fff);
}

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

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

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

.newsletter-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;
}

.newsletter-module__placeholder-form {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 16px;
}

.newsletter-module__input {
	width: 100%;
	background: var(--nec-white, #fff);
	border: none;
	border-radius: 4px;
	padding: 16px 20px;
	font-family: var(--nec-font);
	font-size: 0.9375rem;
	color: var(--nec-grey);
}

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

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

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

.newsletter-module__submit:focus-visible {
	outline: none;
}

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

.newsletter-module__submit:hover .newsletter-module__submit-icon,
.newsletter-module__submit:focus-visible .newsletter-module__submit-icon {
	transform: translateX(4px);
}

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

/* Orange background: switch the icon to white so it stays visible. */
.newsletter-module__box--orange .newsletter-module__submit-icon svg {
	color: var(--nec-white, #fff);
}

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

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

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

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

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

	.newsletter-module__col--form {
		max-width: none;
	}

	.newsletter-module__content {
		max-width: none;
	}
}

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

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