/* Get Quote modal — product left, form right */

.qm-overlay[hidden] { display: none !important; }
.qm-overlay {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.qm-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 40, .62);
	backdrop-filter: blur(2px);
}

.qm-dialog {
	--qm-navy: #1a2744;
	--qm-blue: #2c4387;
	--qm-amber: #c45c26;
	--qm-text: #243047;
	--qm-muted: #66758d;
	--qm-line: #d7dde8;
	--qm-bg: #f7f9fc;
	--qm-fs: 14px;
	--qm-fs-sm: 13px;
	--qm-fs-label: 12px;
	--qm-radius: 6px;

	position: relative;
	width: 100%;
	max-width: 860px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	border-radius: 8px;
	border: 1px solid var(--qm-line);
	box-shadow: 0 24px 48px rgba(15, 23, 40, .28);
	padding: 0;
	box-sizing: border-box;
	color: var(--qm-text);
	font-family: "open_sansregular", "Segoe UI", sans-serif;
	font-size: var(--qm-fs);
	line-height: 1.5;
}

.qm-close {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	color: var(--qm-muted);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	border-radius: var(--qm-radius);
}
.qm-close:hover {
	background: #eef2f8;
	color: var(--qm-navy);
}

.qm-panel { padding: 0; }

.qm-layout {
	display: grid;
	grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.2fr);
	align-items: stretch;
	min-height: 420px;
}
.qm-layout.is-solo {
	grid-template-columns: 1fr;
}

.qm-eyebrow {
	margin: 0 0 6px;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: var(--qm-fs-label);
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--qm-amber);
}

.qm-head {
	margin-bottom: 14px;
	padding-right: 28px;
}
.qm-head h2,
.qm-success h2 {
	margin: 0 0 6px;
	padding: 0;
	background: none;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 20px;
	line-height: 1.3;
	color: var(--qm-navy);
	font-weight: 600;
}
.qm-lead {
	margin: 0;
	font-size: var(--qm-fs-sm);
	line-height: 1.5;
	color: var(--qm-muted);
}

/* Left: product details */
.qm-product-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 24px 20px;
	background: var(--qm-bg);
	border-right: 1px solid var(--qm-line);
	box-sizing: border-box;
}
.qm-product-card[hidden] { display: none !important; }

.qm-product-media {
	width: 100%;
	aspect-ratio: 1 / 1;
	max-height: 220px;
	border-radius: var(--qm-radius);
	background: #fff;
	border: 1px solid var(--qm-line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 12px;
	box-sizing: border-box;
}
.qm-product-media[hidden] { display: none !important; }
.qm-product-media img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	display: block;
}

.qm-product-info {
	display: grid;
	gap: 10px;
	min-width: 0;
}
.qm-product-cat {
	margin: 0;
	font-size: var(--qm-fs-label);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--qm-blue);
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
}
.qm-product-name {
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.35;
	color: var(--qm-navy);
	font-weight: 600;
}
.qm-product-price,
.qm-product-specs {
	margin: 0;
	font-size: var(--qm-fs-sm);
	line-height: 1.5;
	color: var(--qm-text);
}
.qm-product-price span,
.qm-product-specs span {
	display: block;
	font-size: var(--qm-fs-label);
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--qm-muted);
	margin-bottom: 3px;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
}
.qm-product-price strong {
	color: var(--qm-amber);
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 15px;
	font-weight: 600;
}
.qm-product-specs {
	padding-top: 8px;
	border-top: 1px solid var(--qm-line);
}

/* Right: form */
.qm-form-col {
	padding: 24px 24px 22px;
	box-sizing: border-box;
}

.qm-alert {
	margin: 0 0 14px;
	padding: 10px 12px;
	border-radius: var(--qm-radius);
	font-size: var(--qm-fs-sm);
	line-height: 1.45;
}
.qm-alert.is-error {
	background: #fdecea;
	border: 1px solid #f0c2bd;
	color: #8c2f26;
}
.qm-alert.is-ok {
	background: #e8f7ef;
	border: 1px solid #b7e0c8;
	color: #1b6b3a;
}

.qm-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.qm-form label {
	display: grid;
	gap: 5px;
	margin: 0;
}
.qm-form .qm-full { grid-column: 1 / -1; }
.qm-form label > span {
	font-size: var(--qm-fs-label);
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	color: var(--qm-navy);
}
.qm-form input,
.qm-form textarea {
	width: 100%;
	box-sizing: border-box;
	min-height: 42px;
	padding: 9px 11px;
	border: 1px solid var(--qm-line);
	border-radius: var(--qm-radius);
	font-family: inherit;
	font-size: var(--qm-fs);
	color: var(--qm-text);
	outline: none;
	background: #fff;
}
.qm-form textarea { min-height: 96px; resize: vertical; }
.qm-form input:focus,
.qm-form textarea:focus {
	border-color: #9eb0d4;
	box-shadow: 0 0 0 3px rgba(44,67,135,.12);
}

.qm-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
	opacity: 0 !important;
}

