form.contact table,
form.contact table tbody,
form.contact table tbody tr,
form.contact table tbody tr th,
form.contact table tbody tr td {
	display: block;
	padding: 0;
}
form.contact table {
	width: 100%;
}
form.contact table tbody {
	margin-left: -0.5em;
	margin-right: -0.5em;
}
form.contact table tbody tr {
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
	width: 100%;
	margin-bottom: 1em;
	padding-left: 0.5em;
	padding-right: 0.5em;
}
form.contact table tbody tr:has(th:empty),
form.contact table tbody tr:has(td:empty) {
	display: none;
}
form.contact table tbody tr th {
	font-weight: normal;
}
form.contact table tbody tr.submit td {
	text-align: right;
}
form.contact table tbody tr td input[type=text],
form.contact table tbody tr td textarea {
	width: 100%;
}

form.contact table tbody tr.column-count-2 {
	width: 50%;
}
form.contact table tbody tr.column-count-3 {
	width: 33.33%;
}

form.contact table tbody tr.recaptcha:has( + tr.submit) {
	width: 66.66%;
}
form.contact table tbody tr.recaptcha + tr.submit {
	width: 33.33%;
	vertical-align: bottom;
	padding-bottom: 2px;
}

form.contact table tbody tr.multiple_selection {
	background-color: white;
	display: block;
	width: auto;
}
form.contact table tbody tr.multiple_selection td ul {
	list-style: none;
	margin: 0;
	display: block;
	column-gap: 1rem;
	column-count: 4;
}
.column form.contact table tbody tr.multiple_selection td ul {
	column-count: 2;
}
form.contact table tbody tr.multiple_selection td ul li {
	display: block;
}
form.contact table tbody tr.multiple_selection td ul li label {
	display: inline-block;
	padding-left: 2em;
	text-indent: -2em;
	padding-bottom: 0.75em;
}

form.contact table tbody tr.invalid input[type=text],
form.contact table tbody tr.invalid textarea,
form.contact table tbody tr.multiple_selection.invalid {
	border-color: #da162b;
}

@media screen and (max-width: 960px) {
	form.contact table tbody tr.multiple_selection td ul {
		column-count: 2;
	}
}

@media screen and (max-width: 640px) {
	form.contact table tbody tr {
		display: block;
		width: auto !important;
	}
	form.contact table tbody tr.multiple_selection td ul {
		column-count: 1;
	}
}