/* The "Get notified" dialog (public/js/notify.js). Built on the house
   tokens and .btn from /css/house.css, which every page with the button
   loads. Phones get the box 16px from each edge with the field over the button,
   both full width; from 520px they share a row. The field is 16px so iOS does
   not zoom into it. */

.notify-dialog {
  width: calc(100% - 32px);
  max-width: 480px;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-lg);
  background: var(--surface);
  color: var(--body);
  box-shadow: var(--shadow-lg);
}
.notify-dialog::backdrop { background: rgba(12, 30, 60, 0.55); }
body:has(.notify-dialog[open]) { overflow: hidden; }

.notify-box { position: relative; padding: 32px 28px 26px; }

.notify-close {
  position: absolute;
  top: 12px; right: 12px;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  font-size: 26px; line-height: 1;
  color: var(--muted);
  background: none;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}
.notify-close:hover { color: var(--ink); background: var(--surface-2); }
.notify-close:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.notify-title { font-size: 24px; margin: 0 36px 10px 0; text-wrap: balance; }
.notify-lead { font-size: 15.5px; margin-bottom: 20px; }

.notify-row { display: flex; flex-direction: column; gap: 10px; }
.notify-input {
  width: 100%;
  height: 52px;
  padding: 0 22px;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-pill);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.notify-input::placeholder { color: var(--muted); }
.notify-input:focus { outline: none; border-color: var(--primary-2); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.22); }
.notify-input[aria-invalid="true"] { border-color: #DC2626; }
.notify-row .btn { width: 100%; }
.notify-row .btn:disabled { cursor: default; opacity: 0.75; transform: none; }

@media (min-width: 520px) {
  .notify-row { flex-direction: row; }
  .notify-input { flex: 1; min-width: 0; }
  .notify-row .btn { width: auto; flex-shrink: 0; }
}

/* Only a screen reader needs the label; the placeholder says it on screen. */
.notify-label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* The honeypot: off screen and out of the tab order, as on client-portal forms. */
.notify-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notify-msg { margin-top: 10px; font-size: 14px; font-weight: 500; color: #B91C1C; }
.notify-msg:empty { display: none; }
.notify-fine { margin-top: 14px; font-size: 13px; color: var(--muted); }
.notify-fine a { text-decoration: underline; text-underline-offset: 2px; }
.notify-fine a:hover { color: var(--primary-ink); }

.notify-done { font-size: 16px; color: var(--ink); }
.notify-done:empty { display: none; }
