/* Free-audit pop-up (non-home pages). The form card styling below is copied from the homepage so both forms look identical. */
/* ---------- Form card ---------- */
.check{position:relative;background:var(--paper);color:var(--ink);border-radius:30px;padding:30px;box-shadow:0 50px 100px -30px rgba(0,0,0,.7),0 0 0 1px rgba(255,255,255,.06)}
.check::before{content:"";position:absolute;inset:-1px;border-radius:31px;padding:1px;background:linear-gradient(140deg,rgba(90,168,255,.9),transparent 40%,transparent 70%,rgba(90,168,255,.5));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none}
.check-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px}
.check h2{font-family:var(--display);font-size:27px;letter-spacing:-.035em;line-height:1.1;margin:0}
.check-step{font-size:14px;font-weight:600;color:var(--t-light);white-space:nowrap}
.check-intro{font-size:15px;color:var(--t-light);margin:0 0 16px}
.progress{margin:0 0 18px}
.progress svg{width:100%;height:30px}
.progress .track{stroke:var(--line-l)}
.progress .fill{stroke:var(--blue-deep);transition:stroke-dashoffset .6s var(--ease)}
fieldset{border:0;margin:0;padding:0;min-width:0}
legend{font-family:var(--display);font-weight:500;font-size:19px;letter-spacing:-.02em;margin-bottom:12px;padding:0}
.options{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.opt{position:relative}
.opt input{position:absolute;opacity:0;inset:0;cursor:pointer;margin:0}
.opt label{display:flex;flex-direction:column;gap:2px;min-height:76px;padding:14px 16px;border-radius:16px;background:var(--white);box-shadow:inset 0 0 0 1.5px var(--line-l);cursor:pointer;transition:box-shadow .15s,background .15s,transform .15s}
.opt label strong{font-size:15px;line-height:1.3}
.opt label small{font-size:13px;color:var(--t-light);line-height:1.35}
.opt input:hover + label{box-shadow:inset 0 0 0 1.5px var(--ink);transform:translateY(-1px)}
.opt input:checked + label{background:var(--blue-soft);box-shadow:inset 0 0 0 2px var(--blue-deep)}
.opt input:focus-visible + label{outline:3px solid var(--blue);outline-offset:2px}
.fields{display:grid;gap:12px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:6px}
.field input{width:100%;min-height:50px;padding:0 14px;border-radius:12px;border:1.5px solid var(--line-l);background:var(--white);font:500 16px var(--body);color:var(--ink)}
.field input:focus{outline:none;border-color:var(--blue-deep);box-shadow:0 0 0 3px rgba(90,168,255,.35)}
.field.invalid input{border-color:var(--danger)}
.err{display:none;font-size:13px;color:var(--danger);margin-top:5px}
.field.invalid .err,.consent.invalid .err{display:block}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;color:var(--t-light);line-height:1.45;flex-wrap:wrap}
.consent input{width:20px;height:20px;margin:1px 0 0;accent-color:var(--blue-deep);flex:none}
.consent label{flex:1}
.consent .err{width:100%}
.check-nav{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:20px}
.back{background:none;border:0;font:600 15px var(--body);color:var(--t-light);cursor:pointer;padding:10px 4px}
.back:hover{color:var(--ink)}
.back.hide{visibility:hidden}
.step-err{font-size:14px;color:var(--danger);margin:10px 0 0;min-height:1em}
.check-foot{font-size:13px;color:var(--t-light);margin:14px 0 0;display:flex;gap:8px;align-items:center}
.done h2{margin-bottom:10px}
.done p{color:var(--t-light);margin:0 0 18px;font-size:16px}
.done-mark{width:64px;height:64px;border-radius:20px;background:var(--ink);display:grid;place-items:center;margin-bottom:18px}

