/**
 * Estilos do Plugin: Pesquisa de Público
 */

/* Overlay */
.qp-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  animation: qp-fadeIn 0.3s ease;
}

/* Container do popup */
.qp-content {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: qp-slideUp 0.4s ease;
  position: relative;
}

/* Título */
.qp-title {
  margin: 0 0 15px 0;
  font-size: 24px;
  color: #1a1a1a;
  font-weight: 600;
  line-height: 1.3;
}

/* Pergunta */
.qp-question {
  margin: 0 0 25px 0;
  font-size: 16px;
  color: #555;
  line-height: 1.5;
}

/* Container das opções */
.qp-options {
  margin-bottom: 25px;
}

/* Opção individual */
.qp-option {
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-bottom: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qp-option:hover {
  border-color: #0073aa;
  background: #f0f8ff;
}

.qp-option:has(input:checked) {
  border-color: #0073aa;
  background: #e6f3ff;
}

/* Radio button customizado */
.qp-option input[type="radio"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #0073aa;
}

.qp-option span {
  font-size: 15px;
  color: #333;
  cursor: pointer;
}

/* Botão principal */
.qp-button {
  width: 100%;
  padding: 14px 28px;
  background: #0073aa;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.qp-button:hover {
  background: #005a87;
}

.qp-button:active {
  transform: scale(0.98);
}

/* Botão de fechar */
.qp-close-button {
  background: #6c757d;
  margin-top: 10px;
}

.qp-close-button:hover {
  background: #545b62;
}

/* Botão Não quero responder */
.qp-skip-button {
  background: transparent;
  color: #6c757d;
  border: 2px solid #6c757d;
  margin-top: 10px;
}

.qp-skip-button:hover {
  background: #6c757d;
  color: #fff;
}

/* Mensagem de agradecimento */
.qp-thank-you .qp-content {
  text-align: center;
}

.qp-message {
  text-align: left;
  margin: 20px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #444;
}

.qp-message p {
  margin: 0 0 15px 0;
}

.qp-message ul {
  margin: 0;
  padding-left: 20px;
}

.qp-message li {
  margin-bottom: 10px;
}

.qp-message strong {
  color: #0073aa;
}

/* Animações */
@keyframes qp-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes qp-slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsivo */
@media (max-width: 600px) {
  .qp-content {
    padding: 30px 25px;
    width: 95%;
  }

  .qp-title {
    font-size: 20px;
  }

  .qp-question {
    font-size: 15px;
  }

  .qp-option {
    padding: 10px 12px;
  }

  .qp-button {
    padding: 12px 24px;
    font-size: 15px;
  }
}

/* Acessibilidade */
.qp-overlay[aria-hidden="true"] {
  display: none;
}

.qp-option:focus-within {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}

.qp-button:focus {
  outline: 2px solid #0073aa;
  outline-offset: 2px;
}
