.rmfaq-accordion {
    --rmfaq-bg: #ffffff;
    --rmfaq-ink: #17201a;
    --rmfaq-muted: #687168;
    --rmfaq-border: rgba(24, 36, 29, 0.12);
    --rmfaq-accent: #0d8f6f;
    --rmfaq-warm: #c99418;
    --rmfaq-soft: #f5f8f6;
    display: grid;
    gap: 12px;
    margin: 28px 0;
}

.rmfaq-accordion,
.rmfaq-accordion * {
    box-sizing: border-box;
}

.rmfaq-item {
    background:
        linear-gradient(135deg, rgba(13, 143, 111, 0.08), rgba(201, 148, 24, 0.07)),
        var(--rmfaq-bg);
    border: 1px solid var(--rmfaq-border);
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(28, 43, 35, 0.08);
    overflow: hidden;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.rmfaq-item.is-open {
    border-color: rgba(13, 143, 111, 0.32);
    box-shadow: 0 18px 42px rgba(28, 43, 35, 0.12);
}

.rmfaq-item:hover {
    transform: translateY(-1px);
}

.rmfaq-question,
.schema-faq-question.rank-math-question {
    margin: 0;
}

.rmfaq-question-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--rmfaq-ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    gap: 16px;
    justify-content: space-between;
    line-height: 1.35;
    min-height: 58px;
    padding: 18px 20px;
    text-align: left;
    width: 100%;
}

.rmfaq-question-button:focus-visible {
    outline: 3px solid rgba(13, 143, 111, 0.28);
    outline-offset: -3px;
}

.rmfaq-question-label {
    min-width: 0;
}

.rmfaq-icon {
    align-items: center;
    background: #102018;
    border-radius: 50%;
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
    position: relative;
    width: 30px;
}

.rmfaq-icon::before,
.rmfaq-icon::after {
    background: currentColor;
    border-radius: 2px;
    content: "";
    display: block;
    height: 2px;
    position: absolute;
    transition: transform 180ms ease;
    width: 12px;
}

.rmfaq-icon::after {
    transform: rotate(90deg);
}

.rmfaq-item.is-open .rmfaq-icon {
    background: linear-gradient(135deg, var(--rmfaq-accent), var(--rmfaq-warm));
}

.rmfaq-item.is-open .rmfaq-icon::after {
    transform: rotate(0deg);
}

.rmfaq-answer {
    color: var(--rmfaq-muted);
    line-height: 1.72;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 260ms ease, padding 260ms ease;
}

.rmfaq-item.is-open .rmfaq-answer {
    padding-bottom: 20px;
}

.rmfaq-answer > :first-child {
    margin-top: 0;
}

.rmfaq-answer > :last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .rmfaq-question-button {
        font-size: 16px;
        min-height: 54px;
        padding: 16px;
    }

    .rmfaq-answer {
        padding-left: 16px;
        padding-right: 16px;
    }
}
