/* 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;
  }
}

/* Match the wave logo used while assessment and assistance details load. */
.conversion-modal .conv-completion { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; padding: 1.75rem 0.5rem; text-align: center; }
.conv-completion .cz-af-title { margin: 0; color: var(--text, #1f2338); font-size: 1.125rem; font-weight: 600; line-height: 1.4; }
.conv-completion .conv-completion-status { margin: 0; max-width: 28rem; color: var(--text-muted, #56586a); font-size: 0.9375rem; line-height: 1.6; }
.conv-completion .cz-af-btn { width: auto; min-width: 10rem; margin-top: 0.25rem; }
.conv-completion-logo { width: 56px; height: 56px; flex-shrink: 0; margin-bottom: 0.25rem; }
.conv-completion-wave { fill: none; stroke: #d1d5db; stroke-width: 2.24; stroke-miterlimit: 10; animation: convLogoWave 1.4s ease-in-out infinite; }
.conv-completion-wave:nth-child(2) { animation-delay: 0.1s; }
.conv-completion-wave:nth-child(3) { animation-delay: 0.2s; }
.conv-completion-wave:nth-child(4) { animation-delay: 0.3s; }
.conv-completion-wave:nth-child(5) { animation-delay: 0.4s; }
.conv-completion-wave:nth-child(6) { animation-delay: 0.5s; }
.conv-completion-wave:nth-child(7) { animation-delay: 0.6s; }
@keyframes convLogoWave { 0%, 100% { stroke: #d1d5db; } 30% { stroke: #4a7c59; } 60% { stroke: #d1d5db; } }
@media (prefers-reduced-motion: reduce) { .conv-completion-wave { animation: none; stroke: #4a7c59; } }
