.form_header:not(:first-child) {
	margin-top: 2rem!important;
}
select:invalid,
select option[value=""] {
	color:var(--gray);
}

div.form_label, label {
	font-family: 'Proxima Nova', sans-serif;
	font-weight: 400!important;
}

div.form_label h1,
div.form_label h2,
div.form_label h3,
div.form_label h4,
div.form_label h5 {
	background: transparent!important;
	/*font-size: 20px;*/
	color: var(--gold);
	margin-bottom: 1rem;
	margin-top: 0 !important;
}

.form_header .form_label {
	color: var(--gold) !important;
	font-size: 25px !important;
}

div.form_label p, div.form_label div, div.form_label:not(:has(h1,h2,h3,h4,h5)) {
	background: transparent!important;
	font-size: 18px;
	color: var(--dark) !important;
	margin-bottom: 1rem;
	font-family: 'Proxima Nova', sans-serif;
	line-height: 1.1 !important;
}
.dialog div.form_label:not(:has(h1,h2,h3,h4,h5)) {
	font-size: 14px !important;
}

label, fieldset .form_label{
	align-content: center;
	color: var(--dark);
}
.form_label p, label, fieldset .form_label {
	font-size: 14px !important;
	margin-bottom: 0.5rem !important;
}
form .action button:first-child {
	margin-right: 1rem;
}
/* &:has(.form_responses input[type='text'], .form_responses input[type='email'], .form_responses input[type='tel']) {
	.form_label { display:none!important; }
}*/

/* .form_responses {*/

input:not([type='checkbox']), select {
	height: 46px;
}

select {
	position:relative;
	background-position: center right -5px;
	padding-right: 32px !important;
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: auto;
}

input:not([type='checkbox']), textarea, select {

	border: 1px solid #e6e6e6 !important;
	box-shadow: none !important;
	border-radius: 0;

	padding: 10px 16px;

	font-size: 18px;
	font-family: 'Proxima Nova', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	line-height: 1.33;

	&::placeholder {
		color:var(--gray);
	}

	&:focus, &:focus-within, &:focus-visible {
		border-color: var(--gold)!important;
		outline: var(--gold)!important;
	}
}

input[type='checkbox'] {
	width: 22px;
	height: 22px;
	margin-right: 7px;
	margin-bottom: 7px;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: var(--light);
}

input[type='checkbox']:checked {
	/* background: var(--gold);*/
}
input[type='checkbox']:checked:after {
	color: var(--gold);
	content: '\f00c';
	font-family: FontAwesome;
	font-size: 1.15rem;
	display: block;
	z-index: 3;
	position: relative;
	right: -0.15rem;
	bottom: -0.1rem;
}
/* }*/

@media screen and (max-width: 992px) {

	fieldset > div:not(:last-of-type), .form_question {
		margin-bottom: 1rem!important;
	}

	.form_responses {
		select {
			&:first-child {
				margin-bottom: 0.5rem;
			}
			margin-left: 0!important;
		}
	}
}

a, a:link, a:visited {
	color: var(--gold);
}

a:hover {
	text-decoration: underline;
}

/* Flex form */
@media screen and (max-width: 992px) {
	table.fixed {
		width: 100%;

		tbody, tr,td {
			width: 100%;
		}

		table {
			table-layout: auto;
			tbody {

				width:100%;
				max-width:100%;

				tr {
					display:flex;
					flex-wrap: wrap;

					width: 100%;
					margin-bottom: 0.5rem!important;

					&:last-child {
						input {
							margin-bottom: 1rem!important;
						}
						a {
							margin-left: 0!important;
						}
					}
					td { padding-left: 0; }
					td, td > input:not([type=radio]) {
						width: 100% !important;
					}
				}
			}
		}
	}

	table.plain {
		table-layout: auto!important;
		tr {
			display:flex;
			flex-wrap: wrap;

			width: 100%;
			margin-bottom: 0.5rem!important;

			&:last-child {
				input {
					margin-bottom: 1rem!important;
				}
				a {
					margin-left: 0!important;
				}
			}
			td { padding-left: 0; }
			td, td > input:not([type=radio]) {
				width: 100% !important;
			}
		}
	}

	fieldset:has(select) {
		display: flex;
		select {
			flex-grow:1;
		}
	}
}
