/* The registration form (js/register.js): its own page, register.html, and the same card floating over
   the home page (js/site.js "5e", which fetches this file). Every rule is scoped to .rg-* (or the html
   classes rg-lock, on the form's page, and rg-float-open, while a form floats), so nothing here changes
   the rest of the site.

   The page is the form, a wizard from start to finish (21 Nov 2026, by request: the Learning Hub's quiz
   look, one step at a time, "fits and fixed to screen", light, with no page behind it). One light card
   fixed to the screen over the night: the form's title and Close on top; the steps; one step's questions
   (two short ones to a row on wide screens; the form's opening words lead the first step); and Back and
   Next at the bottom. The head, the steps and the buttons always show, and only the questions scroll.
   The thank-you and the "not open" notices show in the same card.

   Its look, since 27 Nov 2026 (by request: "for the form and buttons and design format use this", Untitled
   UI's components and React Bits; "still this is in float"): after Untitled UI's form parts, in the
   site's colors and letters. Fields have a fine border, a soft shadow and a ring when the keyboard is in
   them; an email field carries its envelope. Buttons have gently rounded corners: Next and Send are solid
   violet with white words once the step is ready (soft lilac until then), Back is white with a border,
   each with its arrow. The steps are small circles with their names under them, joined by a track that
   fills, with a tick that comes in when a step is done (after React Bits' Stepper), and a step slides in
   from the side it comes from. The head has a framed icon beside the title. The site's own code: no
   Untitled UI or React Bits code is used. Icons: Phosphor (MIT; the licence is in assets/).

   Its format, since 28 Nov 2026: the card uses the site's Newsreader typeface, as the rest of the site
   does. As in Forms 5 a field is white with a fine
   border, has a quiet line of help under it, an answer that needs a look is in red after a circled "!",
   and each live check is crossed until it is met. The steps meter stays. Sizes are larger than Forms 5's
   own (14px words in 32px fields), which are too small to read and to press on a phone. Forms 5 is a paid
   block: its look was read from its public preview, and none of its code is used.

   Fields, since 1 Dec 2026 (by request: the format shown inside the field, on a soft background, and no
   "A phone number, like..." line with a cross under it): a soft #F6F5FA fill with a fine #C4C0D4 edge that
   turns white under the keyboard's ring; an email, a phone number and a number show their format as a faint
   example in the empty field (register.js, EXAMPLE).

   Colors: white card, soft-filled fields, night #111330 words, #55566F quieter words, #9390A8 choice
   buttons' borders (3 to 1 against white), violet #6A4FBF for the primary button,
   ticks, links, finished steps and the focus ring, lilac #F4F0FD and #E9E2FB for a picked choice and the
   opening words, green #1E7A4F for a good answer and red #B3261E for one that needs a look. */
