/* Anonymous → permanent conversion modal. Used by /shared/conversion-modal.js
   on the SPA dashboard (header guest-session banner click, specialist hard-
   gate) and on the pathway resource page (specialist hard-gate). */

.conversion-modal { position: relative; }
.conversion-modal h3 { margin-bottom: 0.375rem; }
.conv-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-subtle, #8686a0);
  font: inherit;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.conv-close svg { width: 1rem; height: 1rem; }
.conv-close:hover { background: var(--surface-alt, #ece7df); color: var(--text, #1f2338); }
.conv-close:focus-visible { background: var(--surface-alt, #ece7df); color: var(--text, #1f2338); outline: 3px solid rgba(74, 124, 89, 0.22); outline-offset: 2px; }

/* Mobile: take the whole screen so cramped phones don't squeeze the form
   into a tiny scrollable rectangle. Breakpoint matches the resource page
   + SPA's mobile header grid layout so the visual treatment switches
   together. */
@media (max-width: 640px) {
  .modal-backdrop:has(.conversion-modal) .modal {
    max-width: none;
    width: 100%;
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
