/* v8: extracted from sell_start.php (static wizard styles, same cascade position). */
:root{ --blue:#006AFF; --blue-d:#0052cc; --ink:#0b1220; --muted:#64748b; --line:#e6ecf5; --wz-hdr:56px; }
  .wz-page{ font-family:'Inter',sans-serif; color:var(--ink); -webkit-font-smoothing:antialiased; background:#f4f8ff; }
  .wz-page *{ box-sizing:border-box; }
  body{ display:flex; flex-direction:column; min-height:100vh; min-height:100dvh; margin:0; }
  .wz-page{ flex:1 1 auto; display:flex; flex-direction:column; }
  .wz-page > .wz-shell{ flex:1; }
  .wz-shell{ display:grid; grid-template-columns:360px 1fr; }

  /* ── BRANDED GRADIENT RAIL ── */
  .wz-aside{ position:relative; color:#fff; padding:26px 32px; display:flex; flex-direction:column;
    background:radial-gradient(120% 60% at 0% 0%, rgba(91,156,255,.35), transparent 60%), linear-gradient(165deg,#06122a 0%, #0b2a72 52%, #0a57d6 120%); overflow:hidden; }
  .wz-aside::after{ content:''; position:absolute; right:-80px; bottom:-80px; width:280px; height:280px; border-radius:50%; background:radial-gradient(circle, rgba(255,255,255,.10), transparent 70%); }
  .wz-tag{ margin-top:14px; font-size:1.3rem; font-weight:900; line-height:1.12; letter-spacing:-.02em; }
  .wz-tag em{ font-style:normal; color:#8ec0ff; }
  .wz-tagsub{ margin-top:10px; color:#bcd4ff; font-size:.95rem; line-height:1.5; max-width:240px; }

  /* vertical stepper inside rail */
  .wz-rail{ list-style:none; margin:20px 0 0; padding:0; position:relative; z-index:1; }
  .rail-step{ display:flex; gap:13px; position:relative; padding-bottom:18px; }
  .rail-step:last-child{ padding-bottom:0; }
  .rail-step:not(:last-child)::before{ content:''; position:absolute; left:17px; top:38px; bottom:3px; width:2px; background:rgba(255,255,255,.18); }
  .rail-step.done:not(:last-child)::before{ background:linear-gradient(#5eead4,#5b9cff); }
  .rs-num{ width:36px;height:36px;flex:0 0 36px; border-radius:50%; display:flex;align-items:center;justify-content:center; font-weight:900; font-size:15px; color:rgba(255,255,255,.7); background:rgba(255,255,255,.08); border:2px solid rgba(255,255,255,.28); transition:.25s; }
  .rail-step.active .rs-num{ background:#fff; color:#0a2a6e; border-color:#fff; box-shadow:0 0 0 6px rgba(255,255,255,.16); transform:scale(1.05); }
  .rail-step.done .rs-num{ background:#5eead4; color:#06324a; border-color:#5eead4; }
  .rs-tx b{ display:block; font-size:1rem; font-weight:800; color:#fff; line-height:1.2; }
  .rs-tx span{ font-size:.82rem; color:#aecbff; }
  .rail-step:not(.active):not(.done) .rs-tx b{ color:rgba(255,255,255,.6); }

  /* ── MAIN CONTENT ── */
  .wz-main{ padding:14px 22px 16px; max-width:1560px; margin:0 auto; width:100%; display:flex; flex-direction:column; justify-content:flex-start; }
  .wz-phone-top{ display:none; }
  .wz-mb{ display:none; }
  .wz-step{ display:none; animation:wzfade .3s ease; } .wz-step.is-active{ display:flex; flex-direction:column; flex:1 1 auto; }
  @keyframes wzfade{ from{opacity:0;transform:translateY(10px);} to{opacity:1;transform:translateY(0);} }
  .wz-head{ margin-bottom:14px; }
  .wz-head h1,.wz-head h2{ font-size:clamp(1.7rem,2.4vw,2.3rem); font-weight:900; letter-spacing:-.04em; margin:0 0 8px; color:#0f172a; line-height:1.04; }
  .wz-head h1 em,.wz-head h2 em{ font-style:normal; color:var(--blue); }
  .wz-head p{ color:var(--muted); font-size:.98rem; margin:0; max-width:760px; line-height:1.45; }

  /* step 1 — image card + signup side by side */
  .wz-choices{ display:grid; grid-template-columns:1fr 1.5fr; gap:20px; align-items:stretch; flex:1 1 auto; }
  .wz-pick{ position:relative; display:flex; flex-direction:column; justify-content:flex-end; min-height:220px; width:100%; padding:22px; cursor:pointer; text-align:left; font-family:inherit; overflow:hidden; color:#fff; border:0; border-radius:22px; text-decoration:none;
    background-size:cover; background-position:center;
    box-shadow:0 14px 34px rgba(2,32,71,.16);
    transition:transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
  .wz-pick.sell{ background-image:url('pick-listhome.jpg'); --ac:#0a57d6; --tint:#0a57d6; --acs:rgba(10,87,214,.42); }
  .wz-pick.static{ cursor:default; height:100%; min-height:280px; }
  .wz-pick.static:hover{ transform:none; box-shadow:0 14px 34px rgba(2,32,71,.16); }
  .wz-pick.static:hover::after{ opacity:0; }

  /* the site's normal auth/signup card design (matches the homepage auth box) */
  .lp-auth { background:#fff; border:1px solid #e2e8f0; border-radius:16px; padding:26px 26px 20px; box-shadow:0 18px 44px rgba(2,32,71,.10); text-align:left; }
  .wz-choices > .lp-auth{ align-self:stretch; width:100%; display:flex; flex-direction:column; justify-content:center; }
  .lp-auth .auth-title { font-size:1.5rem; font-weight:800; color:#0f172a; margin:0 0 4px; }
  .lp-auth .logo-sub { color:#64748b; margin:0 0 14px; font-size:.95rem; }
  .lp-auth .form-group { margin-bottom:12px; }
  .lp-auth .form-group label { display:block; margin-bottom:7px; font-weight:600; color:#334155; font-size:.9rem; }
  .lp-auth .form-group input { width:100%; padding:12px 15px; border:1px solid #e2e8f0; border-radius:8px; font-size:1rem; outline:none; transition:border .2s; font-family:inherit; }
  .lp-auth .form-group input:focus { border-color:#006AFF; box-shadow:0 0 0 3px rgba(0,106,255,.1); }
  .lp-auth .btn-auth { width:100%; padding:12px; background:#006AFF; color:#fff; border:none; border-radius:8px; font-weight:700; font-size:1rem; cursor:pointer; transition:background .2s; margin-top:4px; display:flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; }
  .lp-auth .btn-auth:hover { background:#0056cf; }
  .lp-auth .auth-footer { margin-top:12px; text-align:center; font-size:.88rem; color:#64748b; }
  .lp-auth .fg2 { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  .lp-auth .auth-err { background:#fef2f2; border:1px solid #fecaca; color:#b91c1c; font-size:.88rem; font-weight:600; border-radius:8px; padding:10px 12px; margin-bottom:14px; }
  .wz-pick::before{ content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(5,10,28,.92) 6%, rgba(5,10,28,.5) 42%, rgba(5,10,28,.06) 78%); transition:background .35s; }
  .wz-pick::after{ content:''; position:absolute; inset:0; background:var(--tint); opacity:0; mix-blend-mode:multiply; transition:opacity .35s; }
  .wz-pick:hover{ transform:translateY(-6px); box-shadow:0 36px 66px var(--acs); }
  .wz-pick:hover::after{ opacity:.30; }
  .wz-pick > *{ position:relative; z-index:1; }
  .wz-pick-tag{ position:absolute; top:22px; left:22px; display:inline-flex; align-items:center; gap:7px; padding:7px 14px; border-radius:99px; background:rgba(255,255,255,.18); -webkit-backdrop-filter:blur(6px); backdrop-filter:blur(6px); border:1px solid rgba(255,255,255,.45); font-size:.68rem; font-weight:800; letter-spacing:.13em; text-transform:uppercase; }
  .wz-pick-main{ display:flex; flex-direction:column; gap:6px; padding-right:58px; }
  .wz-pick-title{ font-size:1.55rem; font-weight:900; letter-spacing:-.03em; line-height:1.1; text-shadow:0 2px 16px rgba(0,0,0,.45); }
  .wz-pick-sub{ font-size:.95rem; font-weight:500; color:rgba(255,255,255,.92); line-height:1.45; text-shadow:0 1px 10px rgba(0,0,0,.5); }
  .wz-pick-go{ position:absolute; right:22px; bottom:22px; width:50px; height:50px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:1.05rem; color:#0b1220; background:#fff; box-shadow:0 8px 20px rgba(0,0,0,.25); transition:transform .3s, background .3s, color .3s; }
  .wz-pick:hover .wz-pick-go{ transform:translateX(4px); background:var(--ac); color:#fff; }

  /* ── Ways to sell — compact label strip under the card ── */
  .wz-methods{ margin-top:14px; padding-top:10px; border-top:1px solid var(--line); }
  .wz-methods-head{ display:block; font-size:.72rem; font-weight:800; letter-spacing:.18em; text-transform:uppercase; color:#64748b; margin-bottom:10px; }
  .wz-methods-tags{ display:flex; flex-wrap:nowrap; gap:7px; }
  .wz-method-tag{ flex:0 1 auto; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; padding:7px 12px; border-radius:99px; background:#fff; border:1px solid var(--line); font-size:.78rem; font-weight:700; color:#334155; box-shadow:0 1px 2px rgba(2,32,71,.04); transition:border-color .2s, color .2s, transform .2s; }
  .wz-method-tag:hover{ border-color:var(--blue); color:#0b1220; transform:translateY(-2px); }

  .wz-back{ display:inline-flex; align-items:center; gap:7px; background:none; border:none; color:var(--muted); font-weight:700; font-size:.9rem; cursor:pointer; margin-bottom:16px; font-family:inherit; padding:0; }
  .wz-back:hover{ color:var(--blue); }
  /* account step */
  .auth-msg{ font-size:.98rem; color:#334155; line-height:1.5; margin:0 0 16px; }
  .auth-msg b{ color:#0f172a; }
  .auth-alt{ margin:14px 0 0; font-size:.88rem; color:var(--muted); text-align:center; }
  .auth-alt a{ color:var(--blue); font-weight:700; text-decoration:none; cursor:pointer; }
  .auth-alt a:hover{ text-decoration:underline; }
  .wz-card{ background:#fff; border:1px solid var(--line); border-radius:20px; padding:30px; box-shadow:0 20px 48px rgba(2,32,71,.08); max-width:560px; }
  .wz-thanks{ text-align:center; background:#fff; border:1px solid var(--line); border-radius:22px; padding:60px 30px; box-shadow:0 20px 48px rgba(2,32,71,.08); max-width:560px; }
  .wz-thanks .ic{ width:78px;height:78px;border-radius:50%; background:linear-gradient(145deg,#10b981,#5eead4);color:#fff; display:flex;align-items:center;justify-content:center; font-size:2.1rem; margin:0 auto 18px; box-shadow:0 16px 34px rgba(16,185,129,.35); }
  .wz-thanks h2{ font-size:1.8rem; font-weight:900; margin:0 0 8px; }
  .wz-thanks p{ color:var(--muted); margin:0 auto; max-width:440px; }
  .m-loading{ color:var(--muted); font-size:.95rem; padding:18px 0; display:flex; align-items:center; gap:10px; }

  /* ── Step 4 form bits not covered by buybox.css (same approach as buy.php) ── */
  .bx-grid-3{ display:grid; grid-template-columns:1fr 1fr 1fr; gap:10px; }
  .bx-grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
  @media (max-width:600px){ .bx-grid-3{ grid-template-columns:minmax(0,1fr); } .bx-grid-4{ grid-template-columns:1fr 1fr; } }

  /* offer-type check rows (cash offer / seller finance / subject-to) */
  .s4-check{ display:flex; align-items:flex-start; gap:11px; padding:12px 14px; border:1.5px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; margin-bottom:8px; transition:border-color .15s, background .15s; }
  .s4-check:hover{ border-color:var(--blue); }
  .s4-check input{ margin-top:3px; width:17px; height:17px; flex:0 0 auto; accent-color:var(--blue); cursor:pointer; }
  .s4-check b{ display:block; font-size:.92rem; color:#0f172a; line-height:1.3; }
  .s4-check small{ color:var(--muted); font-size:.8rem; line-height:1.4; }
  .s4-check.emph{ border-color:#fcd34d; background:#fffbeb; }
  .s4-check.emph:hover{ border-color:#f59e0b; }

  /* ── AUTO-FIT: scale the wizard to the viewport height ── */
  .wz-pick{ min-height:clamp(140px, 24vh, 230px); }
  .wz-main{ padding:clamp(8px,1.2vh,14px) 22px clamp(8px,1.4vh,16px); }
  .wz-aside{ padding:clamp(14px,2.2vh,26px) 32px; }
  .wz-rail{ margin-top:clamp(10px,2vh,20px); }
  .rail-step{ padding-bottom:clamp(10px,1.8vh,18px); }
  @media (max-height:850px){
    .wz-tag{ margin-top:10px; font-size:1.15rem; }
    .rail-step:not(:last-child)::before{ top:34px; }
    .rs-num{ width:32px;height:32px;flex:0 0 32px; font-size:13px; }
    .rail-step:not(:last-child)::before{ left:15px; }
    .rs-tx b{ font-size:.92rem; } .rs-tx span{ font-size:.76rem; }
    .wz-head{ margin-bottom:10px; }
    .wz-head h1,.wz-head h2{ font-size:clamp(1.3rem,2vw,1.6rem); }
    .wz-head p{ font-size:.9rem; }
    .wz-methods{ margin-top:12px; padding-top:10px; } .wz-methods-head{ margin-bottom:8px; }
    .wz-method-tag{ padding:5px 10px; font-size:.72rem; }
    .lp-auth{ padding:20px 20px 16px; }
    .lp-auth .auth-title{ font-size:1.35rem; }
    .lp-auth .logo-sub{ margin-bottom:12px; font-size:.9rem; }
    .lp-auth .form-group{ margin-bottom:11px; }
    .lp-auth .form-group label{ margin-bottom:5px; font-size:.86rem; }
    .lp-auth .form-group input{ padding:11px 13px; font-size:.98rem; }
    .lp-auth .btn-auth{ padding:12px; }
  }
  @media (max-height:720px){
    .wz-methods{ display:none; }
    .wz-tagsub{ display:none; }
    .wz-pick-sub{ display:none; }
    .lp-auth .auth-footer{ display:none; }
  }

  /* ── MOBILE ── */
  @media (max-width:880px){
    .wz-shell{ grid-template-columns:minmax(0,1fr); } /* v8: plain 1fr grew to the content min-width → sideways scroll on phones */
    .wz-aside{ position:static; height:auto; padding:18px 18px 20px; flex-direction:row; align-items:center; justify-content:space-between; }
    .wz-aside::after{ display:none; }
    .wz-tag,.wz-tagsub,.wz-rail{ display:none; }
    .wz-phone-top{ display:inline-flex; color:#cfe0ff; font-weight:800; text-decoration:none; font-size:.9rem; align-items:center; gap:6px; }
    .wz-main{ padding:22px 16px 48px; max-width:100%; justify-content:flex-start; }
    .wz-shell{ min-height:0; }
    .wz-mb{ display:block; margin-bottom:22px; }
    .wz-mb-top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
    .wz-mb-step{ font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--blue); }
    .wz-mb-lbl{ font-size:.92rem; font-weight:800; color:#0f172a; }
    .wz-mb-track{ height:7px; background:#e2e8f0; border-radius:99px; overflow:hidden; }
    .wz-mb-fill{ display:block; height:100%; width:25%; background:linear-gradient(90deg,var(--blue),#3b82f6); border-radius:99px; transition:width .3s; }
    .wz-choices{ grid-template-columns:minmax(0,1fr); gap:14px; }
    .wz-choices > .lp-auth{ order:-1; align-self:stretch; }
    .wz-pick{ min-height:230px; padding:22px; }
    .wz-pick.static{ min-height:170px; height:auto; }
    .wz-pick-title{ font-size:1.4rem; }
    .wz-pick-go{ width:44px; height:44px; }
    .wz-card{ padding:20px; border-radius:16px; }
    .wz-methods{ margin-top:30px; padding-top:24px; }
    .wz-methods-tags{ overflow-x:auto; -webkit-overflow-scrolling:touch; padding-bottom:4px; scrollbar-width:none; }
    .wz-methods-tags::-webkit-scrollbar{ display:none; }
    .wz-method-tag{ flex:0 0 auto; }
  }
  /* ── SMALL PHONES ── */
  @media (max-width:600px){
    .wz-main{ padding:14px 12px 36px; }
    .wz-head h1,.wz-head h2{ font-size:1.45rem; }
    .wz-head p{ font-size:.9rem; }
    .lp-auth{ padding:18px 16px 14px; }
    .lp-auth .fg2{ grid-template-columns:minmax(0,1fr); gap:0; }
    .lp-auth .form-group input{ font-size:16px; }   /* 16px stops iOS zoom-on-focus */
    .lp-auth .btn-auth{ padding:13px; font-size:1rem; }
    .wz-card .bx-input{ font-size:16px; }
    .wz-pick.static{ min-height:150px; }
    .wz-pick-title{ font-size:1.2rem; }
    .wz-pick-tag{ top:14px; left:14px; padding:5px 10px; }
    .wz-thanks{ padding:40px 20px; }
    .wz-card{ max-width:none; }
  }

  /* ── PATH CHOOSER (first screen) — three image blocks (same pattern as the
       buy page's .wz-pick cards) routing the visitor to the right funnel:
       get an offer (this funnel), free valuation, or self-list. ── */
  .wz-choices.wz-choices-3{ grid-template-columns:1fr 1fr 1fr; }
  @media (max-width:880px){ .wz-choices.wz-choices-3{ grid-template-columns:minmax(0,1fr); } }
  .wz-pick.p-offer{ background-image:url('pick-homestead.jpg'); --ac:#0a57d6; --tint:#0a57d6; --acs:rgba(10,87,214,.42); }
  .wz-pick.p-value{ background-image:url('pick-investor.jpg');  --ac:#047857; --tint:#047857; --acs:rgba(4,120,87,.40); }
  .wz-pick.p-list{  background-image:url('pick-listhome.jpg');  --ac:#6d28d9; --tint:#6d28d9; --acs:rgba(109,40,217,.42); }
  /* the action title sits big; the CTA pill makes it obvious the whole card is a click target */
  .wz-choices-3 .wz-pick-main{ padding-right:22px; }
  .wz-choices-3 .wz-pick-title{ font-size:clamp(1.5rem,2.2vw,1.9rem); }
  .wz-pick-cta{ display:inline-flex; align-items:center; gap:9px; align-self:flex-start; margin-top:14px; padding:11px 20px; border-radius:99px;
    background:#fff; color:#0b1220; font-size:.95rem; font-weight:800; letter-spacing:-.01em; box-shadow:0 8px 20px rgba(0,0,0,.28); transition:transform .25s, background .25s, color .25s; }
  .wz-pick:hover .wz-pick-cta{ background:var(--ac); color:#fff; }
  .wz-pick-cta i{ transition:transform .25s; }
  .wz-pick:hover .wz-pick-cta i{ transform:translateX(4px); }
  @media (max-height:720px){ .wz-pick-sub{ display:none; } }   /* keep title + CTA visible on short screens */
