/**
 * GCDC Newsletter Signup — scoped footer band styles.
 * Targets only the .gcdc-newsletter-band wrapper / Gravity Form 8 (#gform_wrapper_8).
 * Loaded sitewide by the child theme where the band renders. Reversible: remove
 * this file + the gcdc_*_newsletter_* code in functions.php.
 */

/* ---- Band shell ---- */
.gcdc-newsletter-band {
	background: #141210;
	padding: 44px 20px;
}
.gcdc-newsletter-inner {
	max-width: 940px;
	margin: 0 auto;
}

/* ---- Headline (high specificity + !important to beat the theme's h2 color) ---- */
.gcdc-newsletter-band h2.gcdc-newsletter-heading {
	max-width: 940px;
	margin: 0 auto 18px;
	color: #ffffff !important;
	font-size: 26px;
	line-height: 1.2;
	font-weight: 700;
}

/* ---- Layout: First Name + Email + Submit in one row ---- */
.gcdc-newsletter-band #gform_8 {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 12px;
}
.gcdc-newsletter-band #gform_8 .gform_body {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}
.gcdc-newsletter-band #gform_8 .gform_footer {
	flex: 0 0 auto;
	margin: 0;
	padding: 0;
}

/* Override the orbital theme's CSS grid so the two inputs sit side by side */
.gcdc-newsletter-band #gform_wrapper_8 .gform_fields {
	display: flex !important;
	flex-wrap: wrap;
	gap: 12px;
	grid-template-columns: none !important;
}
.gcdc-newsletter-band #gform_wrapper_8 .gform_fields .gfield {
	flex: 1 1 200px;
	min-width: 0;
	margin: 0;
	padding: 0;
}
/* Turnstile drops to its own full-width line beneath the input row */
.gcdc-newsletter-band #gform_wrapper_8 .gfield--type-turnstile {
	flex-basis: 100% !important;
	margin-top: 14px !important;
}
/* Honeypot must never affect layout */
.gcdc-newsletter-band #gform_wrapper_8 .gfield--type-honeypot {
	position: absolute !important;
	left: -9999px !important;
}

/* Labels kept in the DOM for screen readers, visually hidden (placeholders label the inputs) */
.gcdc-newsletter-band #gform_wrapper_8 .gfield_label {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	border: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---- White input fields ---- */
.gcdc-newsletter-band #gform_wrapper_8 .ginput_container input[type="text"],
.gcdc-newsletter-band #gform_wrapper_8 .ginput_container input[type="email"] {
	width: 100% !important;
	box-sizing: border-box;
	background: #ffffff !important;
	border: 1px solid #ffffff !important;
	border-radius: 4px;
	padding: 14px 16px !important;
	font-size: 16px;
	line-height: 1.2;
	color: #141210 !important;
}
.gcdc-newsletter-band #gform_wrapper_8 .ginput_container input::placeholder {
	color: #6f6a66;
	opacity: 1;
}
.gcdc-newsletter-band #gform_wrapper_8 .ginput_container input:focus {
	outline: 2px solid #444d99;
	outline-offset: 1px;
}

/* ---- Submit button: GCDC blue, white bold uppercase ---- */
.gcdc-newsletter-band #gform_wrapper_8 .gform_footer .gform_button,
.gcdc-newsletter-band #gform_wrapper_8 .gform_footer button[type="submit"] {
	background: #444d99 !important;
	color: #ffffff !important;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border: 0 !important;
	border-radius: 4px;
	padding: 15px 30px !important;
	font-size: 15px;
	line-height: 1.2;
	white-space: nowrap;
	cursor: pointer;
	height: auto;
	width: auto;
}
.gcdc-newsletter-band #gform_wrapper_8 .gform_footer .gform_button:hover {
	background: #3a4283 !important;
}

/* ---- Fine print ---- */
.gcdc-newsletter-fineprint {
	max-width: 940px;
	margin: 16px auto 0;
	color: #8a8681;
	font-size: 12px;
	line-height: 1.5;
}

/* ---- AJAX confirmation swaps the form; keep it readable on the dark band ---- */
.gcdc-newsletter-band .gform_confirmation_message {
	color: #ffffff;
	font-size: 18px;
	line-height: 1.5;
	text-align: center;
	padding: 8px 0;
}

/* ---- Validation text legible on dark ---- */
.gcdc-newsletter-band #gform_wrapper_8 .gfield_validation_message,
.gcdc-newsletter-band #gform_wrapper_8 .validation_message {
	color: #ffb4a8 !important;
	background: transparent !important;
	border: 0 !important;
	padding: 2px 0 0 !important;
	font-size: 12px;
}
.gcdc-newsletter-band #gform_wrapper_8 .gform_validation_errors {
	display: none !important;
}

/* ---- Mobile: stack everything ---- */
@media (max-width: 768px) {
	.gcdc-newsletter-band h2.gcdc-newsletter-heading {
		font-size: 22px;
	}
	.gcdc-newsletter-band #gform_8 {
		flex-direction: column;
		align-items: stretch;
	}
	.gcdc-newsletter-band #gform_wrapper_8 .gform_fields {
		flex-direction: column;
	}
	.gcdc-newsletter-band #gform_wrapper_8 .gform_fields .gfield {
		flex: 1 1 auto;
	}
	.gcdc-newsletter-band #gform_8 .gform_footer {
		width: 100%;
	}
	.gcdc-newsletter-band #gform_wrapper_8 .gform_footer .gform_button {
		width: 100% !important;
	}
}
