/* Newsletter Signup section. */

.rally-newsletter-signup {
	background: var(--rally-black);
	color: var(--rally-white);
	padding-block: var(--rally-section-padding-y);
}

.rally-newsletter-signup__inner {
	display: grid;
	gap: var(--rally-space-6);
	grid-template-columns: 1fr;
	align-items: center;
}

@media (min-width: 800px) {
	.rally-newsletter-signup--has-image .rally-newsletter-signup__inner {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
	}
}

.rally-newsletter-signup__media {
	display: flex;
	justify-content: center;
}
.rally-newsletter-signup__media img {
	max-width: 320px;
	width: 100%;
	height: auto;
}

.rally-newsletter-signup__card {
	background: var(--rally-gray-dark);
	color: var(--rally-white);
	padding: var(--rally-space-6);
	display: flex;
	flex-direction: column;
	gap: var(--rally-space-3);
}

.rally-newsletter-signup__heading {
	font-size: var(--rally-text-2xl);
	color: var(--rally-white);
	margin: 0;
}

.rally-newsletter-signup__subhead {
	font-size: var(--rally-text-base);
	margin: 0;
	opacity: 0.85;
}

.rally-newsletter-signup__form {
	display: flex;
	flex-direction: column;
	gap: var(--rally-space-3);
	margin-top: var(--rally-space-2);
}

.rally-newsletter-signup__field {
	display: flex;
	flex-direction: column;
	gap: var(--rally-space-1);
}

.rally-newsletter-signup__field label {
	font-size: var(--rally-text-sm);
	font-weight: 600;
	color: var(--rally-white);
}

.rally-newsletter-signup__field input {
	padding: var(--rally-space-3);
	background: var(--rally-white);
	color: var(--rally-black);
	border: 2px solid transparent;
	font-size: var(--rally-text-base);
	font-family: var(--rally-font-body);
	transition: border-color var(--rally-duration) var(--rally-ease);
}
.rally-newsletter-signup__field input:focus-visible {
	outline: none;
	border-color: var(--rally-red);
	box-shadow: 0 0 0 3px rgba(209, 0, 0, 0.35);
}
.rally-newsletter-signup__field input[aria-invalid="true"] {
	border-color: var(--rally-red);
	box-shadow: 0 0 0 3px rgba(209, 0, 0, 0.25);
}

.rally-newsletter-signup__actions {
	display: flex;
	justify-content: flex-end;
	margin-top: var(--rally-space-2);
}

.rally-newsletter-signup__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.rally-newsletter-signup__feedback {
	margin: 0;
	min-height: 1.5em;
	font-size: var(--rally-text-sm);
}
.rally-newsletter-signup__feedback[data-state="success"] { color: #6FCF97; }
.rally-newsletter-signup__feedback[data-state="error"]   { color: #FF6B6B; }

/* Honeypot — present in the DOM for bots to fill, never visible or focusable
 * for real people. Deliberately not display:none (some bots skip those). */
.rally-newsletter-signup__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
	pointer-events: none !important;
}
