/* "Start a project" pop-up form, shared by every page. Markup is injected by /js/quote-modal.js. */
.qm-backdrop {
  --qm-c1: #22d3ee; --qm-c2: #6366f1; --qm-c3: #a855f7;
  --qm-line: rgba(255,255,255,.1); --qm-text: #e6ebf5; --qm-muted: #8b95ad;
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 24px;
  background: rgba(3,5,10,.78);
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s linear .25s;
  font-family: 'Inter', system-ui, sans-serif; color: var(--qm-text);
}
.qm-backdrop.open { opacity: 1; visibility: visible; transition: opacity .25s ease; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qm-panel {
  position: relative; width: min(620px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; overscroll-behavior: contain;
  padding: 32px; border-radius: 24px; border: 1px solid var(--qm-line);
  background: linear-gradient(180deg, rgba(20,24,44,.98), rgba(9,12,22,.98));
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 80px -30px rgba(99,102,241,.6);
  transform: translateY(16px) scale(.98); transition: transform .3s cubic-bezier(.16,1,.3,1);
}
.qm-backdrop.open .qm-panel { transform: none; }
.qm-panel::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(120deg, var(--qm-c1), var(--qm-c2) 50%, var(--qm-c3)); }
.qm-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--qm-line); background: rgba(255,255,255,.04); color: var(--qm-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qm-close:hover { color: var(--qm-text); background: rgba(255,255,255,.08); }
.qm-tag { font-family: 'JetBrains Mono', monospace; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--qm-c1); margin-bottom: 8px; }
.qm-panel h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.7rem; letter-spacing: -.02em; line-height: 1.15; margin: 0 40px 6px 0; }
.qm-sub { color: var(--qm-muted); font-size: .95rem; margin: 0 0 22px; }
.qm-backdrop .qm-form { display: grid; gap: 14px; padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; }
.qm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qm-form label { display: grid; gap: 6px; font: 500 .78rem 'JetBrains Mono', monospace; color: var(--qm-muted); }
.qm-form label .opt { color: #5b6681; }
.qm-form input, .qm-form select, .qm-form textarea {
  font: 400 .95rem 'Inter', system-ui, sans-serif; color: var(--qm-text); width: 100%;
  padding: 12px 14px; border-radius: 11px; border: 1px solid var(--qm-line); background: rgba(255,255,255,.04);
}
.qm-form select option { background: #0a0e1a; }
.qm-form textarea { min-height: 110px; resize: vertical; }
.qm-form input:focus, .qm-form select:focus, .qm-form textarea:focus { outline: none; border-color: var(--qm-c2); box-shadow: 0 0 0 4px rgba(99,102,241,.22); }
.qm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qm-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border: 0; border-radius: 12px; cursor: pointer;
  font: 600 .98rem 'Inter', system-ui, sans-serif; color: #fff; background: linear-gradient(120deg, var(--qm-c1), var(--qm-c2) 50%, var(--qm-c3));
  box-shadow: 0 10px 34px -10px rgba(99,102,241,.8); transition: transform .15s;
}
.qm-submit:hover { transform: translateY(-1px); }
.qm-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.qm-status { min-height: 1.3em; font-size: .9rem; color: var(--qm-muted); margin: 0; }
.qm-status.err { color: #fbbf24; }
.qm-alt { font-size: .85rem; color: var(--qm-muted); text-align: center; margin: 2px 0 0; }
.qm-alt a { color: var(--qm-c1); }
.qm-done { text-align: center; padding: 28px 8px 12px; }
.qm-done .qm-check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.4); color: #4ade80; font-size: 1.8rem; }
.qm-done h2 { margin: 0 0 8px; }
.qm-done p { color: var(--qm-muted); margin: 0 0 22px; }
html.qm-lock, html.qm-lock body { overflow: hidden; }

/* Phones: full-height sheet that slides up */
@media (max-width: 640px) {
  .qm-backdrop { padding: 0; place-items: end stretch; }
  .qm-panel { width: 100%; max-height: 100dvh; height: 100dvh; border-radius: 0; padding: 24px 18px 28px; transform: translateY(40px); }
  .qm-panel::before { left: 0; right: 0; border-radius: 0; }
  .qm-row { grid-template-columns: 1fr; }
  .qm-panel h2 { font-size: 1.45rem; }
}
@media (prefers-reduced-motion: reduce) {
  .qm-backdrop, .qm-panel { transition: none; }
}
