/* Sign-up forms and the $25 offer pop-up. Shared field, check, form and modal styles are in site.css; this file adds only what forms need on top. */
.lead{display:grid;gap:14px;min-width:0}
.lead .k{font-family:var(--fm);font-size:12px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.lead .req{margin-left:2px}
.lead-fine{margin:0;font-size:12.5px;line-height:1.5;color:var(--ink2)}
.lead-fine a,.lead .check a{text-decoration:underline;text-underline-offset:2px}
.lead-acts{display:flex;flex-wrap:wrap;gap:10px}
.lead-acts .btn{flex:1 1 auto}
.lead button[disabled]{opacity:.6;cursor:progress;transform:none}
.lead .check{cursor:pointer}
.lead .check input{flex:none}
.lead-consent{display:grid;gap:6px}
.lead .check input[aria-invalid=true]{outline:2px solid #B3261E;outline-offset:2px}
.hud .lead .check input[aria-invalid=true]{outline-color:#FFB4A9}

/* The honeypot field: off screen for everyone, skipped by the keyboard and by screen readers. */
.lead-hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

/* Messages */
.lead-status{margin:0;font-size:13.5px;line-height:1.45;padding:10px 12px;border-radius:10px;border:1px solid var(--line);background:var(--stone);color:var(--ink)}
.lead-status:empty{display:none}
.lead-status[data-state=error]{border-color:#B3261E;background:#FCEEEC;color:#7A1A14}
.lead-status[data-state=off]{border-color:#D9B23A;background:#FFF4CC;color:#5A4100}
.lead .ferr{font-size:12.5px;line-height:1.4;color:#B3261E}
.lead .field input[aria-invalid=true]{border-color:#B3261E;box-shadow:0 0 0 1px #B3261E}
.lead .sent:focus{outline:none}
.lead .sent p{max-width:46ch}

/* Keyboard focus that can be seen on a white field */
.lead .field input:focus-visible,.lead .field select:focus-visible,.lead .check input:focus-visible{outline:2px solid var(--navy);outline-offset:2px}

/* On the dark glass cards and dark sections */
.hud .lead .k,.hud .lead-fine,.hud .lead .check,.dark .lead-fine,.dark .lead .check,.inkbg .lead-fine,.inkbg .lead .check,.film .lead-fine,.film .lead .check{color:var(--on-dark2)}
.dark .lead .k,.inkbg .lead .k,.film .lead .k,.dark .lead .field label,.inkbg .lead .field label,.film .lead .field label{color:var(--on-dark2)}
.hud .lead .btn-d,.dark .lead .btn-d,.inkbg .lead .btn-d,.film .lead .btn-d{background:var(--citron);color:var(--ink)}
.hud .lead .check input,.dark .lead .check input,.inkbg .lead .check input,.film .lead .check input{accent-color:var(--citron)}
.hud .lead .ferr,.dark .lead .ferr,.inkbg .lead .ferr,.film .lead .ferr{color:#FFB4A9}
.hud .lead .field input[aria-invalid=true]{border-color:#FFB4A9;box-shadow:0 0 0 1px #FFB4A9}
.hud .lead .field input:focus-visible,.hud .lead .field select:focus-visible,.hud .lead .check input:focus-visible{outline-color:var(--citron)}
.hud .lead-status{background:rgba(255,255,255,.1);border-color:var(--glass-line);color:#fff}
.hud .lead-status[data-state=error]{border-color:#FFB4A9;background:rgba(179,38,30,.28);color:#fff}
.hud .lead-status[data-state=off]{border-color:rgba(240,178,74,.7);background:rgba(240,178,74,.16);color:#FFE9A8}

/* A white card that sits inside a dark section goes back to the light colors */
.filters .lead .k,.filters .lead-fine,.filters .lead .check,.filters .lead .field label,.modal .lead .k,.modal .lead-fine,.modal .lead .check,.modal .lead .field label{color:var(--ink2)}
.filters .lead .btn-d,.modal .lead .btn-d{background:var(--ink);color:var(--on-dark)}
.filters .lead .ferr,.modal .lead .ferr{color:#B3261E}
.filters .lead .check input,.modal .lead .check input{accent-color:var(--navy)}

/* The pop-up */
.modal[data-lead-popup] .box:focus{outline:none}
.modal[data-lead-popup] .x{display:grid;place-items:center;line-height:1;z-index:1}
.modal[data-lead-popup] .x:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.modal[data-lead-popup] .frm{min-width:0}
.modal[data-lead-popup] .frm h2{padding-right:44px}
.modal[data-lead-popup] .flagnote{max-width:none}
html.lead-lock,html.lead-lock body{overflow:hidden}
@media (max-width:720px){
  .modal[data-lead-popup]{padding:12px;align-items:end}
  .modal[data-lead-popup] .pic{min-height:0;padding:20px;gap:10px}
  .modal[data-lead-popup] .pic .big{font-size:56px}
  .modal[data-lead-popup] .frm{padding:22px 20px}
}
@media (prefers-reduced-motion:no-preference){
  .modal[data-lead-popup]:not([hidden]){animation:lead-fade .22s ease-out}
  .modal[data-lead-popup]:not([hidden]) .box{animation:lead-rise .28s ease-out}
}
@keyframes lead-fade{from{opacity:0}to{opacity:1}}
@keyframes lead-rise{from{transform:translateY(14px)}to{transform:none}}

/* The offer code, shown once the sign-up is saved: large, easy to read and to select */
.lead-code-l{font-family:var(--fm);font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--ink2)}
.lead-code{justify-self:start;font-family:var(--fm);font-size:clamp(28px,5vw,36px);font-weight:500;letter-spacing:.06em;line-height:1.1;padding:12px 18px;border-radius:12px;border:1.5px dashed var(--navy);background:var(--paper);color:var(--ink);user-select:all;-webkit-user-select:all}
.lead .sent .btn{justify-self:start}

.lead .sent .pill{justify-self:start}
/* On a phone the 2 name fields stay side by side in the pop-up, so the whole form needs less scrolling */
@media (max-width:560px){.modal[data-lead-popup] .form>.f2:first-of-type{grid-template-columns:1fr 1fr;gap:10px}.modal[data-lead-popup] .pic .small{display:none}}
/* On a phone the pop-up is taller than the screen, so its 2 buttons stay in view at the bottom of the pop-up while the
   form scrolls above them (November 22, 2026: the button was below the fold at 390 x 844). The picture band is shorter too. */
@media (max-width:560px){
  .modal[data-lead-popup] .pic{padding:14px 20px;gap:4px}
  .modal[data-lead-popup] .pic .big{font-size:44px}
  .modal[data-lead-popup] .lead-acts{position:sticky;bottom:0;z-index:1;flex-wrap:nowrap;margin:0 -20px;padding:12px 20px calc(12px + env(safe-area-inset-bottom,0px));background:var(--white);border-top:1px solid var(--line)}
  .modal[data-lead-popup] .lead-acts .btn{flex:1 1 0;padding-inline:10px;white-space:nowrap}
}
/* The free-guide pop-up (web/lib/leads.php leads_guide_popup): the guide's cover stands in for the big $ figure */
.modal .lead-guidepop .pic{justify-content:flex-start}
.modal .lead-guidepop .lead-gp-cover{width:min(100%,240px);height:auto;border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.35);align-self:center;margin:6px 0 auto}
@media (max-width:720px){.modal .lead-guidepop .pic{flex-direction:row;align-items:center}.modal .lead-guidepop .lead-gp-cover{width:84px;margin:0;order:-1}}
.modal .lead-guidepop .lead form>.k{display:none} /* the pop-up's own panel already says it is a free guide with no health questions */
