/* FAQ Search Widget Styles */
.faq-search-container {
    margin-bottom: 32px;
    max-width: 600px;
}

.faq-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.faq-search-input {
    width: 100%;
    padding: 14px 80px 14px 20px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

.faq-search-input:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.faq-clear-button {
    position: absolute;
    right: 48px;
    background: none;
    border: none;
    color: #999;
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    display: none;
}

.faq-clear-button:hover {
    color: #666;
    transform: scale(1.1);
}

.faq-clear-button:active {
    transform: scale(0.95);
}

.faq-clear-button:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
    border-radius: 4px;
}

.faq-search-icon {
    position: absolute;
    right: 16px;
    color: #999;
    pointer-events: none;
    font-size: 18px;
}

.faq-search-results {
    margin-top: 12px;
    font-size: 14px;
    color: #666;
}

/* Highlight styling */
.faq-highlight {
    background-color: #fff3cd;
    padding: 2px 4px;
    border-radius: 2px;
    font-weight: 600;
}

/* Hide non-matching FAQs */
.wp-block-details.faq-hidden,
.wp-block-faq.faq-hidden {
    display: none;
}

/* Animate matching FAQs */
.wp-block-details.faq-match,
.wp-block-faq.faq-match {
    animation: pulseHighlight 0.6s ease;
}

@keyframes pulseHighlight {
    0%, 100% {
        background-color: #ffffff;
    }
    50% {
        background-color: #e3f2fd;
    }
}

/* No results message */
.faq-no-results {
    padding: 24px;
    text-align: center;
    color: #999;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    display: none;
}

.faq-no-results.show {
    display: block;
}