.pianissimes-faq-accordion {
    width: 100%;
    margin: 2rem 0;
}

.faq-accordion-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Search functionality */
.faq-search-container {
    position: relative;
    margin-bottom: 2rem;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid var(--wp--preset--color--creme, #e8e6e0);
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.faq-search-input:focus {
    outline: none;
    border-color: var(--wp--preset--color--bleu, #2c5282);
    box-shadow: 0 0 0 3px rgba(44, 82, 130, 0.1);
}

.faq-search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--wp--preset--color--gris, #666);
    pointer-events: none;
}

/* FAQ Items */
.faq-accordion {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.faq-item {
    border-bottom: 1px solid var(--wp--preset--color--creme, #e8e6e0);
    background: white;
    transition: background-color 0.3s ease;
}

.faq-item:last-child {
    border-bottom: none;
}



/* FAQ Questions (buttons) */
.faq-question {
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--wp--preset--color--dark, #333);
    transition: color 0.3s ease;
    position: relative;
}

.faq-question:hover {
    color: var(--wp--preset--color--bordeaux, #e67e22);
}

/*
.faq-question:focus {
    outline: 2px solid var(--wp--preset--color--bordeaux, #2c5282);
    outline-offset: -2px;
} */

.faq-question-text {
    flex: 1;
    line-height: 1.4;
}

/* FAQ Icon */
.faq-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--wp--preset--color--orange, #e67e22);
    color: white;
    transition: all 0.3s ease;
}

.faq-item--open .faq-icon {
    transform: rotate(45deg);
    background: var(--wp--preset--color--bleu, #2c5282);
}

.faq-icon svg {
    transition: transform 0.3s ease;
}

/* FAQ Answers */
.faq-answer-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item--open .faq-answer-container {
    max-height: 1000px;
    /* Large enough for most content */
}

.faq-answer-content {
    padding: 0 2rem 1.5rem 2rem;
    color: var(--wp--preset--color--dark, #333);
    line-height: 1.6;
    border-top: 1px solid var(--wp--preset--color--creme, #e8e6e0);
    margin-top: 0;
}

.faq-answer-content p {
    margin: 1rem 0 0 0;
}

.faq-answer-content p:first-child {
    margin-top: 1.5rem;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* Enhanced animations */
.faq-answer-container {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item--open .faq-answer-container {
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* No results message */
.faq-no-results {
    text-align: center;
    padding: 2rem;
    color: var(--wp--preset--color--gris, #666);
    font-style: italic;
}

/* Search highlighting */
.faq-highlight {
    background: rgba(230, 126, 34, 0.2);
    padding: 0 2px;
    border-radius: 2px;
}

/* Hidden items during search */
.faq-item.faq-hidden {
    display: none;
}

/* Loading state */
.faq-accordion.faq-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .faq-search-input {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
        font-size: 0.9rem;
    }

    .faq-search-icon {
        right: 0.875rem;
    }
}

@media (max-width: 480px) {
    .pianissimes-faq-accordion {
        margin: 1rem 0;
    }

    .faq-question {
        padding: 1rem;
        font-size: 0.95rem;
        gap: 0.75rem;
    }

    .faq-answer-content {
        padding: 0 1rem 1rem 1rem;
        font-size: 0.9rem;
    }

    .faq-icon {
        width: 20px;
        height: 20px;
    }

    .faq-icon svg {
        width: 14px;
        height: 14px;
    }

    .faq-search-container {
        margin-bottom: 1.5rem;
    }
}

/* Animation for better UX */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item {
    animation: fadeIn 0.3s ease-out;
}

/* Focus visible for better accessibility */
.faq-question:focus-visible {
    outline: 2px solid var(--wp--preset--color--orange, #e67e22);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .faq-item {
        border-bottom: 2px solid var(--wp--preset--color--dark, #333);
    }

    .faq-icon {
        border: 2px solid var(--wp--preset--color--dark, #333);
    }
}


@media (max-width: 768px) {
    .faq-accordion-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
