/* ── FAQ Schema — Apple-style UI ───────────────────────── */

.wp-faq-schema-wrap {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    box-sizing: border-box;
}

.wp-faq-schema-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1d1d1f;
    letter-spacing: -0.02em;
    margin: 0 0 28px;
}

/* ── Grid ─────────────────────────────────────────────── */

.wp-faq-schema-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-items: start;
}

/* ── Card ─────────────────────────────────────────────── */

.wp-faq-schema-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(25, 168, 129, 0.15);
}

.wp-faq-schema-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.11);
}

/* ── Question button ──────────────────────────────────── */

.wp-faq-schema-question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    background: #FFF;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d1d1f;
    line-height: 1.4;
    transition: background 0.18s ease;
    flex: 1;
}

.wp-faq-schema-question:focus {
    outline: none;
}

.wp-faq-schema-question:focus-visible {
    outline: 2px solid #19A881;
    outline-offset: -2px;
    border-radius: 16px;
}

.wp-faq-schema-item.is-open .wp-faq-schema-question {
    background: #edfaf5;
    color: #117a5c;
}

/* ── Question icon ────────────────────────────────────── */

.wp-faq-schema-q-icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #19A881;
    transition: color 0.18s ease;
}

.wp-faq-schema-item.is-open .wp-faq-schema-q-icon {
    color: #117a5c;
}

/* ── Question text ────────────────────────────────────── */

.wp-faq-schema-q-text {
    flex: 1;
    min-width: 0;
}

/* ── Chevron ──────────────────────────────────────────── */

.wp-faq-schema-chevron {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    color: #19A881;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.18s ease;
}

.wp-faq-schema-item.is-open .wp-faq-schema-chevron {
    transform: rotate(180deg);
    color: #117a5c;
}

/* ── Answer panel ─────────────────────────────────────── */

.wp-faq-schema-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                opacity   0.3s ease;
    opacity: 0;
    background: #ffffff;
}

.wp-faq-schema-answer[hidden] {
    display: block !important; /* keep in flow for animation */
    visibility: hidden;
}

.wp-faq-schema-item.is-open .wp-faq-schema-answer {
    opacity: 1;
    visibility: visible;
}

.wp-faq-schema-answer-body {
    padding: 16px 20px 20px;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #3d3d3f;
    border-top: 1px solid rgba(25, 168, 129, 0.15);
}

.wp-faq-schema-answer-body p {
    margin: 0 0 0.75em;
}

.wp-faq-schema-answer-body p:last-child {
    margin-bottom: 0;
}

/* ── Mobile ───────────────────────────────────────────── */

@media (max-width: 768px) {
    .wp-faq-schema-items {
        grid-template-columns: 1fr;
    }

    .wp-faq-schema-title {
        font-size: 1.4rem;
    }

    .wp-faq-schema-question {
        font-size: 0.9rem;
        padding: 15px 16px;
    }

    .wp-faq-schema-answer-body {
        font-size: 0.875rem;
        padding: 14px 16px 16px;
    }
}