/* Central de atendimento (suporte.html). As cores vêm do estilo.css; aqui ficam só as da página. */
:root {
  --zap: #25d366; --zap-texto: #25d366; --zap-fundo: rgba(37,211,102,.14);
  --amarelo: #fbbf24; --amarelo-fundo: rgba(251,191,36,.12); --amarelo-borda: rgba(251,191,36,.4);
  --no-erro: #1a0606;
}
:root[data-tema="claro"] {
  --zap-texto: #11733b; --zap-fundo: rgba(22,163,74,.12);
  --amarelo: #92400e; --amarelo-fundo: rgba(217,119,6,.12); --amarelo-borda: rgba(217,119,6,.4);
  --no-erro: #fff;
}

.suporte { max-width: 1120px; margin: 0 auto; padding: 44px clamp(16px, 4vw, 40px) 72px; display: grid; gap: 60px; }
.suporte .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* só o leitor de tela lê */
.suporte h2, .suporte h3 { overflow-wrap: anywhere; }
.suporte h3:focus { outline: none; } /* o título recebe o foco só para o leitor de tela anunciar a parte nova */
.suporte .explica { margin: 0 0 20px; color: var(--texto-2); font-size: 15px; line-height: 1.5; }
.suporte a:focus-visible, .suporte button:focus-visible, .mensagens:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; }

/* ---------- no alto: título e contatos ---------- */
.sup-frase h1 { margin: 0 0 12px; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.08; font-weight: 800; letter-spacing: -.02em; animation: aparecer .9s ease both; }
.sup-frase h1 .destaque { background: var(--destaque); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: brilho-texto 6s linear infinite; }
.sup-frase p { margin: 0; color: var(--texto-2); font-size: 17px; line-height: 1.5; animation: aparecer .9s .1s ease both; }

/* 4 cartões lado a lado no computador, 2 por linha no tablet e 1 no celular (sem sobrar um sozinho) */
.contatos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
@media (min-width: 1000px) { .contatos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contato { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g); transition: border-color .2s, transform .2s, box-shadow .2s; }
.contato:hover { border-color: var(--azul); transform: translateY(-3px); box-shadow: 0 14px 30px var(--sombra); }
.contato.zap:hover { border-color: var(--zap); }
.contato-icone { flex: none; width: 48px; height: 48px; margin-bottom: 8px; display: grid; place-items: center; border-radius: var(--raio); background: var(--faixa-cheia); color: var(--azul); }
.contato.zap .contato-icone { background: var(--zap-fundo); color: var(--zap-texto); }
.contato-nome { font-size: 17px; font-weight: 800; }
.contato-valor { color: var(--texto-2); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.contato-dica { margin-top: auto; padding-top: 6px; color: var(--azul); font-size: 13px; font-weight: 700; }
.contato-selo { align-self: flex-start; margin-top: auto; padding: 4px 11px; border-radius: 999px; background: var(--zap-fundo); color: var(--zap-texto); font-size: 12px; font-weight: 800; }

@media (max-width: 520px) {
  /* no celular cada cartão fica baixinho: o ícone à esquerda e o texto ao lado */
  .contatos { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .contato { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; column-gap: 14px; row-gap: 3px; padding: 16px; }
  .contato-icone { grid-row: span 3; width: 44px; height: 44px; margin: 0; }
  .contato > span:not(.contato-icone) { grid-column: 2; }
  .contato-selo { justify-self: start; margin-top: 4px; }
  .contato-dica { padding-top: 2px; }
}

.horario { display: flex; gap: 16px; align-items: flex-start; margin-top: 14px; padding: 20px 22px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-g); }
.horario .contato-icone { margin: 0; }
.horario h2 { margin: 2px 0 6px; font-size: 17px; }
.horario ul { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 0; padding: 0; list-style: none; color: var(--texto-2); font-size: 15px; }
.horario b { color: var(--texto); }
.horario p { margin: 6px 0 0; color: var(--texto-3); font-size: 13px; }

/* ---------- dúvidas frequentes ---------- */
.duvidas h2, .chamados h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 32px); font-weight: 800; }
.duvidas-lista { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.duvidas-lista a { display: flex; align-items: center; gap: 10px; height: 100%; padding: 14px 18px; border: 1.5px solid var(--borda-2); border-radius: 999px; font-size: 14px; font-weight: 700; transition: border-color .2s, color .2s, transform .2s; }
.duvidas-lista a::after { content: "↗"; margin-left: auto; color: var(--azul); }
.duvidas-lista a:hover { border-color: var(--azul); color: var(--azul); transform: translateY(-2px); }

/* ---------- meus chamados ---------- */
.cartao-chamados { padding: 26px; background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio-gg); box-shadow: 0 24px 60px var(--sombra); }
.suporte .girando { flex: none; display: inline-block; width: 18px; height: 18px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: girar .7s linear infinite; }
.vista { animation: painel-entra .35s cubic-bezier(.2,.7,.2,1); }
.vista.carregando { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 36px 0; color: var(--texto-2); }
.vista-vazia { display: grid; justify-items: center; gap: 14px; padding: 16px 0 6px; text-align: center; }
.vazio-icone { font-size: 40px; line-height: 1; }
.vista-vazia p { max-width: 440px; margin: 0; color: var(--texto-2); line-height: 1.5; }

