/* The public fill page (/f/:id). Uses the form card styles from lab.css. */
.fill-page { background: var(--canvas, var(--bg)); min-height: 100%; height: auto; }
.fill-wrap { max-width: 720px; margin: 0 auto; padding: 32px 16px 48px; }
.fill-page .f-card.invalid { box-shadow: 0 0 0 2px var(--danger); }
.f-error { margin: 8px 0 0; font-size: var(--fs-sm); color: var(--danger); }
.fill-page .btn.f-submit, .fill-page .btn.f-submit:hover { cursor: pointer; }
.fill-page .btn.f-submit:disabled { opacity: .6; cursor: default; }
.fill-page .f-input { width: 100%; }
/* The bot trap: invisible and unreachable, but kept inside the page. (Moving
   it far off-screen made right-to-left pages 10,000px wide on phones.) */
.f-honeypot { position: absolute; inset-inline-start: 0; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.fill-wrap { position: relative; overflow-x: clip; }
.fill-done { text-align: center; padding: 30px 24px 24px; border-top: 8px solid var(--accent); }
.fill-done h2 { margin: 0 0 8px; font-size: 26px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; text-wrap: balance; }
.fill-done p { margin: 0; color: var(--text-muted); }
.done-mark { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); animation: pop .35s ease-out; }
.done-mark svg { width: 24px; height: 24px; stroke-width: 2.4; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.fill-done .done-text { white-space: pre-wrap; max-width: 480px; margin: 0 auto; }
.done-again { margin-top: 14px; font-size: var(--fs-sm); }

/* A quiet invitation under the thank-you card: one row, not an advert. */
.promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--text); }
.promo:hover { border-color: var(--accent); }
.promo img { flex: none; border-radius: 8px; }
.promo-words { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.promo-words b { font-weight: 600; font-size: var(--fs-sm); }
.promo-words span { font-size: var(--fs-xs); color: var(--text-muted); }
.promo-cta { flex: none; background: var(--accent); color: var(--accent-ink); font-size: var(--fs-sm); font-weight: 500; padding: 7px 16px; border-radius: 999px; }
.fill-foot { margin-top: 28px; text-align: center; font-size: var(--fs-xs); color: var(--text-muted); }
.fill-foot p { margin: 4px 0; }
.fill-foot a { color: inherit; }
.made-with { display: inline-flex; align-items: center; gap: 7px; margin-top: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); text-decoration: none; font-size: var(--fs-xs); }
.made-with img { border-radius: 5px; }
.made-with b { color: var(--accent); font-weight: 600; }
.made-with:hover { border-color: var(--accent); }
.fill-submit-error { font-size: var(--fs-sm); color: var(--danger); }

/* Report and policy links under the form. */
.fill-links { margin-top: 12px !important; }
.fill-links .link-btn { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.fill-links .link-btn[hidden] { display: none; }
.report-box { max-width: 420px; margin: 12px auto 0; padding: 14px; text-align: start; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-md); display: flex; flex-direction: column; gap: 8px; }
.report-box[hidden] { display: none; }
.report-box label { font-size: var(--fs-sm); color: var(--text); }
.report-box textarea { width: 100%; font: inherit; font-size: var(--fs-sm); padding: 8px 10px; border-radius: var(--r-sm, 8px);
  border: 1px solid var(--border); background: var(--bg); color: var(--text); resize: vertical; }
.report-actions { display: flex; gap: 8px; justify-content: flex-end; }
.report-done { font-size: var(--fs-sm); color: var(--text); }
/* The preview of a form being built (/preview): a thin strip on top. */
.preview-banner { position: sticky; top: 0; z-index: 5; padding: 9px 16px; text-align: center; font-size: var(--fs-sm);
  background: var(--accent); color: var(--accent-ink); }
.preview-banner a { color: inherit; font-weight: 600; text-decoration: underline; white-space: nowrap; }
