.mggrp-newsletter-section {
	background-color: var(--wp--preset--color--foreground, #1a1a1a);
	padding: 4rem 1.25rem;
}

@media (min-width: 640px) {
	.mggrp-newsletter-section {
		padding: 5.5rem 2.5rem;
	}
}

.mggrp-newsletter-section__inner {
	max-width: 72rem;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.5rem;
	align-items: center;
}

@media (min-width: 768px) {
	.mggrp-newsletter-section__inner {
		grid-template-columns: 1fr 1fr;
		gap: 3.5rem;
	}
}

.mggrp-newsletter-section__eyebrow {
	margin: 0 0 1.25rem;
	font-size: 0.75rem;
	font-weight: 300;
	letter-spacing: 0.2em;
	color: rgba(255, 255, 255, 0.3);
}

.mggrp-newsletter-section__title {
	margin: 0 0 1rem;
	font-size: 1.875rem;
	font-weight: 200;
	line-height: 1.3;
	color: #fff;
}

@media (min-width: 640px) {
	.mggrp-newsletter-section__title {
		font-size: 2.25rem;
	}
}

.mggrp-newsletter-section__text {
	margin: 0.75rem 0 0;
	max-width: 26rem;
	font-size: 0.875rem;
	font-weight: 300;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.4);
}

.mggrp-newsletter-section__form {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

@media (min-width: 480px) {
	.mggrp-newsletter-section__form {
		flex-direction: row;
	}
}

.mggrp-newsletter-section__input {
	flex: 1;
	min-width: 0;
	padding: 0.875rem 1.25rem;
	background-color: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.15);
	color: #fff;
	font-size: 0.875rem;
	font-family: inherit;
	transition: border-color 0.2s ease;
}

.mggrp-newsletter-section__input::placeholder {
	color: rgba(255, 255, 255, 0.25);
}

.mggrp-newsletter-section__input:focus {
	outline: none;
	border-color: rgba(255, 255, 255, 0.4);
}

/* Honeypot — same technique as blocks/promo-popup, see its style.css for the rationale. */
.mggrp-newsletter-section__honeypot {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.mggrp-newsletter-section__submit {
	padding: 0.875rem 1.75rem;
	background-color: #fff;
	color: #111;
	border: 0;
	font-size: 0.875rem;
	font-weight: 300;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.mggrp-newsletter-section__submit:hover {
	background-color: #e5e5e5;
}

.mggrp-newsletter-section__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.mggrp-newsletter-section__error {
	margin: 0.75rem 0 0;
	font-size: 0.8125rem;
	color: #f87171;
}

.mggrp-newsletter-section__error[hidden] {
	display: none;
}

.mggrp-newsletter-section__disclaimer {
	margin: 0.75rem 0 0;
	font-size: 0.75rem;
	font-weight: 300;
	color: rgba(255, 255, 255, 0.2);
}

.mggrp-newsletter-section__success {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.875rem;
	font-weight: 300;
	color: #4ade80;
}

.mggrp-newsletter-section__success[hidden] {
	display: none;
}
