/* Chat do site (/chat, 25/11/2026): a conversa com o robô com a cara do WhatsApp (claro e escuro). Sem estilo inline (CSP). */
:root {
  --wa-topo: #008069; --wa-topo-texto: #fff; --wa-fundo: #efeae2; --wa-padrao: rgba(0, 0, 0, .035);
  --wa-entrada: #fff; --wa-saida: #d9fdd3; --wa-texto: #111b21; --wa-suave: #667781; --wa-link: #027eb5;
  --wa-botao: #00a884; --wa-linha: rgba(11, 20, 26, .1); --wa-rodape: #f0f2f5; --wa-caixa: #fff; --wa-aviso: #ffeecd;
  --wa-aviso-texto: #54656f; --wa-sombra: 0 1px .5px rgba(11, 20, 26, .13); --wa-folha: #fff; --wa-erro: #c0392b;
  --wa-tique: #53bdeb; --wa-pagina: #d1d7db;
}
@media (prefers-color-scheme: dark) {
  :root {
    --wa-topo: #202c33; --wa-topo-texto: #e9edef; --wa-fundo: #0b141a; --wa-padrao: rgba(255, 255, 255, .025);
    --wa-entrada: #202c33; --wa-saida: #005c4b; --wa-texto: #e9edef; --wa-suave: #8696a0; --wa-link: #53bdeb;
    --wa-botao: #00a884; --wa-linha: rgba(233, 237, 239, .12); --wa-rodape: #202c33; --wa-caixa: #2a3942; --wa-aviso: #182229;
    --wa-aviso-texto: #ffd279; --wa-sombra: 0 1px .5px rgba(0, 0, 0, .3); --wa-folha: #111b21; --wa-pagina: #0c1317;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
.wa-corpo {
  background: var(--wa-pagina); color: var(--wa-texto); -webkit-text-size-adjust: 100%;
  font: 15.5px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.wa {
  display: flex; flex-direction: column; height: 100vh; height: 100dvh; max-width: 860px; margin: 0 auto;
  background: var(--wa-fundo); position: relative; overflow: hidden;
}
@media (min-width: 900px) {
  .wa { height: calc(100dvh - 38px); margin-top: 19px; border-radius: 4px; box-shadow: 0 6px 18px rgba(11, 20, 26, .18); }
}

/* topo */
.wa-topo {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 4px; min-height: 60px;
  background: var(--wa-topo); color: var(--wa-topo-texto); position: relative; z-index: 3;
  padding-top: max(8px, env(safe-area-inset-top));
}
.wa-voltar, .wa-menu-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: inherit;
  background: none; border: 0; cursor: pointer; flex: none;
}
.wa-voltar:hover, .wa-menu-btn:hover { background: rgba(255, 255, 255, .12); }
.wa-voltar svg, .wa-menu-btn svg { width: 24px; height: 24px; fill: currentColor; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #fff; flex: none; object-fit: cover; }
.wa-quem { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wa-quem strong { display: flex; align-items: center; gap: 4px; font-size: 16.5px; font-weight: 600; white-space: nowrap; }
.wa-quem span { font-size: 13px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-selo { width: 17px; height: 17px; fill: #25d366; flex: none; }
.wa-selo .wa-selo-v { fill: #fff; }
.wa-menu {
  position: absolute; right: 8px; top: calc(100% - 6px); min-width: 250px; padding: 6px 0; border-radius: 6px;
  background: var(--wa-folha); color: var(--wa-texto); box-shadow: 0 4px 16px rgba(11, 20, 26, .25); display: grid;
}
.wa-menu[hidden] { display: none; }
.wa-menu a, .wa-menu button {
  padding: 12px 20px; font: inherit; text-align: left; color: inherit; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.wa-menu a:hover, .wa-menu button:hover { background: var(--wa-rodape); }

/* conversa */
.wa-conversa {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 10px 4% 14px; display: flex; flex-direction: column; gap: 2px;
  background-color: var(--wa-fundo);
  background-image: radial-gradient(var(--wa-padrao) 1.4px, transparent 1.6px), radial-gradient(var(--wa-padrao) 1.4px, transparent 1.6px);
  background-size: 28px 28px; background-position: 0 0, 14px 14px;
}
.wa-dia {
  align-self: center; margin: 6px 0 8px; padding: 5px 12px; border-radius: 8px; font-size: 12.5px; color: var(--wa-suave);
  background: var(--wa-entrada); box-shadow: var(--wa-sombra);
}
.wa-aviso {
  align-self: center; max-width: 460px; margin: 0 0 10px; padding: 6px 12px; border-radius: 8px; text-align: center;
  font-size: 12.5px; color: var(--wa-aviso-texto); background: var(--wa-aviso); box-shadow: var(--wa-sombra);
}
.wa-msg { display: flex; flex-direction: column; max-width: min(78%, 520px); margin-top: 2px; }
.wa-msg.wa-novo-grupo { margin-top: 10px; }
.wa-msg.eu { align-self: flex-end; align-items: flex-end; }
.wa-msg.bot { align-self: flex-start; }
@media (max-width: 480px) { .wa-msg { max-width: 88%; } }
.wa-bolha {
  position: relative; padding: 6px 8px 8px 9px; border-radius: 8px; background: var(--wa-entrada); box-shadow: var(--wa-sombra);
  overflow-wrap: anywhere; min-width: 92px;
}
.wa-msg.eu .wa-bolha { background: var(--wa-saida); }
.wa-msg.wa-novo-grupo.bot .wa-bolha { border-top-left-radius: 0; }
.wa-msg.wa-novo-grupo.eu .wa-bolha { border-top-right-radius: 0; }
.wa-msg.wa-novo-grupo.bot .wa-bolha::before, .wa-msg.wa-novo-grupo.eu .wa-bolha::before {
  content: ""; position: absolute; top: 0; width: 8px; height: 13px;
}
.wa-msg.wa-novo-grupo.bot .wa-bolha::before { left: -8px; background: linear-gradient(225deg, var(--wa-entrada) 50%, transparent 50%); }
.wa-msg.wa-novo-grupo.eu .wa-bolha::before { right: -8px; background: linear-gradient(135deg, var(--wa-saida) 50%, transparent 50%); }
.wa-texto { white-space: pre-wrap; }
.wa-texto a { color: var(--wa-link); text-decoration: none; word-break: break-all; }
.wa-texto a:hover { text-decoration: underline; }
.wa-hora {
  float: right; margin: 6px 0 -4px 10px; font-size: 11px; color: var(--wa-suave); display: inline-flex; align-items: center; gap: 3px;
  position: relative; top: 3px;
}
.wa-tique { width: 16px; height: 11px; fill: var(--wa-suave); }
.wa-tique.lido { fill: var(--wa-tique); }
.wa-relogio { width: 12px; height: 12px; fill: none; stroke: var(--wa-suave); stroke-width: 2; }
.wa-msg.falhou .wa-hora { color: var(--wa-erro); }
.wa-reenviar { margin-top: 4px; font-size: 12.5px; color: var(--wa-erro); background: none; border: 0; cursor: pointer; padding: 2px 4px; }

/* imagem e arquivo */
.wa-img { display: block; margin: -2px -4px 4px; border-radius: 6px; overflow: hidden; background: var(--wa-rodape); }
.wa-img img { display: block; width: 100%; max-width: 330px; height: auto; min-height: 120px; object-fit: cover; }
.wa-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: -2px -4px 4px; border-radius: 6px; background: rgba(0, 0, 0, .05); }
.wa-doc-icone { width: 34px; height: 40px; border-radius: 4px; display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 700; background: #e2504c; flex: none; }
.wa-doc-nome { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }

/* botões das mensagens interativas (como os do WhatsApp) */
.wa-botoes { display: grid; gap: 2px; margin-top: 2px; width: 100%; }
.wa-botao {
  display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; padding: 8px 12px;
  border: 0; border-radius: 8px; background: var(--wa-entrada); box-shadow: var(--wa-sombra); color: var(--wa-link);
  font: inherit; font-weight: 500; cursor: pointer; text-decoration: none; text-align: center;
}
.wa-botao:hover { filter: brightness(.97); }
.wa-botao:active { transform: scale(.99); }
.wa-botao svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.wa-botao.escolhido { color: var(--wa-suave); }
.wa-botao[disabled] { cursor: default; opacity: .7; }

/* digitando… */
.wa-digitando .wa-bolha { min-width: 0; padding: 12px 14px; }
.wa-pontos { display: inline-flex; gap: 4px; }
.wa-pontos i { width: 7px; height: 7px; border-radius: 50%; background: var(--wa-suave); animation: wa-pulo 1.2s infinite; }
.wa-pontos i:nth-child(2) { animation-delay: .15s; }
.wa-pontos i:nth-child(3) { animation-delay: .3s; }
@keyframes wa-pulo { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .wa-pontos i { animation: none; } .wa-msg { animation: none !important; } }
.wa-msg { animation: wa-entra .18s ease-out; }
@keyframes wa-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* rodapé */
.wa-rodape {
  display: flex; align-items: flex-end; gap: 6px; padding: 6px 8px; background: transparent; position: relative; z-index: 2;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
@media (min-width: 900px) { .wa-rodape { background: var(--wa-rodape); padding: 8px 14px; } }
.wa-caixa {
  flex: 1; display: flex; align-items: flex-end; min-height: 48px; border-radius: 24px; background: var(--wa-caixa);
  box-shadow: var(--wa-sombra); padding: 0 6px 0 16px;
}
@media (min-width: 900px) { .wa-caixa { border-radius: 10px; box-shadow: none; } }
.wa-caixa textarea {
  flex: 1; resize: none; border: 0; outline: 0; background: none; color: var(--wa-texto); font: inherit; font-size: 16px;
  padding: 13px 0; max-height: 132px; min-height: 48px; line-height: 22px;
}
.wa-caixa textarea::placeholder { color: var(--wa-suave); }
.wa-anexo { display: grid; place-items: center; width: 42px; height: 48px; color: var(--wa-suave); cursor: pointer; flex: none; }
.wa-anexo svg { width: 24px; height: 24px; fill: currentColor; transform: rotate(45deg); }
.wa-anexo:hover { color: var(--wa-texto); }
.wa-enviar {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; flex: none;
  background: var(--wa-botao); color: #fff; box-shadow: var(--wa-sombra);
}
.wa-enviar svg { width: 22px; height: 22px; fill: currentColor; margin-left: 2px; }
.wa-enviar[disabled] { opacity: .6; cursor: default; }
:focus-visible { outline: 2px solid var(--wa-botao); outline-offset: 2px; }

/* folha da lista (vagas, escolaridade…) */
.wa-folha-fundo { position: absolute; inset: 0; z-index: 5; background: rgba(11, 20, 26, .45); display: flex; align-items: flex-end; justify-content: center; }
.wa-folha-fundo[hidden] { display: none; }
.wa-folha {
  width: 100%; max-width: 560px; max-height: 82%; display: flex; flex-direction: column; border-radius: 14px 14px 0 0;
  background: var(--wa-folha); color: var(--wa-texto); animation: wa-sobe .2s ease-out; padding-bottom: env(safe-area-inset-bottom);
}
@keyframes wa-sobe { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.wa-folha header { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--wa-linha); }
.wa-folha h2 { margin: 0; font-size: 17px; font-weight: 600; flex: 1; text-align: center; padding-right: 36px; }
.wa-folha-fechar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--wa-suave); font-size: 20px; cursor: pointer; }
.wa-folha ul { list-style: none; margin: 0; padding: 4px 0; overflow-y: auto; }
.wa-folha li button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 18px; border: 0; background: none; color: inherit;
  font: inherit; text-align: left; cursor: pointer; border-bottom: 1px solid var(--wa-linha);
}
.wa-folha li button:hover { background: var(--wa-rodape); }
.wa-folha li .wa-op-texto { flex: 1; min-width: 0; }
.wa-folha li strong { display: block; font-weight: 500; }
.wa-folha li small { display: block; color: var(--wa-suave); font-size: 13.5px; margin-top: 2px; }
.wa-radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--wa-suave); flex: none; }
.wa-folha li button[aria-pressed="true"] .wa-radio { border: 6px solid var(--wa-botao); }
.wa-folha-enviar {
  margin: 10px 16px 14px; min-height: 46px; border: 0; border-radius: 24px; background: var(--wa-botao); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.wa-folha-enviar[disabled] { opacity: .5; cursor: default; }

/* etapas dentro do chat (candidatura, perfil, Aria): painel em tela cheia sobre a conversa */
.wa-etapa { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; background: var(--wa-fundo); animation: wa-sobe .2s ease-out; }
.wa-etapa[hidden] { display: none; }
.wa-etapa-quadro { flex: 1; width: 100%; border: 0; background: #fff; }

/* foto da Aria no perfil da conversa (retrato 3:4: o rosto fica no terço de cima) */
.wa-avatar-aria { object-position: 50% 18%; background: #dfe5e7; }

/* aviso de cookies (só quando há pixel e a pessoa ainda não escolheu) */
.wa-cookies { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 12px; background: var(--wa-aviso); color: var(--wa-aviso-texto); font-size: 13px; position: relative; z-index: 2; }
.wa-cookies p { margin: 0; flex: 1; min-width: 12rem; }
.wa-cookies a { color: inherit; text-decoration: underline; }
.wa-cookies div { display: flex; gap: 8px; }
.wa-cookies button { border: 0; border-radius: 16px; padding: 6px 14px; font: inherit; font-weight: 600; cursor: pointer; background: transparent; color: inherit; }
.wa-cookies button[data-c="aceito"] { background: var(--wa-botao); color: #fff; }

/* a entrevista com a Aria ocupa o painel inteiro (a própria página faz a cara de chamada de vídeo) */
.wa-etapa-chamada > .wa-topo { display: none; }
.wa-etapa-chamada { background: #0b141a; }
.wa-etapa-chamada .wa-etapa-quadro { background: #0b141a; }

/* 26/11 — áudio: microfone (campo vazio), barra de gravação e bolha com a transcrição */
.wa-enviar[hidden], .wa-caixa textarea[hidden], .wa-anexo[hidden], .wa-gravando[hidden], .wa-transcricao[hidden] { display: none; }
.wa-mic svg { margin-left: 0; }
.wa-gravando { flex: 1; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .25rem; font-size: 1rem; }
.wa-lixo { border: 0; background: none; padding: .35rem; cursor: pointer; color: #8696a0; display: grid; place-items: center; }
.wa-lixo svg { width: 22px; height: 22px; fill: currentColor; }
.wa-ponto { width: 10px; height: 10px; border-radius: 9999px; background: #ea0038; animation: wa-pisca 1s ease-in-out infinite; }
.wa-tempo-audio { font-variant-numeric: tabular-nums; font-weight: 600; }
.wa-gravando-dica { color: #8696a0; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@keyframes wa-pisca { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .wa-ponto { animation: none; } }
.wa-audio { display: flex; align-items: center; gap: .55rem; min-width: 12.5rem; padding: .15rem 0; }
.wa-audio-icone { width: 34px; height: 34px; border-radius: 9999px; background: #00a884; display: grid; place-items: center; flex: none; }
.wa-audio-icone svg { width: 20px; height: 20px; fill: #fff; }
.wa-audio-onda { flex: 1; display: flex; align-items: center; gap: 2px; height: 26px; }
.wa-audio-onda i { flex: 1; min-width: 2px; border-radius: 2px; background: #6b8f7d; height: 30%; }
.wa-audio-onda i:nth-child(3n) { height: 70%; } .wa-audio-onda i:nth-child(4n+1) { height: 50%; } .wa-audio-onda i:nth-child(5n+2) { height: 90%; }
.wa-audio-tempo { font-size: .8rem; color: #667781; font-variant-numeric: tabular-nums; }
.wa-transcricao { margin-top: .3rem; font-size: .86rem; font-style: italic; color: #54656f; line-height: 1.3; }
.wa-audio-player { display: block; width: min(16rem, 62vw); height: 40px; }
.wa-audio-baixar { display: block; margin-top: .25rem; font-size: .85rem; color: #027eb5; }
.wa-audio-baixar[hidden] { display: none; }

/* câmera (foto da CNH): ao lado do clipe, sem a rotação do clipe */
.wa-camera svg { transform: none; }
.wa-camera { width: 36px; }
