/* =========================================
   FAQ SECTION
   ========================================= */

.faq {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 80px 48px 100px;
}

.faq__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 64px;
    width: 100%;
    max-width: 1329px;
}

/* Left side - image */
.faq__left {
    flex-shrink: 0;
    width: 433px;
}

.faq__img-wrapper {
    position: relative;
}

.faq__img {
    width: 433px;
    height: 650px;
    object-fit: cover;
    border-radius: 24px;
}

.faq__bubble {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #4F203E;
    border-radius: 99px;
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    color: #FFFFFF;
    white-space: nowrap;
}

.faq__bubble--top {
    top: 10px;
    right: -60px;
}

.faq__bubble--bottom {
    bottom: 40px;
    left: -40px;
}

/* Right side - FAQ content */
.faq__right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
    max-width: 767px;
}

.faq__tag {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 14px;
    background: rgba(78, 32, 61, 0.05);
    border-radius: 32px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 14px;
    line-height: 120%;
    color: #4F203E;
}

.faq__title {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 120%;
    color: #4F203E;
    margin: 0;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Accordion items */
.faq__item {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(79, 32, 63, 0.2);
    border-radius: 24px;
    overflow: hidden;
}

.faq__question {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question span:first-child {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-weight: 500;
    font-size: 24px;
    line-height: 120%;
    color: #4F203E;
}

/* Plus/minus icon */
.faq__icon {
    position: relative;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.faq__icon::before,
.faq__icon::after {
    content: '';
    position: absolute;
    background: #4F203E;
    border-radius: 2px;
}

/* Horizontal bar (always visible) */
.faq__icon::before {
    top: 50%;
    left: 20%;
    right: 20%;
    height: 2px;
    transform: translateY(-50%);
}

/* Vertical bar (hidden when open) */
.faq__icon::after {
    left: 50%;
    top: 20%;
    bottom: 20%;
    width: 2px;
    transform: translateX(-50%);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq__item[open] .faq__icon::after {
    transform: translateX(-50%) scaleY(0);
    opacity: 0;
}

/* Answer content - animated */
.faq__answer {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq__item[open] .faq__answer {
    padding: 0 18px 18px;
    max-height: 300px;
}

.faq__answer p {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 120%;
    color: #6F6F6F;
    margin: 0;
}

/* ========== RESPONSIVE ========== */

@media (max-width: 1100px) {
    .faq {
        padding: 60px 24px 80px;
    }

    .faq__container {
        gap: 40px;
    }

    .faq__left {
        width: 300px;
    }

    .faq__img {
        width: 300px;
        height: 450px;
    }

    .faq__bubble--top {
        right: -15px;
    }

    .faq__bubble--bottom {
        left: -20px;
    }

    .faq__bubble {
        font-size: 15px;
        padding: 12px;
    }
}

@media (max-width: 900px) {
    .faq {
        padding: 48px 16px 60px;
    }

    .faq__container {
        flex-direction: column;
        align-items: center;
    }

    .faq__left {
        width: 100%;
        max-width: 320px;
    }

    .faq__img {
        width: 100%;
        height: auto;
        aspect-ratio: 2/3;
    }

    .faq__title {
        font-size: 28px;
    }

    .faq__question span:first-child {
        font-size: 18px;
    }

    .faq__answer p {
        font-size: 15px;
    }

    .faq__bubble {
        font-size: 13px;
        padding: 10px 14px;
    }

    .faq__bubble--top {
        right: 10px;
        top: 10px;
    }

    .faq__bubble--bottom {
        left: 10px;
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .faq__left {
        max-width: 260px;
    }

    .faq__title {
        font-size: 24px;
    }

    .faq__right {
        gap: 12px;
    }

    .faq__question {
        padding: 14px;
    }

    .faq__question span:first-child {
        font-size: 16px;
    }

    .faq__item {
        border-radius: 18px;
    }

    .faq__list {
        gap: 14px;
    }

    .faq__answer p {
        font-size: 14px;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .faq {
        padding: 36px 12px 48px;
    }

    .faq__left {
        display: none;
    }

    .faq__tag {
        font-size: 12px;
        padding: 8px 12px;
    }

    .faq__title {
        font-size: 20px;
    }

    .faq__question {
        padding: 12px;
    }

    .faq__question span:first-child {
        font-size: 15px;
    }

    .faq__answer {
        padding: 0 12px;
    }

    .faq__item[open] .faq__answer {
        padding: 0 12px 12px;
    }

    .faq__answer p {
        font-size: 13px;
        line-height: 1.5;
    }

    .faq__item {
        border-radius: 14px;
        border-width: 1.5px;
    }

    .faq__list {
        gap: 10px;
    }

    .faq__icon {
        width: 20px;
        height: 20px;
    }
}
