/* FAQ Wtyczka - Style Frontend */

.faq-wrapper {
    width: 100%;
    padding: 40px 20px;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item-accordion {
    margin-bottom: 0;
}

/* Pytanie - Header */
.faq-question {
    width: 100%;
    padding: 20px 25px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-bottom: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    font-weight: 500;
    color: #333;
    position: relative;
}

.faq-question:hover {
    background-color: #ECE0CA;
}

.faq-question[aria-expanded="true"] {
    background-color: #ECE0CA;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-question-text {
    flex: 1;
    padding-right: 20px;
}

.faq-chevron {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: #333;
    flex-shrink: 0;
}

.faq-question[aria-expanded="true"] .faq-chevron {
    transform: rotate(180deg);
}

/* Odpowiedź - Content */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-top: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-answer.active {
    max-height: 2000px;
}

.faq-answer-content {
    padding: 35px;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #333;
    line-height: 1.6;
}

.faq-answer-content p {
    margin: 0 0 15px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.faq-answer-content li {
    margin-bottom: 10px;
}

.faq-answer-content a {
    color: #d49f58;
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-answer-content a:hover {
    color: #c08f4a;
    text-decoration: underline;
}

/* Ostatni element - zamyka dolny border */
.faq-item-accordion:last-child .faq-question {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

.faq-item-accordion:last-child .faq-answer {
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}

/* Responsywność */
@media (max-width: 768px) {
    .faq-wrapper {
        padding: 20px 15px;
    }
    
    .faq-question {
        padding: 15px 20px;
        font-size: 15px;
    }
    
    .faq-answer-content {
        padding: 25px 20px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .faq-answer-content {
        padding: 20px 15px;
        font-size: 16px;
    }
    
    .faq-chevron {
        font-size: 10px;
    }
}

