/*
 * District quote form. Colors follow the quote PDF; font family and base size come from the theme.
 *
 * The heading, labels and legends are scoped under the form's ID (#vst-district-quote) and set every
 * property themes commonly change, so theme and Elementor rules for h2, label and legend don't override them.
 */
.vst-dq {
	--vst-dq-text: #1e2a33;
	--vst-dq-navy: #183a52;
	--vst-dq-muted: #5d6b76;
	--vst-dq-line: #c9d5de;
	--vst-dq-panel: #eff3f6;
	--vst-dq-error: #b42318;
	max-width: 720px;
	margin: 0 auto;
	color: var(--vst-dq-text);
}
#vst-district-quote .vst-dq-heading {
	margin: 0 0 0.4em;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vst-dq-navy);
	font-family: inherit;
	font-size: 1.6em;
	font-style: normal;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
}
.vst-dq-intro,
.vst-dq-help {
	color: var(--vst-dq-muted);
	margin: 0 0 1em;
}
.vst-dq-form fieldset {
	border: 0;
	border-top: 1px solid var(--vst-dq-line);
	margin: 1.5em 0 0;
	padding: 1em 0 0;
	min-width: 0;
}
#vst-district-quote .vst-dq-form legend {
	display: block;
	float: none;
	max-width: 100%;
	margin: 0 0 0.6em;
	padding: 0 0.5em 0 0;
	border: 0;
	background: none;
	color: var(--vst-dq-navy);
	font-family: inherit;
	font-size: 1.1em;
	font-style: normal;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	white-space: normal;
}
.vst-dq-row {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	margin-bottom: 0.9em;
	min-width: 0;
}
/* Width and height are left alone so screen-reader-text labels stay hidden. */
#vst-district-quote .vst-dq-form label,
#vst-district-quote .vst-dq-label {
	display: block;
	float: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	color: var(--vst-dq-text);
	font-family: inherit;
	font-size: 1em;
	font-style: normal;
	font-weight: 600;
	line-height: 1.4;
	letter-spacing: normal;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	vertical-align: baseline;
	cursor: default;
}
.vst-dq-form input[type="text"],
.vst-dq-form input[type="email"],
.vst-dq-form input[type="number"] {
	width: 100%;
	box-sizing: border-box;
}
.vst-dq-form input[aria-invalid="true"] {
	border-color: var(--vst-dq-error);
}
#vst-district-quote .vst-dq-req,
#vst-district-quote .vst-dq-error {
	color: var(--vst-dq-error);
}
.vst-dq-error {
	font-size: 0.9em;
}
.vst-dq-cols {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 0 1em;
}
.vst-dq-cols-2 {
	grid-template-columns: 1fr 1fr;
}
.vst-dq-pd {
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin: 0.4em 0 1em;
}
.vst-dq-pd-row {
	display: grid;
	grid-template-columns: 1fr 6em;
	align-items: center;
	gap: 0.3em 1em;
}
#vst-district-quote .vst-dq-pd-row label {
	font-weight: 400;
}
.vst-dq-pd-row .vst-dq-error {
	grid-column: 1 / -1;
}
.vst-dq-preview {
	background: var(--vst-dq-panel);
	border-radius: 6px;
	padding: 0.9em 1.1em;
	color: var(--vst-dq-navy);
}
.vst-dq-preview[hidden] {
	display: none;
}
.vst-dq-preview-row {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
}
.vst-dq-preview-row strong {
	font-variant-numeric: tabular-nums;
}
.vst-dq-preview-note {
	color: var(--vst-dq-muted);
	font-size: 0.9em;
	margin: 0.4em 0 0;
}
#vst-district-quote .vst-dq-form .vst-dq-check {
	display: flex;
	gap: 0.6em;
	align-items: flex-start;
	font-weight: 400;
	margin-top: 0.4em;
	cursor: pointer;
}
.vst-dq-check input {
	margin-top: 0.3em;
}
.vst-dq-alert {
	border-left: 4px solid var(--vst-dq-error);
	background: #fdf0ef;
	color: #7a1a12;
	padding: 0.8em 1em;
	margin: 1em 0;
}
.vst-dq-hp {
	position: absolute !important;
	left: -10000px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.vst-dq .pmpro_captcha {
	margin: 1.2em 0 0;
}
.vst-dq-submit {
	display: inline-block;
	margin-top: 1.2em;
	text-decoration: none;
}
.vst-dq-submit[disabled] {
	opacity: 0.7;
	cursor: wait;
}
.vst-dq-result {
	background: var(--vst-dq-panel);
	border-radius: 8px;
	padding: 1.4em 1.6em;
}
/*
 * The result panel has its own light background, so its text sets its own colors under the
 * form's ID. Theme and Elementor text colors would otherwise make it unreadable.
 */
#vst-district-quote .vst-dq-result,
#vst-district-quote .vst-dq-result p,
#vst-district-quote .vst-dq-result strong,
#vst-district-quote .vst-dq-summary dd {
	color: var(--vst-dq-text);
	text-shadow: none;
}
#vst-district-quote .vst-dq-summary dt {
	color: var(--vst-dq-muted);
	text-shadow: none;
}
#vst-district-quote .vst-dq-result a:not(.vst-dq-submit) {
	color: var(--vst-dq-navy);
	text-decoration: underline;
}
.vst-dq-summary {
	margin: 1em 0;
	display: flex;
	flex-direction: column;
	gap: 0.3em;
}
.vst-dq-summary div {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--vst-dq-line);
	padding: 0.3em 0;
}
.vst-dq-summary dt {
	font-weight: 400;
}
.vst-dq-summary dd {
	margin: 0;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
@media (max-width: 600px) {
	.vst-dq-cols,
	.vst-dq-cols-2 {
		grid-template-columns: 1fr;
	}
}