/* botões menores (o .botao-enviar do estilo.css ocupa a largura toda) */
.suporte .botao-enviar.curto { width: auto; height: 46px; padding: 0 24px; font-size: 14px; }
.suporte .botao-enviar.zap { background: var(--zap); color: #04121f; }
.suporte .botao-enviar.zap:hover { background: #1ebe5b; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.suporte .botao-enviar.perigo { background: var(--erro); color: var(--no-erro); }
.suporte .botao-enviar.perigo:hover { filter: brightness(1.08); box-shadow: 0 10px 24px rgba(239,68,68,.25); }

.vista-topo { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.vista h3 { margin: 0; font-size: 19px; }
.lista-chamados { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chamado { width: 100%; display: grid; gap: 10px; padding: 16px 18px; border: 1.5px solid var(--borda); border-radius: var(--raio-g); background: var(--fundo); color: inherit; font: inherit; text-align: left; cursor: pointer; transition: border-color .2s, transform .2s; }
.chamado:hover { border-color: var(--azul); transform: translateY(-2px); }
.chamado-assunto { font-size: 15px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.chamado-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--texto-3); font-size: 13px; }
.chamado-data { margin-left: auto; }
.lista-vazia { margin: 0; padding: 22px 0 6px; color: var(--texto-2); text-align: center; line-height: 1.5; }

/* status: Aberto (esperando a equipe), Respondido (a equipe respondeu) e Fechado */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.aberto { color: var(--amarelo); background: var(--amarelo-fundo); border-color: var(--amarelo-borda); }
.status.respondido { color: var(--ok); background: rgba(34,197,94,.1); border-color: rgba(34,197,94,.4); }
.status.fechado { color: var(--texto-3); background: var(--hover); border-color: var(--borda-2); }

/* formulário de abrir chamado */
.voltar-lista { margin-bottom: 14px; }
#vista-novo h3 { margin-bottom: 6px; }
.suporte .campo select, .suporte .campo textarea, .responder textarea { width: 100%; padding: 0 16px; border: 1.5px solid var(--borda-2); border-radius: var(--raio); background: var(--fundo); color: var(--texto); font: inherit; font-size: 16px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.suporte .campo select { height: 50px; cursor: pointer; }
.suporte .campo select:disabled { cursor: wait; opacity: .7; }
.suporte .campo textarea, .responder textarea { min-height: 140px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.responder textarea { min-height: 92px; }
.suporte .campo select:focus, .suporte .campo textarea:focus, .responder textarea:focus { border-color: var(--azul); box-shadow: 0 0 0 4px var(--sombra-azul); }
.suporte .campo textarea[aria-invalid="true"], .responder textarea[aria-invalid="true"] { border-color: var(--erro); }
.suporte textarea::placeholder { color: var(--texto-4); }
.opcional { color: var(--texto-3); font-weight: 500; }
.dica { color: var(--texto-3); font-size: 13px; line-height: 1.4; }
.dica:empty { display: none; }
.contador { justify-self: end; color: var(--texto-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.contador.quase { color: var(--erro); font-weight: 700; }

/* a conversa */
.conversa-topo { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--borda); }
.conversa-topo h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.conversa-info { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--texto-3); font-size: 13px; }
.mensagens { display: flex; flex-direction: column; gap: 12px; max-height: min(60vh, 560px); margin-bottom: 16px; padding: 6px 4px; overflow-y: auto; overscroll-behavior: contain; border-radius: var(--raio); }
.balao { display: grid; gap: 4px; max-width: min(80%, 560px); padding: 12px 16px; border-radius: 20px; }
.balao.cliente { align-self: flex-end; background: var(--azul); color: var(--no-azul); border-bottom-right-radius: 6px; } /* a pessoa: à direita */
.balao.equipe { align-self: flex-start; background: var(--hover); border: 1px solid var(--borda-2); border-bottom-left-radius: 6px; } /* a equipe: à esquerda */
.balao-quem { font-size: 12px; font-weight: 800; }
.balao.equipe .balao-quem { color: var(--azul); }
.balao-texto { margin: 0; font-size: 15px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.balao time { justify-self: end; font-size: 11px; opacity: .75; }
.conversa-carregando { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px 0; color: var(--texto-2); }
.conversa-espera { align-self: center; max-width: 420px; margin: 4px 0 0; color: var(--texto-3); font-size: 13px; line-height: 1.45; text-align: center; }

.responder { display: grid; gap: 8px; }
.responder label { font-size: 13px; font-weight: 700; }
.responder-pe { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.responder-pe .botao-enviar { margin-left: auto; }
.dica-teclas { color: var(--texto-4); font-size: 12px; }
@media (hover: none) { .dica-teclas { display: none; } } /* celular não tem Ctrl */
.fechado-nota { margin: 0; padding: 14px 16px; border-radius: var(--raio); background: var(--hover); color: var(--texto-2); font-size: 14px; line-height: 1.5; text-align: center; }
.fechar-caixa { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--borda); }
.fechar-confirma p { margin: 0 0 12px; font-size: 14px; font-weight: 600; line-height: 1.45; }
.fechar-botoes { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 600px) {
  .suporte { gap: 44px; padding-top: 30px; }
  .sup-frase p { font-size: 15px; }
  .contato { padding: 18px; }
  .horario { padding: 18px; gap: 14px; }
  .cartao-chamados { padding: 20px 14px; border-radius: var(--raio-g); }
  .balao { max-width: 88%; }
  .chamado-data { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sup-frase h1, .sup-frase h1 .destaque, .sup-frase p, .vista { animation: none; }
  .contato:hover, .chamado:hover, .duvidas-lista a:hover { transform: none; }
}
