.foundation-sender-newsletter-wrap,
.foundation-sender-newsletter-wrap * {
	box-sizing: border-box;
}

.foundation-sender-newsletter-wrap {
	width: 100%;
	padding: 0;
}

.foundation-sender-newsletter {
	width: 100%;
	display: grid;
	grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(220px, 1fr) auto;
	grid-template-areas:
		"intro first email action"
		"intro interests interests interests"
		"message message message message"
		"privacy privacy privacy privacy";
	align-items: center;
	gap: 12px;
	padding: 14px;
	border-radius: 22px;
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%),
		rgba(16, 22, 27, 0.48);
	border: 1px solid rgba(255, 255, 255, 0.14);
	box-shadow:
		inset 0 1px 0 rgba(255, 255, 255, 0.14),
		0 10px 30px rgba(0, 0, 0, 0.16);
	backdrop-filter: blur(18px);
	-webkit-backdrop-filter: blur(18px);
	position: relative;
	font-family: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, sans-serif;
}

.foundation-sender-newsletter__intro {
	min-width: 0;
	order: 1;
	grid-area: intro;
}

.foundation-sender-newsletter__title {
	margin: 0;
	font-family: "Montserrat", system-ui, sans-serif;
	font-size: 1.34rem;
	line-height: 1.1;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.05em;
}

.foundation-sender-newsletter__text {
	margin: 4px 0 0;
	font-size: 0.88rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
}

.foundation-sender-newsletter__field,
.foundation-sender-newsletter__action {
	width: 100%;
}

.foundation-sender-newsletter__field {
	order: 2;
	grid-area: first;
}

.foundation-sender-newsletter__field--email {
	order: 3;
	grid-area: email;
}

.foundation-sender-newsletter__interests,
.foundation-sender-newsletter__message,
	.foundation-sender-newsletter__privacy {
	grid-column: 1 / -1;
}

.foundation-sender-newsletter__interests {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	align-items: center;
	order: 5;
	grid-area: interests;
}

.foundation-sender-newsletter__check {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 24px;
	cursor: pointer;
	color: rgba(255, 255, 255, 0.88);
	font-size: 0.92rem;
	line-height: 1.2;
}

.foundation-sender-newsletter__check input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.foundation-sender-newsletter__check-box {
	width: 18px;
	height: 18px;
	flex: 0 0 18px;
	border-radius: 6px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.foundation-sender-newsletter__check input:checked + .foundation-sender-newsletter__check-box {
	border-color: rgba(244, 201, 70, 0.9);
	background:
		linear-gradient(180deg, rgba(244, 201, 70, 0.95) 0%, rgba(223, 21, 124, 0.95) 100%);
	box-shadow: 0 0 0 3px rgba(244, 201, 70, 0.14);
}

.foundation-sender-newsletter__check input:focus-visible + .foundation-sender-newsletter__check-box {
	outline: 3px solid rgba(244, 201, 70, 0.35);
	outline-offset: 2px;
}

.foundation-sender-newsletter__check-label {
	color: inherit;
}

.foundation-sender-newsletter input[type="text"],
.foundation-sender-newsletter input[type="email"] {
	width: 100%;
	height: 50px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	font-size: 0.98rem;
	padding: 0 16px;
	outline: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.foundation-sender-newsletter input[type="text"]::placeholder,
.foundation-sender-newsletter input[type="email"]::placeholder {
	color: rgba(255, 255, 255, 0.62);
}

.foundation-sender-newsletter input[type="text"]:focus,
.foundation-sender-newsletter input[type="email"]:focus {
	border-color: rgba(244, 201, 70, 0.9);
	background: rgba(255, 255, 255, 0.11);
	box-shadow: 0 0 0 3px rgba(244, 201, 70, 0.16);
}

.foundation-sender-newsletter button {
	width: 100%;
	min-width: 150px;
	height: 50px;
	border: 0;
	border-radius: 14px;
	padding: 0 22px;
	background: #df157c;
	color: #fff;
	font-size: 0.98rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 10px 20px rgba(223, 21, 124, 0.24);
}

.foundation-sender-newsletter button:hover,
.foundation-sender-newsletter button:focus {
	transform: translateY(-1px);
	opacity: 0.96;
}

.foundation-sender-newsletter button:focus {
	outline: 3px solid rgba(244, 201, 70, 0.35);
	outline-offset: 2px;
}

.foundation-sender-newsletter button[disabled] {
	cursor: not-allowed;
	opacity: 0.75;
	transform: none;
}

.foundation-sender-newsletter__message {
	margin-top: -2px;
	font-size: 0.9rem;
	line-height: 1.4;
	color: rgba(255, 255, 255, 0.86);
	min-height: 1.4em;
	order: 6;
	grid-area: message;
}

.foundation-sender-newsletter__message.is-error {
	color: #ffd3d3;
}

.foundation-sender-newsletter__message.is-success {
	color: #d6ffd9;
}

.foundation-sender-newsletter__privacy {
	margin: 2px 0 0;
	font-size: 0.82rem;
	line-height: 1.35;
	color: rgba(255, 255, 255, 0.78);
	text-align: center;
	order: 7;
	grid-area: privacy;
}

.foundation-sender-newsletter__honeypot {
	position: absolute !important;
	left: -9999px !important;
	opacity: 0 !important;
	pointer-events: none !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.foundation-sender-newsletter__sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.foundation-sender-newsletter__notice {
	padding: 12px 14px;
	border-radius: 14px;
	background: rgba(255, 214, 10, 0.12);
	border: 1px solid rgba(255, 214, 10, 0.24);
	color: #fff5d2;
	font-size: 0.92rem;
}

@media (max-width: 1024px) {
	.foundation-sender-newsletter {
		grid-template-columns: 1fr 1fr;
		grid-template-areas:
			"intro intro"
			"first email"
			"action action"
			"interests interests"
			"message message"
			"privacy privacy";
	}

	.foundation-sender-newsletter__intro,
	.foundation-sender-newsletter__interests,
	.foundation-sender-newsletter__message,
	.foundation-sender-newsletter__privacy {
		grid-column: 1 / -1;
	}

	.foundation-sender-newsletter__action {
		grid-column: 1 / -1;
		width: 100%;
	}

	.foundation-sender-newsletter button {
		min-width: 100%;
	}
}

@media (max-width: 767px) {
	.foundation-sender-newsletter {
		grid-template-columns: 1fr;
		grid-template-areas:
			"intro"
			"first"
			"email"
			"action"
			"interests"
			"message"
			"privacy";
		gap: 10px;
		padding: 12px;
		border-radius: 18px;
	}

	.foundation-sender-newsletter__interests {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 10px;
	}

	.foundation-sender-newsletter__title {
		font-size: 1.14rem;
	}

	.foundation-sender-newsletter__text {
		font-size: 0.84rem;
	}

	.foundation-sender-newsletter input[type="text"],
	.foundation-sender-newsletter input[type="email"],
	.foundation-sender-newsletter button {
		height: 48px;
	}
}

@media (min-width: 1025px) {
	.foundation-sender-newsletter__action {
		order: 4;
		grid-area: action;
		width: auto;
		min-width: 180px;
		align-self: stretch;
	}

	.foundation-sender-newsletter button {
		height: 100%;
		min-height: 50px;
	}
}
