/* Simulador de WhatsApp (demo do Beeia Quiz) */
body.sm-aberto { overflow: hidden; }
.sm-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(20, 16, 40, .72); backdrop-filter: blur(3px); display: flex; padding: 16px; overflow: auto; }
.sm-overlay[hidden] { display: none; }
.sm-caixa { margin: auto; position: relative; display: grid; grid-template-columns: 372px minmax(280px, 380px); gap: 28px; align-items: center; background: #fff; border-radius: 22px; padding: 26px 30px; max-width: 880px; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.sm-x { position: absolute; top: 10px; right: 12px; border: 0; background: #f0f1f5; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: #4b5160; }
.sm-x:hover { background: #e3e5ec; }

.sm-aparelho { background: #16161d; border-radius: 40px; padding: 11px; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); }
.sm-tela { height: 640px; border-radius: 30px; overflow: hidden; display: flex; flex-direction: column; background: #efeae2; }
.sm-cab { background: #075e54; color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.sm-cab b { display: block; font-size: 14px; line-height: 1.2; }
.sm-cab small { font-size: 11px; opacity: .8; }
.sm-av { width: 36px; height: 36px; border-radius: 50%; background: #ffb52e; color: #4b2bb5; display: grid; place-items: center; font-size: 15px; flex: none; }
.sm-wa { margin-left: auto; font-size: 20px; opacity: .8; }
.sm-chat { flex: 1; overflow-y: auto; padding: 12px 10px; display: flex; flex-direction: column; gap: 6px; background-image: radial-gradient(rgba(0, 0, 0, .035) 1px, transparent 1px); background-size: 14px 14px; scroll-behavior: smooth; }
.sm-dia { align-self: center; background: #e1f2fb; color: #54656f; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 8px; margin-bottom: 4px; }
.sm-msg { display: flex; animation: smEntra .22s ease-out; }
.sm-msg.eu { justify-content: flex-end; }
.sm-bolha { max-width: 82%; padding: 7px 9px 5px; border-radius: 10px; font-size: 13.5px; line-height: 1.38; color: #111b21; box-shadow: 0 1px 1px rgba(0, 0, 0, .13); word-wrap: break-word; }
.sm-msg.bot .sm-bolha { background: #fff; border-top-left-radius: 2px; }
.sm-msg.eu .sm-bolha { background: #d9fdd3; border-top-right-radius: 2px; }
.sm-hora { display: block; text-align: right; font-size: 10px; color: #667781; margin-top: 2px; }
.sm-lido { color: #53bdeb; font-size: 10px; }
.sm-aviso { align-self: center; max-width: 90%; text-align: center; background: #fff3c4; color: #5c4a00; font-size: 12px; padding: 6px 12px; border-radius: 8px; animation: smEntra .22s ease-out; }
.sm-pts { display: inline-flex; gap: 4px; padding: 4px 2px; }
.sm-pts i { width: 7px; height: 7px; border-radius: 50%; background: #9aa5ad; animation: smPonto 1s infinite ease-in-out; }
.sm-pts i:nth-child(2) { animation-delay: .15s; }
.sm-pts i:nth-child(3) { animation-delay: .3s; }
@keyframes smPonto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes smEntra { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }

.sm-rodape { background: #f0f2f5; padding: 8px 10px 10px; display: flex; flex-direction: column; gap: 6px; min-height: 64px; max-height: 250px; overflow-y: auto; }
.sm-opcoes { display: flex; flex-direction: column; gap: 6px; }
.sm-opcoes.sm-linha { flex-direction: row; }
.sm-opcoes.sm-linha .sm-op { flex: 1; justify-content: center; }
.sm-op { display: flex; align-items: center; gap: 9px; text-align: left; border: 1px solid #d5d9de; background: #fff; border-radius: 10px; padding: 9px 12px; font-size: 13px; color: #0b6e63; font-weight: 600; cursor: pointer; transition: transform .12s, background .12s, border-color .12s; }
.sm-op:hover { background: #effbf8; border-color: #25d366; transform: translateY(-1px); }
.sm-op.on { background: #d9fdd3; border-color: #25d366; }
.sm-bola { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #9bb; flex: none; }
.sm-op.on .sm-bola { background: #25d366; border-color: #25d366; }
.sm-opcoes.sm-linha .sm-bola { display: none; }
.sm-enviar { border: 0; background: #25d366; color: #fff; border-radius: 999px; padding: 10px 16px; font-weight: 700; font-size: 13px; cursor: pointer; }
.sm-enviar:disabled { background: #b6c2bc; cursor: not-allowed; }
.sm-enviar:not(:disabled):hover { background: #1fb858; }
.sm-auto { border: 0; background: transparent; color: #7b4dff; font-size: 12px; font-weight: 600; cursor: pointer; align-self: center; padding: 2px 6px; }
.sm-auto:hover { text-decoration: underline; }
.sm-form { display: flex; gap: 8px; }
.sm-form input { flex: 1; border: 1px solid #d5d9de; border-radius: 999px; padding: 9px 14px; font-size: 13.5px; outline: none; background: #fff; }
.sm-form input:focus { border-color: #25d366; }
.sm-form input.erro { border-color: #e5484d; }
.sm-form button { border: 0; background: #25d366; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; }
.sm-fim { text-align: center; font-size: 12.5px; color: #4b5160; }
.sm-fim i { color: #22b573; }

.sm-lado { min-width: 0; }
.sm-tag { background: #efe9ff; color: #4b2bb5; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 3px 10px; text-transform: uppercase; letter-spacing: .04em; }
.sm-lado h3 { font-size: 22px; font-weight: 800; margin: 10px 0 4px; color: #1f2430; }
.sm-ajuda { color: #5d6472; font-size: 13.5px; margin-bottom: 14px; }
.sm-lbl { font-size: 12px; font-weight: 700; color: #4b5160; margin: 0 0 4px; }
.sm-ctrl { display: flex; gap: 8px; margin: 10px 0 14px; }
.sm-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.sm-kpis div { background: #f6f4fb; border-radius: 10px; padding: 8px 10px; }
.sm-kpis span { display: block; font-size: 10.5px; color: #6b7080; line-height: 1.2; }
.sm-kpis b { font-size: 14px; color: #1f2430; }
.sm-lado h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #6b7080; margin: 0 0 8px; }
.sm-log { list-style: none; margin: 0; padding: 0; max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.sm-log li { display: flex; gap: 9px; font-size: 12.5px; color: #3a4050; line-height: 1.35; animation: smEntra .25s ease-out; }
.sm-ic { flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 11px; }
.ic-verde { background: #e3f7ec; color: #168a55; }
.ic-vermelho { background: #fde8e8; color: #c43b3b; }
.ic-azul { background: #e3efff; color: #2468d6; }
.ic-roxo { background: #efe9ff; color: #5b34c9; }
.ic-laranja { background: #fff0d9; color: #c26a00; }

.qz-sim-btn { white-space: nowrap; }
.dm-bar .dm-sim { background: #25d366; border-color: #25d366; font-weight: 700; }
.dm-bar .dm-sim:hover { background: #1fb858; }

@media (max-width: 860px) {
    .sm-caixa { grid-template-columns: 1fr; padding: 18px 14px; gap: 18px; max-width: 420px; }
    .sm-tela { height: 560px; }
    .sm-lado { order: 2; }
    .sm-kpis { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { .sm-msg, .sm-aviso, .sm-log li { animation: none; } .sm-pts i { animation: none; } }

/* Botões de resposta dentro da bolha (estilo WhatsApp) */
.sm-msg.sm-comb .sm-bolha { width: 82%; padding-bottom: 0; }
.sm-msg.sm-comb .sm-hora { margin-bottom: 6px; }
.sm-btns { margin: 0 -9px; border-top: 1px solid #e9edef; }
.sm-btn { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; border: 0; border-top: 1px solid #e9edef; background: transparent; color: #027eb5; font-size: 13.5px; font-weight: 600; padding: 10px 8px; cursor: pointer; }
.sm-btn:first-child { border-top: 0; }
.sm-btn:hover:not(:disabled) { background: #f3f8fa; }
.sm-btn:last-child { border-radius: 0 0 10px 10px; }
.sm-btn i { font-size: 12px; }
.sm-btn:disabled { color: #8696a0; cursor: default; }
.sm-btn.on:disabled { color: #027eb5; font-weight: 700; }
.sm-btn { color: #1a7f5a; }
.sm-btn.on:disabled { color: #1a7f5a; }
.sm-btn:disabled i { opacity: .6; }

/* Campo de mensagem */
.sm-rodape { background: #f0f2f5; padding: 8px 8px 12px; min-height: 0; max-height: none; overflow: visible; }
.sm-comp { display: flex; align-items: center; gap: 8px; }
.sm-mais { color: #54656f; font-size: 20px; width: 26px; text-align: center; }
.sm-campo { flex: 1; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 0 12px; border: 1px solid #e1e4e8; }
.sm-campo input { flex: 1; border: 0; outline: 0; background: transparent; padding: 9px 0; font-size: 14px; min-width: 0; }
.sm-campo input:disabled { cursor: default; }
.sm-campo input.erro::placeholder { color: #e5484d; }
.sm-campo i { color: #8696a0; }
.sm-mic { width: 40px; height: 40px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; flex: none; }
.sm-mic.pronto { cursor: pointer; }
.sm-mic.pulsa { animation: smPulsa 1.3s infinite; }
@keyframes smPulsa { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* Lista de opções (mensagem de lista) */
.sm-tela { position: relative; }
.sm-folha { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 30px rgba(0, 0, 0, .25); padding: 12px 14px 14px; max-height: 70%; display: flex; flex-direction: column; animation: smSobe .25s ease-out; z-index: 5; }
@keyframes smSobe { from { transform: translateY(100%); } to { transform: none; } }
.sm-folha-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; font-size: 14px; }
.sm-fx { border: 0; background: #f0f2f5; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; color: #54656f; }
.sm-folha-lista { overflow-y: auto; margin-bottom: 10px; }
.sm-li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 2px; border-bottom: 1px solid #eef0f2; font-size: 13.5px; cursor: pointer; margin: 0; }
.sm-li input { position: absolute; opacity: 0; pointer-events: none; }
.sm-marca { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #aeb7bd; }
.sm-li input[type=checkbox] + .sm-marca { border-radius: 5px; }
.sm-li input:checked + .sm-marca { background: #25d366; border-color: #25d366; box-shadow: inset 0 0 0 3px #fff; }
.sm-li input[type=checkbox]:checked + .sm-marca { box-shadow: none; }
.sm-again { margin-top: 6px; border: 0; background: #25d366; color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
.sm-ctrl { flex-wrap: wrap; }
