/**
 * Frontend styles for Maxx FAQ
 */

/* FAQ Container */
.maxx-faqs-wrapper,
.maxx-faq-elementor-widget {
    max-width: 100%;
    margin: 0 auto;
    background-color: #ffffff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.property-faq-wrap,
.maxx-faq-elementor-widget {
    margin: 30px 0;
    padding: 30px 0;
    background-color: #ffffff;
}

.property-faq-wrap .block-title-wrap {
    margin-bottom: 30px;
}

.property-faq-wrap h2,
.maxx-faq-elementor-widget .maxx-faq-heading {
    color: #2c3e50;
    font-size: 28px;
    margin-bottom: 15px;
}

.faq-description,
.maxx-faq-elementor-widget .maxx-faq-desc {
    color: #495057;
    font-size: 16px;
    max-width: 100%;
    margin: 0 auto;
}

/* FAQ Item */
.maxx-faqs .maxx-faq-item,
.maxx-faq-item {
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* Question Styling */
.maxx-faqs .maxx-faq-question,
.maxx-faq-question {
    cursor: pointer;
    padding: 18px 20px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    background-color: #f8f9fa;
    border: none;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    width: 100%;
    text-align: left;
}

/* Hover and Active States */
.maxx-faqs .maxx-faq-question:hover,
.maxx-faq-question:hover {
    background-color: #e9ecef;
}

.maxx-faqs .maxx-faq-item.active .maxx-faq-question,
.maxx-faq-item.active .maxx-faq-question {
    background-color: #0b6230;
    color: #ffffff;
}

/* Plus/Minus Icon */
.maxx-faqs .maxx-faq-question .faq-icon,
.maxx-faq-question .faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
    margin-left: 15px;
}

.maxx-faqs .maxx-faq-question .faq-icon::after,
.maxx-faq-question .faq-icon::after {
    content: "+";
    font-size: 20px;
    color: #0b6230;
    font-weight: bold;
    transition: all 0.3s ease;
}

.maxx-faqs .maxx-faq-item.active .maxx-faq-question .faq-icon::after,
.maxx-faq-item.active .maxx-faq-question .faq-icon::after {
    content: "−";
    color: #ffffff;
}

/* Answer Styling */
.maxx-faqs .maxx-faq-answer,
.maxx-faq-answer {
    padding: 0;
    font-size: 16px;
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #495057;
}

.maxx-faqs .maxx-faq-item.active .maxx-faq-answer,
.maxx-faq-item.active .maxx-faq-answer {
    padding: 20px;
    max-height: 1000px;
    border-top: 1px solid #e9ecef;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .property-faq-wrap h2 {
        font-size: 24px;
    }

    .maxx-faqs .maxx-faq-question,
    .maxx-faq-question {
        padding: 15px;
        font-size: 16px;
    }

    .maxx-faqs .maxx-faq-answer,
    .maxx-faq-answer {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .property-faq-wrap {
        padding: 20px 0;
        margin: 20px 0;
    }

    .property-faq-wrap h2 {
        font-size: 20px;
    }

    .faq-description {
        font-size: 14px;
        padding: 0 15px;
    }

    .maxx-faqs .maxx-faq-question,
    .maxx-faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }

    .maxx-faqs .maxx-faq-answer,
    .maxx-faq-answer {
        padding: 0 15px;
    }
}