/* Freehold Forms: minimal layout that inherits the theme's look. */
.freehold-forms-form {
	display: grid;
	gap: 1rem;
	max-width: 40rem;
}

.freehold-forms-field label,
.freehold-forms-field legend {
	display: block;
	font-weight: 600;
	margin-bottom: 0.25rem;
}

.freehold-forms-field input:not([type="checkbox"]):not([type="radio"]),
.freehold-forms-field textarea,
.freehold-forms-field select {
	box-sizing: border-box;
	width: 100%;
	padding: 0.5rem 0.625rem;
	font: inherit;
}

.freehold-forms-field fieldset {
	border: 0;
	margin: 0;
	padding: 0;
}

.freehold-forms-field .freehold-forms-choice {
	font-weight: 400;
}

.freehold-forms-help {
	margin: 0.25rem 0 0;
	font-size: 0.875em;
	opacity: 0.8;
}

.freehold-forms-error {
	margin: 0.25rem 0 0;
	font-size: 0.875em;
	color: #b32d2e;
}

.freehold-forms-error:empty,
.freehold-forms-message:empty {
	display: none;
}

.freehold-forms-message {
	padding: 0.75rem 1rem;
	border-left: 4px solid #008a20;
	background: rgba(0, 138, 32, 0.08);
}

.freehold-forms-message.is-error {
	border-left-color: #b32d2e;
	background: rgba(179, 45, 46, 0.08);
}

.freehold-forms-form [aria-invalid="true"] {
	outline: 2px solid #b32d2e;
}

/* Honeypot: off-screen, not display:none, so bots still fill it in. */
.freehold-forms-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.freehold-forms-submit {
	justify-self: start;
}
