/* 
 * SEÇÃO DE GARANTIA + FAQ
 * Foco em criar confiança e eliminar objeções
 */

.guarantee-faq-section {
  background-color: #171717;
  color: #FFFFFF;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Efeito de fundo sutil */
.guarantee-faq-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 20%, rgba(20, 200, 96, 0.05) 0%, transparent 40%);
  z-index: 1;
}

/* Box de garantia principal */
.guarantee-box {
  max-width: 800px;
  margin: 0 auto 3rem;
  padding: 2.5rem;
  background-color: rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.guarantee-main-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  filter: invert(67%) sepia(68%) saturate(426%) hue-rotate(85deg) brightness(92%) contrast(90%);
}

.guarantee-box h2 {
  font-size: 1.6rem;
  margin-bottom: 1rem;
  color: #14C860;
  font-weight: 700;
}

.guarantee-box p {
  font-size: 1rem;
  color: #CCCCCC;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Cards de confiança */
.trust-cards {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.trust-card {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.trust-card:hover {
  transform: translateY(-5px);
  background-color: rgba(20, 200, 96, 0.1);
  border-color: rgba(20, 200, 96, 0.3);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.trust-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 200, 96, 0.1);
  border-radius: 50%;
  padding: 8px;
}

.trust-icon img {
  width: 100%;
  height: 100%;
  filter: invert(67%) sepia(68%) saturate(426%) hue-rotate(85deg) brightness(92%) contrast(90%);
}

.trust-card p {
  font-size: 0.9rem;
  color: #FFFFFF;
  margin-bottom: 0;
  font-weight: 500;
}

/* Box de perguntas frequentes */
.faq-box {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  position: relative;
  z-index: 2;
  background-color: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.faq-box h3 {
  font-size: 1.4rem;
  color: #14C860;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 700;
}

/* Estilo do FAQ com details/summary */
.faq-list details {
  margin-bottom: 1rem;
  background-color: #11111B;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.faq-list details:hover {
  background-color: #181825;
  transform: translateY(-2px);
  border-color: rgba(20, 200, 96, 0.2);
}

.faq-list summary {
  font-weight: bold;
  font-size: 1rem;
  color: #FFFFFF;
  position: relative;
  padding: 1.25rem;
  padding-right: 2.5rem;
  list-style: none;
  transition: all 0.3s ease;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

/* Adicionar ícone de seta no summary */
.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: #14C860;
  transition: all 0.3s ease;
}

details[open] summary {
  background-color: rgba(20, 200, 96, 0.05);
  border-bottom: 1px solid rgba(20, 200, 96, 0.1);
}

details[open] summary::after {
  content: '−';
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s ease-in-out;
}

details[open] .faq-answer {
  padding: 1.25rem;
  max-height: 300px; /* altura máxima para a animação */
}

.faq-answer p {
  margin: 0;
  font-size: 0.95rem;
  color: #CCCCCC;
  line-height: 1.6;
}

/* Estilizar o primeiro clique ativo por padrão */
.faq-list details:first-child {
  background-color: #181825;
  border-color: rgba(20, 200, 96, 0.2);
}

.faq-list details:first-child summary {
  background-color: rgba(20, 200, 96, 0.05);
  border-bottom: 1px solid rgba(20, 200, 96, 0.1);
}

/* Microcopy final para fomentar a ação */
.faq-box::after {
  content: "Sua próxima notificação pode ser um Pix. Só depende de você.";
  display: block;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #14C860;
  text-align: center;
  font-style: italic;
}

/* Media queries para responsividade */
@media (max-width: 768px) {
  .guarantee-faq-section {
    padding: 3rem 1rem;
  }
  
  .guarantee-box, .faq-box {
    padding: 1.5rem;
  }
  
  .guarantee-box h2 {
    font-size: 1.4rem;
  }
  
  .trust-cards {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .trust-card {
    width: 100%;
    max-width: 250px;
  }
  
  .faq-list summary {
    padding: 1rem;
    padding-right: 2.5rem;
    font-size: 0.95rem;
  }
  
  details[open] .faq-answer {
    padding: 1rem;
  }
}
