/* sw-popform.css: the popover form drawn by templates/build_landing.py from a page's "popform" field
   (18 November 2026). The fields reuse the landing form's .lp-grid and .lp-field from tw-solutions.css. */
dialog.sw-pop {
  width: min(38rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 0;
  border: 0;
  border-radius: 1rem;
  background: #fff;
  color: inherit;
  box-shadow: 0 24px 64px rgba(6, 26, 16, .28);
  overflow: auto;
}
dialog.sw-pop::backdrop { background: rgba(6, 26, 16, .55); }
/* Without JavaScript, the link's #id still shows the box, with the email address to write to. */
dialog.sw-pop:not([open]):target { display: block; position: fixed; inset: 1rem; margin: auto; z-index: 1000; }
.sw-pop-box { position: relative; padding: 1.75rem; display: grid; gap: 1rem; }
.sw-pop-x {
  position: absolute; top: .75rem; right: .75rem;
  width: 2.5rem; height: 2.5rem; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: #f1f5f3; color: inherit;
  font-size: 1.5rem; line-height: 1; text-decoration: none; cursor: pointer;
}
.sw-pop-x:hover, .sw-pop-x:focus-visible { background: #e3ece7; }
.sw-pop-h { margin: 0 2.75rem 0 0; font-size: 1.5rem; line-height: 1.2; font-weight: 600; }
.sw-pop-intro { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--sol-soft, #3d4a44); }
.sw-pop form { display: grid; gap: 1rem; }
.sw-pop .sol-btn { justify-self: start; border: 0; cursor: pointer; }
.sw-pop .sol-btn[disabled] { opacity: .65; cursor: progress; }
.sw-pop-note, .sw-pop-alt { margin: 0; font-size: .875rem; line-height: 1.5; color: var(--sol-soft, #3d4a44); }
.sw-pop-error { margin: 0; padding: .75rem 1rem; border-radius: .5rem; background: #fdecea; color: #8a1c12; font-size: .95rem; }
.sw-pop-done { margin: 0; padding: 1rem 1.1rem; border-radius: .75rem; background: #e6f7ee; color: #0b5a33; font-size: 1.05rem; line-height: 1.5; outline: none; }
.sw-pop-cap:empty { display: none; }
@media screen and (max-width: 479px) { .sw-pop-box { padding: 1.25rem; } .sw-pop-h { font-size: 1.3rem; } }
