/*
 * HyperGL Form — minimal, neutral styles. Fonts, colours and buttons come
 * from the theme (the submit button carries .wp-element-button); this only
 * sets layout and keeps the honeypot out of sight.
 */
.hgl-form {
	max-width: 40rem;
}

.hgl-form__hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.hgl-form__field {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
	margin: 0 0 1em;
}

.hgl-form__field label {
	font-weight: 600;
}

.hgl-form__field input,
.hgl-form__field textarea,
.hgl-form__field select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	font: inherit;
	padding: 0.6em 0.75em;
	border: 1px solid currentColor;
	border-radius: 4px;
	background: transparent;
	color: inherit;
}

.hgl-form__field [aria-invalid="true"] {
	outline: 2px solid #b32d2e;
	outline-offset: 1px;
}

.hgl-form__consent {
	flex-direction: row;
	align-items: flex-start;
	flex-wrap: wrap;
}

.hgl-form__consent input {
	width: auto;
	margin: 0.25em 0.5em 0 0;
}

.hgl-form__consent label {
	flex: 1;
	font-weight: normal;
}

.hgl-form__consent .hgl-form__error {
	flex-basis: 100%;
}

.hgl-form__error {
	color: #b32d2e;
	font-size: 0.9em;
}

.hgl-form__error:empty,
.hgl-form__status:empty {
	display: none;
}

.hgl-form__status {
	margin: 0 0 1em;
	padding: 0.75em 1em;
	border-left: 4px solid currentColor;
}

.hgl-form__status--error {
	border-left-color: #b32d2e;
}

.hgl-form__status--ok {
	border-left-color: #00a32a;
}

.hgl-form__status:focus {
	outline: none;
}

.hgl-form__submit[disabled] {
	opacity: 0.6;
	cursor: wait;
}
