.smart-faq-box {
    --faq-primary: #c2185b;
    --faq-primary-dark: #9f1239;
    --faq-text: #111827;
    --faq-muted: #6b7280;
    --faq-border: rgba(17, 24, 39, 0.08);

    margin-top: 44px;
    padding: 34px;
    direction: rtl;
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(17, 24, 39, 0.06);
}

.smart-faq-title {
    margin: 0 0 24px;
    font-size: 29px;
    font-weight: 900;
    line-height: 1.4;
    color: var(--faq-text);
}

.smart-faq-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.smart-faq-item {
    background: #fff;
    border: 1px solid #ececf1;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 4px 18px rgba(17, 24, 39, 0.03);
}

.smart-faq-item:hover {
    border-color: rgba(194, 24, 91, 0.18);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
    transform: translateY(-1px);
}

.smart-faq-item.is-open {
    border-color: rgba(194, 24, 91, 0.18);
    box-shadow: 0 14px 32px rgba(194, 24, 91, 0.08);
}

.smart-faq-trigger {
    all: unset;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    padding: 18px 20px;
    cursor: pointer;
    direction: rtl;
    text-align: right;
    color: var(--faq-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.9;
}

.smart-faq-trigger:hover {
    background: #fcfcfd;
}

.smart-faq-trigger:focus-visible {
    outline: 2px solid rgba(194, 24, 91, 0.18);
    outline-offset: -2px;
}

.smart-faq-trigger-text {
    flex: 1;
    min-width: 0;
    padding-inline-start: 6px;
}

.smart-faq-trigger-icon {
    position: relative;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border-radius: 8px;
    background: #f8f8fb;
    border: 1px solid #ececf1;
    margin-inline-start: 10px;
    margin-inline-end: 2px;
    transition: all 0.25s ease;
}

.smart-faq-trigger-icon::before,
.smart-faq-trigger-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 1.8px;
    background: #7b8190;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    transition: all 0.25s ease;
}

.smart-faq-trigger-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.smart-faq-item.is-open .smart-faq-trigger {
    color: var(--faq-primary-dark);
}

.smart-faq-item.is-open .smart-faq-trigger-icon {
    background: rgba(194, 24, 91, 0.08);
    border-color: rgba(194, 24, 91, 0.14);
}

.smart-faq-item.is-open .smart-faq-trigger-icon::before,
.smart-faq-item.is-open .smart-faq-trigger-icon::after {
    background: var(--faq-primary);
}

.smart-faq-item.is-open .smart-faq-trigger-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg) scale(0.65);
}

.smart-faq-panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s ease;
}

.smart-faq-item.is-open .smart-faq-panel {
    grid-template-rows: 1fr;
}

.smart-faq-panel-inner {
    min-height: 0;
    overflow: hidden;
    padding: 0 20px 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 2.1;
}

.smart-faq-item.is-open .smart-faq-panel-inner {
    padding: 0 20px 18px;
}

.smart-faq-panel-inner::before {
    content: "";
    display: block;
    height: 1px;
    margin-bottom: 14px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(17, 24, 39, 0.08),
        transparent
    );
}

.smart-faq-panel-inner p {
    margin: 0 0 12px;
}

.smart-faq-panel-inner p:last-child {
    margin-bottom: 0;
}

.smart-faq-panel-inner ul,
.smart-faq-panel-inner ol {
    margin: 0 0 12px;
    padding-right: 18px;
}

.smart-faq-panel-inner li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .smart-faq-box {
        padding: 20px;
        border-radius: 18px;
    }

    .smart-faq-title {
        font-size: 24px;
        margin-bottom: 18px;
    }

    .smart-faq-trigger {
        padding: 15px 16px;
        font-size: 15px;
        gap: 10px;
    }

    .smart-faq-trigger-text {
        padding-inline-start: 4px;
    }

    .smart-faq-trigger-icon {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
        margin-inline-start: 8px;
    }

    .smart-faq-panel-inner {
        font-size: 14px;
        padding: 0 16px 0;
    }

    .smart-faq-item.is-open .smart-faq-panel-inner {
        padding: 0 16px 16px;
    }
}
