/* AGRIFLORA FAQ */

.af-faq-custom {
    max-width: 100%;
    margin: 0;
}

/* Titlul categoriei: Comenzi, Livrare etc. */
.af-faq-custom .module-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 18px;
    padding: 0;
}

.af-faq-custom .module-title h2,
.af-faq-custom .module-title h3 {
    margin: 0;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #202820;
}

/* Iconița rotundă înaintea categoriei */
.af-faq-custom .module-title::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid #1d743f;
    border-radius: 50%;
    color: #1d743f;
    font-family: "Font Awesome 5 Free", "FontAwesome";
    font-size: 20px;
    font-weight: 900;
}

/* Iconițe distincte pentru fiecare categorie FAQ */

/* Comenzi – coș */
.af-faq-orders .module-title::before {
    content: "\f07a";
}

/* Livrare – camion */
.af-faq-delivery .module-title::before {
    content: "\f0d1";
}

/* Plată și facturare – card */
.af-faq-payment .module-title::before {
    content: "\f09d";
}

/* Produse și consultanță – frunză */
.af-faq-products .module-title::before {
    content: "\f06c";
}

/* Disponibilitate și stoc – cutie */
.af-faq-stock .module-title::before {
    content: "\f187";
}

/* Contul de client – utilizator */
.af-faq-account .module-title::before {
    content: "\f007";
}

/* Retur – săgeată circulară */
.af-faq-return .module-title::before {
    content: "\f0e2";
}

/* Contact – telefon */
.af-faq-contact .module-title::before {
    content: "\f095";
}

/* Fiecare întrebare */
.af-faq-custom .accordion-item,
.af-faq-custom .panel,
.af-faq-custom .faq-item {
    margin-bottom: 12px;
    border: 1px solid #d9e3dc;
    border-radius: 9px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.045);
}

/* Zona clicabilă */
.af-faq-custom .accordion-heading,
.af-faq-custom .panel-heading,
.af-faq-custom .faq-question {
    position: relative;
    display: block;
    padding: 17px 54px 17px 18px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
    color: #17683b;
    cursor: pointer;
    background: #fff;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.af-faq-custom .accordion-heading:hover,
.af-faq-custom .panel-heading:hover,
.af-faq-custom .faq-question:hover {
    background: #f3f8f5;
    color: #0f542f;
}

/* Plus în dreapta */
.af-faq-custom .accordion-heading::after,
.af-faq-custom .panel-heading::after,
.af-faq-custom .faq-question::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #17683b;
    font-size: 26px;
    line-height: 1;
    font-weight: 400;
}

/* Minus când întrebarea este deschisă */
.af-faq-custom .accordion-heading.active::after,
.af-faq-custom .panel-heading.active::after,
.af-faq-custom .faq-question.active::after,
.af-faq-custom .active > .accordion-heading::after,
.af-faq-custom .active > .panel-heading::after,
.af-faq-custom .panel-active > .panel-heading::after,
.af-faq-custom .open > .accordion-heading::after {
    content: "−";
}

/* Răspunsul */
.af-faq-custom .accordion-content,
.af-faq-custom .panel-body,
.af-faq-custom .faq-answer {
    padding: 0 18px 18px;
    color: #5d665f;
    font-size: 15px;
    line-height: 1.65;
    background: #fff;
    border-top: 1px solid #edf1ee;
}

.af-faq-custom .accordion-content p,
.af-faq-custom .panel-body p,
.af-faq-custom .faq-answer p {
    margin: 14px 0 0;
}

/* Spațiu între modulele-categorie */
.af-faq-custom + .af-faq-custom {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e3e8e5;
}

/* Mobil */
@media (max-width: 768px) {
    .af-faq-custom .module-title {
        gap: 10px;
        margin-bottom: 14px;
    }

    .af-faq-custom .module-title h2,
    .af-faq-custom .module-title h3 {
        font-size: 20px;
    }

    .af-faq-custom .module-title::before {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        font-size: 17px;
    }

    .af-faq-custom .accordion-heading,
    .af-faq-custom .panel-heading,
    .af-faq-custom .faq-question {
        padding: 15px 46px 15px 15px;
        font-size: 15px;
    }

    .af-faq-custom .accordion-heading::after,
    .af-faq-custom .panel-heading::after,
    .af-faq-custom .faq-question::after {
        right: 15px;
        font-size: 23px;
    }

    .af-faq-custom .accordion-content,
    .af-faq-custom .panel-body,
    .af-faq-custom .faq-answer {
        padding: 0 15px 15px;
        font-size: 14px;
    }
}

/* Titlul categoriei FAQ: Comenzi, Livrare, Plată etc. */
.af-faq-custom .module-title,
.af-faq-custom .module-title *,
.af-faq-custom .title,
.af-faq-custom .title *,
.af-faq-custom .module-title-text {
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    color: #202820 !important;
}

/* Aliniere iconiță + titlu */
.af-faq-custom .module-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
}

/* Elimină eventualele fundaluri aplicate titlului */
.af-faq-custom .module-title span,
.af-faq-custom .module-title a {
    background: transparent !important;
    padding: 0 !important;
}