/* contact-modal.css - the message modal and the contact-block controls.
 *
 * Shared by the generated therapist/<slug>.html pages and the hand-built
 * legacy profile pages, so the two generations cannot drift apart. Loaded
 * alongside contact-modal.js; both are no-ops on a page with no modal.
 *
 * Uses the site's existing tokens (--navy, --gold, --rule ...) which every
 * profile page already defines in its own :root block.
 */
    /* Contact block is a 2x2: Website | Email / Portal | Phone. Sessions is
       information rather than a way to reach someone, so it spans the full
       width underneath instead of taking a cell in the grid. */
    .contact-item-wide { grid-column: 1 / -1; }
    /* Visually-hidden labels for the modal inputs, which use placeholders. */
    .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

    /* The Email cell opens the message modal. Styled as a control, not a link,
       because it does not navigate. */
    /* Reads as one of the contact grid's plain links, not a gold CTA: it sits
       in the same 2x2 grid as Website and Phone and should not outweigh them.
       Matches .contact-item-value a exactly, so the 59 modal pages and the 98
       legacy pages look identical. */
    .contact-email-btn { font-family: inherit; font-size: inherit; font-weight: inherit; letter-spacing: normal; text-transform: none; text-align: left; color: var(--navy); background: none; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; padding: 0; cursor: pointer; transition: border-color 0.2s; }
    .contact-email-btn:hover { border-color: var(--navy); }
    .contact-email-btn:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

    /* MESSAGE MODAL */
    .cm-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(15,30,56,0.55); display: none; align-items: flex-start; justify-content: center; padding: 40px 20px; overflow-y: auto; }
    .cm-overlay.open { display: flex; }
    .cm-dialog { background: #fff; border-radius: var(--radius-card); max-width: 780px; width: 100%; box-shadow: 0 18px 50px rgba(15,30,56,0.28); overflow: hidden; }
    .cm-head { display: flex; align-items: center; gap: 15px; padding: 20px 24px; border-bottom: 1px solid var(--rule); }
    .cm-avatar { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; overflow: hidden; background: linear-gradient(135deg, #2E4170 0%, #4A6090 100%); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 300; color: rgba(255,255,255,0.85); letter-spacing: 1px; }
    /* The photo layers OVER the initials rather than sitting beside them, so
       a 404 headshot falls back to initials instead of showing both. */
    .cm-avatar { position: relative; }
    .cm-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    .cm-label { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy-muted); font-weight: 500; }
    .cm-name { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 400; color: var(--navy); }
    .cm-close { margin-left: auto; background: none; border: 0; color: var(--light); font-size: 24px; line-height: 1; cursor: pointer; padding: 4px 8px; }
    .cm-close:hover { color: var(--navy); }
    .cm-close:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
    .cm-body { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 30px; padding: 26px 24px; }
    .cm-field { width: 100%; padding: 12px 14px; margin-bottom: 11px; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cream); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 300; color: var(--charcoal); }
    .cm-field:focus { outline: 2px solid var(--navy-pale); background: #fff; }
    textarea.cm-field { min-height: 128px; resize: vertical; }
    .cm-tips-title { font-size: 14px; font-weight: 500; color: var(--navy); margin-bottom: 12px; }
    .cm-tips { margin: 0; padding-left: 18px; color: var(--mid); font-size: 13.5px; font-weight: 300; }
    .cm-tips li { margin-bottom: 11px; }
    .cm-consent { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--mid); font-weight: 300; margin: 6px 0 16px; }
    .cm-consent input { margin-top: 4px; flex-shrink: 0; }
    .cm-consent a { color: var(--navy); }
    .cm-send { width: 100%; padding: 15px; border: 0; border-radius: var(--radius); background: var(--gold); color: var(--navy-deep); font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: opacity 0.2s; }
    .cm-send:hover { opacity: 0.85; }
    .cm-send:disabled { opacity: 0.5; cursor: not-allowed; }
    .cm-error { font-size: 13px; color: #A3341F; margin-bottom: 12px; display: none; }
    .cm-fine { padding: 18px 24px 24px; border-top: 1px solid var(--rule); background: var(--cream); font-size: 11.5px; line-height: 1.65; color: var(--mid); font-weight: 300; }
    .cm-fine p { margin: 0 0 10px; }
    .cm-fine p:last-child { margin-bottom: 0; }
    .cm-fine a { color: #2E4170; }
    .cm-emergency { color: var(--navy); font-weight: 400; }
    .cm-success { padding: 44px 24px 52px; text-align: center; display: none; }
    .cm-success h3 { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 400; color: var(--navy); margin-bottom: 10px; }
    .cm-success p { font-size: 14px; font-weight: 300; color: var(--mid); max-width: 44ch; margin: 0 auto; }
    @media (max-width: 720px) {
      .cm-body { grid-template-columns: 1fr; gap: 22px; }
      .cm-overlay { padding: 0; }
      .cm-dialog { border-radius: 0; min-height: 100vh; }
    }
