/* ===========================================
        FONTE GLOBAL
=========================================== */
* {
  font-family: "Inter", sans-serif;
}

h1, h2, h3, h4, .btn-vote, .botao, .btn-novamente, .titulo-confirmado, #popupNome {
  font-family: "Poppins", sans-serif !important;
}

/* ===========================================
        AJUSTE NOVA CAIXA-ENQUETE
=========================================== */

.caixa-enquete {
  width: 99%;
  margin: 20px auto;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #dcdcdc;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Linha com gradiente */
.caixa-enquete::before {
  content: "";
  width: 100%;
  height: 5px;
  background: linear-gradient(135deg, #0057ff, #7b2fff, #ff4d00);
  position: absolute;
  top: 0;
  left: 0;
}

.conteudo-enquete {
  max-height: 0;
  overflow: hidden;
  padding: 0 14px; /* ↓ Ajustado para caber perfeitamente */
  transition: max-height 0.5s ease, padding 0.35s ease;
  box-sizing: border-box;
}

.conteudo-enquete.ativo {
  max-height: 1800px;
  padding-bottom: 20px;
}

/* ===========================================
        BOTÃO SUPERIOR
=========================================== */

.btn-vote {
  background: linear-gradient(135deg, #0057ff, #7b2fff, #ff4d00);
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  font-weight: 700;
  margin: 30px auto 18px auto; 
  display: block;
  transition: 0.2s ease;
}

.btn-vote:hover {
  transform: translateY(-2px);
}

/* ===========================================
        WRAPPER AJUSTADO PARA CABER NA CAIXA
=========================================== */
.wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin-top: 16px;
  box-sizing: border-box;
}

/* ===========================================
        OPÇÕES — AJUSTADAS PARA A NOVA CAIXA
=========================================== */

.opcao-wrapper {
  margin: 18px 0;
  position: relative;
  transition: transform .22s ease;
  border: 1px solid #d0d0d0;
  border-radius: 18px;
  overflow: hidden;
}

.opcao {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 18px;
  height: 92px;
  cursor: pointer;
  transition: 0.25s;
  padding-left: 120px; /* ↓ Ajustado para a largura da caixa */
  position: relative;
}

.opcao-wrapper.active {
  border-color: #0bb4b9;
}

.opcao-wrapper.active .opcao {
  background: linear-gradient(135deg, #0bb4b9, #0a8d91);
  color: #fff;
}

.imagemOpcao {
  width: 100px;                 /* ↓ Ajustado */
  height: 100px;                /* ↓ Ajustado */
  object-fit: cover;
  border-radius: 12px;
  position: absolute;
  top: 50%;
  left: 6px;                    /* ↓ Ajustado */
  transform: translateY(-50%);
  background: #fff;
  border: 1px solid #d0d0d0;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  z-index: 5;
}

.textoOpcao {
  font-size: 19px;
  font-weight: 700;
}

.opcao input[type="radio"] {
  display: none;
}

/* ===========================================
        CAPTCHA BOX AJUSTADA
=========================================== */

.captchaBox {
  display: none;
  background: #fff;
  border: 1px solid #ddd;
  border-top: none;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  padding: 12px !important;
  animation: openBox .22s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.opcao-wrapper.active .captchaBox {
  display: block;
}

.opcao-wrapper { transition: transform .25s ease, box-shadow .25s ease; }
.opcao-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.08);
}

.opcao-wrapper:hover .imagemOpcao {
  transform: translateY(-50%) scale(1.06);
  box-shadow: 0 6px 20px rgba(10, 160, 165);
  transition: transform .25s ease, box-shadow .25s ease;
}

/* ============================
   POPUP DE CONFIRMAÇÃO DE VOTO
===============================*/
.popup-full {
  position: fixed;             
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(8px);
  display: none;
  justify-content: center;
  align-items: center;
  padding: 24px;
  z-index: 999999; 
  animation: fadeIn 0.3s ease forwards;
  overflow: hidden;
}

/* Ativo */
.popup-full.ativo {
  display: flex;
}


/* Animação geral */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Card principal */
.popup-card {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  animation: popUp 0.35s ease forwards;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.8);
}

/* Animação do card */
@keyframes popUp {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Ícone grande */
.icone-confirmacao {
  width: 80px;
  height: 80px;
  background: #00b88f;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 14px;
  box-shadow: 0 6px 16px rgba(0,184,143,0.35);
}

/* Texto "Seu voto foi confirmado" */
.titulo-confirmado {
  font-size: 22px;
  font-weight: 800;
  color: #0b7f85;
  margin-bottom: 10px;
}

/* Nome votado */
#popupNome {
  font-size: 26px;
  font-weight: 900;
  color: #0a0a0a;
  margin-top: 10px;
}

/* Foto do participante */
.foto {
  width: 160px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  margin: 20px auto;
  display: block;
  box-shadow: 0 8px 22px rgba(0,0,0,0.15);
  border: 3px solid #00aeb8;
}

/* Linha de redes sociais */
.social {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px 0 28px;
}

.social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1b75d1;
  color: #fff;
  font-size: 22px;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.2s;
}

.social a:hover {
  transform: scale(1.08);
}

.social .tw {
  background: #1da1f2;
}

/* Botão votar novamente */
.btn-novamente {
  width: 100%;
  padding: 16px 0;
  background: linear-gradient(135deg, #00b6c4, #0093a3);
  border: none;
  color: #fff;
  font-size: 19px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 16px;
  box-shadow: 0 6px 18px rgba(0,147,160,0.35);
  transition: 0.25s ease;
}

.btn-novamente:hover {
  transform: translateY(-2px);
}

/* Link resultado */
.link-resultado {
  display: inline-block;
  margin-top: 4px;
  font-size: 18px;
  text-decoration: none;
  color: #008c94;
  font-weight: 600;
  transition: 0.2s;
}

.link-resultado:hover {
  text-decoration: underline;
}

#frameEnquete {
  width: 100%;
  border: none;
  height: 0;
  transition: height .4s ease;
}
