*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,Arial,"Noto Sans Devanagari",sans-serif;background:#f8fafb;color:#111827;font-size:14px}.site-header{height:58px;background:#fff;border-bottom:1px solid #e5e7eb;position:sticky;top:0;z-index:20}.header-inner{max-width:1010px;height:100%;margin:0 auto;padding:0 8px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#111827;font-weight:700}.brand img{width:27px;height:27px;object-fit:contain}.nav{display:flex;align-items:center;gap:27px}.nav a{color:#374151;text-decoration:none;font-size:12px;white-space:nowrap}.nav a:hover{color:#e60000}.nav-cta{border:1px solid #e60000!important;color:#e60000!important;border-radius:8px;padding:8px 13px}.site-main{max-width:1010px;margin:0 auto;padding:6px 8px 0}.dashboard-layout{display:grid;grid-template-columns:220px minmax(430px,1fr) 215px;gap:18px;align-items:stretch;min-height:795px}.left-column,.right-column{display:flex;flex-direction:column;gap:14px}.side-card,.info-card{background:#fff;border:1px solid #e1e5ea;border-radius:11px;box-shadow:0 1px 3px rgba(17,24,39,.05)}.intro-card{padding:17px 15px}.intro-card h2{font-size:15px;margin:0 0 9px;line-height:1.35}.intro-card p{font-size:11px;line-height:1.55;color:#6b7280;margin:0 0 14px}.primary-cta{display:block;text-align:center;background:#ed0000;color:#fff;text-decoration:none;font-weight:700;border-radius:9px;padding:10px 8px;font-size:12px;margin-bottom:12px}.check-list{list-style:none;padding:0;margin:0}.check-list li{font-size:11px;color:#4b5563;margin:8px 0;position:relative;padding-left:18px}.check-list li:before{content:"✓";position:absolute;left:0;color:#ef0000;font-weight:800}.process-card{padding:17px 15px}.process-card h3{font-size:14px;margin:0 0 11px}.steps{list-style:none;margin:0;padding:0}.steps li{display:flex;align-items:center;gap:8px;font-size:11px;color:#4b5563;margin:9px 0}.steps span{width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#ffe0e0;color:#e60000;font-size:10px;font-weight:700;flex:0 0 19px}.privacy-note{margin-top:13px;background:#fff0f0;color:#e60000;border-radius:7px;padding:9px 8px;font-size:10px}.chat-panel{height:795px;background:#fff;border:1px solid #dfe4e9;border-radius:12px;box-shadow:0 1px 3px rgba(17,24,39,.05);display:flex;flex-direction:column;overflow:hidden}.chat-header{height:63px;border-bottom:1px solid #edf0f3;padding:9px 13px;display:flex;align-items:center;justify-content:space-between;gap:10px}.agent-head{display:flex;align-items:center;gap:8px}.avatar{width:39px;height:39px;border-radius:50%;object-fit:cover}.agent-head strong{display:block;font-size:13px}.agent-head small{display:block;color:#6b7280;font-size:10px;margin-top:2px}.online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#22c55e;margin-left:3px}.chat-badge{font-size:9px;color:#8b4b00;background:#fff7d8;border:1px solid #f2d77b;border-radius:6px;padding:6px 7px;white-space:nowrap}.minimum-note{margin:0 12px;padding:7px 10px;border-radius:9px;background:#fff9e8;border:1px solid #f0d47a;color:#6b4d00;font-size:9px;line-height:1.35}.minimum-note b{display:block;color:#8a5100;margin-bottom:2px}.messages{flex:1;overflow:auto;padding:12px 13px;display:flex;flex-direction:column;gap:10px;min-height:0}.agent-message-row{display:flex;align-items:flex-start;gap:7px;max-width:90%}.message-avatar{width:30px;height:30px;border-radius:50%;object-fit:cover;flex:0 0 30px}.msg{max-width:84%;padding:9px 11px;border-radius:14px;line-height:1.55;white-space:pre-line;font-size:11px;overflow-wrap:anywhere}.agent-msg{align-self:flex-start;background:#f1f2f4;border-top-left-radius:4px;color:#111827}.user-msg{align-self:flex-end;background:#111827;color:#fff;border-top-right-radius:4px}.typing{align-self:flex-start;background:#f1f2f4;border-radius:14px;padding:8px 11px;color:#6b7280}.typing span{display:inline-block;width:5px;height:5px;border-radius:50%;background:#9ca3af;margin:0 2px;animation:b 1s infinite}.typing span:nth-child(2){animation-delay:.15s}.typing span:nth-child(3){animation-delay:.3s}@keyframes b{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}.chat-form{display:flex;gap:8px;padding:9px 11px 11px;border-top:1px solid #edf0f3;background:#fff}.chat-form input{flex:1;min-width:0;border:1px solid #d6dbe1;border-radius:8px;padding:10px 11px;font-size:11px;outline:none}.chat-form input:focus{border-color:#999}.chat-form button{border:0;background:#e60000;color:#fff;border-radius:8px;padding:0 17px;font-size:11px;font-weight:700;cursor:pointer}.info-card{padding:14px 12px;min-height:100px}.info-icon{width:28px;height:28px;border-radius:8px;background:#fff1f1;color:#e60000;display:grid;place-items:center;font-size:17px;margin-bottom:8px}.info-card h3{font-size:12px;margin:0 0 4px}.info-card p{font-size:10px;line-height:1.45;color:#6b7280;margin:0}.site-footer{background:#fff;border-top:1px solid #e5e7eb;margin-top:0}.footer-inner{max-width:1010px;margin:0 auto;padding:26px 8px 20px;display:flex;justify-content:space-between;gap:60px}.footer-brand{max-width:430px}.footer-title{display:flex;align-items:center;gap:7px;font-size:12px}.footer-title img{width:22px;height:22px;object-fit:contain}.footer-brand p{font-size:10px;color:#6b7280;margin:8px 0 0;line-height:1.5}.footer-links{display:flex;gap:80px}.footer-links div{display:flex;flex-direction:column;gap:6px}.footer-links b{font-size:11px;margin-bottom:2px}.footer-links a{font-size:10px;color:#6b7280;text-decoration:none}.footer-links a:hover{color:#e60000}.footer-bottom{max-width:1010px;margin:0 auto;border-top:1px solid #edf0f3;padding:14px 8px 18px;color:#6b7280;font-size:9px;line-height:1.8}@media(max-width:900px){.dashboard-layout{grid-template-columns:190px minmax(0,1fr) 190px;gap:10px}.nav{gap:12px}.nav a{font-size:11px}.site-main,.header-inner,.footer-inner,.footer-bottom{padding-left:12px;padding-right:12px}}@media(max-width:720px){.site-header{height:auto;position:relative}.header-inner{padding:10px 14px;align-items:flex-start}.nav{gap:8px;flex-wrap:wrap;justify-content:flex-end}.nav a{font-size:10px}.dashboard-layout{grid-template-columns:1fr;min-height:auto}.chat-panel{height:650px;order:1}.left-column{order:2}.right-column{order:3}.footer-inner{flex-direction:column;gap:20px}.footer-links{gap:50px}.site-main{padding-top:10px}.intro-card,.process-card,.info-card{padding:15px}.chat-badge{display:none}}@media(max-width:460px){.nav a:not(.nav-cta){display:none}.header-inner{align-items:center}.chat-panel{height:620px}.msg{max-width:90%}.footer-links{gap:28px}}