html.rg-lock,html.rg-lock body{height:100%;overflow:hidden;overscroll-behavior:none}
.rg-stage{position:fixed;left:0;top:0;z-index:1;width:100%;height:100vh;height:100dvh;box-sizing:border-box;display:flex;align-items:center;justify-content:center;padding:16px;
  background:radial-gradient(120% 70% at 50% 0,#262868 0,#161946 46%,#111330 100%);font-family:var(--serif);font-size:16px;line-height:1.5;color:#111330}
.rg-stage:focus{outline:none}
/* Floating (21 Nov 2026, by request: a form opens over the page, as the Learning Hub's quiz does, in
   place of leading to another page). The same stage and card, over the home page: the page shows
   through, dimmed, and stays where it was; the card rises into place. No blur on the page behind: over
   its moving parts that would be redrawn on every frame. */
html.rg-float-open{overflow:hidden}
.rg-stage.is-float{z-index:2000;background:rgba(9,10,30,.68);opacity:0;transition:opacity .22s ease;overscroll-behavior:contain}
.rg-stage.is-float.is-open{opacity:1}
.rg-stage.is-float .rg-wiz{transform:translateY(16px) scale(.985);transition:transform .34s cubic-bezier(.2,.7,.2,1)}
.rg-stage.is-float.is-open .rg-wiz{transform:none}
.rg-stage.is-float.is-closing{pointer-events:none}
@media (prefers-reduced-motion:reduce){.rg-stage.is-float,.rg-stage.is-float .rg-wiz{transition:none}}
/* the questions' own scroll bar is a slim one in the card's ink, not the computer's wide gray one */
.rg-wiz-body{scrollbar-width:thin;scrollbar-color:rgba(17,19,48,.28) transparent}
/* one height for every step (as tall as the screen allows, up to 740px), so Back and Next never move */
.rg-wiz{--ink:#111330;--soft:#55566F;--line:#9390A8;--field-line:#8C88A3;--field-bg:#F6F5FA;--hair:#E7E3EE;--brand:#6A4FBF;--brand-dark:#5A40AE;--brand-ink:#43308C;--tint:#F4F0FD;--tint-2:#E9E2FB;--xs:0 1px 2px rgba(17,19,48,.07);
  position:relative;display:flex;flex-direction:column;width:min(680px,100%);height:min(740px,100%);min-height:0;box-sizing:border-box;overflow:hidden;
  border-radius:14px;background:#FFFFFF;color:var(--ink);box-shadow:0 32px 64px -16px rgba(0,0,0,.7),0 0 0 1px rgba(245,239,230,.1)}
.rg-wiz *,.rg-wiz *::before,.rg-wiz *::after{box-sizing:border-box}
/* highlighted words: the site's own highlight (pale lilac with linen words, css/styles.css) is for the dark page, and made words
   in the light card unreadable (1 Dec 2026); here they stay night on a lilac */
.rg-wiz ::selection,.rg-wiz input::selection,.rg-wiz textarea::selection{background:#CFC3F1;color:#111330}
.rg-wiz :focus-visible{outline-color:#6A4FBF}
.rg-wiz .sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ------------------------------------------------------------------ the head: a framed icon, the title, which step, Close */
.rg-wiz-head{flex:none;display:flex;align-items:center;gap:14px;padding:18px 14px 16px 20px;border-bottom:1px solid var(--hair)}
.rg-wiz-head::before{content:"";flex:none;width:42px;height:42px;border-radius:10px;background:#FFFFFF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%236A4FBF'%3E%3Cpath d='M168,152a8,8,0,0,1-8,8H96a8,8,0,0,1,0-16h64A8,8,0,0,1,168,152Zm-8-40H96a8,8,0,0,0,0,16h64a8,8,0,0,0,0-16Zm56-64V216a16,16,0,0,1-16,16H56a16,16,0,0,1-16-16V48A16,16,0,0,1,56,32H92.26a47.92,47.92,0,0,1,71.48,0H200A16,16,0,0,1,216,48ZM96,64h64a32,32,0,0,0-64,0ZM200,48H173.25A47.93,47.93,0,0,1,176,64v8a8,8,0,0,1-8,8H88a8,8,0,0,1-8-8V64a47.93,47.93,0,0,1,2.75-16H56V216H200Z'/%3E%3C/svg%3E") center / 22px 22px no-repeat;box-shadow:var(--xs),inset 0 0 0 1px #D9D5E3,inset 0 -2px 0 rgba(17,19,48,.05)}
.rg-wiz-hd{flex:1 1 auto;min-width:0}
.rg-wiz-t{margin:0;font-family:inherit;font-weight:600;font-size:19px;line-height:1.25;letter-spacing:-.005em;color:var(--ink);overflow-wrap:anywhere}
.rg-wiz-sub{margin:2px 0 0;font-size:14.5px;line-height:1.4;color:var(--soft)}
.rg-wiz-sub[hidden]{display:none}
.rg-wiz-x{flex:none;display:grid;place-items:center;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:10px;
  background:transparent;color:var(--soft);text-decoration:none;cursor:pointer;transition:background-color .18s,color .18s}
.rg-wiz-x:hover{background:rgba(17,19,48,.07);color:var(--ink)}
.rg-wiz-x svg{display:block;width:18px;height:18px}
.rg-wiz-x:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 4px rgba(106,79,191,.28),inset 0 0 0 1.5px var(--brand)}
/* under the head: the steps and the form, or a notice */
.rg-wiz-main{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}

/* ------------------------------------------------------------------ the steps: a circle and its name each, joined by a track that fills up to the step you're on */
.rg-steps{flex:none;display:flex;align-items:flex-start;margin:0;padding:14px 12px 12px;list-style:none;border-bottom:1px solid var(--hair)}
.rg-step{position:relative;flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px}
.rg-step:not(:last-child)::after{content:"";position:absolute;top:17px;left:calc(50% + 25px);width:calc(100% - 50px);height:2px;border-radius:2px;
  background:linear-gradient(var(--brand),var(--brand)) left center / 0 100% no-repeat #DDD9E6}
.rg-step.is-past::after{background-size:100% 100%}
.rg-step.is-past.is-new::after{animation:rg-fill .5s cubic-bezier(.3,.7,.2,1) both}
@keyframes rg-fill{from{background-size:0 100%}}
.rg-tile{position:relative;flex:none;display:grid;place-items:center;width:36px;height:36px;padding:0;border:1.5px solid #B4B1C6;border-radius:50%;background:#FFFFFF;color:var(--soft);
  font:inherit;font-size:14.5px;font-weight:600;line-height:1;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .2s,border-color .2s,color .2s,box-shadow .2s}
.rg-tile::after{content:"";position:absolute;inset:-5px;border-radius:50%}   /* a 46px place to press */
.rg-tile svg{display:block;width:16px;height:16px}
.rg-tile:not([aria-disabled=true]):not(.is-here):not(.is-done):hover{border-color:var(--brand);color:var(--brand-ink)}
.rg-tile.is-here{border:2px solid var(--brand);color:var(--brand-ink);box-shadow:0 0 0 4px rgba(106,79,191,.2)}
.rg-tile.is-done{background:var(--brand);border-color:var(--brand);color:#FFFFFF}
.rg-tile.is-done:hover{background:var(--brand-dark);border-color:var(--brand-dark)}
.rg-step.is-new .rg-tile.is-done{animation:rg-pop .4s cubic-bezier(.2,1.5,.4,1) both}
.rg-step.is-new .rg-tile.is-done svg{animation:rg-tick .38s ease .1s both}
.rg-step.is-new .rg-tile.is-here{animation:rg-ring .5s ease both}
@keyframes rg-pop{from{transform:scale(.8)}}
@keyframes rg-tick{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes rg-ring{from{box-shadow:0 0 0 0 rgba(106,79,191,.45)}}
.rg-tile[aria-disabled=true]{cursor:default;color:#7C7A92;border-color:#CFCBDB;background:#FBFAFD}
.rg-tile:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4.5px var(--brand)}
.rg-step-name{max-width:100%;padding:0 6px;font-size:13.5px;line-height:1.25;color:var(--soft);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rg-step.is-here .rg-step-name{color:var(--brand-ink);font-weight:600}
.rg-step.is-done .rg-step-name{color:var(--ink)}

/* ------------------------------------------------------------------ the step's questions: the only part that scrolls */
.rg-form{display:flex;flex-direction:column;flex:1 1 auto;min-height:0}
.rg-wiz-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:18px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  padding:20px 24px 24px;scroll-padding:16px}
.rg-pane{display:flex;flex-direction:column;gap:18px;min-width:0}
.rg-pane[hidden]{display:none}
.rg-pane-t{margin:0;font-family:inherit;font-weight:600;font-size:17px;line-height:1.3;letter-spacing:0;color:var(--ink)}
.rg-pane-t:focus,.rg-pane-t:focus-visible{outline:none}
.rg-pane-sub{margin:-10px 0 0;font-size:14.5px;line-height:1.45;color:var(--soft)}
/* a step comes in from the side it is on: the next one from the right, an earlier one from the left */
.rg-pane.is-in{animation:rg-step-in .36s cubic-bezier(.2,.7,.2,1)}
.rg-pane.is-in.is-back{animation-name:rg-step-back}
@keyframes rg-step-in{from{opacity:0;transform:translateX(22px)}to{opacity:1;transform:none}}
@keyframes rg-step-back{from{opacity:0;transform:translateX(-22px)}to{opacity:1;transform:none}}
/* the form's opening words, at the top of its first step */
.rg-wiz-intro{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border-radius:10px;background:var(--tint);border:1px solid #DDD3F6;color:var(--ink)}
.rg-intro-p{margin:0;font-size:15px;line-height:1.5}
.rg-until{font-weight:600;color:var(--brand-ink)}
/* each question: its label, its field and a note under it */
.rg-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 16px}
.rg-q{grid-column:1 / -1;display:flex;flex-direction:column;gap:6px;margin:0;padding:0;border:0;min-width:0}
.rg-q.is-half{grid-column:auto}
.rg-q[hidden]{display:none}
.rg-label{padding:0;font-size:15.5px;font-weight:450;line-height:1.35;color:var(--ink)}
.rg-need{color:#6F6D85}
legend.rg-label{margin-bottom:7px}
.rg-help{margin:0;font-size:14px;line-height:1.45;color:var(--soft)}
.rg-field{position:relative}
.rg-q input[type=text],.rg-q input[type=email],.rg-q input[type=tel],.rg-q input[type=date],.rg-q select,.rg-q textarea{
  width:100%;min-height:46px;padding:10px 40px 10px 12px;border:1px solid var(--field-line);border-radius:8px;
  background-color:var(--field-bg);color:var(--ink);font:inherit;font-size:16px;line-height:1.4;color-scheme:light;box-shadow:var(--xs);transition:border-color .18s,box-shadow .18s}
.rg-q input::placeholder,.rg-q textarea::placeholder{color:#6B6982;opacity:1}
.rg-q textarea{min-height:120px;resize:vertical}
/* an email field carries its envelope; a list its own arrow */
.rg-q input[type=email]{padding-left:40px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%236F6D85'%3E%3Cpath d='M224,48H32a8,8,0,0,0-8,8V192a16,16,0,0,0,16,16H216a16,16,0,0,0,16-16V56A8,8,0,0,0,224,48ZM203.43,64,128,133.15,52.57,64ZM216,192H40V74.19l82.59,75.71a8,8,0,0,0,10.82,0L216,74.19V192Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:12px 50%;background-size:18px 18px}
.rg-q select{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%2355566F'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;cursor:pointer}
.rg-q input:hover,.rg-q select:hover,.rg-q textarea:hover{border-color:#8F8CA6}
.rg-q input:focus-visible,.rg-q select:focus-visible,.rg-q textarea:focus-visible{outline:2px solid transparent;outline-offset:2px;border-color:var(--brand);background-color:#FFFFFF;box-shadow:var(--xs),0 0 0 4px rgba(106,79,191,.24)}
/* a phone number's country: a flag and a caret in front of the number, and the list they open (register.js, phoneCountry) */
.rg-q .rg-field.is-phone input[type=tel]{padding-left:80px}
.rg-cc{position:absolute;left:0;top:0;bottom:0;z-index:1;display:flex;align-items:center;gap:8px;width:70px;margin:0;padding:0 0 0 13px;border:0;border-right:1px solid var(--field-line);border-radius:8px 0 0 8px;background:transparent;cursor:pointer;transition:background-color .18s}
.rg-cc:hover{background:rgba(17,19,48,.05)}
.rg-cc:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 4px rgba(106,79,191,.24),inset 0 0 0 1.5px var(--brand)}
.rg-cc-caret{width:0;height:0;border-left:4.5px solid transparent;border-right:4.5px solid transparent;border-top:5px solid var(--soft);transition:transform .18s}
.rg-cc[aria-expanded=true] .rg-cc-caret{transform:rotate(180deg)}
.rg-cc-flag{flex:none;display:block;width:22px;height:16px;border-radius:2px;object-fit:cover;box-shadow:0 0 0 1px rgba(17,19,48,.14)}
.rg-cc-list{position:absolute;z-index:6;left:0;right:0;top:calc(100% + 4px);max-height:250px;margin:0;padding:4px 0;list-style:none;overflow-y:auto;overscroll-behavior:contain;
  border:1px solid var(--field-line);border-radius:8px;background:#FFFFFF;box-shadow:0 12px 28px -8px rgba(17,19,48,.3),var(--xs);scrollbar-width:thin;scrollbar-color:rgba(17,19,48,.28) transparent}
.rg-cc-list[hidden]{display:none}
.rg-cc-list:focus{outline:none}
.rg-cc-opt{display:flex;align-items:center;gap:10px;min-height:40px;padding:6px 12px;font-size:15.5px;line-height:1.3;color:var(--ink);cursor:pointer}
.rg-cc-opt.is-active{background:#F1EFF7;box-shadow:inset 0 0 0 2px #6A4FBF}
.rg-cc-opt[aria-selected=true] .rg-cc-name{font-weight:600}
.rg-cc-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rg-cc-dial{flex:none;color:var(--soft);font-variant-numeric:tabular-nums}
.rg-cc-sep{height:1px;margin:4px 0;background:var(--hair)}
/* live checks: a tick in the field once the answer is good */
.rg-mark{position:absolute;right:12px;top:23px;width:20px;height:20px;margin-top:-10px;color:#1E7A4F;opacity:0;transform:scale(.6);transition:opacity .2s,transform .25s cubic-bezier(.2,1.4,.4,1);pointer-events:none}
.rg-mark svg{display:block;width:20px;height:20px}
.rg-field.is-picker .rg-mark{right:40px}
/* a date: its box and the calendar button in it, and the calendar the button opens (register.js, dateField). On a wide screen the
   calendar opens under the box; on a phone it is a card in the middle of the screen over a dimmed page. The box's tick would sit over the
   button, so the green edge says it is good. */
.rg-field.is-date .rg-mark{display:none}
.rg-date{position:relative}
.rg-q .rg-date input[type=text]{padding-right:52px}
.rg-date-btn{position:absolute;right:4px;top:4px;display:grid;place-items:center;width:38px;height:38px;margin:0;padding:0;border:0;border-radius:6px;background:transparent;color:var(--soft);cursor:pointer;transition:background-color .18s,color .18s}
.rg-date-btn:hover,.rg-date-btn[aria-expanded=true]{background:rgba(17,19,48,.07);color:var(--ink)}
.rg-date-btn svg{display:block;width:20px;height:20px}
.rg-date-btn:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 3px rgba(106,79,191,.35),inset 0 0 0 1.5px var(--brand)}
.rg-cal-back{display:none}
.rg-cal{position:absolute;z-index:6;left:0;top:calc(100% + 6px);width:min(328px,100%);padding:10px 12px 14px;border:1px solid var(--field-line);border-radius:12px;background:#FFFFFF;
  box-shadow:0 16px 36px -10px rgba(17,19,48,.35),var(--xs);color:var(--ink)}
.rg-cal[hidden]{display:none}
.rg-cal-head{display:flex;align-items:center;gap:2px;margin-bottom:6px}
.rg-cal-title{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:center;gap:2px}
.rg-cal-hint{font-size:16px;font-weight:600}
.rg-cal-nav,.rg-cal-pick{margin:0;border:0;background:transparent;color:var(--ink);font:inherit;cursor:pointer;transition:background-color .18s,color .18s}
.rg-cal-nav{flex:none;display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:var(--soft)}
.rg-cal-nav svg{display:block;width:18px;height:18px}
.rg-cal-pick{display:inline-flex;align-items:center;gap:4px;min-height:40px;padding:0 8px;border-radius:8px;font-size:16px;font-weight:600}
.rg-cal-pick svg{display:block;width:13px;height:13px;color:var(--soft)}
.rg-cal-nav:hover:not(:disabled),.rg-cal-pick:hover{background:var(--tint)}
.rg-cal-nav:disabled{opacity:.3;cursor:default}
.rg-cal-nav:focus-visible,.rg-cal-pick:focus-visible,.rg-cal-day:focus-visible,.rg-cal-cell:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4.5px var(--brand)}
.rg-cal-dow,.rg-cal-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.rg-cal-dow{margin-bottom:2px}
.rg-cal-dow span{display:block;height:30px;font-size:13px;line-height:30px;text-align:center;color:var(--soft)}
.rg-cal-days{gap:2px 0}
.rg-cal-day{display:block;width:40px;height:40px;margin:0 auto;padding:0;border:0;border-radius:50%;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .15s,color .15s}
.rg-cal-day:hover:not(:disabled){background:var(--tint-2)}
.rg-cal-day.is-today{box-shadow:inset 0 0 0 1px var(--brand)}
.rg-cal-day.is-on,.rg-cal-cell.is-on{background:var(--brand);color:#FFFFFF;box-shadow:none}
.rg-cal-day:disabled,.rg-cal-cell:disabled{color:#B4B1C6;cursor:default}
.rg-cal-grid{display:grid;gap:6px}
.rg-cal-months{grid-template-columns:repeat(3,minmax(0,1fr))}
.rg-cal-years{grid-template-columns:repeat(4,minmax(0,1fr));max-height:264px;overflow-y:auto;overscroll-behavior:contain;scroll-behavior:auto;padding:2px;scrollbar-width:thin;scrollbar-color:rgba(17,19,48,.28) transparent}
.rg-cal-cell{min-height:44px;margin:0;padding:0 4px;border:0;border-radius:8px;background:transparent;color:var(--ink);font:inherit;font-size:15.5px;font-variant-numeric:tabular-nums;cursor:pointer;transition:background-color .15s,color .15s}
.rg-cal-cell:hover:not(:disabled){background:var(--tint-2)}
@media (max-width:640px){
  .rg-cal-back:not([hidden]){display:block;position:fixed;inset:0;z-index:5;background:rgba(9,10,30,.55)}
  .rg-cal{position:fixed;left:50%;top:50%;z-index:7;transform:translate(-50%,-50%);width:min(344px,calc(100% - 32px));max-height:calc(100% - 32px);overflow-y:auto}
}
/* a date's calendar button sits at the end of its text: the tick goes past it, at the edge */
.rg-field.is-picker input[type=date] + .rg-mark{right:14px}
.rg-q.is-good .rg-mark{opacity:1;transform:none}
.rg-q.is-good input,.rg-q.is-good select,.rg-q.is-good textarea{border-color:#2E8A5F}
/* Choices are plain buttons, with no circle or box inside (20 Nov 2026, by request). The real radio
   button or checkbox is still there for the keyboard and screen readers; it covers the button and isn't
   drawn. The picked choice is lilac with a violet edge (register.js adds is-on), and where several can
   be picked, each picked one carries a tick. */
.rg-choices{display:flex;flex-wrap:wrap;gap:10px}
.rg-pill{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:68px;padding:8px 16px;border:1px solid var(--line);border-radius:8px;
  cursor:pointer;font-size:15.5px;line-height:1.3;color:var(--ink);background:#FFFFFF;box-shadow:var(--xs);transition:border-color .18s,background-color .18s,color .18s,box-shadow .18s}
.rg-pill input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.rg-pill:hover{border-color:#6C6A86;background:#FAF8FE}
.rg-pill.is-on{border-color:var(--brand);background:var(--tint-2);color:var(--brand-ink);font-weight:500;box-shadow:inset 0 0 0 1px var(--brand),var(--xs)}
.rg-pill.is-on:hover{background:#DFD6F8}
/* the tick is Phosphor's "check" (bold), as a mask in the words' color */
.rg-choices.is-many .rg-pill.is-on::before{content:"";flex:none;width:16px;height:16px;margin:0 2px 0 -2px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E") center/contain no-repeat}
.rg-pill:has(input:focus-visible){outline:2px solid transparent;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4.5px var(--brand)}
@supports not selector(:has(a)){.rg-pill:focus-within{outline:2px solid #6A4FBF;outline-offset:3px}}
/* an answer that needs a look, in words under it */
.rg-q.is-bad input,.rg-q.is-bad select,.rg-q.is-bad textarea,.rg-q.is-bad .rg-pill:not(.is-on){border-color:#B3261E}
.rg-q.is-bad input:focus-visible,.rg-q.is-bad select:focus-visible,.rg-q.is-bad textarea:focus-visible{box-shadow:var(--xs),0 0 0 4px rgba(179,38,30,.2)}
.rg-err{display:flex;align-items:flex-start;gap:7px;margin:0;font-size:14px;line-height:1.4;color:#B3261E}
.rg-err::before{content:"";flex:none;width:17px;height:17px;margin-top:1px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256'%3E%3Cpath d='M128,24A104,104,0,1,0,232,128,104.11,104.11,0,0,0,128,24Zm0,192a88,88,0,1,1,88-88A88.1,88.1,0,0,1,128,216Zm-8-80V80a8,8,0,0,1,16,0v56a8,8,0,0,1-16,0Zm20,36a12,12,0,1,1-12-12A12,12,0,0,1,140,172Z'/%3E%3C/svg%3E") center/contain no-repeat}
.rg-summary{padding:14px 16px;border-radius:12px;background:#FEF3F2;border:1px solid #E9A29B;color:#8C1D16;font-size:15px}
.rg-summary[hidden]{display:none}
.rg-summary:focus{outline:2px solid #B3261E;outline-offset:2px}
/* "registered already": a warning, in a warning's amber (by request: "some sort of warning that already
   registered, like most forms"), with Phosphor's warning sign; not the red of an answer that is wrong */
.rg-again{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:#FFF6DC;border:1px solid #E6B84A;color:#5C3D00;font-size:15px;line-height:1.5}
.rg-again strong{font-weight:600;color:#7A4D00}
.rg-again-mark{flex:none;width:24px;height:24px;margin-top:2px;color:#B8780A}
.rg-again:focus{outline:2px solid #B8780A;outline-offset:2px}
.rg-again[hidden]{display:none}

/* ------------------------------------------------------------------ Review and send */
.rg-review{display:flex;flex-direction:column;gap:12px}
.rg-rv{padding:10px 16px 14px;border:1px solid #D9D5E3;border-radius:10px;background:#FFFFFF;box-shadow:var(--xs)}
.rg-rv-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 4px}
.rg-rv-head h3{margin:0;font-family:inherit;font-size:15.5px;font-weight:600;line-height:1.3;color:var(--ink)}
.rg-edit{flex:none;display:inline-flex;align-items:center;gap:6px;min-height:44px;margin:0 -10px 0 0;padding:0 12px;border:0;border-radius:8px;background:transparent;color:var(--brand-dark);
  font:inherit;font-size:14.5px;font-weight:600;text-decoration:none;cursor:pointer;transition:background-color .18s}
.rg-edit::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M227.31,73.37,182.63,28.68a16,16,0,0,0-22.63,0L36.69,152A15.86,15.86,0,0,0,32,163.31V208a16,16,0,0,0,16,16H92.69A15.86,15.86,0,0,0,104,219.31L227.31,96a16,16,0,0,0,0-22.63ZM92.69,208H48V163.31l88-88L180.69,120ZM192,108.68,147.31,64l24-24L216,84.68Z'/%3E%3C/svg%3E") center/contain no-repeat}
.rg-edit:hover{background:var(--tint-2)}
.rg-edit:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 4px rgba(106,79,191,.28),inset 0 0 0 1.5px var(--brand)}
.rg-answers{display:flex;flex-direction:column;margin:0}
.rg-answer{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:2px 16px;padding:8px 0;border-top:1px solid var(--hair)}
.rg-answer:first-child{border-top:0;padding-top:2px}
.rg-answer:last-child{padding-bottom:0}
.rg-answer dt{font-size:14px;line-height:1.4;color:var(--soft)}
.rg-answer dd{margin:0;font-size:15.5px;line-height:1.45;color:var(--ink);overflow-wrap:anywhere;white-space:pre-line}
.rg-answer dd.is-none{font-style:italic;color:#6F6D85}
/* the privacy notice and the consent */
.rg-privacy{display:flex;flex-direction:column;gap:10px;padding:14px 16px;border-radius:10px;background:#F8F7FA;border:1px solid #E7E3EE}
.rg-privacy:focus-visible{outline:2px solid #6A4FBF;outline-offset:2px}
.rg-small{margin:0;font-size:14px;line-height:1.55;color:rgba(17,19,48,.8)}
.rg-law a{color:var(--brand-dark);text-decoration:underline;text-underline-offset:3px}
.rg-law a:hover{color:var(--brand-ink)}
.rg-law a:focus-visible{outline:2px solid #6A4FBF;outline-offset:2px;border-radius:3px}
.rg-consent{padding:4px 0 0}
.rg-check{display:flex;align-items:flex-start;gap:12px;padding:10px 0;font-size:15.5px;line-height:1.4;color:var(--ink);cursor:pointer}
.rg-check input{appearance:none;-webkit-appearance:none;flex:none;width:22px;height:22px;margin:1px 0 0;border:1px solid var(--line);border-radius:6px;background:#FFFFFF center / 14px 14px no-repeat;box-shadow:var(--xs);cursor:pointer;transition:background-color .15s,border-color .15s,box-shadow .15s}
.rg-check input:hover{border-color:var(--brand)}
.rg-check input:checked{background-color:var(--brand);border-color:var(--brand);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='%23FFFFFF'%3E%3Cpath d='M232.49,80.49l-128,128a12,12,0,0,1-17,0l-56-56a12,12,0,1,1,17-17L96,183,215.51,63.51a12,12,0,0,1,17,17Z'/%3E%3C/svg%3E")}
.rg-check input:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4.5px var(--brand)}
@media (forced-colors:active){.rg-check input{appearance:auto;-webkit-appearance:auto}}
.rg-hp{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ------------------------------------------------------------------ the foot: Back and Next (Send on the last step), always in view */
.rg-wiz-foot{flex:none;display:flex;flex-direction:column;gap:8px;padding:14px 20px 16px;border-top:1px solid var(--hair);background:#FFFFFF}
.rg-wiz-nav{display:flex;align-items:center;gap:12px}
.rg-wiz-nav .rg-wbtn-go{margin-left:auto}
.rg-wbtn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border:0;border-radius:8px;
  font:inherit;font-size:15.5px;font-weight:600;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background-color .18s,color .18s,box-shadow .18s,transform .12s}
.rg-wbtn[hidden]{display:none}
.rg-wbtn:active{transform:translateY(1px)}
/* the primary button: solid violet, white words, a fine edge and a lighter top, like a pressed key */
.rg-wbtn-go{background:var(--brand);color:#FFFFFF;box-shadow:0 1px 2px rgba(17,19,48,.14),inset 0 0 0 1px rgba(17,19,48,.2),inset 0 -2px 0 rgba(17,19,48,.14),inset 0 2px 0 rgba(255,255,255,.14)}
.rg-wbtn-go:hover{background:var(--brand-dark);color:#FFFFFF}
/* not ready yet (it still answers a press, by pointing to what is missing): soft lilac, violet words */
.rg-wbtn-go[aria-disabled=true]{background:var(--tint-2);color:var(--brand-dark);box-shadow:inset 0 0 0 1px #CFC3F1}
.rg-wbtn-go[aria-disabled=true]:hover{background:#DFD6F8;color:var(--brand-dark)}
.rg-wbtn-quiet{background:#FFFFFF;color:var(--ink);box-shadow:var(--xs),inset 0 0 0 1px var(--line),inset 0 -2px 0 rgba(17,19,48,.05)}
.rg-wbtn-quiet:hover{background:#F6F3FB;color:var(--ink)}
.rg-wbtn:disabled{cursor:default;opacity:.6}
.rg-wbtn:focus-visible{outline:2px solid transparent;box-shadow:0 0 0 2px #FFFFFF,0 0 0 4.5px var(--brand)}
/* their arrows (Phosphor's "arrow-right", turned round for Back) and Send's paper plane */
.rg-next::after,.rg-back::before,.rg-send-btn::after{content:"";flex:none;width:18px;height:18px;background:currentColor}
.rg-next::after,.rg-back::before{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M221.66,133.66l-72,72a8,8,0,0,1-11.32-11.32L196.69,136H40a8,8,0,0,1,0-16H196.69L138.34,61.66a8,8,0,0,1,11.32-11.32l72,72A8,8,0,0,1,221.66,133.66Z'/%3E%3C/svg%3E") center/contain no-repeat}
.rg-back::before{transform:scaleX(-1)}
.rg-send-btn::after{-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 256' fill='black'%3E%3Cpath d='M227.32,28.68a16,16,0,0,0-15.66-4.08l-.15,0L19.57,82.84a16,16,0,0,0-2.49,29.8L102,154l41.3,84.87A15.86,15.86,0,0,0,157.74,248q.69,0,1.38-.06a15.88,15.88,0,0,0,14-11.51l58.2-191.94c0-.05,0-.1,0-.15A16,16,0,0,0,227.32,28.68ZM157.83,231.85l-.05.14,0-.07-40.06-82.3,48-48a8,8,0,0,0-11.31-11.31l-48,48L24.08,98.25l-.07,0,.14,0L216,40Z'/%3E%3C/svg%3E") center/contain no-repeat}
.rg-status{margin:0;text-align:center;font-size:14.5px;color:rgba(17,19,48,.84)}
.rg-status:empty{display:none}

/* ------------------------------------------------------------------ notices in the card: loading, the thank-you, not open */
.rg-note{margin:auto 0;text-align:center;font-size:16px;color:var(--soft)}
.rg-note a{color:var(--brand-dark)}
.rg-done{flex:1 0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;padding:16px 4px;text-align:center}
.rg-done:focus{outline:none}
/* the thank-you's tick, in a soft double ring */
.rg-done-mark{display:grid;place-items:center;width:56px;height:56px;margin-bottom:8px;border-radius:50%;background:var(--tint-2);color:var(--brand);box-shadow:0 0 0 10px var(--tint);animation:rg-pop .5s cubic-bezier(.2,1.5,.4,1) both}
.rg-done-mark svg{width:26px;height:26px;animation:rg-tick .45s ease .2s both}
.rg-done-title{margin:0;font-family:inherit;font-weight:600;font-size:clamp(22px,3.4vw,26px);line-height:1.2;letter-spacing:-.005em;color:var(--ink)}
.rg-lead{margin:0;max-width:32em;font-size:16px;line-height:1.55;color:rgba(17,19,48,.8)}

/* ------------------------------------------------------------------ a phone: the card fills the screen, 8px in from its edges */
@media (max-width:640px){
  .rg-stage{padding:8px}
  .rg-wiz{width:100%;height:100%;border-radius:12px}
  .rg-wiz-head{padding:12px 8px 12px 14px;gap:12px}
  .rg-wiz-head::before{width:40px;height:40px;border-radius:10px;background-size:22px 22px}
  .rg-wiz-t{font-size:18px}
  .rg-wiz-sub{font-size:14px}
  .rg-steps{padding:10px 8px}
  .rg-step-name{display:none}
  .rg-step:not(:last-child)::after{left:calc(50% + 23px);width:calc(100% - 46px)}
  .rg-wiz-body{padding:16px 16px 20px}
  .rg-wiz-foot{padding:12px 14px 14px}
  .rg-fields{grid-template-columns:minmax(0,1fr)}
  .rg-q.is-half{grid-column:1 / -1}
  .rg-rv{padding:10px 14px 14px}
  .rg-answer{grid-template-columns:minmax(0,1fr)}
}
/* many steps: no names under them (the line under the title says which step this is), and on a narrow screen smaller circles */
.rg-steps:has(> li:nth-child(6)) .rg-step-name{display:none}
@media (max-width:420px){
  .rg-steps:has(> li:nth-child(6)) .rg-tile{width:30px;height:30px;font-size:14px}
  .rg-steps:has(> li:nth-child(6)) .rg-step:not(:last-child)::after{top:14px;left:calc(50% + 19px);width:calc(100% - 38px)}
}
/* little height (a phone with its keyboard up: register.js adds is-short): the head and foot draw in */
.rg-stage.is-short .rg-wiz-head{padding-top:6px;padding-bottom:6px}
.rg-stage.is-short .rg-wiz-head::before{display:none}
.rg-stage.is-short .rg-wiz-t{font-size:17px}
.rg-stage.is-short .rg-wiz-sub{display:none}
.rg-stage.is-short .rg-wiz-x{width:40px;height:40px}
.rg-stage.is-short .rg-steps{padding-top:4px;padding-bottom:4px}
.rg-stage.is-short .rg-step-name{display:none}
.rg-stage.is-short .rg-wiz-body{padding-top:12px}
.rg-stage.is-short .rg-wiz-foot{padding-top:8px;padding-bottom:8px}
@media (prefers-reduced-motion:reduce){ .rg-pane.is-in{animation:none} .rg-wiz *,.rg-wiz *::before,.rg-wiz *::after{transition:none!important;animation:none!important} }
html.motion-paused .rg-pane.is-in{animation:none}
/* printed: the card as it is, in the page */
@media print{
  html.rg-lock,html.rg-lock body{height:auto;overflow:visible}
  .rg-stage{position:static;height:auto!important;padding:0;background:none}
  .rg-wiz{height:auto;box-shadow:none}
  .rg-wiz-body{overflow:visible}
}
