/* Feedback (js/feedback.js): the Settings row and the form sheet. Only app.css tokens. */

.fb-row{gap:6px}
.fb-open{width:100%;display:flex;align-items:center;justify-content:center;text-align:center}

.fb-sheet .sheet-head b{font-size:1.2rem}
.fb-form{display:grid;gap:14px;min-width:0}
.fb-lead{margin:0;font-size:1.05rem;font-weight:700;color:var(--fg)}
.fb-field{display:grid;gap:6px;min-width:0}
.fb-field label{font-weight:800;font-size:.95rem}
.fb-note{font-weight:500;color:var(--muted);font-size:.85rem}
.fb-field input,.fb-field textarea{width:100%;min-width:0;background:var(--surface-2);border:1.5px solid var(--line);border-radius:12px;color:var(--fg);
  font:inherit;font-size:1rem;font-weight:500;padding:12px 14px;min-height:48px;-webkit-appearance:none;appearance:none}
.fb-field textarea{min-height:140px;resize:vertical;line-height:1.45}
.fb-field input::placeholder,.fb-field textarea::placeholder{color:var(--muted)}
.fb-field input[aria-invalid="true"],.fb-field textarea[aria-invalid="true"]{border-color:var(--danger)}
.fb-hint,.fb-count{margin:0;color:var(--muted);font-size:.8rem;line-height:1.35}
/* the email promise with the Privacy link beside it (privacy.html): a whole 44 px target whose extra height sits in the
   6 px gaps around the row, so it covers neither the email box above nor an error below */
.fb-hint-row{display:flex;flex-wrap:wrap;align-items:center;column-gap:10px;min-width:0}
.fb-privacy{display:inline-flex;align-items:center;min-height:44px;min-width:44px;margin:-6px 0;color:var(--link);font-size:.85rem;font-weight:800;text-underline-offset:2px}
.fb-count{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}
/* --danger text on --surface is 4.13:1 at night, under AA's 4.5:1 for small text: the words are --fg (14.6:1) and a danger bar marks them,
   as .fb-status[data-kind=error] does below */
.fb-count.near{color:var(--fg);font-weight:700;padding-right:10px;box-shadow:inset -4px 0 0 var(--danger)}
.fb-err{margin:0;color:var(--fg);font-weight:700;font-size:.88rem;line-height:1.35;padding:2px 0 2px 12px;box-shadow:inset 4px 0 0 var(--danger)}

/* the bot trap: off screen, not display:none (some bots skip hidden fields), never focusable or announced */
.fb-hp{position:absolute!important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden;opacity:0;pointer-events:none}

.fb-status{margin:0;padding:10px 12px;border-radius:calc(var(--radius) - 2px);background:var(--surface-2);color:var(--fg-2);font-weight:700;font-size:.92rem;line-height:1.35}
.fb-status[data-kind="error"]{background:var(--surface-2);color:var(--fg);box-shadow:inset 4px 0 0 var(--danger)}
/* a color-mix() with var() inside is valid at parse time on iOS 15-16.1 and then computes to transparent, so the tint
   lives behind @supports and the solid color above stays the fallback */
@supports (color:color-mix(in srgb,red 50%,blue)){.fb-status[data-kind="error"]{background:color-mix(in srgb,var(--danger) 16%,var(--surface))}}
.fb-status[data-kind="off"]{box-shadow:inset 4px 0 0 var(--accent)}
.fb-send{width:100%}
.fb-ver{text-align:center}

.fb-done{display:grid;gap:10px;padding:18px 16px;border-radius:var(--radius);background:var(--surface-2);box-shadow:inset 5px 0 0 var(--ok)}
.fb-done b{font-size:1.5rem;font-weight:900;line-height:1.15}
.fb-done p{margin:0;color:var(--fg-2);font-size:1.05rem}
.fb-done .primary{margin-top:6px}
