/* HCFB Food Drive request form. Uses the theme's color tokens and mirrors
   the Contact page form (themes/hcfb/assets/css/prominent-sections.css). */

.hcfb-fd-form {
	max-width: 46rem;
	margin-top: 1.5rem;
}

.hcfb-fd-form__legend,
.hcfb-fd-form__hint {
	font-size: 0.875rem;
	color: var(--wp--preset--color--hcfb-text-muted, #555);
}

.hcfb-fd-form__group {
	margin: 0 0 1.75rem;
	padding: 0;
	border: 0;
}

.hcfb-fd-form__group > legend {
	margin-bottom: 0.75rem;
	padding: 0;
	font-size: 1.125rem;
	font-weight: 700;
	color: var(--wp--preset--color--hcfb-navy, #262262);
}

.hcfb-fd-form__field {
	margin: 0 0 1rem;
}

.hcfb-fd-form__field label,
.hcfb-fd-form__choice legend {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 600;
}

.hcfb-fd-form__required {
	color: var(--wp--preset--color--hcfb-orange, #f7941d);
	font-weight: 700;
}

.hcfb-fd-form__field input,
.hcfb-fd-form__field textarea {
	display: block;
	width: 100%;
	max-width: 26rem;
	border: 1px solid var(--wp--preset--color--hcfb-border, #ccc);
	border-radius: 6px;
	padding: 0.5rem 0.75rem;
	font: inherit;
	background: var(--wp--preset--color--hcfb-surface, #fff);
	color: var(--wp--preset--color--hcfb-text, #222);
	box-sizing: border-box;
}

.hcfb-fd-form__field textarea {
	max-width: none;
}

.hcfb-fd-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 0 1rem;
}

.hcfb-fd-form__row .hcfb-fd-form__field {
	flex: 1 1 12rem;
}

.hcfb-fd-form__row .hcfb-fd-form__field:has(.hcfb-fd-form__short) {
	flex: 0 1 8rem;
}

.hcfb-fd-form__field [aria-invalid="true"] {
	border-color: #b3261e;
	border-width: 2px;
}

.hcfb-fd-form__error {
	display: block;
	margin-bottom: 0.3rem;
	font-size: 0.875rem;
	font-weight: 600;
	color: #b3261e;
}

.hcfb-fd-form__hint {
	display: block;
	margin: 0.3rem 0 0.5rem;
}

.hcfb-fd-form__choice {
	margin: 0 0 1.25rem;
	padding: 0;
	border: 0;
}

.hcfb-fd-form__choice label,
.hcfb-fd-form__check {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 1.5rem;
	min-height: 44px;
	font-weight: 400;
}

.hcfb-fd-form__choice input,
.hcfb-fd-form__check input {
	width: 1.15rem;
	height: 1.15rem;
	accent-color: var(--wp--preset--color--hcfb-orange, #f7941d);
}

.hcfb-fd-form__agreement ul {
	margin: 0 0 0.75rem 1.25rem;
}

.hcfb-fd-form__submit {
	border: 0;
	border-radius: 999px;
	padding: 0.7rem 1.6rem;
	font: inherit;
	font-weight: 700;
	background: var(--wp--preset--color--hcfb-navy, #262262);
	color: var(--wp--preset--color--hcfb-surface, #fff);
	cursor: pointer;
}

.hcfb-fd-form__submit:hover {
	opacity: 0.85;
}

.hcfb-fd-form__notice {
	margin-bottom: 1.5rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--wp--preset--color--hcfb-border, #ccc);
	border-radius: 12px;
	background: var(--wp--preset--color--hcfb-cream, #faf6ee);
}

.hcfb-fd-form__notice--error {
	border-left: 4px solid #b3261e;
}

.hcfb-fd-form__notice--success {
	border-left: 4px solid var(--wp--preset--color--hcfb-navy, #262262);
}

.hcfb-fd-form__notice p,
.hcfb-fd-form__notice ul {
	margin: 0;
}

.hcfb-fd-form__notice > * + * {
	margin-top: 0.5rem;
}

.hcfb-fd-form__hp {
	position: absolute;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
