/*!
 * dob-forms.css
 * Version: 0.1.1
 * Date: 2026-04-30
 * Generated by Claude, Session DOB-S6.
 *
 * Form styling for [dob_contact_form] and [dob_fsp_form].
 * Uses DOB theme tokens via CSS variables defined in 01-tokens.css
 * (--dob-ink, --dob-cream, --dob-brick, --dob-rule). Falls back to
 * hardcoded values if tokens are missing.
 *
 * Form-local palette (intentionally not tokenized at v0.1.1):
 *   - hint gray   #5A544A: low-emphasis hint copy
 *   - success     #2F6B3A green family on #E8F1E8 / #1F4A26 ink
 *   - error       #8B1F1F red family on #F7E8E8 / #6B1818 ink
 * These chrome colors are unique to form status states; the DOB
 * theme has no equivalent token at v0.1.5. When DOB grows a status
 * palette in the token layer, swap these for var() references.
 *
 * All color pairs verified against WCAG 2.2 AA (sRGB linearized) at
 * the default 14-15px font sizes used here.
 */

.dob-form {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
	max-width: 42rem;
	margin-block: 1.5rem;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: var(--dob-ink, #1F1B17);
}

.dob-form__row {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.375rem;
}

.dob-form__row--check {
	gap: 0.5rem;
}

.dob-form__row--actions {
	margin-block-start: 0.5rem;
}

.dob-form__label {
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	color: var(--dob-ink, #1F1B17);
}

.dob-form__req {
	color: var(--dob-brick, #8B3A1E);
	font-weight: 600;
	margin-inline-start: 0.125rem;
}

.dob-form__hint {
	font-size: 0.8125rem;
	color: #5A544A;
	margin: 0;
	line-height: 1.4;
}

.dob-form__input,
.dob-form__textarea {
	width: 100%;
	padding: 0.625rem 0.75rem;
	font: inherit;
	font-size: 1rem;
	line-height: 1.4;
	color: var(--dob-ink, #1F1B17);
	background: #FFFFFF;
	border: 1px solid var(--dob-rule, #C9C2B6);
	border-radius: 2px;
	box-shadow: none;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.dob-form__textarea {
	min-height: 10rem;
	resize: vertical;
}

.dob-form__input:focus,
.dob-form__textarea:focus {
	outline: 2px solid var(--dob-brick, #8B3A1E);
	outline-offset: 1px;
	border-color: var(--dob-brick, #8B3A1E);
}

.dob-form__input:disabled,
.dob-form__textarea:disabled,
.dob-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.dob-form__check {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.625rem;
	align-items: start;
	font-size: 0.9375rem;
	line-height: 1.5;
	cursor: pointer;
}

.dob-form__check input[type="checkbox"] {
	margin-block-start: 0.25rem;
	width: 1.125rem;
	height: 1.125rem;
}

.dob-form__err {
	margin: 0;
	font-size: 0.8125rem;
	font-weight: 500;
	color: #8B1F1F;
	line-height: 1.4;
}

.dob-form__submit {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.75rem 1.5rem;
	font: inherit;
	font-size: 0.9375rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	color: #FFFFFF;
	background: var(--dob-brick, #8B3A1E);
	border: 1px solid var(--dob-brick, #8B3A1E);
	border-radius: 2px;
	cursor: pointer;
	transition: background-color 120ms ease, color 120ms ease;
	min-height: 44px;
}

.dob-form__submit:hover,
.dob-form__submit:focus {
	background: #6E2C16;
	border-color: #6E2C16;
	outline: 2px solid var(--dob-ink, #1F1B17);
	outline-offset: 2px;
}

.dob-form__status {
	margin: 0;
	padding: 0.75rem 1rem;
	font-size: 0.9375rem;
	line-height: 1.5;
	border-left: 3px solid var(--dob-rule, #C9C2B6);
	background: #F5F0E6;
}

.dob-form__status.is-success {
	border-left-color: #2F6B3A;
	background: #E8F1E8;
	color: #1F4A26;
}

.dob-form__status.is-error {
	border-left-color: #8B1F1F;
	background: #F7E8E8;
	color: #6B1818;
}

.dob-form__status:focus {
	outline: 2px solid var(--dob-ink, #1F1B17);
	outline-offset: 2px;
}

/* Honeypot: visually hidden, keyboard-skipped, screen-reader-skipped. */
.dob-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}
