/*
 * HTL Contact Form: layout only. Colors, fonts, borders and the button come
 * from each theme (disable this file with the `htl_contact_form_load_css`
 * filter if the theme handles layout too).
 */
.htl-contact-form {
	position: relative;
}

.htl-contact-form__fields {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.htl-contact-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-column: 1 / -1;
}

.htl-contact-form__field--half {
	grid-column: auto;
}

@media (max-width: 767px) {
	.htl-contact-form__field--half {
		grid-column: 1 / -1;
	}
}

.htl-contact-form__input {
	width: 100%;
	box-sizing: border-box;
	font: inherit;
}

textarea.htl-contact-form__input {
	resize: vertical;
}

.htl-contact-form__error {
	margin: 0;
	font-size: 0.875em;
	color: #b3261e;
}

.htl-contact-form__input[aria-invalid="true"] {
	border-color: #b3261e;
}

.htl-contact-form__actions {
	margin-top: 16px;
}

.htl-contact-form__submit:disabled {
	cursor: progress;
	opacity: 0.7;
}

.htl-contact-form__status:empty {
	display: none;
}

.htl-contact-form__status {
	margin-top: 16px;
}

.htl-contact-form__status--success {
	color: #1e7d32;
}

.htl-contact-form__status--error {
	color: #b3261e;
}
