/* FAQ Section Refonte - Pixel Perfect */

.refonte-faq-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 64px 64px;
    /* Exact padding from design: 64px top/bottom, 64px left/right */
    background: #FFFFFF;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 48px;
    /* Exact gap from design */
    box-sizing: border-box;
}

/* Left Column - Header */
.faq-header {
    width: 517px;
    /* Fixed width from design */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    flex-shrink: 0;
}

.faq-title {
    font-size: 48px;
    font-family: var(--font-primary);
    font-weight: 500;
    line-height: 48px;
    color: #003329;
    margin: 0;
}

.faq-title .highlight {
    color: #EC674E;
}

.faq-subtitle {
    font-size: 24px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 28px;
    color: #181D27;
    margin: 0;
}

/* Button */
.btn-faq-demo {
    background: #003329;
    border-radius: 91.09px;
    padding: 4px 4px 4px 16px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #E6FFA3;
    font-size: 16px;
    font-weight: 400;
    font-family: var(--font-primary);
    line-height: 22px;
    transition: transform 0.2s ease;
}

.btn-faq-demo:hover {
    transform: scale(1.05);
}

.btn-faq-demo .arrow-circle {
    width: 32px;
    height: 32px;
    background: #E6FFA3;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-faq-demo .arrow-circle img {
    width: 12px;
    height: 12px;
    /* Use the arrow-black-green.svg if available, or filter. 
       Snippet shows arrow is Dark Green inside Yellow Circle.
       We can reuse arrow-white-yellow.svg but we need the arrow to be dark green. 
       Wait, previous turn we used arrow-white-yellow.svg which implies white arrow on yellow bg?
       Actually, previous turn I constructed it with CSS or used image.
       Let's use CSS for the arrow inside the yellow circle to ensure color control #003329.
    */
}

.arrow-icon-green {
    width: 12px;
    height: 12px;
    position: relative;
}

.arrow-icon-green .part-1 {
    width: 100%;
    height: 2px;
    background: #003329;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
}

.arrow-icon-green .part-2 {
    width: 8px;
    height: 8px;
    border-top: 2px solid #003329;
    border-right: 2px solid #003329;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    margin-top: -1px;
}


/* Right Column - Accordion */
.faq-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: #EFF3F2;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item-header {
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    user-select: none;
}

.faq-question {
    font-size: 18px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 22px;
    color: #181D27;
    flex: 1;
}

.faq-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-icon img {
    width: 100%;
    height: 100%;
}

.faq-item-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 16px;
    /* Initially 0 vertical padding */
}

.faq-answer {
    font-size: 16px;
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 22px;
    color: #414651;
    padding-bottom: 16px;
    /* Padding bottom for content */
}

/* Open State */
.faq-item.open .faq-item-body {
    max-height: 500px;
    /* Arbitrary large height */
    padding-top: 8px;
    padding-bottom: 4px;
    /* Adjust as needed based on snippet "padding-bottom: 16px" on parent? 
                            Snippet says parent padding-bottom: 16px when open. 
                            Let's rely on body padding. */
}

.faq-item.open {
    padding-bottom: 0;
    /* Reset if needed */
}


@media (max-width: 1024px) {
    .refonte-faq-section {
        flex-direction: column;
        align-items: center;
        padding: 64px 24px;
    }

    .faq-header {
        width: 100%;
        max-width: 600px;
        align-items: center;
        text-align: center;
    }

    .faq-list {
        width: 100%;
        max-width: 800px;
    }
}

@media (max-width: 480px) {
    .refonte-faq-section {
        padding: 48px 12px;
        gap: 32px;
    }

    .faq-title {
        font-size: 28px;
        line-height: normal;
    }

    .faq-subtitle {
        font-size: 16px;
        line-height: 1.4;
    }

    .faq-item-header {
        padding: 12px 12px;
        gap: 12px;
    }

    .faq-question {
        font-size: 15px;
    }

    .faq-answer {
        font-size: 14px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .btn-faq-demo {
        width: 100%;
        justify-content: center;
    }
}