/* =====================================================================
   Popups shared by the landing and network.html, draft 22 Oct 2026:
   "Book an inspection" (request, reply within one working day) and
   "Join the waitlist". Needs main.css (tokens, .form, .btn).
   ===================================================================== */
.pop {
  width: min(540px, calc(100vw - 32px)); max-height: calc(100svh - 32px); overflow: auto;
  margin: auto;   /* main.css zeroes every margin, which pinned the dialog to the top-left corner */
  padding: 32px 28px 28px; border: 0; background: #0b0b0b; color: var(--text-dark);
  box-shadow: 0 30px 80px rgba(0,0,0,0.6); /* taste-skill-ignore: dialog floats */
}
.pop [hidden] { display: none !important; }   /* .form sets display:grid, which beat the hidden attribute */
.pop::backdrop { background: rgba(0,0,0,0.72); }
.pop[open] { animation: popIn 0.22s ease-out; }
@keyframes popIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.pop__x { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; background: none; border: 0; color: var(--text-pure); font-size: 30px; line-height: 1; cursor: pointer; }
.pop__x:hover, .pop__x:focus-visible { color: var(--accent); }
.pop__h { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1; letter-spacing: -0.01em; color: var(--text-pure); margin: 0 0 10px; }
.pop__p { font-size: 16px; line-height: 1.5; margin: 0 0 22px; color: var(--text-pure); }
.pop__form { gap: 16px; }
.pop .form__row { gap: 12px; }
.pop label, .pop legend { font-family: var(--font-body); font-size: 14px; letter-spacing: 0; text-transform: none; opacity: 0.85; margin-bottom: 6px; }
.pop input, .pop select { font-size: 16px; padding: 12px 14px; }
.pop select { padding-right: 36px; text-overflow: ellipsis; }
.pop .form select { background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; }
.pop__opt { opacity: 0.6; }
.pop__err { margin: 0; color: #ff8a82; font-size: 14px; }
.pop__small { margin: 0; font-size: 13px; line-height: 1.5; opacity: 0.7; }
.pop__small a { color: inherit; }
.pop__cal iframe { width: 100%; height: min(640px, 70svh); border: 0; background: #fff; }
.pop__done .pop__h { margin-top: 6px; }

/* how we reply: two plain radios on one line */
.pop__how { border: 0; padding: 0; margin: 0; min-width: 0; }
.pop__how legend { padding: 0; }
.pop__how-opts { display: flex; gap: 24px; }
.pop__how-opts label { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 16px; opacity: 1; cursor: pointer; }
.pop__how-opts input { width: 20px; height: 20px; padding: 0; margin: 0; accent-color: var(--accent); }

/* buttons in a popup: sentence case at reading size, like the landing */
.pop .btn { font-size: 16px; font-weight: 600; letter-spacing: 0; text-transform: none; padding: 15px 26px; }
.pop__send { justify-self: start; }

@media (max-width: 800px) {
  .pop { width: 100vw; max-width: 100vw; margin: auto 0 0; padding: 28px 20px max(24px, env(safe-area-inset-bottom)); max-height: 92svh; }
  .pop .form__row { grid-template-columns: 1fr 1fr; }
  .pop .form__row--stack { grid-template-columns: 1fr; }
  .pop__send { justify-self: stretch; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .pop[open] { animation: none; } }
