/* Questionnaire finish: confirm dialog and thank-you screen. Tokens come from questionnaire.css / tokens.css. No animation. */

/* ---- confirm dialog ---- */
.qf-backdrop {
    position: fixed; inset: 0; z-index: 100;
    display: flex; align-items: center; justify-content: center;
    padding: 16px; overflow-y: auto;
    background: rgba(31, 31, 32, 0.5);
}
.qf-dialog {
    width: 100%; max-width: 480px; margin: auto; padding: 24px;
    background: #FFFFFF; color: var(--ink-950);
    border-radius: var(--r-card); box-shadow: var(--shadow-md);
}
.qf-dialog:focus { outline: none; }
.qf-title { margin: 0 0 12px; font-size: var(--fs-lead); line-height: 1.3; font-weight: 700; color: var(--ink-950); overflow-wrap: anywhere; }
.qf-text { margin: 0 0 24px; font-size: var(--fs-text); line-height: 1.5; color: var(--ink-950); overflow-wrap: anywhere; }
.qf-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-actions .btn { padding: 0 12px; }
@media (max-width: 639px) {
    .qf-actions { flex-direction: column; }
    .qf-actions .btn { width: 100%; }
}
.qf-open body { overflow: hidden; }

/* ---- thank-you screen ---- */
.qf-thanks-text { margin: 0 0 32px; font-size: var(--fs-text); line-height: 1.5; color: var(--ink-950); overflow-wrap: anywhere; }
.qf-thanks-text strong { font-weight: 700; }
.qf-links { display: grid; gap: 16px; justify-items: start; }
.qf-visit { padding: 0 12px; }
.qf-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-social {
    width: var(--q-control); height: var(--q-control); border-radius: 50%;
    display: grid; place-items: center; background: var(--panel); color: var(--ink-950);
}
.qf-social:hover { background: var(--panel-strong); }
.qf-icon {
    width: 24px; height: 24px; background: currentColor;
    -webkit-mask: var(--icon) center / 24px no-repeat; mask: var(--icon) center / 24px no-repeat;
}

/* no Back link after sending; headline gap matches the start screen's intro */
.qf-thanks-on .q-toprow { visibility: hidden; }
#view-thanks h1 { margin-bottom: 16px; }
.qf-thanks-text { margin-top: 0; }
