/**
 * Frontend styles for Houzez Property FAQs
 */

.property-faq-wrap {
    margin: 30px 0;
    padding: 30px 0;
    background-color: #f8f9fa;
}

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

.property-faq-wrap h2 {
    color: #212529;
    font-size: 28px;
    margin-bottom: 15px;
}

.faq-description {
    color: #6c757d;
    font-size: 16px;
    max-width: 800px;
    margin: 0 auto;
}

.houzez-faqs-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

.houzez-faqs {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.houzez-faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    background: #ffffff;
    transition: all 0.3s ease;
}

.houzez-faq-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.houzez-faq-question {
    padding: 20px 25px;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    cursor: pointer;
    position: relative;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.houzez-faq-question:hover {
    background: #f8f9fa;
}

.houzez-faq-question .faq-icon {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    text-align: center;
    transition: transform 0.3s ease;
}

.houzez-faq-question .faq-icon:before {
    content: "+";
    font-size: 24px;
    line-height: 1;
    color: #0073aa;
}

.houzez-faq-item.active .houzez-faq-question .faq-icon:before {
    content: "-";
}

.houzez-faq-answer {
    padding: 0 25px;
    color: #495057;
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s ease;
}

.houzez-faq-answer > *:first-child {
    margin-top: 0;
}

.houzez-faq-answer > *:last-child {
    margin-bottom: 0;
}

.houzez-faq-answer p {
    margin: 15px 0;
    line-height: 1.6;
}

/* Responsive styles */
@media (max-width: 768px) {
    .property-faq-wrap h2 {
        font-size: 24px;
    }
    
    .houzez-faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .houzez-faq-question .faq-icon {
        right: 20px;
    }
    
    .houzez-faq-answer {
        padding: 0 20px;
    }
    
    .houzez-faq-answer p {
        margin: 12px 0;
    }
}

@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;
    }
    
    .houzez-faq-question {
        padding: 12px 15px;
        font-size: 15px;
    }
    
    .houzez-faq-question .faq-icon {
        right: 15px;
    }
    
    .houzez-faq-answer {
        padding: 0 15px;
    }
}