/**
 * ============================================
 * RCS FAQ SECTION CSS
 * ============================================
 * 
 * Estilos para seção de Perguntas Frequentes sobre RCS
 * 
 * @component .rcs-faq-section - Seção de FAQ
 */

/* ============================================
   SEÇÃO PRINCIPAL
   ============================================ */

.rcs-faq-section {
  padding: 0 0 100px 0;
  position: relative;
}

.rcs-faq-header {
  margin-bottom: 60px;
}

.rcs-faq-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  background: linear-gradient(199deg, #7b2fff 0%, #3ac6ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rcs-faq-subtitle {
  font-size: 1.2rem;
  color: #666;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ============================================
   CONTAINER DE FAQ
   ============================================ */

.rcs-faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.rcs-faq-item {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
}

.rcs-faq-item:hover {
  box-shadow: 0 4px 16px rgba(123, 47, 255, 0.1);
  border-color: rgba(123, 47, 255, 0.2);
}

.rcs-faq-item.active {
  border-color: rgba(123, 47, 255, 0.3);
  box-shadow: 0 8px 24px rgba(123, 47, 255, 0.15);
}

/* ============================================
   PERGUNTA (BOTÃO)
   ============================================ */

.rcs-faq-question {
  width: 100%;
  padding: 24px 28px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  font-family: inherit;
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.rcs-faq-question:hover {
  background: linear-gradient(
    199deg,
    rgba(123, 47, 255, 0.03) 0%,
    rgba(58, 198, 255, 0.03) 100%
  );
}

.rcs-faq-question span {
  font-size: 1.15rem;
  font-weight: 600;
  color: #333;
  line-height: 1.5;
  flex: 1;
}

.rcs-faq-icon {
  flex-shrink: 0;
  color: #7b2fff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
}

.rcs-faq-item.active .rcs-faq-icon {
  transform: rotate(180deg);
  color: #3ac6ff;
}

/* ============================================
   RESPOSTA
   ============================================ */

.rcs-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 28px;
}

.rcs-faq-item.active .rcs-faq-answer {
  max-height: 1000px;
  padding: 0 28px 24px 28px;
}

.rcs-faq-answer p {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 16px;
}

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

.rcs-faq-answer p strong {
  color: #333;
  font-weight: 600;
}

.rcs-faq-answer ul,
.rcs-faq-answer ol {
  margin: 16px 0;
  padding-left: 24px;
  color: #555;
  line-height: 1.8;
}

.rcs-faq-answer ul li,
.rcs-faq-answer ol li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.rcs-faq-answer ul li::marker {
  color: #7b2fff;
}

.rcs-faq-answer ol li::marker {
  color: #3ac6ff;
  font-weight: 600;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */

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

  .rcs-faq-title {
    font-size: 2.2rem;
  }

  .rcs-faq-subtitle {
    font-size: 1.1rem;
    padding: 0 20px;
  }

  .rcs-faq-container {
    padding: 0 20px;
  }

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

  .rcs-faq-question span {
    font-size: 1.05rem;
  }

  .rcs-faq-answer {
    padding: 0 20px;
  }

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

  .rcs-faq-answer p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .rcs-faq-title {
    font-size: 1.8rem;
  }

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

  .rcs-faq-question span {
    font-size: 1rem;
  }

  .rcs-faq-icon {
    width: 20px;
    height: 20px;
  }
}
