/* FAQ section (all screen sizes) */
.ref-faq-section {
    padding: 60px 0;
    background: #fff;
}

.ref-faq-container {
    max-width: 978px;
    padding-left: 24px;
    padding-right: 24px;
}

.ref-faq-head {
    margin-bottom: 40px;
    text-align: center;
}

.ref-faq-head .section-badge {
    margin-bottom: 6px;
}

.ref-faq-title {
    margin: 0;
    color: #000;
    text-align: center;
}

.ref-faq-accordion {
    display: grid;
    gap: 32px;
}

.ref-faq-item.accordion-item {
    border: 1px solid #4f4f4f;
    border-radius: 4px;
    background: #fff;
    overflow: hidden;
}

.ref-faq-header {
    margin: 0;
}

.ref-faq-button {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 27px 40px;
    border: 0;
    background: #fff;
    box-shadow: none;
    color: #221c44;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    text-align: left;
}

.ref-faq-button:hover,
.ref-faq-button:focus,
.ref-faq-button:not(.collapsed) {
    background: #fff;
    color: #221c44;
    box-shadow: none;
}

.ref-faq-button:focus-visible {
    outline: 2px solid #221c44;
    outline-offset: -4px;
}

/* plus / minus in a circle */
.ref-faq-button::after,
.ref-faq-button:not(.collapsed)::after {
    content: "+";
    flex: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: auto;
    border: 1px solid #111;
    border-radius: 50%;
    background: none;
    color: #111;
    font-size: 18px;
    font-weight: 400;
    line-height: 1;
    transform: none;
}

.ref-faq-button:not(.collapsed)::after {
    content: "\2212";
}

.ref-faq-body {
    padding: 0 40px 26px;
    background: #fff;
}

.ref-faq-line {
    display: none;
}

html body .ref-faq-section .ref-faq-text {
    margin: 0;
    color: #221c44;
    font-size: 17px !important;
    line-height: 28px;
}

@media (min-width: 992px) {
    .ref-faq-section .ref-faq-order.d-lg-none {
        display: none !important;
    }
}

.ref-faq-order {
    margin: 36px auto 0;
}

@media (max-width: 991px) {
    .ref-faq-section {
        padding: 45px 0;
    }

    .ref-faq-head {
        margin-bottom: 28px;
    }

    .ref-faq-accordion {
        gap: 16px;
    }

    .ref-faq-button {
        padding: 20px 22px;
        font-size: 18px;
        line-height: 26px;
    }

    .ref-faq-body {
        padding: 0 22px 22px;
    }
}

/* keep the open question the same colour as the closed ones */
.ref-faq-section .ref-faq-button:not(.collapsed) {
    color: #221c44 !important;
}

/* Phones: same design at the previous phone FAQ sizes */
@media (max-width: 575px) {
    .ref-faq-section {
        padding: 40px 0;
    }

    .ref-faq-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ref-faq-head {
        margin-bottom: 24px;
    }

    .ref-faq-accordion {
        gap: 10px;
    }

    .ref-faq-button {
        gap: 12px;
        padding: 16px;
        font-size: 16px;
        line-height: 23px;
    }

    .ref-faq-body {
        padding: 0 16px 16px;
    }

    html body .ref-faq-section .ref-faq-text {
        font-size: 14px !important;
        line-height: 21px;
    }

    .ref-faq-phone .mobile-cta-wrapper {
        margin-top: 28px;
    }
}
