/* Auto FAQ Schema – Frontend FAQ Accordion */

.afs-faq {
    --afs-accent:       #2271b1;
    --afs-border:       #dcdcde;
    --afs-bg-hover:     #f6f7f7;
    --afs-radius:       6px;
    --afs-transition:   0.2s ease;

    margin: 2em 0;
    font-size: inherit;
}

.afs-faq__title {
    margin-bottom: 1em;
}

/* FAQ Item */
.afs-faq__item {
    border: 1px solid var(--afs-border);
    border-radius: var(--afs-radius);
    margin-bottom: 8px;
    overflow: hidden;
}

/* Question button */
.afs-faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: none;
    border: none;
    padding: 14px 18px;
    font-size: 1em;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    color: inherit;
    gap: 12px;
    transition: background var(--afs-transition);
}
.afs-faq__question:hover,
.afs-faq__item.is-open .afs-faq__question {
    background: var(--afs-bg-hover);
}
.afs-faq__question:focus-visible {
    outline: 2px solid var(--afs-accent);
    outline-offset: -2px;
}

/* Chevron icon */
.afs-faq__icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    transition: transform var(--afs-transition);
    color: var(--afs-accent);
}
.afs-faq__item.is-open .afs-faq__icon {
    transform: rotate(180deg);
}

/* Answer panel – always in flow, max-height drives the animation */
.afs-faq__answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
}
.afs-faq__item.is-open .afs-faq__answer {
    max-height: 1000px;
}
.afs-faq__answer-inner {
    padding: 0 18px 16px;
}
.afs-faq__answer-inner p {
    margin: 0;
    color: #50575e;
    line-height: 1.6;
}
