/*
 * Request a quote (inc/quote.php). Figma 2148:47577 (step 1), 47734 (step 2), 47924 (errors),
 * 48125 (sent): a 1000 wide panel, 340 side rail and 660 form, on a #16140F backdrop.
 * Used on /request-a-quote/ and inside the dialog opened by assets/quote.js.
 */

.tq-page {
	margin: 0;
	background: #16140F;
}
.tq-backdrop {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 48px 20px;
	box-sizing: border-box;
	background: #16140F;
}

/* Dialog */
.tq-dialog {
	width: 1000px;
	max-width: calc(100vw - 40px);
	max-height: calc(100vh - 40px);
	padding: 0;
	overflow: auto;
	background: transparent;
	border: 0;
}
.tq-dialog::backdrop {
	background: rgba(22, 20, 15, .86);
}
.tq-dialog.is-loading .tq {
	opacity: .6;
	transition: opacity var(--m-dur-s, 200ms);
}

.tq {
	display: flex;
	box-sizing: border-box;
	width: 1000px;
	max-width: 100%;
	color: var(--ink, #171719);
	background: var(--white, #FFFFFF);
	border: 1px solid #E1DACB;
	font-family: "SF Pro Text", "SF Pro Display", -apple-system, sans-serif;
	text-align: left;
}
.tq *,
.tq *::before,
.tq *::after {
	box-sizing: border-box;
}
.tq p {
	margin: 0;
}

/* Side rail */
.tq-rail {
	display: flex;
	flex: none;
	flex-direction: column;
	justify-content: space-between;
	gap: 40px;
	width: 340px;
	padding: 40px 32px;
	background: var(--cream, #F2EDE1);
}
.tq-rail-top {
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.tq-mark {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tq .tq-logo {
	display: block;
	width: 160px;
	height: auto;
}
.tq-mark p {
	color: var(--tan, #6F6556);
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	white-space: pre;
}
.tq-steps {
	margin: 0;
	padding: 0;
	list-style: none;
}
.tq-step {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 0;
	border-top: 1px solid #E1DACB;
}
.tq-step:first-child {
	padding-top: 0;
	border-top: 0;
}
.tq-dot {
	display: flex;
	flex: none;
	justify-content: center;
	align-items: center;
	width: 32px;
	height: 32px;
	border: 1.5px solid var(--tan, #6F6556);
	border-radius: 50%;
	color: var(--tan, #6F6556);
	font-size: 14px;
	font-weight: 600;
}
.is-current .tq-dot,
.is-done .tq-dot {
	background: var(--ink, #171719);
	border-color: var(--ink, #171719);
	color: var(--white, #FFFFFF);
}
.tq .tq-check {
	width: 16px;
	height: 16px;
}
.tq-step > span:last-child {
	display: flex;
	flex-direction: column;
	padding-top: 5px;
}
.tq-step-label {
	color: var(--body, #656569);
	font-size: 16px;
	line-height: 1.4;
}
.is-current .tq-step-label {
	color: var(--ink, #171719);
	font-weight: 600;
}
.tq-step-sub {
	color: var(--tan, #6F6556);
	font-size: 12px;
	line-height: 1.4;
}
.tq-rail-bottom {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.5;
}
.tq-eyebrow {
	color: var(--tan, #6F6556);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.5px;
	text-transform: uppercase;
}
.tq .tq-big {
	color: var(--ink, #171719);
	font-size: 22px;
	font-weight: 600;
	line-height: 1.3;
}
body .tq-rail-bottom a {
	color: var(--ink, #171719);
	font-weight: 500;
	text-decoration: none;
}

/* Form panel */
.tq-panel {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-width: 0;
}
.tq-form {
	display: flex;
	flex: 1;
	flex-direction: column;
	margin: 0;
}
.tq-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
	padding: 40px 48px 24px;
}
.tq-kicker {
	margin-bottom: 8px !important;
	color: var(--tan, #6F6556);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 1.6px;
	text-transform: uppercase;
}
body .tq .tq-title {
	margin: 0 0 8px;
	color: var(--ink, #171719);
	font-size: 32px;
	font-weight: 600;
	line-height: 1.22;
	letter-spacing: -.6px;
	outline: none;
}
.tq-lead {
	color: var(--body, #656569);
	font-size: 16px;
	line-height: 1.6;
}
body .tq a.tq-close {
	display: flex;
	flex: none;
	justify-content: center;
	align-items: center;
	width: 48px;
	height: 48px;
	border: 1px solid var(--line, #E4E4E7);
	color: var(--ink, #171719);
	transition: border-color var(--m-dur-s, 200ms);
}
body .tq a.tq-close:hover {
	border-color: var(--ink, #171719);
}
.tq .tq-close-icon {
	width: 22px;
	height: 22px;
}
.tq-body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 32px;
	padding: 0 48px 40px;
}
.tq-legend {
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.5;
}
.tq-star {
	color: var(--tan, #6F6556);
	font-size: 15px;
	font-weight: 500;
}

/* Fields */
.tq-field {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}
.tq-row {
	display: flex;
	gap: 24px;
}
.tq-label-row {
	display: flex;
	justify-content: space-between;
	gap: 16px;
}
body .tq .tq-label-row label,
body .tq .tq-choice legend {
	margin: 0;
	padding: 0;
	color: var(--ink, #171719);
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
}
.tq-choice legend {
	margin-bottom: 16px !important;
}
.tq-optional {
	color: var(--body, #656569);
	font-size: 13px;
	line-height: 1.4;
}
body.elementor-kit-5 .tq input[type="text"],
body.elementor-kit-5 .tq input[type="tel"],
body.elementor-kit-5 .tq textarea,
body.elementor-kit-5 .tq select,
body .tq input[type="text"],
body .tq input[type="tel"],
body .tq textarea,
body .tq select {
	box-sizing: border-box;
	width: 100%;
	height: 56px;
	margin: 0;
	padding: 0 16px;
	background: var(--white, #FFFFFF);
	border: 1px solid var(--border, #9C9CA2);
	border-radius: 0;
	box-shadow: none;
	color: var(--ink, #171719);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	appearance: none;
}
body.elementor-kit-5 .tq textarea,
body .tq textarea {
	height: 112px;
	padding: 14px 16px;
	resize: vertical;
}
body .tq input::placeholder,
body .tq textarea::placeholder {
	color: #6B6B70;
	opacity: 1;
}
body.elementor-kit-5 .tq input:focus,
body.elementor-kit-5 .tq textarea:focus,
body.elementor-kit-5 .tq select:focus,
body .tq input:focus,
body .tq textarea:focus,
body .tq select:focus {
	border-color: var(--ink, #171719);
	outline: 2px solid var(--ink, #171719);
	outline-offset: -2px;
}
body.elementor-kit-5 .tq .has-error input,
body.elementor-kit-5 .tq .has-error select,
body.elementor-kit-5 .tq .has-error textarea,
body .tq .has-error input,
body .tq .has-error select,
body .tq .has-error textarea {
	border: 2px solid var(--error, #AF2820);
}
.tq-select {
	position: relative;
	display: block;
}
body .tq select {
	padding-right: 44px;
	cursor: pointer;
}
body .tq select:has(option:first-child:checked) {
	color: #6B6B70;
}
.tq .tq-chev {
	position: absolute;
	top: 18px;
	right: 16px;
	width: 20px;
	height: 20px;
	pointer-events: none;
}
.tq-hint {
	color: var(--body, #656569);
	font-size: 13px;
	line-height: 1.55;
}
.tq-error {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: var(--error, #AF2820);
	font-size: 13px;
	line-height: 1.55;
}
.tq-error-dot {
	display: flex;
	flex: none;
	justify-content: center;
	align-items: center;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	background: var(--error, #AF2820);
	border-radius: 50%;
	color: var(--white, #FFFFFF);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

/* Choice cards */
.tq-options {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}
.tq-option {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px;
	background: var(--white, #FFFFFF);
	border: 1px solid var(--border, #9C9CA2);
	cursor: pointer;
	transition: border-color var(--m-dur-s, 200ms);
}
.tq-option:hover {
	border-color: var(--ink, #171719);
}
.tq-option:has(input:checked) {
	padding: 15px;
	border: 2px solid var(--ink, #171719);
}
.has-error .tq-option {
	border-color: var(--error, #AF2820);
}
.tq-option input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}
.tq-radio {
	position: relative;
	flex: none;
	width: 22px;
	height: 22px;
	border: 1px solid var(--border, #9C9CA2);
	border-radius: 50%;
}
.tq-option input:checked + .tq-radio {
	border: 2px solid var(--ink, #171719);
}
.tq-option input:checked + .tq-radio::after {
	content: "";
	position: absolute;
	inset: 4px;
	background: var(--ink, #171719);
	border-radius: 50%;
}
.tq-option input:focus-visible + .tq-radio {
	outline: 2px solid var(--ink, #171719);
	outline-offset: 3px;
}
.tq-option > span:last-child {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.tq-option-h {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}
.tq-option-sub {
	color: var(--body, #656569);
	font-size: 13px;
	line-height: 1.55;
}

/* Alert, success, reference, next steps */
.tq-alert,
.tq-success {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 16px 20px;
	background: #FBF0EF;
	border: 1px solid var(--error, #AF2820);
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.5;
}
.tq-alert .tq-error-dot {
	width: 20px;
	height: 20px;
	margin-top: 1px;
	font-size: 13px;
}
.tq-alert-h,
.tq-success-h {
	margin-bottom: 8px !important;
	color: var(--ink, #171719);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.4;
}
.tq-success {
	align-items: center;
	padding: 20px;
	background: var(--ok, #EDF1EC);
	border: 0;
}
.tq-success-dot {
	display: flex;
	flex: none;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: var(--ink, #171719);
	border-radius: 50%;
	color: var(--white, #FFFFFF);
}
.tq-success .tq-success-h {
	margin-bottom: 4px !important;
}
.tq-ref {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 20px 24px;
	border: 1px solid var(--line, #E4E4E7);
}
.tq-ref-n {
	margin-top: 6px !important;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .5px;
	font-variant-numeric: tabular-nums;
}
.tq-ref-note {
	color: var(--body, #656569);
	font-size: 13px;
}
.tq-next ol {
	margin: 16px 0 0;
	padding: 0;
	list-style: none;
}
.tq-next li {
	display: flex;
	gap: 16px;
	padding: 14px 0;
	border-top: 1px solid var(--line, #E4E4E7);
}
.tq-next li:first-child {
	padding-top: 0;
	border-top: 0;
}
.tq-next-n {
	display: flex;
	flex: none;
	justify-content: center;
	align-items: center;
	width: 24px;
	height: 24px;
	background: var(--cream, #F2EDE1);
	border-radius: 50%;
	color: var(--tan, #6F6556);
	font-size: 12px;
	font-weight: 600;
}
.tq-next-h {
	margin-bottom: 4px !important;
	font-size: 15px;
	font-weight: 500;
}
.tq-next li p:last-child {
	color: var(--body, #656569);
	font-size: 13px;
	line-height: 1.55;
}

/* Footer bar */
.tq-foot {
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 24px 48px;
	background: #F6F3EF;
	border-top: 1px solid #E1DACB;
}
.tq-foot-note {
	flex: 1;
	color: var(--body, #656569);
	font-size: 14px;
	line-height: 1.55;
	white-space: pre-wrap;
}
.tq-foot-note.is-error {
	color: var(--error, #AF2820);
}
body .tq-foot-note a {
	color: var(--ink, #171719);
	font-weight: 500;
	text-decoration: none;
}
body .tq .tq-btn {
	display: inline-flex;
	flex: none;
	justify-content: center;
	align-items: center;
	gap: 8px;
	min-height: 53px;
	padding: 16px 30px;
	background: var(--ink, #171719);
	border: 1px solid var(--ink, #171719);
	border-radius: 0;
	color: var(--white, #FFFFFF);
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	text-decoration: none;
	cursor: pointer;
	transition: background-color var(--m-dur-s, 200ms), color var(--m-dur-s, 200ms);
}
body .tq .tq-btn:hover {
	background: var(--white, #FFFFFF);
	color: var(--ink, #171719);
}
body .tq .tq-btn.is-secondary {
	padding: 15px 24px;
	background: var(--white, #FFFFFF);
	color: var(--ink, #171719);
}
body .tq .tq-btn.is-secondary:hover {
	background: var(--ink, #171719);
	color: var(--white, #FFFFFF);
}
.tq .tq-btn-icon {
	width: 20px;
	height: 20px;
}
.tq-hp {
	position: absolute;
	left: -9999px;
}

@media (max-width: 900px) {
	.tq {
		flex-direction: column;
	}
	.tq-rail {
		flex-direction: row;
		align-items: center;
		width: 100%;
		padding: 20px 24px;
	}
	.tq-rail-top {
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}
	.tq-mark p,
	.tq-rail-bottom,
	.tq-step-sub {
		display: none;
	}
	.tq .tq-logo {
		width: 120px;
	}
	.tq-steps {
		display: flex;
		gap: 16px;
	}
	.tq-step,
	.tq-step:first-child {
		align-items: center;
		gap: 8px;
		padding: 0;
		border: 0;
	}
	.tq-step > span:last-child {
		padding-top: 0;
	}
	.tq-step-label {
		font-size: 14px;
	}
}
@media (max-width: 600px) {
	.tq-backdrop {
		padding: 0;
	}
	.tq-dialog {
		max-width: 100vw;
		max-height: 100vh;
		margin: 0;
	}
	.tq-rail {
		padding: 16px 20px;
	}
	.tq .tq-logo {
		display: none;
	}
	.tq-head {
		padding: 28px 20px 20px;
	}
	body .tq .tq-title {
		font-size: 26px;
	}
	.tq-body {
		gap: 24px;
		padding: 0 20px 28px;
	}
	.tq-options {
		grid-template-columns: 1fr;
		gap: 10px;
	}
	.tq-row {
		flex-direction: column;
		gap: 24px;
	}
	.tq-spacer {
		display: none !important;
	}
	.tq-foot {
		flex-wrap: wrap;
		gap: 12px;
		padding: 16px 20px;
	}
	.tq-foot-note {
		flex-basis: 100%;
		order: -1;
	}
	body .tq .tq-btn {
		flex: 1;
	}
}
