/**
 * CSG Contact FAQ Widget Styles
 *
 * @package CsgPersonalized
 * @since   1.0.0
 */

/* FAQ list container */
.csg-el-faq__list {
    max-width: 800px;
    margin: 0 auto;
}

/* FAQ item */
.csg-el-faq__item {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--csg-gray-200, #e2e8f0);
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.csg-el-faq__item.is-open {
    border-color: rgba(30, 136, 229, 0.3);
    box-shadow: 0 4px 16px rgba(30, 136, 229, 0.08);
}

/* Question row */
.csg-el-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    gap: 16px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font: inherit;
}

.csg-el-faq__question:hover {
    background: var(--csg-gray-50, #f8fafc);
}

.csg-el-faq__question-text {
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--csg-dark, #0f172a);
    flex: 1;
}

/* Toggle icon */
.csg-el-faq__toggle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 136, 229, 0.1), rgba(30, 136, 229, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--csg-primary, #D4AF37);
}

.csg-el-faq__item.is-open .csg-el-faq__toggle {
    transform: rotate(45deg);
}

/* Answer panel */
.csg-el-faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.csg-el-faq__item.is-open .csg-el-faq__answer {
    max-height: 500px;
}

.csg-el-faq__answer-inner {
    padding: 0 28px 24px;
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #64748b;
}

/* Responsive */
@media (max-width: 768px) {
    .csg-el-faq__question {
        padding: 20px 20px;
    }

    .csg-el-faq__answer-inner {
        padding: 0 20px 20px;
    }

    .csg-el-faq__question-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .csg-el-faq__item {
        border-radius: 12px;
    }

    .csg-el-faq__question {
        padding: 16px;
    }

    .csg-el-faq__answer-inner {
        padding: 0 16px 16px;
    }
}
