/* Event intake quiz — the card on a public event page and the one-question-
   per-screen popup it opens. Therapy paper look (same tokens as the artist
   pages, static/css/therapy-artist.css): square corners, ink hairlines,
   DM Serif Display caps titles, mono labels, teal primary button. */
.efq, .efq-cta {
  --efq-paper: #ECE6D8;
  --efq-paper-hi: #F2EDE2;
  --efq-paper-2: #E3DCC9;
  --efq-ink: #14110E;
  --efq-ink-soft: #5E564D;
  --efq-rule: rgba(20, 17, 14, .16);
  --efq-teal: #1F8C8C;
  --efq-off: #D4CCB6;
  --efq-serif: 'DM Serif Display', Georgia, serif;
  --efq-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --efq-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ── Card on the event page ── */
.efq-cta {
  margin: 20px 0 0; padding: 20px; background: var(--efq-paper-2); color: var(--efq-ink);
  display: flex; flex-direction: column; gap: 12px; font-family: var(--efq-sans);
}
.efq-cta-title {
  margin: 0; font-family: var(--efq-serif); font-weight: 400; font-size: 26px; line-height: 1.05;
  letter-spacing: .04em; text-transform: uppercase; color: var(--efq-ink);
}
.efq-cta-body { margin: 0; font-size: 15px; line-height: 1.55; color: var(--efq-ink-soft); }

/* ── Buttons (shared) ── */
.efq-btn {
  height: 48px; padding: 0 22px; border: 1px solid var(--efq-ink); border-radius: 0;
  background: transparent; color: var(--efq-ink); cursor: pointer;
  font-family: var(--efq-mono); font-size: 12px; font-weight: 500; letter-spacing: .2em;
  text-transform: uppercase; -webkit-appearance: none; appearance: none;
}
.efq-btn--go { border-color: var(--efq-teal); background: var(--efq-teal); color: #FFFFFF; }
.efq-btn--go[aria-disabled="true"] { border-color: var(--efq-off); background: var(--efq-off); color: var(--efq-ink-soft); cursor: default; }
.efq-btn:focus-visible { outline: 2px solid var(--efq-ink); outline-offset: 2px; }
.efq-cta .efq-btn { align-self: flex-start; }

/* ── Popup ── */
.efq[hidden] { display: none; }
.efq { position: fixed; inset: 0; z-index: 1000; font-family: var(--efq-sans); color: var(--efq-ink); }
.efq-scrim { position: absolute; inset: 0; background: rgba(20, 17, 14, .45); }
.efq-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; top: 48px; background: var(--efq-paper);
  border-top: 1px solid var(--efq-ink); display: flex; flex-direction: column;
}
@media (min-width: 720px) {
  .efq-sheet {
    left: 50%; top: 50%; bottom: auto; right: auto; transform: translate(-50%, -50%);
    width: 560px; height: min(680px, calc(100vh - 48px)); border: 1px solid var(--efq-ink);
  }
}
.efq-hd {
  height: 56px; flex: none; padding: 0 8px 0 20px; display: flex; align-items: center;
  justify-content: space-between; border-bottom: 1px solid var(--efq-rule);
}
@media (min-width: 720px) { .efq-hd { height: 60px; padding: 0 12px 0 28px; } }
.efq-org, .efq-count {
  font-family: var(--efq-mono); font-size: 11px; color: var(--efq-ink-soft);
}
.efq-org { letter-spacing: .16em; text-transform: uppercase; }
.efq-count { letter-spacing: .12em; }
.efq-hd-r { display: flex; align-items: center; gap: 2px; }
.efq-x {
  width: 44px; height: 44px; border: 0; background: transparent; display: flex;
  align-items: center; justify-content: center; cursor: pointer; color: var(--efq-ink);
}
.efq-bar { height: 2px; flex: none; }
.efq-bar > span { display: block; height: 2px; background: var(--efq-ink); width: 0; transition: width .25s ease; }

.efq-body {
  flex: 1; overflow-y: auto; padding: 28px 20px 20px; display: flex; flex-direction: column; gap: 18px;
  -webkit-overflow-scrolling: touch;
}
@media (min-width: 720px) { .efq-body { padding: 32px 28px; } }
.efq-title {
  margin: 0; font-family: var(--efq-serif); font-weight: 400; font-size: 28px; line-height: 1.08;
  letter-spacing: .03em; text-transform: uppercase; color: var(--efq-ink); outline: none;
}
@media (min-width: 720px) { .efq-title { font-size: 34px; line-height: 1.06; } }
.efq-title--intro { font-size: 34px; line-height: 1.04; letter-spacing: .04em; }
.efq-title--done { margin-top: 24px; font-size: 40px; line-height: 1.02; letter-spacing: .04em; }
.efq-hint { margin: -8px 0 0; font-size: 15px; color: var(--efq-ink-soft); }
.efq-p { margin: 0; font-size: 17px; line-height: 1.6; }
.efq-p--soft { color: var(--efq-ink-soft); }
.efq-small { margin: 0; font-size: 15px; color: var(--efq-ink-soft); }

/* Ruled answer rows (pick one / pick several) */
.efq-rows { display: flex; flex-direction: column; border-top: 1px solid var(--efq-rule); }
.efq-row {
  min-height: 54px; padding: 12px 2px; border: 0; border-bottom: 1px solid var(--efq-rule); border-radius: 0;
  background: transparent; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  font-family: var(--efq-sans); font-size: 16px; font-weight: 400; color: var(--efq-ink);
}
.efq-row[aria-pressed="true"] { font-weight: 600; }
.efq-mark {
  flex: none; width: 20px; height: 20px; border: 1px solid var(--efq-ink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: transparent;
}
.efq-rows--multi .efq-mark { border-radius: 0; }
.efq-row[aria-pressed="true"] .efq-mark { background: var(--efq-ink); color: var(--efq-paper); }
.efq-row > span:last-child { flex: 1; line-height: 1.35; }

/* Chips (tags) */
.efq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.efq-chip {
  min-height: 44px; padding: 0 12px; border: 1px solid var(--efq-rule); border-radius: 0; cursor: pointer;
  background: transparent; color: var(--efq-ink); font-family: var(--efq-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
}
.efq-chip[aria-pressed="true"] { border-color: var(--efq-ink); background: var(--efq-ink); color: var(--efq-paper); }
.efq-row:focus-visible, .efq-chip:focus-visible, .efq-x:focus-visible { outline: 2px solid var(--efq-ink); outline-offset: 2px; }

/* Text inputs */
.efq-lbl {
  display: flex; flex-direction: column; gap: 6px; font-family: var(--efq-mono); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--efq-ink-soft);
}
.efq-lbl em { font-style: normal; letter-spacing: .08em; text-transform: none; }
.efq-in {
  min-height: 48px; border: 1px solid var(--efq-rule); border-bottom-color: var(--efq-ink); border-radius: 0;
  background: var(--efq-paper-hi); padding: 12px 14px; font-family: var(--efq-sans); font-size: 16px;
  letter-spacing: 0; text-transform: none; color: var(--efq-ink); box-sizing: border-box; width: 100%;
  -webkit-appearance: none; appearance: none;
}
textarea.efq-in { min-height: 150px; line-height: 1.55; resize: none; }
.efq-in:focus { outline: 2px solid var(--efq-ink); outline-offset: -1px; }

/* Consent */
.efq-consent { font-size: 15px; line-height: 1.6; color: var(--efq-ink-soft); display: flex; flex-direction: column; gap: 10px; }
.efq-consent p { margin: 0; }
.efq-check {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-size: 16px; line-height: 1.45;
  cursor: pointer; color: var(--efq-ink);
}
.efq-check--first { border-top: 1px solid var(--efq-rule); padding-top: 14px; }
.efq-check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--efq-ink); flex: none; }
.efq-check .soft { color: var(--efq-ink-soft); }

.efq-err {
  margin: 0; padding: 10px 12px; border-left: 2px solid var(--efq-ink); background: var(--efq-paper-hi);
  font-size: 15px; line-height: 1.45; color: var(--efq-ink);
}
.efq-ft {
  flex: none; padding: 14px 20px 24px; border-top: 1px solid var(--efq-rule); display: flex; gap: 10px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.efq-ft .efq-btn--go { flex: 1; }
@media (min-width: 720px) {
  .efq-ft { padding: 16px 28px 24px; justify-content: space-between; }
  .efq-ft .efq-btn--go { flex: none; padding: 0 36px; }
  .efq-ft .efq-btn--go:only-child { margin-left: auto; }
}
html.efq-lock, html.efq-lock body { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .efq-bar > span { transition: none; } }
