/**
 * Get A Quote drawer — Figma 2011:1039794
 * Full-height panel sliding in from the right.
 */

.dialog_drawer .dialog_wrapper {
	padding: 0;
	display: block;
}

.dialog_drawer .dialog_wrapper .main_table,
.dialog_drawer .dialog_wrapper .main_tcell {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
}

.dialog_drawer .dialog_bg {
	background: rgba(33, 33, 33, 0.45);
}

.dialog_drawer .modal_ajax.dialog {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: auto;
	width: min(100%, 52rem);
	max-width: 100%;
	height: 100%;
	max-height: none;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	box-shadow: none;
	overflow: visible;
	transform: translateX(100%);
	transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
	animation: none !important;
	z-index: 1503;
}

.dialog_drawer .modal_ajax.dialog.visible {
	transform: translateX(0);
}

.dialog_drawer .modal_ajax .icon_close {
	display: none;
}

.dialog_drawer .modal_ajax .modal_content {
	height: 100%;
}

/* ── Form shell ─────────────────────────────────────────────────────────────── */
.dq-form {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	padding: 5rem;
	background: rgba(249, 247, 245, 0.9);
	border-radius: 2rem 0 0 2rem;
	box-shadow: 0 0.4rem 2rem rgba(0, 0, 0, 0.25);
	box-sizing: border-box;
	overflow: auto;
	-webkit-overflow-scrolling: touch;
}

.dq-form__top {
	display: flex;
	justify-content: flex-end;
	margin: 0 0 1rem;
}

.dq-form__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5.8rem;
	height: 5.5rem;
	padding: 1rem 1.5rem;
	border: 1px solid #396091;
	border-radius: 1rem;
	background: #323c48;
	color: #fff;
	font-family: var(--delco-font-heading);
	font-size: 1.58rem;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.dq-form__close:hover,
.dq-form__close:focus {
	background: #2f3741;
	border-color: #4779b9;
	color: #fff;
	outline: none;
}

.dq-form__intro {
	display: flex;
	flex-direction: column;
	gap: 3rem;
	align-items: stretch;
	padding: 0 1rem 3rem;
	text-align: center;
}

.dq-form__title {
	margin: 0;
	font-family: var(--delco-font-display);
	font-size: clamp(3.6rem, 4.2vw, 5rem);
	font-weight: 500;
	line-height: 1.1;
	color: #323c48;
	text-transform: none;
	letter-spacing: normal;
}

.dq-form__lede {
	margin: 0;
	font-family: var(--delco-font-body);
	font-size: clamp(1.6rem, 1.55vw, 2.018rem);
	font-weight: 400;
	line-height: 1.45;
	color: #323c48;
	text-transform: none;
	letter-spacing: normal;
}

.dq-form__fields {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	width: 100%;
	padding: 0 1rem;
}

.dq-form__field {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	width: 100%;
	margin: 0;
}

.dq-form__label {
	display: block;
	margin: 0;
	font-family: var(--delco-font-heading);
	font-size: 1.58rem;
	font-weight: 700;
	line-height: 1.3;
	color: #35393e;
	text-transform: none;
}

.dq-form__req {
	color: #b35654;
}

.dq-form__input {
	width: 100%;
	min-height: 5.1rem;
	margin: 0 !important;
	padding: 0 1.6rem;
	border: 1px solid #35393e !important;
	border-radius: 1rem !important;
	background: #fff !important;
	color: #323c48 !important;
	font-family: var(--delco-font-body);
	font-size: 1.6rem;
	line-height: 1.3;
	box-shadow: none !important;
	box-sizing: border-box;
}

.dq-form__input::placeholder {
	color: rgba(50, 60, 72, 0.45);
}

.dq-form__input:focus {
	border-color: #4779b9 !important;
	box-shadow: 0 0 0 3px rgba(71, 121, 185, 0.15) !important;
	outline: none;
}

.dq-form__input.validate_error {
	border-color: #b35654 !important;
	box-shadow: 0 0 0 3px rgba(179, 86, 84, 0.15) !important;
}

