/* =========================================================
   MAWAR ELECTRICAL SERVICES
   COMMON FAQ COMPONENT
   ========================================================= */


/* =========================================================
   FAQ MAIN WRAPPER
   ========================================================= */

.site-faq {
    width: 100%;
    max-width: 100%;
    margin: 45px 0 40px;
    padding: 0;
    box-sizing: border-box;
}


/* FAQ HEADING */

.site-faq h2 {
    margin: 0 0 20px;
    padding: 0;

    font-family: inherit;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;

    color: #171717;
}


/* =========================================================
   FAQ ACCORDION
   ========================================================= */

.site-faq-accordion {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* =========================================================
   FAQ ITEM
   ========================================================= */

.site-faq-item {
    width: 100%;

    display: block;

    margin: 0 0 12px;
    padding: 0;

    border: 1px solid #dfe3e8;
    border-radius: 8px;

    background: #ffffff;

    overflow: hidden;

    box-sizing: border-box;
}


/* =========================================================
   FAQ QUESTION BUTTON
   ========================================================= */

.site-faq-question {
    width: 100%;
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin: 0;
    padding: 16px 20px;

    border: 0;
    outline: 0;

    background: #ffffff;
    color: #1f2937;

    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;

    text-align: left;

    cursor: pointer;

    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
}


/* QUESTION HOVER */

.site-faq-question:hover {
    background: #fafafa;
}


/* =========================================================
   QUESTION TEXT
   ========================================================= */

.site-faq-question-text {
    display: block;

    flex: 1;
    min-width: 0;

    padding: 0 15px 0 0;

    margin: 0;

    color: #1f2937;

    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}


/* =========================================================
   PLUS / MINUS ICON
   ========================================================= */

.site-faq-icon {
    width: 28px;
    height: 28px;

    min-width: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 28px;

    margin-left: auto;

    border-radius: 50%;

    background: #f1f3f5;
    color: #222222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;

    text-align: center;
}


/* =========================================================
   OPEN FAQ
   ========================================================= */

.site-faq-item.open .site-faq-question {
    background: #ffffff;
}

.site-faq-item.open .site-faq-icon {
    background: #f1f3f5;
}


/* =========================================================
   FAQ ANSWER
   ========================================================= */

.site-faq-answer {
    width: 100%;

    display: block;

    margin: 0;
    padding: 0 20px 20px;

    background: #ffffff;

    box-sizing: border-box;
}


/* Hidden attribute must remain hidden */

.site-faq-answer[hidden] {
    display: none !important;
}


/* =========================================================
   ANSWER TEXT
   ========================================================= */

.site-faq-answer p {
    margin: 0;
    padding: 0;

    color: #4b5563;

    font-family: inherit;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.75;
}


/* =========================================================
   FAQ FOCUS
   ========================================================= */

.site-faq-question:focus-visible {
    outline: 2px solid #f4b900;
    outline-offset: -2px;
}


/* =========================================================
   FAQ LAST ITEM
   ========================================================= */

.site-faq-item:last-child {
    margin-bottom: 0;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    .site-faq {
        width: 100%;
        margin: 35px 0 30px;
    }

    .site-faq h2 {
        margin-bottom: 18px;

        font-size: 26px;
        line-height: 1.3;
    }

    .site-faq-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }

    .site-faq-question {
        min-height: 54px;

        padding: 14px 15px;

        font-size: 15px;
        line-height: 1.4;
    }

    .site-faq-question-text {
        padding-right: 12px;
    }

    .site-faq-icon {
        width: 26px;
        height: 26px;

        min-width: 26px;
        flex-basis: 26px;

        font-size: 18px;
    }

    .site-faq-answer {
        padding: 0 15px 16px;
    }

    .site-faq-answer p {
        font-size: 14px;
        line-height: 1.7;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 380px) {

    .site-faq {
        margin: 30px 0 25px;
    }

    .site-faq h2 {
        font-size: 24px;
    }

    .site-faq-question {
        min-height: 52px;
        padding: 13px 13px;

        font-size: 14px;
    }

    .site-faq-icon {
        width: 25px;
        height: 25px;

        min-width: 25px;
        flex-basis: 25px;

        font-size: 17px;
    }

    .site-faq-answer {
        padding: 0 13px 15px;
    }

    .site-faq-answer p {
        font-size: 14px;
        line-height: 1.65;
    }
}