/* Enquetes (home e página própria) — cartão branco no padrão dos cards da home (cupons, produtos, classificados).
   Sem painel colorido: a cor do tema (--primary) aparece só onde tem função (opção escolhida, barra de resultado,
   botão). Opções grandes para tocar; depois do voto o resultado aparece dentro da própria opção. */
.enq-home { padding: 8px 0 32px; }
.enq-pagina { padding: 32px 0 48px; }
.enq-wrap { max-width: 860px; margin: 0 auto; }

.enq-card {
    --enq-cor: var(--primary, #2d2b52);
    --enq-cor-suave: color-mix(in srgb, var(--primary, #2d2b52) 9%, #fff);
    --enq-cor-media: color-mix(in srgb, var(--primary, #2d2b52) 20%, #fff);
    font-family: var(--font-body, inherit);
    background: #fff;
    border: 1px solid #e6e9f2;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

/* topo: situação, pergunta e descrição */
.enq-situacao { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.enq-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; background: #ecfdf3; color: #166534; font-size: .8125rem; font-weight: 700; }
.enq-ponto { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .18); }
.enq-status-fim { background: #f1f5f9; color: #475569; }
.enq-status-fim .enq-ponto { background: #94a3b8; box-shadow: none; }
.enq-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: #f4f6fa; color: #475569; font-size: .8125rem; font-weight: 600; }
.enq-chip .ic, .enq-chip svg { width: 15px; height: 15px; }
.enq-pergunta { margin: 0; font-family: var(--font-heading, inherit); font-size: 1.5rem; font-weight: 800; line-height: 1.25; color: #0f172a; letter-spacing: -.01em; }
.enq-desc { margin: 6px 0 0; font-size: 1rem; line-height: 1.5; color: #475569; }

/* opções para votar */
.enq-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.enq-opcoes, .enq-barras { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 20px 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .enq-opcoes-2 { grid-template-columns: 1fr 1fr; } }
.enq-opcao { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid #dbe2ee; border-radius: 14px; background: #fff; cursor: pointer; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.enq-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.enq-opcao:hover { border-color: color-mix(in srgb, var(--enq-cor) 45%, #dbe2ee); background: #fafbfd; }
.enq-letra { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; background: #f1f4f9; color: #475569; font-weight: 800; font-size: .875rem; }
.enq-opcao-txt { flex: 1 1 auto; min-width: 0; font-size: 1rem; font-weight: 600; color: #0f172a; line-height: 1.35; }
.enq-marca { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbd5e1; color: transparent; }
.enq-marca .ic, .enq-marca svg { width: 14px; height: 14px; stroke-width: 3; }
.enq-opcao:has(input:checked) { border-color: var(--enq-cor); background: var(--enq-cor-suave); box-shadow: 0 0 0 1px var(--enq-cor); }
.enq-opcao:has(input:checked) .enq-letra { background: var(--enq-cor); color: #fff; }
.enq-opcao:has(input:checked) .enq-marca { border-color: var(--enq-cor); background: var(--enq-cor); color: #fff; }
.enq-opcao:has(input:focus-visible) { outline: 3px solid color-mix(in srgb, var(--enq-cor) 35%, transparent); outline-offset: 2px; }

.enq-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.enq-votar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--enq-cor); color: #fff; font-weight: 800; font-size: 1rem; cursor: pointer; font-family: inherit; }
.enq-votar .ic, .enq-votar svg { width: 18px; height: 18px; }
.enq-votar:hover:not(:disabled) { filter: brightness(1.1); }
.enq-votar:disabled { background: #cbd5e1; color: #fff; cursor: not-allowed; }
.enq-votar:focus-visible { outline: 3px solid color-mix(in srgb, var(--enq-cor) 40%, transparent); outline-offset: 2px; }
.enq-dica { margin: 0; font-size: .8125rem; color: #64748b; }
.enq-aviso { margin: 10px 0 0; font-size: .875rem; color: #b42318; font-weight: 600; }
.enq-aviso:empty { display: none; }

/* resultado: a própria opção vira a barra */
.enq-barra { position: relative; isolation: isolate; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px solid #e6e9f2; border-radius: 14px; background: #fff; overflow: hidden; }
.enq-barra::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleX(var(--enq-n, 0)); transform-origin: left center; background: color-mix(in srgb, var(--enq-cor) 8%, #eef2f7); transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.enq-barra.enq-lider { border-color: color-mix(in srgb, var(--enq-cor) 35%, #e6e9f2); }
.enq-barra.enq-lider::before { background: var(--enq-cor-media); }
.enq-barra.enq-lider .enq-letra { background: var(--enq-cor); color: #fff; }
.enq-barra.enq-meu { border-color: var(--enq-cor); box-shadow: 0 0 0 1px var(--enq-cor); }
.enq-barra-txt { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1rem; font-weight: 600; color: #0f172a; line-height: 1.35; }
.enq-tag-meu { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px; border-radius: 999px; background: var(--enq-cor); color: #fff; font-size: .6875rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; }
.enq-tag-meu .ic, .enq-tag-meu svg { width: 12px; height: 12px; stroke-width: 3; }
.enq-barra-num { flex: none; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.enq-barra-num strong { font-size: 1.0625rem; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.enq-barra-num small { font-size: .75rem; color: #64748b; }
.enq-barra.enq-lider .enq-barra-num strong { color: var(--enq-cor); }
.enq-obrigado { margin: 14px 0 0; font-size: .875rem; color: #166534; font-weight: 600; }
.enq-obrigado:empty { display: none; }

/* rodapé */
.enq-pe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #eef1f6; }
.enq-pe-txt { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: #64748b; }
.enq-pe-txt .ic, .enq-pe-txt svg { width: 16px; height: 16px; color: #16a34a; }
.enq-compartilhar { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid #dbe2ee; border-radius: 12px; background: #fff; color: var(--enq-cor); font-weight: 700; font-size: .9375rem; cursor: pointer; font-family: inherit; }
.enq-compartilhar .ic, .enq-compartilhar svg { width: 18px; height: 18px; }
.enq-compartilhar:hover { border-color: var(--enq-cor); background: var(--enq-cor-suave); }
.enq-compartilhar:focus-visible { outline: 3px solid color-mix(in srgb, var(--enq-cor) 35%, transparent); outline-offset: 2px; }

/* página própria */
.enq-volta { margin: 16px 0 0; text-align: center; }
.enq-volta a { color: var(--primary, #2d2b52); font-weight: 700; text-decoration: none; }

/* celular */
@media (max-width: 639px) {
    .enq-card { padding: 18px 16px; border-radius: 16px; }
    .enq-pergunta { font-size: 1.25rem; }
    .enq-desc { font-size: .9375rem; }
    .enq-opcoes, .enq-barras { margin-top: 16px; gap: 8px; }
    .enq-acoes { flex-direction: column; align-items: stretch; }
    .enq-votar { width: 100%; min-height: 52px; }
    .enq-dica { text-align: center; }
    .enq-pe { flex-direction: column-reverse; align-items: stretch; }
    .enq-compartilhar { justify-content: center; }
    .enq-pe-txt { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .enq-opcao, .enq-barra::before { transition: none; }
}
