/* ================================================================
   AAP FAQ – Accordion
   Font: Quicksand | Cores: #9B9B9B2E item bg, #999 icon, #1a1a1a pergunta, #888 resposta
   ================================================================ */

.aap-faq {
    font-family: 'Quicksand', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* ---------- Item ---------- */
.aap-faq-item {
    background: #9B9B9B2E;
    border-radius: 10px;
    overflow: hidden;
    transition: background 0.18s;
}

.aap-faq-item.is-open {
    background: #9B9B9B2E;
}

/* ---------- Trigger (button) ---------- */
.aap-faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: 'Quicksand', sans-serif;
    -webkit-appearance: none;
    appearance: none;
}

.aap-faq-trigger:focus-visible {
    outline: 2px solid #8C9B6E;
    outline-offset: -2px;
    border-radius: 10px;
}

/* ---------- Icon ---------- */
.aap-faq-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aap-faq-icon svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 16px;
    height: 16px;
    transition: opacity 0.18s;
}

/* Plus visible by default */
.aap-icon-plus  { opacity: 1; }
.aap-icon-minus { opacity: 0; }

.aap-faq-item.is-open .aap-icon-plus  { opacity: 0; }
.aap-faq-item.is-open .aap-icon-minus { opacity: 1; }

/* ---------- Question text ---------- */
.aap-faq-question {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
    flex: 1;
}

/* ---------- Answer ---------- */
.aap-faq-answer {
    padding: 0 20px 0 50px; /* alinha com o texto da pergunta */
    overflow: hidden;
    /* height animado via JS */
}

.aap-faq-answer[hidden] {
    display: block !important; /* override hidden para animar */
    height: 0;
    visibility: hidden;
}

.aap-faq-answer p {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 400;
    color: #888888;
    line-height: 1.6;
}

/* Divider entre item aberto e o próximo */
.aap-faq-item + .aap-faq-item {
    /* gap já cuida do espaçamento */
}