/* Citizen report form, shared by the homepage and Delivery Corner (4 Nov 2026).
   Needs the page tokens: --ink, --paper, --paper-2, --white, --border, --muted, --green, --red,
   --gold-light, --r-lg, --r-md and the stage colours --s-*. */
.rp .hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.rp [hidden] { display: none !important; }
.rp { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 6rem); align-items: start; }
.rp-side { position: sticky; top: 120px; }
.rp-next { margin: 2.2rem 0 0; padding: 0; list-style: none; position: relative; }
.rp-next::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--ink), rgba(14,14,14,.12)); }
.rp-next li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.5rem; }
.rp-next li:last-child { padding-bottom: 0; }
.rp-next .n { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-weight: 800; font-size: .95rem; position: relative; }
.rp-next li:nth-child(2) .n { background: #3a3632; } .rp-next li:nth-child(3) .n { background: var(--gold-light); color: var(--ink); }
.rp-next b { display: block; font-size: 1.02rem; margin-top: .45rem; }
.rp-next p { margin: .3rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.rp-priv { display: flex; gap: .85rem; align-items: flex-start; margin-top: 2rem; padding: 1.1rem 1.2rem; border-radius: var(--r-md); background: var(--paper-2); font-size: .9rem; line-height: 1.55; color: var(--muted); }
.rp-priv svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--green); margin-top: .1rem; }
.rp-priv b { color: var(--ink); }

.rp-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: 0 40px 80px -50px rgba(14,14,14,.45); overflow: hidden; }
.rp-form { padding: clamp(1.5rem, 3vw, 2.5rem); }
.rp-q { border: 0; margin: 0 0 1.6rem; padding: 0; min-width: 0; }
.rp-q > legend, .rp-lbl { display: flex; align-items: baseline; gap: .6rem; font-size: 1rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .75rem; padding: 0; }
.rp-q > legend i, .rp-lbl i { font-style: normal; font-size: .78rem; font-weight: 700; color: var(--muted); width: 22px; height: 22px; border-radius: 50%; background: var(--paper); display: inline-grid; place-items: center; flex-shrink: 0; align-self: center; }
.rp-q > legend small, .rp-lbl small { font-weight: 500; font-size: .84rem; color: var(--muted); }
.rp-in { width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--paper); padding: .75rem 1rem; font: inherit; font-size: .98rem; color: var(--ink); outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.rp-in:focus { border-color: var(--ink); background: var(--white); box-shadow: 0 0 0 4px rgba(240,200,66,.35); }
textarea.rp-in { min-height: 150px; resize: vertical; line-height: 1.6; }
.rp-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.rp-row label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: .35rem; }

.rp-find { position: relative; }
.rp-find svg.ic { position: absolute; left: 1rem; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.rp-find .rp-in { padding-left: 2.8rem; }
.rp-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: .35rem; list-style: none; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 24px 50px -24px rgba(14,14,14,.4); max-height: 320px; overflow-y: auto; }
.rp-list li { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: .7rem; align-items: start; padding: .65rem .75rem; border-radius: 10px; cursor: pointer; }
.rp-list li[aria-selected="true"], .rp-list li:hover { background: var(--paper); }
.rp-list li i { width: 10px; height: 10px; border-radius: 50%; margin-top: .35rem; }
.rp-list b { display: block; font-size: .92rem; font-weight: 700; line-height: 1.35; }
.rp-list small { font-size: .8rem; color: var(--muted); }
.rp-list .none { display: block; cursor: default; color: var(--muted); font-size: .88rem; }
.rp-pick { display: flex; align-items: center; gap: .8rem; margin-top: .6rem; padding: .7rem .8rem .7rem 1rem; border-radius: 12px; background: var(--paper); font-size: .88rem; }
.rp-pick i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.rp-pick span { flex: 1; min-width: 0; color: var(--muted); } .rp-pick b { color: var(--ink); }
.rp-pick button { border: 0; background: none; font: inherit; font-size: .84rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; color: var(--ink); min-height: 32px; }

.rp-seen { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.rp-opt { position: relative; }
.rp-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-opt span { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .9rem .95rem 1rem; border-radius: 14px; border: 1.5px solid var(--border); background: var(--white); transition: border-color .15s, background .15s, box-shadow .15s; }
.rp-opt span::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 18%, transparent); margin-bottom: .35rem; }
.rp-opt b { font-size: .92rem; line-height: 1.2; }
.rp-opt small { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.rp-opt input:hover + span { border-color: rgba(14,14,14,.35); }
.rp-opt input:checked + span { border-color: var(--ink); background: color-mix(in srgb, var(--c) 8%, white); box-shadow: inset 0 0 0 1px var(--ink); }
.rp-opt input:focus-visible + span { box-shadow: 0 0 0 4px rgba(240,200,66,.5); }
.rp-who { display: flex; flex-wrap: wrap; gap: .45rem; }
.rp-chip { position: relative; }
.rp-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rp-chip span { display: inline-flex; align-items: center; height: 42px; padding: 0 1.05rem; border-radius: 999px; border: 1.5px solid var(--border); font-size: .9rem; font-weight: 600; transition: background .15s, border-color .15s, color .15s; }
.rp-chip input:hover + span { border-color: rgba(14,14,14,.35); }
.rp-chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.rp-chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(240,200,66,.5); }
.rp-count { display: flex; justify-content: space-between; gap: 1rem; margin-top: .45rem; font-size: .8rem; color: var(--muted); }
.rp-count.ok b { color: var(--green); }
.rp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem clamp(1.5rem, 3vw, 2.5rem); background: var(--paper); border-top: 1px solid var(--border); }
.rp-foot p { margin: 0; font-size: .84rem; color: var(--muted); max-width: 26rem; }
.rp-send { display: inline-flex; align-items: center; gap: .6rem; height: 52px; padding: 0 1.6rem; border-radius: 999px; border: 0; background: var(--ink); color: var(--paper); font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; }
.rp-send svg { width: 18px; height: 18px; }
.rp-send:disabled { opacity: .6; cursor: progress; }
.rp .fmsg { display: none; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: 12px; font-size: .92rem; font-weight: 600; }
.rp .fmsg.err { display: block; background: rgba(200,16,46,.07); border: 1px solid rgba(200,16,46,.25); color: var(--red); }
.rp-done { padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); text-align: center; }
.rp-done .tick { width: 64px; height: 64px; margin: 0 auto 1.3rem; border-radius: 50%; background: rgba(31,138,76,.12); color: var(--green); display: grid; place-items: center; }
.rp-done .tick svg { width: 30px; height: 30px; }
.rp-done h3 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -.03em; }
.rp-done p { margin: .7rem auto 0; max-width: 30rem; color: var(--muted); line-height: 1.6; }
.rp-ref { display: inline-flex; gap: .5rem; margin-top: 1.2rem; padding: .5rem .9rem; border-radius: 999px; background: var(--paper); font-size: .88rem; }
.rp-done .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.8rem; }
.rp-done .acts a, .rp-done .acts button { display: inline-flex; align-items: center; height: 46px; padding: 0 1.2rem; border-radius: 999px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; text-decoration: none; }
.rp-done .acts button { background: var(--ink); color: var(--paper); border: 0; }
.rp-done .acts a { border: 1.5px solid var(--border); color: var(--ink); }
@media (max-width: 1100px) { .rp { grid-template-columns: 1fr; } .rp-side { position: static; } .rp-seen { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .rp-row { grid-template-columns: 1fr; } .rp-foot { flex-direction: column; align-items: stretch; } .rp-send { justify-content: center; } }
