@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

.ifag-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.ifag-faq-item {
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.ifag-faq-item:hover {
    border-color: #e0e0e0;
}

/* --- ACTIVE STATE --- */
.ifag-faq-item.active {
    background: #FFF1F2; /* Pale pink background from image */
    border-color: #FFE4E6;
}

.ifag-faq-question {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.ifag-faq-title {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    line-height: 1.4;
    padding-right: 20px;
}

/* --- ICON BOX --- */
.ifag-faq-icon-box {
    width: 32px;
    height: 32px;
    border: 1.5px solid #111111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s ease;
    color: #111111;
}

.ifag-faq-icon-box svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Icon rotation or change on active */
.ifag-faq-item.active .ifag-faq-icon-box {
    background: #111111;
    color: #ffffff;
}

/* --- ANSWER ANIMATION --- */
.ifag-faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.ifag-faq-item.active .ifag-faq-answer-wrapper {
    grid-template-rows: 1fr;
}

.ifag-faq-answer {
    overflow: hidden;
    color: #4B5563;
    font-size: 15px;
    line-height: 1.6;
}

.ifag-faq-answer-inner {
    padding: 0 30px 25px 30px;
}

.ifag-faq-answer-inner p {
    margin: 0 0 10px 0;
}

.ifag-faq-answer-inner p:last-child {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .ifag-faq-question {
        padding: 20px;
    }
    .ifag-faq-answer-inner {
        padding: 0 20px 20px 20px;
    }
    .ifag-faq-title {
        font-size: 15px;
    }
}
