﻿/* =========================
   FAQ
========================= */

.faq-section {
    width: 100%;
    margin: 35px 0;
    padding: 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    box-sizing: border-box;
}

/* Header */

.faq-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eeeeee;
}

.faq-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #f4f1ff;
    color: #6c4ce6;
    font-size: 23px;
}

.faq-subtitle {
    display: block;
    font-size: 13px;
    color: #8b8b8b;
    margin-bottom: 4px;
}

.faq-header h3 {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    color: #252525;
}

.faq-header p {
    margin: 6px 0 0;
    color: #888;
    font-size: 13px;
}


/* FAQ List */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* Item */

.faq-item {
    border: 1px solid #eeeeee;
    border-radius: 13px;
    background: #fff;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .faq-item:hover {
        border-color: #ddd5ff;
        box-shadow: 0 4px 15px rgba(108, 76, 230, 0.07);
    }


/* Question */

.faq-question {
    width: 100%;
    min-height: 65px;
    padding: 15px 18px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

.faq-question-text {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    line-height: 1.8;
}


/* Arrow */

.faq-arrow {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f4ff;
    color: #6c4ce6;
    transition: all 0.3s ease;
}

    .faq-arrow i {
        font-size: 12px;
        transition: transform 0.3s ease;
    }


/* Answer */

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
}

.faq-answer-content {
    overflow: hidden;
    padding: 0 20px;
    color: #666;
    font-size: 14px;
    line-height: 2.1;
}


/* Active */

.faq-item.active {
    border-color: #ddd5ff;
    background: #fcfbff;
}

    .faq-item.active .faq-answer {
        grid-template-rows: 1fr;
    }

    .faq-item.active .faq-answer-content {
        padding-top: 5px;
        padding-bottom: 20px;
    }

    .faq-item.active .faq-arrow {
        background: #6c4ce6;
        color: #fff;
    }

        .faq-item.active .faq-arrow i {
            transform: rotate(180deg);
        }

    .faq-item.active .faq-question-text {
        color: #6c4ce6;
    }


/* Mobile */

@media (max-width: 600px) {

    .faq-section {
        padding: 20px 15px;
        border-radius: 14px;
    }

    .faq-header {
        margin-bottom: 18px;
    }

    .faq-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        font-size: 19px;
    }

    .faq-header h3 {
        font-size: 19px;
    }

    .faq-header p {
        font-size: 12px;
    }

    .faq-question {
        min-height: 60px;
        padding: 12px 14px;
    }

    .faq-question-text {
        font-size: 13px;
    }

    .faq-answer-content {
        font-size: 13px;
        line-height: 2;
    }
}
