/* ============================================================
   MODAL „Bezpłatna wycena" (globalny, otwierany z CTA w headerze)
   ============================================================ */
.xelox-qmodal {
	position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
	visibility: hidden; opacity: 0;
	transition: opacity var(--dur-base) var(--ease), visibility 0s linear var(--dur-base);
}
.xelox-qmodal[aria-hidden="false"] { visibility: visible; opacity: 1; transition: opacity var(--dur-base) var(--ease); }
.xelox-qmodal__backdrop {
	position: absolute; inset: 0; background: rgba(18, 28, 54, .55);
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.xelox-qmodal__panel {
	position: relative; z-index: 1; width: min(460px, 100%);
	max-height: calc(100dvh - 40px); overflow: auto;
	background: #fff; border-radius: 16px; padding: clamp(24px, 3vw, 34px);
	box-shadow: 0 40px 90px -20px rgba(18, 28, 54, .4);
	transform: translateY(18px) scale(.98);
	transition: transform var(--dur-base) var(--ease-out);
}
.xelox-qmodal[aria-hidden="false"] .xelox-qmodal__panel { transform: none; }
.xelox-qmodal__close {
	position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%;
	display: grid; place-items: center; background: var(--c-bg); color: var(--c-ink-soft);
	border: 0; cursor: pointer;
	transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.xelox-qmodal__close:hover { background: var(--c-ink); color: #fff; transform: rotate(90deg); }
.xelox-qmodal__head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-right: 34px; }
.xelox-qmodal__ico {
	flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
	background: var(--c-brand-soft); color: var(--c-brand);
}
.xelox-qmodal__title { font-size: 1.25rem; font-weight: 800; color: var(--c-ink); margin: 0; line-height: 1.15; }
.xelox-qmodal__sub { font-size: 0.85rem; color: var(--c-muted); margin: 3px 0 0; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) {
	.xelox-qmodal__panel { transform: none; transition: none; }
}

/* Formularz w modalu — layout niezależny od front-page.css (modal jest globalny) */
.xelox-qmodal .xelox-hquote { display: flex; flex-direction: column; gap: 12px; }
.xelox-qmodal .xelox-hquote__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.xelox-qmodal .xelox-hquote__field label { display: block; font-size: 0.78rem; font-weight: 700; color: var(--c-ink); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.xelox-qmodal .xelox-hquote__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.xelox-qmodal .xelox-hquote__rodo { display: flex; gap: 9px; align-items: flex-start; font-size: 0.76rem; color: var(--c-muted); line-height: 1.45; cursor: pointer; }
.xelox-qmodal .xelox-hquote__rodo input { width: 17px; height: 17px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--c-brand); }
.xelox-qmodal .xelox-hquote__rodo a { color: var(--c-brand-ink); text-decoration: underline; }
.xelox-qmodal .xelox-hquote button[type="submit"] { margin-top: 4px; }
.xelox-qmodal .xelox-hquote__alt { text-align: center; font-size: 0.8125rem; color: var(--c-muted); margin: 4px 0 0; }
.xelox-qmodal .xelox-hquote__alt a { display: inline-flex; align-items: center; gap: 5px; color: var(--c-brand-ink); font-weight: 700; }
@media (max-width: 420px) { .xelox-qmodal .xelox-hquote__row { grid-template-columns: 1fr; } }