/* ---------- pop-up shell ---------- */
dialog.am{border:0;padding:0;margin:auto;background:transparent;color:var(--ink);width:min(580px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);overflow:visible}
dialog.am::backdrop{background:rgba(7,18,20,.74);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}
dialog.am[open]{animation:amIn .28s var(--ease)}
dialog.am[open]::backdrop{animation:amFade .28s ease}
@keyframes amIn{from{opacity:0;transform:translateY(18px) scale(.97)}to{opacity:1;transform:none}}
@keyframes amFade{from{opacity:0}to{opacity:1}}
.am .check{max-height:calc(100dvh - 24px);overflow-y:auto;overscroll-behavior:contain;padding:34px 32px 28px}
.am .check::-webkit-scrollbar{width:8px}.am .check::-webkit-scrollbar-thumb{background:var(--line-l);border-radius:8px}
.am-close{position:absolute;top:14px;right:14px;z-index:2;width:40px;height:40px;border:0;border-radius:99px;background:rgba(12,30,34,.07);color:var(--ink);cursor:pointer;display:grid;place-items:center;transition:background .2s}
.am-close:hover{background:rgba(12,30,34,.14)}
.am-close:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.am-close svg{width:16px;height:16px}
.am .check-head{padding-right:44px}
body.am-lock{overflow:hidden}
.am .check .btn-ink{color:var(--paper)}
@media (max-width:640px){
  .am .check{padding:26px 18px 22px;border-radius:24px}
  .options,.row2{grid-template-columns:1fr}
  .opt label{min-height:0}
  dialog.am{width:calc(100vw - 16px)}
}
@media (prefers-reduced-motion:reduce){dialog.am[open],dialog.am[open]::backdrop{animation:none}}


/* ---------- compact, and no step counter (visitors shouldn't see how many steps there are) ---------- */
.am .check-step,.am .progress{display:none}
.am .check{padding:26px 26px 22px}
.am .check h2{font-size:24px}
.am .check-head{margin-bottom:2px}
.am .check-intro{margin:0 0 12px;font-size:14.5px;line-height:1.45}
.am legend{font-size:18px;margin-bottom:10px}
.am .options{gap:8px}
.am .opt label{min-height:0;padding:12px 14px}
.am .fields{gap:10px}
.am .field label{margin-bottom:4px;font-size:13.5px}
.am .field input{min-height:46px}
.am .check-nav{margin-top:14px}
.am .btn{min-height:48px}
.am .check-foot{margin:10px 0 0;font-size:12.5px}
.am .step-err{margin:6px 0 0}
@media (max-width:640px){
  dialog.am{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .am .check{padding:16px 14px 14px;border-radius:20px;max-height:calc(100dvh - 16px)}
  .am .check h2{font-size:20px;line-height:1.15}
  .am .check-intro{display:none}
  .am legend{font-size:16.5px;line-height:1.25;margin:6px 0 8px}
  .am .options{grid-template-columns:1fr;gap:6px}
  .am .opt label{padding:9px 12px;border-radius:12px;gap:0}
  .am .opt label strong{font-size:14.5px;line-height:1.25}
  .am .opt label small{font-size:12px;line-height:1.3}
  .am .fields{gap:8px}
  .am .row2{grid-template-columns:1fr 1fr;gap:8px}
  .am .field label{font-size:13px;margin-bottom:3px}
  .am .field input{min-height:44px;font-size:16px;padding:0 12px;border-radius:10px}   /* 16px stops iOS zooming into the field */
  .am .consent{font-size:12px;line-height:1.35;gap:8px}
  .am .consent input{width:18px;height:18px}
  .am .check-nav{margin-top:10px}
  .am .btn{min-height:44px;padding:0 22px;font-size:15px}
  .am .back{font-size:14px;padding:8px 2px}
  .am .check-foot{margin:8px 0 0;font-size:11.5px}
  .am .step-err{font-size:13px}
  .am-close{top:8px;right:8px;width:32px;height:32px}
  .am .check-head{padding-right:36px}
}


/* ---------- scrollbar fix ---------- */
/* The homepage card has a 1px glowing border (::before at inset:-1px). Inside this scrolling card those 1px made the card
   scrollable in both directions, so scrollbars appeared and sat on top of the button. Keep the border inside the card. */
.am .check::before{inset:0;border-radius:inherit}
.am .check{overflow-x:hidden;scrollbar-width:thin;scrollbar-color:var(--line-l) transparent}
