/* Costco Large Group "Request a Demo" — remake (T1 exemplar).
   Real Costco palette (verified vs live theme.css) + Costco Sans Micro (self-hosted from the clone).
   Mobile-first, WCAG 2.2 AA defaults. No third-party, no pixels (SECURE-MULTISTEP-LEAD-FORM). */

@font-face{font-family:"Costco Sans Micro";src:url("assets/CostcoSansMicro-Regular.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"Costco Sans Micro";src:url("assets/CostcoSansMicro-Medium.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"Costco Sans Micro";src:url("assets/CostcoSansMicro-Semibold.woff2") format("woff2");font-weight:600;font-display:swap}
@font-face{font-family:"Costco Sans Micro";src:url("assets/CostcoSansMicro-Black.woff2") format("woff2");font-weight:800;font-display:swap}

:root{
  --blue:#005DAB; --blue-dark:#004a8a;        /* Costco primary (Continue) */
  --red:#E31936; --red-dark:#c2142e;          /* .greenButton CTA + accent */
  --focus:#DE2127;                            /* input focus ring (theme.css:1701) */
  --ink:#1f2733; --body:#444; --muted:#6a717b;
  --line:#d9dee4; --soft:#f4f7fa; --bg:#fff;
  --font:"Costco Sans Micro",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --maxw:660px; --radius:14px;
}
*{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; }
body{margin:0;background:var(--soft);color:var(--body);font-family:var(--font);font-size:16px;line-height:1.5;
  display:flex;justify-content:center;padding:24px 16px;min-height:100vh}
.card{background:var(--bg);width:100%;max-width:var(--maxw);border-radius:var(--radius);
  box-shadow:0 6px 28px rgba(15,30,50,.10),0 1px 2px rgba(15,30,50,.06);overflow:hidden}
.card__bar{height:5px;background:var(--red)}
.card__pad{padding:28px}
@media(max-width:480px){ body{padding:14px 10px} .card__pad{padding:20px 16px} }

.brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.brand__logos{display:inline-flex;align-items:center;gap:28px;min-width:0}
.brand .logo-cbc{height:96px;width:auto;display:block}
.brand .logo-costco{height:30px;width:auto;display:block}
.brand .logo-div{width:1px;height:64px;background:rgba(0,0,0,.18);flex:none}
@media(max-width:480px){ .brand__logos{gap:14px} .brand .logo-cbc{height:52px} .brand .logo-costco{height:16px} .brand .logo-div{height:34px} }
.brand__step{font-size:.82rem;font-weight:600;color:var(--muted);white-space:nowrap}

h1{font-weight:800;color:var(--ink);font-size:clamp(1.5rem,5vw,2rem);line-height:1.12;margin:.1em 0 .35em}
.lede{color:var(--body);font-size:1rem;margin:0 0 1.25rem}

/* progress */
.prog{display:flex;gap:8px;margin:0 0 20px}
.prog span{flex:1;height:6px;border-radius:999px;background:#e6ebf1}
.prog span.on{background:var(--blue)}

fieldset{border:0;margin:0;padding:0;min-width:0}
legend{padding:0;font-weight:600;color:var(--ink);font-size:1.05rem;margin-bottom:.75rem}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
.full{grid-column:1/-1}
@media(max-width:560px){ .grid{grid-template-columns:1fr} }

.field{display:flex;flex-direction:column;gap:6px;min-width:0}
.field label{font-weight:500;color:var(--ink);font-size:.92rem}
.req{color:var(--red);font-weight:700}
.field input,.field textarea{font-family:inherit;font-size:16px;color:var(--ink);background:#fff;
  border:1px solid var(--line);border-radius:9px;padding:12px 13px;width:100%;transition:border-color .12s,box-shadow .12s}
.field textarea{min-height:130px;resize:vertical}
.field input::placeholder,.field textarea::placeholder{color:#9aa3ad}
.field input:focus,.field textarea:focus{outline:none;border-color:var(--focus);box-shadow:0 0 0 3px rgba(222,33,39,.18)}
.field input[aria-invalid="true"],.field textarea[aria-invalid="true"]{border-color:var(--red);background:#fff7f8}

/* summary of step 1 shown on step 2 */
.who{display:flex;justify-content:space-between;align-items:center;gap:10px;background:var(--soft);
  border:1px solid var(--line);border-radius:10px;padding:10px 13px;margin-bottom:18px;font-size:.9rem}
.who b{color:var(--ink)} .who a{color:var(--blue);font-weight:600;text-decoration:none}
.who a:hover{text-decoration:underline}

/* error summary */
.errs{display:none;border:1px solid var(--red);background:#fff5f6;border-radius:10px;padding:12px 14px;margin-bottom:18px}
.errs.show{display:block} .errs h2{margin:0 0 6px;font-size:.95rem;color:var(--red-dark)}
.errs ul{margin:0;padding-left:18px} .errs a{color:var(--red-dark)}

.actions{display:flex;gap:12px;align-items:center;margin-top:24px;flex-wrap:wrap}
.btn{font-family:inherit;font-weight:700;font-size:1.02rem;border:0;border-radius:10px;padding:14px 22px;
  cursor:pointer;min-height:50px;display:inline-flex;align-items:center;gap:9px;justify-content:center}
.btn--primary{background:var(--blue);color:#fff} .btn--primary:hover{background:var(--blue-dark)}
.btn--send{background:var(--red);color:#fff} .btn--send:hover{background:var(--red-dark)}
.btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.btn--back{background:none;color:var(--muted);font-weight:600;padding:14px 6px;min-height:50px}
.btn--back:hover{color:var(--ink)}
@media(max-width:480px){ .actions{flex-direction:column-reverse;align-items:stretch} .btn{width:100%} }

.foot{margin-top:22px;padding-top:14px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem;text-align:center}

.step[hidden]{display:none}

/* thank-you */
.done{text-align:center;padding:18px 4px}
.done__mark{width:64px;height:64px;border-radius:50%;background:rgba(0,93,171,.10);color:var(--blue);
  display:grid;place-items:center;margin:0 auto 16px;font-size:30px;font-weight:800}
.done h1{margin-bottom:.4em}
.done p{font-size:1.05rem;max-width:42ch;margin:0 auto}
