/**
 * Newsletter signup form controls.
 *
 * Deliberately close kin to the Request Pricing form's visual language
 * (input + accent button, same radii/spacing) — two different flows on the
 * same site should still read as one system.
 */

.hn__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	max-inline-size: 26rem;
}

.hn__label {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

.hn__input {
	flex: 1 1 12rem;
	min-inline-size: 0;
	padding: 0.6875rem 0.875rem;
	font: inherit;
	font-size: 0.9375rem;
	color: var(--hk-ink, #1a1d23);
	background: var(--hk-base, #fff);
	border: 1px solid var(--hk-border, #d9dde3);
	border-radius: var(--hk-r, 0.5rem);
}
.hn__input::placeholder { color: var(--hk-muted, #5a6270); opacity: 0.75; }
.hn__input:focus-visible {
	outline: 2px solid var(--hk-navy, #253254);
	outline-offset: 1px;
	border-color: var(--hk-navy, #253254);
}

.hn__submit {
	flex: 0 0 auto;
	padding: 0.6875rem 1.25rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hk-gold-ink, #1a1d23);
	background: var(--hk-gold, #b8935a);
	border: 1px solid transparent;
	border-radius: var(--hk-r, 0.5rem);
	cursor: pointer;
	transition: background var(--hk-t, 160ms ease);
}
.hn__submit:hover:not(:disabled) { background: var(--hk-gold-d, #a8834b); }
.hn__submit:focus-visible { outline: 2px solid var(--hk-navy, #253254); outline-offset: 2px; }
.hn__submit:disabled { opacity: 0.6; cursor: progress; }

.hn__status {
	margin: 0.5rem 0 0;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--hk-muted, #5a6270);
}
.hn__status:empty { display: none; }
.hn__status.is-error { color: #a3261f; }

.hn__done {
	margin: 0;
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--hk-navy, #253254);
}

.hn__hp {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

@media (max-width: 26.25rem) {
	/*
	 * The same fix Session 5R.3 needed on the Request Pricing form: `.hn__input`'s
	 * `flex: 1 1 12rem` is a sensible min-*width* in a row, but once the row
	 * becomes a column the same basis applies to the now-vertical main axis —
	 * inflating the field's height instead. Both reset to natural height here.
	 */
	.hn__row { flex-direction: column; align-items: stretch; max-inline-size: none; }
	.hn__input,
	.hn__submit { flex: 0 0 auto; }
}
