/**
 * ASF Forms — scoped contact form styling.
 * The public site theme is DARK; the form paints its own opaque card with explicit
 * colors so nothing inherits invisible text. Colors meet WCAG AA on the card surface.
 */
.asf-form {
	max-width: 640px;
	margin-inline: auto;
	padding: 32px;
	background: #ffffff;
	color: #1a1a2e;
	border-radius: 14px;
	box-shadow: 0 12px 40px rgba(10, 2, 24, 0.35);
}

.asf-form__heading {
	margin: 0 0 20px;
	font-size: 28px;
	line-height: 1.2;
	color: #1a1a2e;
}

.asf-form__row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.asf-form__label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 240px;
	margin-bottom: 16px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
}

.asf-form__label input,
.asf-form__label select,
.asf-form__label textarea {
	font: inherit;
	font-weight: 400;
	padding: 10px 12px;
	border: 1px solid #c5c5d2;
	border-radius: 8px;
	background: #ffffff;
	color: #1a1a2e;
}

.asf-form__label input:focus,
.asf-form__label select:focus,
.asf-form__label textarea:focus {
	outline: 2px solid #ae2bde;
	outline-offset: 1px;
	border-color: #ae2bde;
}

.asf-form__submit {
	appearance: none;
	border: 0;
	cursor: pointer;
	padding: 12px 28px;
	border-radius: 999px;
	background: #ae2bde;
	color: #ffffff !important; /* theme anchor color must not tint the button text */
	font-weight: 700;
	font-size: 15px;
}

.asf-form__submit:hover { background: #9322bd; }
.asf-form__submit:disabled { opacity: 0.6; cursor: default; }

/* Honeypot — removed from layout + a11y tree, but present in the DOM for bots. */
.asf-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.asf-form__msg {
	margin: 14px 0 0;
	font-weight: 600;
	min-height: 1.2em;
}
.asf-form__msg--ok { color: #1c7c3a; }
.asf-form__msg--error { color: #b3261e; }

/* ── Dark theme variant (theme="dark") — matches the dark public site (home embeds). D87.
 * Source aftershockfam.org renders these forms on a #2a2a2a card with white text. All text
 * meets AA on #2a2a2a (white 14.35:1; #2c2c3e inputs keep white legible). ── */
.asf-form--dark {
	background: #2a2a2a;
	color: #ffffff;
	box-shadow: 0 12px 40px rgba(10, 2, 24, 0.5);
}
.asf-form--dark .asf-form__heading { color: #ffffff; }
.asf-form--dark .asf-form__label { color: #ffffff; }
.asf-form--dark .asf-form__label input,
.asf-form--dark .asf-form__label select,
.asf-form--dark .asf-form__label textarea {
	background: #1f1f2e;
	color: #ffffff;
	border-color: #4a4a5a;
}
.asf-form--dark .asf-form__label input::placeholder,
.asf-form--dark .asf-form__label textarea::placeholder { color: #b8b8c8; }
.asf-form--dark .asf-form__label input:focus,
.asf-form--dark .asf-form__label select:focus,
.asf-form--dark .asf-form__label textarea:focus {
	outline-color: #d4a5ff;
	border-color: #d4a5ff;
}
.asf-form--dark .asf-form__msg--ok { color: #7CFFB2; }
.asf-form--dark .asf-form__msg--error { color: #ff9a8f; }
