/* On-site QR consent page. The block up to the "Additions" marker is the mockup's
   inline <style> moved here verbatim (the CSP forbids inline styles); do not edit it. */
:root{--navy:#0E2A56;--ink:#1D2536;--muted:#5B6478;--line:#D5D9E3;--panel:#F2F3F7;--magenta:#E0288F;--purple:#8A3FD1;--white:#FFFFFF;--off:#A9B1C2}
*{box-sizing:border-box;margin:0;padding:0}
body{font-family:"Liberation Sans",Arial,Helvetica,sans-serif;color:var(--ink);background:var(--white);-webkit-font-smoothing:antialiased}
header{display:flex;align-items:center;gap:18px;padding:20px 56px}
header img{height:44px;width:auto;display:block}
.site{margin-left:auto;color:var(--muted);font-size:14px;text-align:right}
.rule{height:5px;background:linear-gradient(90deg,var(--magenta),var(--purple))}
main{display:grid;grid-template-columns:minmax(300px,420px) minmax(0,640px);gap:64px;padding:44px 56px 28px;justify-content:center}
h1{color:var(--navy);font-size:34px;line-height:1.12;font-weight:700;letter-spacing:-.3px}
.lede{color:var(--muted);font-size:15px;line-height:1.5;margin:12px 0 30px;max-width:34ch}
label,.legend{display:block;font-size:13px;font-weight:700;color:var(--navy);margin-bottom:7px}
.field{margin-bottom:20px}
.input{width:100%;height:46px;border:1.5px solid var(--line);border-radius:6px;padding:0 14px;font-size:15px;color:var(--ink);background:var(--white);font-family:inherit}
select.input{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230E2A56' stroke-width='2'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 16px center;padding-right:40px}
select.input:invalid{color:#98A0B0}
.input::placeholder{color:#98A0B0}
.input:focus,.role input:focus-visible+span{outline:3px solid rgba(138,63,209,.35);outline-offset:1px}
.row{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.hint{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.4}
fieldset{border:0;margin-bottom:20px}
.roles{display:grid;grid-template-columns:1fr;gap:8px}
.role{position:relative;display:block;cursor:pointer}
.role input{position:absolute;opacity:0;pointer-events:none}
.role span{display:flex;align-items:center;gap:12px;min-height:46px;border:1.5px solid var(--line);border-radius:6px;padding:10px 14px;font-size:15px}
.role span::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--off);background:var(--white)}
.role input:checked+span{border-color:var(--navy);background:#F6F7FB}
.role input:checked+span::before{border:5px solid var(--navy)}
.divider{height:1px;background:var(--line);margin:6px 0 24px}
.hidden{display:none !important}
.summary{background:var(--panel);border-left:5px solid;border-image:linear-gradient(var(--magenta),var(--purple)) 1;padding:26px 30px 24px}
.summary h2{color:var(--navy);font-size:18px;margin-bottom:14px}
.summary p{font-size:14px;line-height:1.52;margin-bottom:10px;max-width:68ch}
.summary p:last-child{margin-bottom:0}
.summary b{color:var(--navy)}
.optional{font-weight:400;color:var(--ink);margin-bottom:0;display:flex;gap:12px;align-items:flex-start;margin-top:18px;padding:14px 16px;border:1.5px dashed var(--line);border-radius:6px;font-size:13.5px;line-height:1.45}
.optional input{margin-top:2px;width:17px;height:17px;flex:none;accent-color:var(--navy)}
.optional small{font-weight:400;display:block;color:var(--muted);font-size:12.5px;margin-top:4px}
.btn{display:block;width:100%;margin-top:20px;height:56px;border:0;border-radius:6px;background:var(--navy);color:var(--white);font-size:17px;font-weight:700;font-family:inherit;letter-spacing:.2px;cursor:pointer}
.btn:disabled{background:var(--off);cursor:not-allowed}
.ack{font-size:13px;line-height:1.5;color:var(--muted);margin-top:14px}
.ack a{color:var(--navy);font-weight:700;text-decoration:none;background:linear-gradient(transparent 52%,rgba(224,40,143,.30) 52%);padding:0 2px}
footer{border-top:1px solid var(--line);margin:18px 56px 0;padding:16px 0 26px;text-align:center;font-size:13px;color:var(--muted)}
footer b{color:var(--navy)}
@media (max-width:760px){
  header{padding:14px 20px;flex-wrap:wrap;gap:8px} header img{height:34px}
  .site{margin-left:0;width:100%;text-align:left;font-size:13px}
  main{grid-template-columns:1fr;gap:26px;padding:26px 20px 10px}
  h1{font-size:28px}.lede{margin:10px 0 22px}.summary{padding:20px 18px}footer{margin:14px 20px 0}
}

/* ---- Additions (2026-09-28): states the mockup did not need. Same variables, same
   shapes (6px radius, 1.5px borders, the magenta-purple accent). ------------------- */

/* Honeypot: off-screen rather than display:none, so a form-filling bot still sees it. */
.hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* The site and stream menu while the list loads, or after it failed to load. */
select.input:disabled{background-color:var(--panel);cursor:progress}

/* A calm message: the page could not load the menu, or could not save the click. */
.alert{margin-top:14px;padding:12px 16px;background:#FCEFF6;border-left:5px solid var(--magenta);border-radius:0 6px 6px 0;color:var(--ink);font-size:14px;line-height:1.45}
.alert p{margin:0}
.retry{display:inline-block;min-height:44px;margin-top:10px;padding:0 18px;border:1.5px solid var(--navy);border-radius:6px;background:var(--white);color:var(--navy);font-size:15px;font-weight:700;font-family:inherit;cursor:pointer}
.retry:focus-visible{outline:3px solid rgba(138,63,209,.35);outline-offset:1px}

/* Saving: the button keeps its label, disabled (grey), and says it is busy. */
.btn[aria-busy="true"]{cursor:progress}

/* Confirmation view. */
.confirm{max-width:752px;margin:0 auto;padding:44px 56px 28px}
.confirm h1:focus{outline:none}
.confirm h1{font-size:28px;line-height:1.2;margin-bottom:22px}
.confirm .sign{margin-top:18px;font-weight:700;color:var(--navy)}
.confirm .lede{max-width:none;margin-bottom:26px}
.receipt{background:var(--panel);border-left:5px solid;border-image:linear-gradient(var(--magenta),var(--purple)) 1;padding:22px 26px 8px;margin-bottom:24px}
.receipt dt{font-size:13px;font-weight:700;color:var(--navy);margin-bottom:3px}
.receipt dd{font-size:15px;line-height:1.45;margin-bottom:14px;overflow-wrap:break-word;word-wrap:break-word}
.confirm .note{font-size:14px;line-height:1.52;margin-bottom:10px;max-width:68ch}
.confirm .note a{color:var(--navy);font-weight:700;text-decoration:none;background:linear-gradient(transparent 52%,rgba(224,40,143,.30) 52%);padding:0 2px}

@media (max-width:760px){
  .confirm{padding:26px 20px 10px}
  .receipt{padding:18px 18px 6px}
}

/* iOS Safari zooms into any focused field under 16px and stays zoomed. On phones and
   other touch screens (a phone in landscape is wider than 760px) the fields are 16px
   instead of the mockup's 15px; desktop keeps the mockup's size. */
@media (max-width:760px), (hover:none) and (pointer:coarse){
  .input{font-size:16px}
}
