/* ============================================
   FAQ SECTION - DUTOS FLEXÍVEIS
   COM TRANSIÇÕES PERFEITAS (SEM SALTOS)
   ============================================ */

.faq-section {
  position: relative;
  background: linear-gradient(135deg, #353535 0%, #2a2a2a 100%);
  padding: 80px 0 100px;
  overflow: hidden;
}

.faq-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(253,44,32,0.06) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.faq-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(251,184,83,0.04) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

.container-faq {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* HEADER */
.faq-header {
  text-align: center;
  margin-bottom: 60px;
}

.faq-badge {
  display: inline-block;
  margin-bottom: 20px;
}

.faq-badge span {
  display: inline-block;
  background: rgba(253,44,32,0.12);
  color: #fd2c20;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 20px;
  border-radius: 40px;
  border: 1px solid rgba(253,44,32,0.3);
}

.faq-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 20px;
}

.faq-title span {
  color: #fd2c20;
  position: relative;
  display: inline-block;
}

.faq-title span::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(251,184,83,0.3);
  z-index: -1;
}

.faq-divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #fd2c20, #fbb853);
  margin: 0 auto 24px;
  border-radius: 3px;
}

.faq-subtitle {
  font-size: 1.1rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* GRID */
.faq-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 60px;
}

.faq-col {
  flex: 1;
  min-width: 300px;
}

/* ==========================================
   ITEM FAQ - SEM SALTOS
   ========================================== */
.faq-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.faq-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(253,44,32,0.2);
}

.faq-item.active {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(253,44,32,0.25);
}

/* ==========================================
   PERGUNTA (QUESTÃO)
   ========================================== */
.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 2;
}

.faq-question-content {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-icon {
  font-size: 1.3rem;
  color: #fd2c20;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: scale(1.1);
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
  line-height: 1.4;
  font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
  transition: color 0.3s ease;
}

.faq-item.active .faq-question h3 {
  color: #fbb853;
}

.faq-toggle-icon {
  font-size: 1.2rem;
  color: #fbb853;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
}

/* ==========================================
   RESPOSTA - ANIMAÇÃO PERFEITA SEM SALTOS
   ========================================== */
.faq-answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0 24px;
  background: rgba(0, 0, 0, 0.15);
}

.faq-item.active .faq-answer {
  max-height: 2000px; /* valor grande o suficiente para qualquer conteúdo */
  opacity: 1;
  padding: 24px 24px 24px 24px;
}

/* Container interno para suavizar o conteúdo */
.faq-answer-inner {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease 0.15s,
              transform 0.4s ease 0.15s;
}

.faq-item.active .faq-answer-inner {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================
   CONTEÚDO DA RESPOSTA
   ========================================== */
.faq-answer p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 16px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: #fbb853;
  font-weight: 600;
}

.faq-answer ul,
.faq-answer ol {
  margin: 12px 0 16px;
  padding-left: 24px;
}

.faq-answer li {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #c0c0c0;
  margin-bottom: 8px;
}

.faq-answer li:last-child {
  margin-bottom: 0;
}

.faq-answer li strong {
  color: #fbb853;
}

/* ==========================================
   CTA FAQ
   ========================================== */
.faq-cta {
  text-align: center;
  padding: 40px;
  background: rgba(253,44,32,0.08);
  border-radius: 24px;
  border: 1px solid rgb(251 184 83);
  transition: all 0.4s ease;
}

.faq-cta:hover {
  background: rgba(253,44,32,0.12);
  border-color: rgba(253,44,32,0.35);
}

.faq-cta p {
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 20px;
}

.faq-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fd2c20;
  color: #ffffff;
  padding: 14px 36px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 50px;
  transition: all 0.4s ease;
  border: 2px solid #fd2c20;
  cursor: pointer;
}

.faq-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-btn:hover {
  background: transparent;
  border-color: #fd2c20;
  color: #fff;
  transform: translateY(-3px);
  gap: 16px;
  box-shadow: 0 10px 25px rgba(253,44,32,0.2);
}

.faq-btn:hover i {
  transform: scale(1.1);
}

/* ========== RESPONSIVO ========== */

@media (max-width: 992px) {
  .faq-section {
    padding: 60px 0 80px;
  }

  .faq-title {
    font-size: 2.3rem;
  }

  .faq-grid {
    flex-direction: column;
  }

  .faq-question {
    padding: 18px 20px;
  }

  .faq-question h3 {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  .container-faq {
    padding: 0 20px;
  }

  .faq-header {
    margin-bottom: 40px;
  }

  .faq-title {
    font-size: 1.8rem;
  }

  .faq-title span::after {
    bottom: 4px;
    height: 6px;
  }

  .faq-subtitle {
    font-size: 0.95rem;
  }

  .faq-question {
    padding: 16px 16px;
  }

  .faq-question-content {
    gap: 10px;
  }

  .faq-icon {
    font-size: 1.1rem;
  }

  .faq-question h3 {
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 20px 20px 20px 20px;
  }

  .faq-answer p,
  .faq-answer li {
    font-size: 0.85rem;
  }

  .faq-cta {
    padding: 30px 20px;
  }

  .faq-cta p {
    font-size: 1rem;
  }

  .faq-btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 50px 0 60px;
  }

  .faq-title {
    font-size: 1.5rem;
  }

  .faq-badge span {
    font-size: 0.7rem;
  }

  .faq-question h3 {
    font-size: 0.85rem;
  }

  .faq-cta {
    padding: 25px 15px;
  }
}