/* Habite-se DF | Assistente guiado de documentos v3
 * Desktop isolado: preserva a experiência mobile estável.
 */
.doc-wizard-section{display:none}
@media(min-width:980px){
 body.doc-guide-v2 .doc-interactive{display:none!important}
 body.doc-guide-v2 .doc-wizard-section{display:block}
 body.doc-guide-v2 .doc-article-v2 #doc-seu-imovel{display:none}
 .doc-wizard-section{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(155deg,#f3f9f5 0%,#f8faf7 40%,#f4f7fc 100%);padding:clamp(54px,5.6vw,86px) 0;border-bottom:1px solid #dbe7df;scroll-margin-top:92px}
 .doc-wizard-section:before{content:"";position:absolute;inset:-15% -20% auto auto;width:58%;height:70%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse,#dceee6a8 0,transparent 73%)}
 .doc-wizard-section *{box-sizing:border-box}
 .doc-wizard-intro{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(250px,.7fr);align-items:end;gap:35px;margin-bottom:27px}
 .doc-wizard-kicker{display:inline-flex;gap:9px;align-items:center;color:#276e4b;font-size:.69rem;letter-spacing:.13em;text-transform:uppercase;font-weight:850;margin:0 0 11px}
 .doc-wizard-kicker:before{content:"";width:8px;height:8px;border-radius:50%;background:#208153;box-shadow:0 0 0 5px #1988541c}
 .doc-wizard-intro h2{margin:0!important;font-size:clamp(1.9rem,3.1vw,2.75rem)!important;line-height:1.12!important;letter-spacing:-.044em;color:#193d34;font-weight:790;max-width:22ch;text-wrap:balance}
 .doc-wizard-intro p{margin:0;color:#587165;font-size:.95rem;line-height:1.57}
 .doc-wizard-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}
 .doc-wizard-case{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:0;text-align:left;font:inherit;border:1px solid #cddfd5;background:linear-gradient(150deg,#ffffff,#f5f9f8);border-radius:24px;overflow:hidden;min-height:315px;padding:0;box-shadow:0 10px 36px #16492b0c;cursor:pointer;transition:transform .24s,box-shadow .24s,border-color .24s}
 .doc-wizard-case[data-wizard-choice="apartment"]{border-color:#d8e2eb;background:linear-gradient(150deg,#fcfeff,#ecf3fb)}
 .doc-wizard-case[data-wizard-choice="house"]{border-color:#d4e7d9;background:linear-gradient(150deg,#fcfffc,#ebf7ee)}
 .doc-wizard-case[data-wizard-choice="missing"]{border-color:#e9d9c9;background:linear-gradient(150deg,#fffdfb,#fff1e7)}
 .doc-wizard-case:hover{transform:translateY(-5px);box-shadow:0 19px 40px #16492b18}
 .doc-wizard-case:focus-visible,.doc-wizard-case[aria-pressed=true]{outline:3px solid #3b8b63;outline-offset:3px}
 .doc-wizard-illustration{height:139px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#ccdae681,transparent 72%)}
 .doc-wizard-case[data-wizard-choice="house"] .doc-wizard-illustration{background:radial-gradient(ellipse at 50% 100%,#c9e7d88a,transparent 72%)}
 .doc-wizard-case[data-wizard-choice="missing"] .doc-wizard-illustration{background:radial-gradient(ellipse at 50% 100%,#f2d8bd94,transparent 72%)}
 .doc-wizard-illustration svg{display:block;width:min(175px,72%);height:118px;overflow:visible;filter:drop-shadow(0 12px 13px #173c2a19);transition:transform .4s}
 .doc-wizard-case:hover .doc-wizard-illustration svg{transform:translateY(-5px) rotate(-1deg)}
 .doc-case-content{padding:18px 21px 22px;flex:1;display:flex;flex-direction:column;gap:6px}
 .doc-case-label{display:inline-flex;align-self:flex-start;font-size:.65rem;font-weight:820;color:#4a7762;letter-spacing:.07em;text-transform:uppercase;margin-bottom:2px}
 .doc-wizard-case[data-wizard-choice="apartment"] .doc-case-label{color:#477291}
 .doc-wizard-case[data-wizard-choice="missing"] .doc-case-label{color:#985f42}
 .doc-case-content strong{font-size:1.15rem;letter-spacing:-.02em;color:#1b3d33;line-height:1.25}
 .doc-case-content p{font-size:.81rem;line-height:1.52;color:#5d7368;margin:0}
 .doc-case-open{display:flex;align-items:center;justify-content:space-between;color:#1b7149;font-size:.8rem;font-weight:850;margin-top:auto;padding-top:10px}
 .doc-case-open svg{width:18px;height:18px;stroke:currentColor;stroke-width:2;fill:none;transition:transform .2s}
 .doc-wizard-case:hover .doc-case-open svg{transform:translateX(4px)}
 .doc-wizard-disclaimer{display:flex;align-items:center;gap:8px;margin:0 0 22px;color:#62766b;font-size:.75rem;line-height:1.4}
 .doc-wizard-disclaimer svg{width:17px;height:17px;stroke:#6b8d79;fill:none;flex:none}
 .doc-wizard-main{background:#fff;border:1px solid #dae5dd;border-radius:28px;box-shadow:0 20px 60px #1f4d3111;overflow:hidden}
 .doc-wizard-top{display:flex;align-items:center;justify-content:space-between;gap:22px;border-bottom:1px solid #e3ece5;padding:20px 27px;background:#f9fcf9}
 .doc-wizard-top strong{font-size:.85rem;color:#2a5e41;letter-spacing:.015em}
 .doc-wizard-top span{font-size:.76rem;color:#6b7c72}
 .doc-wizard-progress{height:5px;background:#e3ece5}
 .doc-wizard-progress>span{display:block;height:100%;width:20%;border-radius:0 7px 7px 0;background:linear-gradient(90deg,#16814e,#58b97b);transition:width .35s ease}
 .doc-wizard-body{padding:clamp(22px,3vw,38px)}
 .doc-quiz-step[hidden],.doc-wizard-section [hidden]{display:none!important}
 .doc-quiz-step{animation:doc-wizard-enter .3s ease both}
 .doc-quiz-heading{margin-bottom:22px}
 .doc-quiz-heading>span{display:block;font-weight:820;letter-spacing:.11em;font-size:.67rem;color:#498364;text-transform:uppercase;margin-bottom:9px}
 .doc-quiz-heading h3{font-size:clamp(1.35rem,2.3vw,2rem);color:#1f4536;line-height:1.22;font-weight:790;letter-spacing:-.025em;margin:0 0 9px;max-width:38ch}
 .doc-quiz-heading p{font-size:.84rem;line-height:1.6;color:#63776b;margin:0;max-width:72ch}
 .doc-choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0}
 .doc-choice-grid[data-choices-for]{display:grid}
 .doc-choice-grid[data-choices-for][hidden]{display:none!important}
 .doc-choice{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:78px;text-align:left;border:1px solid #dce8de;border-radius:17px;padding:18px;background:#fbfefb;color:#274c39;font:inherit;cursor:pointer;transition:background .2s,border .2s,transform .2s}
 .doc-choice:hover{border-color:#90bfa4;background:#f0f8f1;transform:translateY(-2px)}
 .doc-choice:focus-visible,.doc-choice[aria-pressed=true]{outline:3px solid #83b89a;outline-offset:2px}
 .doc-choice strong{display:block;font-size:.9rem;line-height:1.3;font-weight:770}
 .doc-choice small{display:block;margin-top:4px;font-size:.75rem;color:#687d70;line-height:1.4}
 .doc-choice svg{width:19px;height:19px;flex:none;stroke:#438463;fill:none;stroke-width:2}
 .doc-choice[aria-pressed=true]{border-color:#378a61;background:#e8f5eb}
 .doc-quiz-document-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .doc-quiz-doc{display:flex;align-items:flex-start;gap:11px;padding:15px 13px;border:1px solid #e2e9e3;border-radius:16px;background:#fff;cursor:pointer;min-height:99px;transition:background .18s,border .18s}
 .doc-quiz-doc:hover{border-color:#96bda4;background:#f8fbf9}
 .doc-quiz-doc:has(input:checked){border-color:#4f9b6d;background:#eaf6ed}
 .doc-quiz-doc:focus-within{outline:3px solid #86bca0;outline-offset:2px}
 .doc-quiz-doc input{appearance:none;flex:none;width:22px;height:22px;margin:1px 0 0;background:#fff;border:1.7px solid #8eab99;border-radius:7px;cursor:pointer}
 .doc-quiz-doc input:checked{background:#16814e;border-color:#16814e}
 .doc-quiz-doc input:checked:after{content:"";display:block;width:10px;height:6px;border-left:2px solid #fff;border-bottom:2px solid #fff;transform:rotate(-45deg);margin:5px 0 0 4px}
 .doc-quiz-doc strong{display:block;font-size:.8rem;color:#2c493c;line-height:1.32}
 .doc-quiz-doc small{display:block;font-size:.7rem;color:#65796c;line-height:1.42;margin-top:5px}
 .doc-quiz-foot{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-top:25px;padding-top:20px;border-top:1px solid #e9eeea}
 .doc-quiz-foot p{margin:0;font-size:.73rem;color:#66776d;line-height:1.4}
 .doc-quiz-actions{display:flex;align-items:center;gap:10px;margin-left:auto}
 .doc-quiz-back,.doc-quiz-next,.doc-quiz-reset{border-radius:13px;font:inherit;font-size:.83rem;font-weight:750;min-height:45px;padding:11px 20px;border:1px solid #d2dfd5;cursor:pointer}
 .doc-quiz-back,.doc-quiz-reset{background:#fff;color:#3a604b}
 .doc-quiz-back:hover,.doc-quiz-reset:hover{background:#f1f6f1}
 .doc-quiz-next{background:#167b4a;border-color:#137043;color:#fff;box-shadow:0 8px 18px #0f6d3b1d}
 .doc-quiz-next:hover{background:#10673e}
 .doc-quiz-back:focus-visible,.doc-quiz-next:focus-visible,.doc-quiz-reset:focus-visible{outline:3px solid #79b795;outline-offset:2px}
 .doc-quiz-result-head{display:flex;align-items:flex-start;gap:17px;margin-bottom:19px}
 .doc-quiz-result-icon{flex:0 0 54px;display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#e5f4e7;color:#16814e}
 .doc-quiz-result-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.7}
 .doc-quiz-result-label{display:block;text-transform:uppercase;letter-spacing:.1em;font-size:.69rem;font-weight:820;color:#3c8060;margin-bottom:8px}
 .doc-quiz-result-head h3{font-size:clamp(1.42rem,2.3vw,1.9rem);letter-spacing:-.03em;line-height:1.21;margin:0 0 7px;color:#204634}
 .doc-quiz-result-head p{color:#63786b;font-size:.87rem;line-height:1.54;margin:0}
 .doc-quiz-result-columns{display:grid;grid-template-columns:1.22fr .78fr;gap:15px}
 .doc-quiz-result-card{background:#f7faf7;border:1px solid #dce8df;border-radius:19px;padding:22px}
 .doc-quiz-result-card:nth-child(2){background:#fbf8f2;border-color:#eee1d0}
 .doc-quiz-result-card h4{font-size:.92rem;line-height:1.3;color:#294f3e;margin:0 0 12px;font-weight:800}
 .doc-quiz-result-list{list-style:none;display:grid;gap:11px;margin:0;padding:0}
 .doc-quiz-result-list li{position:relative;padding:0 0 0 23px;font-size:.81rem;line-height:1.48;color:#4c6758}
 .doc-quiz-result-list li:before{content:"";position:absolute;left:0;top:5px;width:13px;height:13px;border:1.5px solid #319263;border-radius:50%;background:radial-gradient(circle,#319263 0 2px,transparent 3px)}
 .doc-quiz-law{display:flex;gap:9px;align-items:flex-start;margin-top:15px;padding:15px 17px;background:#f5f9fc;border:1px solid #dae6ee;border-radius:14px;color:#4a6777;font-size:.77rem;line-height:1.55}
 .doc-quiz-law svg{width:17px;height:17px;flex:none;stroke:#477f98;fill:none;stroke-width:1.7;margin-top:2px}
 .doc-quiz-law a{color:#186a87;text-underline-offset:3px;font-weight:760}
 .doc-quiz-result-cta{display:flex;gap:21px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin-top:16px;padding:19px;border:1px solid #bee0c9;background:#ebf7ee;border-radius:19px}
 .doc-quiz-result-cta strong{display:block;font-size:.9rem;color:#22513a;margin-bottom:5px}
 .doc-quiz-result-cta p{margin:0;font-size:.75rem;line-height:1.45;color:#607567;max-width:41ch}
 .doc-quiz-wa{display:inline-flex;align-items:center;gap:9px;padding:13px 18px;min-height:48px;white-space:nowrap;text-decoration:none!important;background:#137d49;border:1px solid #0d673b;border-radius:14px;box-shadow:0 7px 16px #146e4330;color:#fff!important;font-size:.82rem;font-weight:790;transition:transform .2s,background .2s}
 .doc-quiz-wa svg{width:18px;height:18px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8}
 .doc-quiz-wa:hover{background:#0b653a;transform:translateY(-2px)}
 .doc-quiz-wa:focus-visible{outline:3px solid #74b990;outline-offset:3px}
 .doc-quiz-stories{margin-top:27px}
 .doc-quiz-stories>p{color:#567163;font-size:.85rem;line-height:1.5;margin:0 0 14px}
 .doc-quiz-stories h3{font-size:1.16rem;margin:0 0 7px;color:#214a37}
 .doc-quiz-story-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
 .doc-quiz-story{padding:20px;background:#ffffffb8;border:1px solid #e2e9e4;border-radius:19px}
 .doc-quiz-story>span{display:block;font-size:.64rem;font-weight:810;letter-spacing:.07em;text-transform:uppercase;color:#71877a;margin-bottom:8px}
 .doc-quiz-story strong{display:block;font-size:.91rem;line-height:1.34;color:#264c3a;margin-bottom:8px}
 .doc-quiz-story p{font-size:.79rem;line-height:1.6;color:#5a6e62;margin:0 0 13px}
 .doc-quiz-story a{font-size:.75rem;font-weight:770;color:#28734e;text-underline-offset:3px}
 .doc-quiz-source-note{font-size:.7rem!important;color:#77857a!important;line-height:1.47!important;margin:12px 0 0!important}
}
@keyframes doc-wizard-enter{from{transform:translateY(12px);opacity:.3}to{transform:translateY(0);opacity:1}}
@media(min-width:980px) and (max-width:1110px){
 .doc-wizard-case{min-height:334px}
 .doc-case-content{padding:16px}
 .doc-quiz-document-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:979px){
 body.doc-guide-v2 .doc-wizard-section{display:none!important}
}
@media(prefers-reduced-motion:reduce){
 .doc-wizard-section *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
@media print{
 .doc-wizard-section{display:block!important;background:white!important}
 .doc-wizard-case,.doc-wizard-main{box-shadow:none!important}
 .doc-quiz-stories{display:none}
}



/* Convite contextual após resultado; discreto e dispensável.
 * Deliberadamente fora da área mobile, cuja interface estável permanece intacta. */
@media(min-width:980px){
  body.doc-guide-v2 .doc-quiz-popup{
    position:fixed;
    z-index:1100;
    right:clamp(18px,3.5vw,48px);
    bottom:clamp(18px,3vw,35px);
    width:min(420px,calc(100vw - 42px));
    padding:25px 24px 19px;
    border:1px solid rgba(127,174,148,.55);
    border-radius:24px;
    background:linear-gradient(146deg,rgba(252,255,252,.98),rgba(237,247,240,.98));
    box-shadow:0 20px 65px #123f2c33,0 2px 0 #fff9 inset;
    -webkit-backdrop-filter:blur(14px);
    backdrop-filter:blur(14px);
    color:#234938;
    opacity:0;
    transform:translate3d(0,22px,0) scale(.985);
    pointer-events:none;
    transition:opacity .32s ease,transform .4s cubic-bezier(.2,.78,.25,1);
    isolation:isolate;
  }
  body.doc-guide-v2 .doc-quiz-popup[hidden]{display:none!important}
  body.doc-guide-v2 .doc-quiz-popup.is-visible{opacity:1;transform:translate3d(0,0,0) scale(1);pointer-events:auto}
  .doc-quiz-popup:before{
    content:"";position:absolute;z-index:-1;inset:0;border-radius:inherit;
    background:radial-gradient(circle at 90% 0%,#ccebd444,transparent 55%);
    pointer-events:none;
  }
  .doc-quiz-popup-close{
    position:absolute;top:13px;right:13px;display:grid;place-items:center;
    border:1px solid #d5e5da;border-radius:50%;width:33px;height:33px;
    background:#ffffffb8;color:#48705b;cursor:pointer;transition:background .18s,transform .18s
  }
  .doc-quiz-popup-close svg{width:15px;height:15px}
  .doc-quiz-popup-close:hover{background:#dceee2;transform:rotate(90deg)}
  .doc-quiz-popup-kicker{display:flex;align-items:center;gap:8px;margin:0 27px 12px 0;font-size:.69rem;font-weight:800;text-transform:uppercase;letter-spacing:.105em;color:#278454}
  .doc-quiz-popup-kicker span{width:8px;height:8px;flex:none;border-radius:50%;background:#27945d;box-shadow:0 0 0 5px #3aa46d1a}
  body.doc-guide-v2 .doc-quiz-popup h3{max-width:21ch;margin:0 18px 11px 0;font-weight:810;font-size:clamp(1.18rem,1.6vw,1.42rem);letter-spacing:-.033em;line-height:1.22;color:#1a5133}

  /* Hierarquia de atenção: verbo de urgência, mensagem central e assunto em destaque. */
  body.doc-guide-v2 .doc-quiz-popup h3 .doc-quiz-popup-stop{
    color:#b32331;
    font-weight:900;
    letter-spacing:-.035em;
    text-shadow:0 1px 0 #fff8;
  }
  body.doc-guide-v2 .doc-quiz-popup h3 .doc-quiz-popup-document{
    color:#ae4e0d;
    font-weight:900;
    text-transform:uppercase;
    letter-spacing:-.023em;
    text-decoration:underline;
    text-decoration-color:#f2ad6e;
    text-decoration-thickness:2px;
    text-underline-offset:4px;
    text-decoration-skip-ink:auto;
  }

  body.doc-guide-v2 .doc-quiz-popup p{max-width:unset;margin:0 0 15px;font-size:.81rem;line-height:1.55;color:#52715d}
  .doc-quiz-popup-whatsapp{
    position:relative;display:flex;align-items:center;justify-content:center;gap:10px;
    min-height:52px;width:100%;padding:13px 15px;border:1px solid #08683e;border-radius:14px;
    background:linear-gradient(140deg,#11934f,#0c7d42);box-shadow:0 10px 22px #146c3d2e;
    text-align:center;color:#fff!important;font-size:.88rem;font-weight:800;text-decoration:none!important;
    transform-origin:center;animation:doc-popup-nudge 1.55s ease-in-out 2 1.15s;
    transition:background .2s,box-shadow .2s,transform .2s
  }
  .doc-quiz-popup-whatsapp svg{width:20px;height:20px;flex:none}
  .doc-quiz-popup-whatsapp:hover{background:#075f38;transform:translateY(-2px);box-shadow:0 13px 24px #146c3d49}
  .doc-quiz-popup-whatsapp:focus-visible,.doc-quiz-popup-close:focus-visible,.doc-quiz-popup-later:focus-visible{
    outline:3px solid #4d9973;outline-offset:3px
  }
  .doc-quiz-popup-later{display:block;margin:13px auto 0;padding:8px 9px;border:0;background:transparent;color:#446b54;font-family:inherit;font-size:.76rem;font-weight:680;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
  .doc-quiz-popup-later:hover{color:#105d36}
  body.doc-guide-v2 .doc-quiz-popup .doc-quiz-popup-note{margin:10px 0 0;text-align:center;color:#698071;font-size:.66rem;line-height:1.4}
}
@keyframes doc-popup-nudge{
  0%,100%{transform:translateY(0)}
  19%{transform:translateY(-6px)}
  36%{transform:translateY(0)}
  48%{transform:translateY(-3px)}
  61%{transform:translateY(0)}
}
@media(max-width:979px){
  body.doc-guide-v2 .doc-quiz-popup{display:none!important}
}
@media(prefers-reduced-motion:reduce){
  body.doc-guide-v2 .doc-quiz-popup,body.doc-guide-v2 .doc-quiz-popup *{
    animation:none!important;transition:none!important;transform:none!important
  }
}
@media print{body.doc-guide-v2 .doc-quiz-popup{display:none!important}}
