/* Quote modal (includes/site/quote-modal.php) */
.qm {
  width: min(460px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: clamp(20px, 4vw, 28px); border: 0; border-radius: var(--radius-lg, 16px);
  background: var(--surface, #fff); color: var(--ink, #121416);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.qm::backdrop { background: rgba(18, 20, 22, .6); }
.qm[open] { animation: qm-in .18s ease-out; }
@keyframes qm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qm[open] { animation: none; } }
.qm__close {
  position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.qm__close:hover { background: rgba(18, 20, 22, .06); }
.qm__close .icon { width: 22px; height: 22px; }
.qm .lead-form__title { padding-right: 40px; }
/* keep it short: the WhatsApp / phone alternatives stay, the rest of the page is behind */
.qm .lead-form { margin: 0; }
html.qm-open { overflow: hidden; }
html.qm-open .sticky-bar, html.qm-open .chat-launcher { visibility: hidden; }
.qm__close:focus:not(:focus-visible) { outline: none; }
