/* Read-only view of a form or survey while it's being updated (includes/form_readonly.php, form.php).
   A notice card with the alternative link, then every question, locked. Brand Style Guide tokens only.
   After Mobbin: Square's notice banner and Shopify's "message to your visitors". */
.ff-ro-note,.ff-ro-foot{--ro-p:var(--brand-primary,#241236);--ro-acc:var(--brand-accent,#d9b24c);--ro-ink:var(--brand-text,#1d1a21);--ro-mut:var(--brand-muted,#6b6570);--ro-bg:var(--brand-bg,#fff)}
.ff-ro-note{position:relative;display:grid;grid-template-columns:auto 1fr;gap:14px 16px;margin:0 0 28px;padding:18px 20px;border:1px solid color-mix(in srgb,var(--ro-acc) 55%,transparent);border-radius:16px;background:color-mix(in srgb,var(--ro-acc) 12%,var(--ro-bg));color:var(--ro-ink);text-align:left;box-shadow:0 10px 30px color-mix(in srgb,var(--ro-p) 10%,transparent);animation:ff-ro-in .45s cubic-bezier(.2,.8,.2,1) both}
.ff-ro-icon{position:relative;display:grid;place-items:center;width:44px;height:44px;border-radius:12px;background:var(--ro-acc);color:var(--ro-p)}
.ff-ro-icon::after{content:"";position:absolute;inset:-4px;border-radius:15px;border:2px solid var(--ro-acc);opacity:0;animation:ff-ro-ping 2.4s ease-out infinite}
.ff-ro-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ff-ro-text{display:grid;gap:6px;min-width:0}
.ff-ro-text strong{font-size:13px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--brand-accent-ink,#896416)}
.ff-ro-text p{margin:0;font-size:16px;line-height:1.55;color:var(--ro-ink)}
.ff-ro-back{display:inline-flex;align-items:center;gap:6px;justify-self:start;margin-top:2px;padding:4px 10px;border-radius:999px;background:var(--ro-bg);color:var(--ro-mut);font-size:13px;font-weight:600}
.ff-ro-back svg,.ff-ro-foot svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ff-ro-actions{grid-column:2}
.ff-ro-alt{display:inline-flex;align-items:center;gap:8px;min-height:46px;padding:0 20px;border-radius:12px;background:var(--ro-p);color:#fff!important;font-size:15px;font-weight:700;text-decoration:none;box-shadow:0 6px 16px color-mix(in srgb,var(--ro-p) 25%,transparent);transition:transform .15s,box-shadow .2s,background .2s}
.ff-ro-alt svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .2s}
.ff-ro-alt:hover{background:var(--brand-primary-2,#3a1f55);box-shadow:0 10px 22px color-mix(in srgb,var(--ro-p) 30%,transparent)}
.ff-ro-alt:hover svg{transform:translateX(4px)}
.ff-ro-alt:active{transform:scale(.98)}
.ff-ro-alt:focus-visible{outline:3px solid var(--ro-acc);outline-offset:3px}

/* The locked questions: readable, clearly not fillable. */
.ff-ro-lock{position:relative;min-width:0;margin:0;padding:0;border:0}
.ff-ro-lock .ff-ok-row,.ff-ro-lock .ff-hp,.ff-ro-lock .ff-form-err{display:none!important}
.ff-ro-lock .ff-step{opacity:.72;filter:saturate(.6)}
.ff-ro-lock input,.ff-ro-lock textarea,.ff-ro-lock select,.ff-ro-lock button,.ff-ro-lock label{cursor:not-allowed!important}
.ff-ro-lock::before{content:"Read only";position:sticky;top:calc(var(--mm-chrome,0px) + 12px);z-index:2;float:right;margin:-6px 0 8px;padding:4px 10px;border-radius:999px;background:var(--brand-primary,#241236);color:#fff;font-size:12px;font-weight:700;letter-spacing:.04em}
.ff-is-ro .ff-step{min-height:0!important;animation:none!important}
.ff-is-ro .ff-welcome h1{font-size:clamp(24px,3vw,32px)}

.ff-ro-foot{display:flex;align-items:center;justify-content:space-between;gap:12px 16px;flex-wrap:wrap;margin:28px 0 0;padding:16px 18px;border-radius:14px;background:color-mix(in srgb,var(--ro-p) 6%,var(--ro-bg));color:var(--ro-ink);font-size:15px;font-weight:600}
.ff-ro-foot>span{display:inline-flex;align-items:center;gap:8px}
.ff-survey .ff-ro-note,.ff-survey .ff-ro-foot,.ff-survey .ff-ro-lock{width:min(720px,100%);margin-left:auto;margin-right:auto}
.ff-survey .ff-ro-lock .ff-form{width:100%}
.ff-survey .ff-ro-lock .ff-step{text-align:left}
.ff-survey .ff-stage:has(.ff-ro-note){flex-direction:column;align-items:stretch}

@keyframes ff-ro-in{from{opacity:0;transform:translateY(-8px) scale(.98)}}
@keyframes ff-ro-ping{0%{opacity:.7;transform:scale(.9)}70%,100%{opacity:0;transform:scale(1.25)}}
@media(max-width:560px){.ff-ro-note{grid-template-columns:1fr;padding:16px}.ff-ro-actions{grid-column:1}.ff-ro-alt{width:100%;justify-content:center}.ff-ro-foot{flex-direction:column;align-items:stretch}.ff-ro-lock::before{display:none}}
@media(prefers-reduced-motion:reduce){.ff-ro-note,.ff-ro-icon::after{animation:none}.ff-ro-alt,.ff-ro-alt svg{transition:none}}
