/* ==========================================
   🎯 FAQ SECTION - ESTILO ISOLADO
   Todos os elementos terminam com _faq
   ========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

/* Container principal do FAQ */
.section-title_faq {
    max-width: 1400px;
    margin: 60px auto 30px auto;
    padding: 0 20px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
}

.section-title_faq h2 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-align: left;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@media (max-width: 767px) {
    .section-title_faq {
        margin: 40px auto 20px auto;
    }
    
    .section-title_faq h2 {
        font-size: 24px;
    }
}

/* Container dos itens FAQ */
.faq-container_faq {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

/* Item individual do FAQ */
.faq-item_faq {
    background: #000;
    border: 1px solid #333;
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item_faq:hover {
    border-color: #555;
}

.faq-item_faq.active_faq {
    border-color: #ff4757;
}

/* Pergunta (cabeçalho clicável) */
.faq-question_faq {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
    background: transparent;
    transition: background 0.3s ease;
}

.faq-question_faq:hover {
    background: rgba(255, 255, 255, 0.02);
}

.faq-question_faq h3 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    padding-right: 20px;
    flex: 1;
}

@media (max-width: 767px) {
    .faq-question_faq {
        padding: 16px 20px;
    }
    
    .faq-question_faq h3 {
        font-size: 14px;
    }
}

/* Ícone de + / - */
.faq-icon_faq {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff4757;
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item_faq.active_faq .faq-icon_faq {
    transform: rotate(45deg);
}

/* Container da resposta (com animação) */
.faq-answer_faq {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item_faq.active_faq .faq-answer_faq {
    max-height: 2000px; /* Valor alto para acomodar respostas longas */
}

/* Conteúdo da resposta */
.faq-answer-content_faq {
    padding: 0 24px 20px 24px;
    color: #ccc;
    font-size: 14px;
    line-height: 1.6;
    border-top: 1px solid #222;
}

@media (max-width: 767px) {
    .faq-answer-content_faq {
        padding: 0 20px 16px 20px;
        font-size: 13px;
    }
}

.faq-answer-content_faq p {
    margin-bottom: 12px;
}

.faq-answer-content_faq p:last-child {
    margin-bottom: 0;
}

/* Estilo para links dentro das respostas */
.faq-answer-content_faq a {
    color: #ff4757;
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-answer-content_faq a:hover {
    color: #ff6b7a;
    text-decoration: underline;
}

/* Destaque para informações importantes */
.faq-highlight_faq {
    background: rgba(255, 71, 87, 0.1);
    border-left: 3px solid #ff4757;
    padding: 12px 16px;
    margin: 12px 0;
    border-radius: 6px;
}

.faq-highlight_faq strong {
    color: #ff4757;
}

/* Lista dentro das respostas */
.faq-answer-content_faq ul,
.faq-answer-content_faq ol {
    margin: 12px 0;
    padding-left: 24px;
}

.faq-answer-content_faq li {
    margin-bottom: 8px;
}

/* Badge de categoria (opcional) */
.faq-category_faq {
    display: inline-block;
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Animação suave de fade-in */
@keyframes fadeIn_faq {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item_faq {
    animation: fadeIn_faq 0.5s ease forwards;
}

/* Delay progressivo para cada item */
.faq-item_faq:nth-child(1) { animation-delay: 0.05s; }
.faq-item_faq:nth-child(2) { animation-delay: 0.1s; }
.faq-item_faq:nth-child(3) { animation-delay: 0.15s; }
.faq-item_faq:nth-child(4) { animation-delay: 0.2s; }
.faq-item_faq:nth-child(5) { animation-delay: 0.25s; }
.faq-item_faq:nth-child(6) { animation-delay: 0.3s; }
.faq-item_faq:nth-child(7) { animation-delay: 0.35s; }
.faq-item_faq:nth-child(8) { animation-delay: 0.4s; }

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Responsividade tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .faq-container_faq {
        padding: 0 30px 50px 30px;
    }
    
    .faq-question_faq h3 {
        font-size: 15px;
    }
}

/* Responsividade desktop */
@media (min-width: 1024px) {
    .faq-container_faq {
        padding: 0 40px 60px 40px;
    }
    
    .faq-question_faq {
        padding: 24px 28px;
    }
    
    .faq-answer-content_faq {
        padding: 0 28px 24px 28px;
        font-size: 15px;
    }
}
