/* FAQ Section Styles - BEM Methodology */

.faq {
    width: 100%;
    padding: 80px 20px;
    background-color: #ffffff;
    direction: ltr;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.faq.faq--visible {
    opacity: 1;
    transform: translateY(0);
}

.faq__container {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.faq__title {
    font-size: 32px;
    font-weight: 600;
    color: #000000;
    text-align: center !important;
    margin: 0 auto 50px auto !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    width: 100%;
    display: block;
    position: relative;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s, 
                transform 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
    will-change: opacity, transform;
}

.faq--visible .faq__title {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.faq__title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60px;
    height: 2px;
    background-color: #000000;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.faq--visible .faq__title::after {
    transform: translateX(-50%) scaleX(1);
}

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

.faq__item {
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #e5e5e5;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.faq__item:last-child {
    border-bottom: none;
}

.faq__item.faq__item--visible {
    opacity: 1;
    transform: translateY(0);
}

.faq__item.faq__item--active {
    border-bottom-color: #000000;
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    background-color: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.faq__question:hover {
    opacity: 0.7;
}

.faq__question:focus {
    outline: none;
}

.faq__question:focus-visible {
    outline: none;
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    color: #000000;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.faq__icon svg {
    width: 16px;
    height: 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item--active .faq__icon {
    transform: rotate(180deg);
}

.faq__item--active .faq__icon svg {
    transform: rotate(180deg);
}

.faq__question-text {
    flex: 1;
    font-size: 15px;
    font-weight: 400;
    color: #000000;
    line-height: 1.5;
    letter-spacing: 0.2px;
    transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq__item--active .faq__question-text {
    color: #000000;
    font-weight: 500;
}

.faq__answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.faq__item--active .faq__answer-wrapper {
    max-height: 1000px;
    opacity: 1;
}

.faq__answer {
    padding: 0 0 20px 39px;
    font-size: 14px;
    font-weight: 400;
    color: #666666;
    line-height: 1.7;
    letter-spacing: 0.1px;
}

.faq__answer p {
    margin: 0 0 15px 0;
}

.faq__answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Styles */

/* Large Devices (Desktops, less than 1200px) */
@media (max-width: 1199.98px) {
    .faq__title {
        font-size: 32px;
    }
}

/* Medium Devices (Tablets, less than 992px) */
@media (max-width: 991.98px) {
    .faq__title {
        font-size: 28px;
        margin-bottom: 45px !important;
    }

    .faq__question {
        padding: 18px 0;
    }

    .faq__answer {
        padding: 0 0 18px 39px;
    }
}

/* Small Devices (Landscape Phones, less than 768px) */
@media (max-width: 767.98px) {
    .faq {
        padding: 60px 15px;
    }

    .faq__title {
        font-size: 24px;
        margin-bottom: 40px !important;
    }

    .faq__list {
        gap: 0;
    }

    .faq__question {
        padding: 16px 0;
        gap: 12px;
    }

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

    .faq__icon svg {
        width: 14px;
        height: 14px;
    }

    .faq__question-text {
        font-size: 14px;
    }

    .faq__answer {
        padding: 0 0 16px 32px;
        font-size: 13px;
    }
}

/* Extra Small Devices (Portrait Phones, less than 576px) */
@media (max-width: 575.98px) {
    .faq {
        padding: 50px 10px;
    }

    .faq__title {
        font-size: 20px;
        margin-bottom: 35px !important;
    }

    .faq__list {
        gap: 0;
    }

    .faq__question {
        padding: 14px 0;
        gap: 10px;
    }

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

    .faq__icon svg {
        width: 12px;
        height: 12px;
    }

    .faq__question-text {
        font-size: 13px;
    }

    .faq__answer {
        padding: 0 0 14px 28px;
        font-size: 12px;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .faq,
    .faq__title,
    .faq__item,
    .faq__icon,
    .faq__answer-wrapper {
        transition: none;
        animation: none;
    }
}