.dq-form__textarea {
	min-height: 10.2rem;
	padding-top: 1.2rem;
	padding-bottom: 1.2rem;
	resize: vertical;
}

.dq-form__field--file {
	position: relative;
}

.dq-form__file-input {
	position: absolute;
	width: 0.1px;
	height: 0.1px;
	opacity: 0;
	overflow: hidden;
	z-index: -1;
}

.dq-form__file-trigger {
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 5.1rem;
	margin: 0 !important;
	padding: 0 1.6rem;
	border: 1px solid #35393e;
	border-radius: 1rem;
	background: #fff;
	color: #323c48;
	font-family: var(--delco-font-body);
	font-size: 1.6rem;
	line-height: 1.3;
	cursor: pointer;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.dq-form__file-trigger:hover {
	border-color: #4779b9;
}

.dq-form__file-text {
	font-weight: 500;
}

.dq-form__submit {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 5.5rem;
	margin: 0.5rem 0 0;
	padding: 1.5rem 0.3rem;
	border: 1px solid #396091 !important;
	border-radius: 1rem !important;
	background: #323c48 !important;
	color: #fff !important;
	font-family: var(--delco-font-heading);
	font-size: 1.58rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.08rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.dq-form__submit:hover,
.dq-form__submit:focus {
	background: #2f3741 !important;
	border-color: #4779b9 !important;
	color: #fff !important;
	transform: none;
}

/* ── Legacy modal resets (main_Copy / delco-global bleed) ───────────────────── */
.modal_ajax.dq-drawer-modal .contact_form.dq-form p.dq-form__lede,
.modal_ajax.dq-drawer-modal .contact_form.dq-form .dq-form__lede {
	margin: 0 !important;
	font-family: var(--delco-font-body) !important;
	font-size: clamp(1.6rem, 1.55vw, 2.018rem) !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	color: #323c48 !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form .dq-form__title {
	margin: 0 !important;
	font-family: var(--delco-font-display) !important;
	font-size: clamp(3.6rem, 4.2vw, 5rem) !important;
	font-weight: 500 !important;
	line-height: 1.1 !important;
	color: #323c48 !important;
	text-align: center !important;
	text-transform: none !important;
	letter-spacing: normal !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form label span.dq-form__req {
	color: #b35654 !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form .dq-form__label {
	color: #35393e !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form .input.dq-form__input,
.modal_ajax.dq-drawer-modal .contact_form.dq-form textarea.dq-form__input {
	height: auto;
	min-height: 5.1rem;
	margin: 0 !important;
	border: 1px solid #35393e !important;
	border-radius: 1rem !important;
	background: #fff !important;
	color: #323c48 !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form textarea.dq-form__textarea {
	min-height: 10.2rem !important;
	margin: 0 !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form .button.dq-form__submit {
	display: flex !important;
	width: 100% !important;
	min-height: 5.5rem;
	margin: 0.5rem 0 0 !important;
	padding: 1.5rem 0.3rem !important;
	border: 1px solid #396091 !important;
	border-radius: 1rem !important;
	background: #323c48 !important;
	color: #fff !important;
	font-family: var(--delco-font-heading) !important;
	font-size: 1.58rem !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
}

.modal_ajax.dq-drawer-modal .contact_form.dq-form label {
	margin: 0;
}

/* Contact page inline form (not drawer) */
.contact_page main .dq-form {
	min-height: 0;
	height: auto;
	border-radius: 1rem;
	box-shadow: 0 1.2rem 2.4rem rgba(50, 60, 72, 0.08);
}

.contact_page main .dq-form__close {
	display: none;
}

.contact_page main .contact_form.dq-form p.dq-form__lede {
	color: #323c48 !important;
	text-transform: none !important;
}

@media (max-width: 640px) {
	.dq-form {
		border-radius: 0;
		padding: 2.4rem 1.6rem 2.4rem;
	}

	.dialog_drawer .modal_ajax.dialog {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dialog_drawer .modal_ajax.dialog {
		transition: none;
	}
}
