/* ═══════════════════════════════════════════════
   Client FAQs — Stylesheet
   Font: Crimson Pro (loaded via theme or @import below)
   Green: #16955f  |  Gold: #f9b416
═══════════════════════════════════════════════ */


/* ── Block wrapper ─────────────────────────── */
.cfaq-block {
    margin: 0 auto 2.5rem;
    font-family: inherit;
}

.cfaq-block-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    font-size: 30px;
    color: #434445 !important;
    margin-bottom: 1.25rem !important;
}

/* ── Filter bar ────────────────────────────── */
.cfaq-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.cfaq-filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

.cfaq-filter-select {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 10px;
    border: 1.5px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem 2.25rem 0.5rem 0.85rem;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    min-width: 200px;
    transition: border-color 0.2s ease;
}

.cfaq-filter-select:focus {
    outline: none;
    border-color: #16955f;
    box-shadow: 0 0 0 2px rgba(22, 149, 95, 0.15);
}

/* ── Accordion wrapper ─────────────────────── */
.cfaq-accordion {
    border-top: 1px solid #d8d8d8;
}

/* ── Individual item ───────────────────────── */
.cfaq-item {
    border-bottom: 1px solid #d8d8d8;
}

.cfaq-item.cfaq-hidden {
    display: none;
}

/* ── Question button ───────────────────────── */
.cfaq-question {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    width: 100%;
    background: transparent;
    border: none;
    padding: 1rem 0;
    cursor: pointer;
    text-align: left;
    line-height: 1.4;
    transition: color 0.2s ease;
    box-shadow: 0px 0px 0px 0px rgba(0,0,0,0);

    /* Icon comes FIRST (left side), matching the screenshots */
    flex-direction: row;
}
.cfaq-question:hover, .cfaq-question:focus {    
	background: transparent;
}
/* ── Icon — rendered as +/– using pseudo-elements ── */
.cfaq-icon {
    flex-shrink: 0;
    width: 1.1rem;
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1;
    color: #16955f;
    transition: color 0.2s ease;
    user-select: none;

    /* Use content via pseudo so screen readers ignore it */
    position: relative;
}

.cfaq-icon::before {
    content: '+';
}

.cfaq-question.is-open .cfaq-icon::before {
    content: '\2013'; /* en dash — matches screenshot */
}

/* Question text */
.cfaq-question-text {
    flex: 1;
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 25px; 
    font-weight: 300;
    color: #434445;
    line-height:1.2em;
    transition: color 0.2s ease;
}

/* Open state — title turns green */
.cfaq-question.is-open .cfaq-question-text {
    color: #16955f;
}

.cfaq-question.is-open .cfaq-icon {
    color: #f9b416;
}

/* Hover state */
.cfaq-question:hover .cfaq-question-text {
    color: #16955f;
}

.cfaq-question:hover .cfaq-icon {
    color: #16955f;
}

/* ── Answer panel ──────────────────────────── */
.cfaq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
}

.cfaq-answer-inner {
    padding: 0.1rem 0 1.25rem 2rem; /* indent to align with question text */
    font-size: 1rem;
    color: #434445;
    line-height: 1.75;
    font-family: inherit;
}

.cfaq-answer-inner p:last-child {
    margin-bottom: 0;
}



.cfaq-answer-inner ul,
.cfaq-answer-inner ol {
    padding-left: 1.5rem;
}

/* ── "No results" message ──────────────────── */
.cfaq-no-results {
    padding: 1.25rem 0;
    color: #888;
    font-style: italic;
    font-size: 0.95rem;
    display: none;
}

.cfaq-no-results.is-visible {
    display: block;
}

/* ── Error message ─────────────────────────── */
.cfaq-error {
    color: #c0392b;
    font-size: 0.9rem;
    padding: 0.5rem 0.75rem;
    background: #fdf3f2;
    border-left: 3px solid #c0392b;
    border-radius: 3px;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 600px) {
    .cfaq-filter-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .cfaq-filter-select {
        width: 100%;
        min-width: unset;
    }

    .cfaq-question-text {
        font-size: 1rem;
    }
}