.qm-actions {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 8px;
}
.qm-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 42px;
	padding: 0 12px;
	border-radius: var(--qm-radius);
	border: 1px solid transparent;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: var(--qm-fs-sm);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	box-sizing: border-box;
}
.qm-btn-accent {
	background: var(--qm-amber);
	color: #fff !important;
	border: 0;
	flex: 1 1 auto;
	min-width: 0;
}
.qm-btn-accent:hover { background: #a84c1e; color: #fff !important; }
.qm-btn-accent:disabled {
	opacity: .7;
	cursor: wait;
}
.qm-btn-ghost {
	background: #fff;
	border-color: var(--qm-line);
	color: var(--qm-navy) !important;
	flex: 0 1 auto;
}
.qm-btn-ghost:hover {
	border-color: var(--qm-blue);
	color: var(--qm-blue) !important;
}
.qm-btn-whatsapp {
	background: #128c7e;
	color: #fff !important;
	border: 0;
	flex: 0 0 auto;
}
.qm-btn-whatsapp:hover {
	background: #0e7a6e;
	color: #fff !important;
}

.qm-note {
	grid-column: 1 / -1;
	margin: 0;
	font-size: var(--qm-fs-label);
	line-height: 1.45;
	color: var(--qm-muted);
}

.qm-result {
	padding: 0;
}
.qm-dialog.is-result {
	max-width: 440px;
}
.qm-success-card,
.qm-error-card {
	text-align: center;
	padding: 36px 28px 28px;
}
.qm-result-icon {
	width: 64px;
	height: 64px;
	margin: 0 auto 14px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 28px;
}
.qm-result-icon.is-ok {
	background: #e7f6ec;
	color: #1f7a3f;
}
.qm-result-icon.is-err {
	background: #fdeceb;
	color: #b42318;
}
.qm-result-icon.is-warn {
	background: #fff4e5;
	color: #b54708;
}
.qm-ref-badge {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 12px;
	border-radius: 999px;
	border: 1px solid #e4d9c8;
	background: #f7f1e8;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 11px;
	letter-spacing: 0.04em;
	color: #5c5346;
}
.qm-result-status {
	margin: 0 0 8px;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 11px;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--qm-amber);
}
.qm-result-status.is-muted {
	color: var(--qm-muted);
}
.qm-success-card h2,
.qm-error-card h2 {
	margin: 0 0 10px;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 24px;
	line-height: 1.25;
	color: var(--qm-navy);
}
.qm-success-lead {
	margin: 0 0 20px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--qm-muted);
}
.qm-success-lead strong {
	color: var(--qm-navy);
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-weight: 600;
}
.qm-next {
	text-align: left;
	margin: 0 0 20px;
	padding: 16px 16px 14px;
	border-radius: 8px;
	background: #f7f1e8;
	border: 1px solid #efe6d8;
}
.qm-next-title {
	margin: 0 0 12px;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 11px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6b6358;
}
.qm-next-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.qm-next-list li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--qm-text);
}
.qm-next-num {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--qm-navy);
	color: #fff;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	font-size: 11px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 1px;
}
.qm-success-actions {
	display: grid;
	gap: 10px;
	margin: 0 0 14px;
}
.qm-btn-block {
	width: 100%;
	box-sizing: border-box;
}
.qm-btn-outline {
	background: #fff;
	border: 1px solid #c8d0de;
	color: var(--qm-navy) !important;
}
.qm-btn-outline:hover {
	border-color: var(--qm-blue);
	color: var(--qm-blue) !important;
	background: #f7f9fc;
}
.qm-success-urgent {
	margin: 0;
	font-size: 12px;
	line-height: 1.45;
	color: var(--qm-muted);
}
.qm-success-urgent a {
	color: var(--qm-navy) !important;
	font-family: "open_sanssemibold", "Segoe UI", sans-serif;
	text-decoration: none;
}
.qm-success-urgent a:hover {
	color: var(--qm-blue) !important;
	text-decoration: underline;
}

body.qm-open {
	overflow: hidden;
	padding-right: var(--qm-scrollbar, 0px);
	touch-action: none;
}
html.qm-open {
	overflow: hidden;
}
body.qm-open .parent > .header,
body.qm-open .as-site-header,
body.qm-open .pd-mobile-bar,
body.qm-open .pd-tabs.is-fixed {
	padding-right: var(--qm-scrollbar, 0px);
}

@media only screen and (max-width: 780px) {
	.qm-layout {
		grid-template-columns: 1fr;
		min-height: 0;
	}
	.qm-product-card {
		border-right: 0;
		border-bottom: 1px solid var(--qm-line);
		padding: 20px 16px 16px;
	}
	.qm-product-media {
		max-height: 180px;
		aspect-ratio: 16 / 10;
	}
	.qm-form-col { padding: 18px 16px 20px; }
	.qm-form { grid-template-columns: 1fr; }
	.qm-actions {
		flex-wrap: nowrap;
		gap: 6px;
	}
	.qm-btn {
		padding: 0 8px;
		font-size: 12px;
		min-height: 40px;
	}
	.qm-btn-ghost {
		max-width: 42%;
		overflow: hidden;
		text-overflow: ellipsis;
	}
}