/* iOS Safari: evita zoom automatico ao focar o campo (texto < 16px causa zoom e desloca a pagina) */
html,body{overflow-x:hidden;-webkit-text-size-adjust:100%}
@media(max-width:720px){
  .chat-form input{font-size:16px;padding:11px 12px}
  .chat-form button{font-size:13px}
}

/* ===== Modo chat em tela cheia (celular) ===== */
.chat-close{display:none}
@media(max-width:720px){
  /* Trava a pagina: nada rola por baixo e nada aparece atras do chat */
  html.chat-open,body.chat-open{background:#fff;overscroll-behavior:none}
  body.chat-open{position:fixed;left:0;right:0;top:0;width:100%;overflow:hidden}
  body.chat-open .site-header,
  body.chat-open .site-footer,
  body.chat-open .left-column,
  body.chat-open .right-column{display:none}
  body.chat-open .site-main{padding:0}
  body.chat-open .dashboard-layout{display:block;min-height:0}
  body.chat-open .chat-panel{
    position:fixed;left:0;right:0;top:0;
    width:100%;height:var(--vv-h,100dvh);
    z-index:100;border-radius:0;border:0;box-shadow:none;order:0;
    transform:translate3d(0,var(--vv-top,0px),0)
  }
  body.chat-open .minimum-note{display:none}
  body.chat-open .chat-close{
    display:grid;place-items:center;flex:0 0 auto;
    width:34px;height:34px;margin-right:2px;border:0;border-radius:50%;
    background:#f1f2f4;color:#111827;font-size:24px;line-height:1;padding:0 0 3px;cursor:pointer
  }
  body.chat-open .chat-header{justify-content:flex-start;gap:8px}
  body.chat-open .messages{padding:12px 12px 8px;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
  body.chat-open .chat-form{padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px))}
}

/* Enquanto o teclado anima, o chat fica invisivel e aparece suave quando estabiliza */
@media(max-width:720px){
  .chat-panel{transition:opacity .14s ease-out}
  html.chat-opening .chat-panel{opacity:0;transition:none}
}
html.chat-open{scroll-behavior:auto}
