/* FAQ premium */
#faq {
    background: #ffffff;
}

.faq-filter-wrap {
    max-width: 920px;
    margin: 0 auto 1.4rem;
    text-align: center;
}

.faq-filter-title {
    margin: 0 0 .75rem;
    color: #475569;
    font-size: .94rem;
    font-weight: 650;
    letter-spacing: .01em;
}

.faq-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .62rem;
    margin-bottom: .9rem;
}

.faq-filter-btn {
    border: 1px solid #d5dde8;
    border-radius: 9999px;
    background: rgba(248, 250, 252, 0.92);
    color: #334155;
    padding: .48rem .92rem;
    font-size: .84rem;
    font-weight: 700;
    line-height: 1.1;
    transition: border-color .24s ease, color .24s ease, background .24s ease, transform .24s ease;
}

.faq-filter-btn:hover {
    border-color: #c2cedd;
    color: #0f172a;
    background: #ffffff;
    transform: translateY(-1px);
}

.faq-filter-btn.is-active {
    border-color: rgba(130, 253, 40, 0.95);
    color: #365d16;
    background: rgba(130, 253, 40, 0.16);
}

.faq-search-wrap {
    max-width: 560px;
    margin: 0 auto;
}

.faq-search-field {
    display: flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid #d5dde8;
    background: #ffffff;
    border-radius: .95rem;
    padding: .62rem .78rem;
    transition: border-color .24s ease, box-shadow .24s ease;
}

.faq-search-field:focus-within {
    border-color: rgba(130, 253, 40, .95);
    box-shadow: 0 0 0 3px rgba(130, 253, 40, .12);
}

.faq-search-icon {
    color: #64748b;
    font-size: .88rem;
    flex-shrink: 0;
}

.faq-search-input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    color: #0f172a;
    font-size: .92rem;
    line-height: 1.35;
}

.faq-search-input::placeholder {
    color: #94a3b8;
}

.faq-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.faq-search-input::-ms-clear {
    display: none;
    width: 0;
    height: 0;
}

.faq-search-clear {
    border: 0;
    background: transparent;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: #64748b;
    font-size: .78rem;
    font-weight: 700;
    line-height: 1;
    padding: .24rem;
    border-radius: .45rem;
    transition: color .2s ease, background .2s ease;
}

.faq-search-clear i,
.faq-search-clear span {
    color: currentColor;
}

.faq-search-clear:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.faq-search-meta {
    margin-top: .46rem;
    font-size: .77rem;
    color: #64748b;
    min-height: 1.15rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 4px;
    grid-auto-flow: row dense;
    align-items: start;
}

.faq-item[hidden] {
    display: none !important;
}

.faq-item {
    align-self: start;
    border: 1px solid #d5dde8;
    border-radius: 1rem;
    background: #ffffff;
    overflow: hidden;
    transition:
    border-color .34s ease,
    background .34s ease,
    opacity .34s ease,
    transform .36s cubic-bezier(.22, .61, .36, 1),
    filter .36s ease;
}

.faq-grid.is-filtering .faq-item {
    transition-delay: var(--faq-enter-delay, 0ms);
}

.faq-item.is-filter-enter {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(6px);
}

.faq-item:hover {
    border-color: #bfcbda;
}

.faq-item[open] {
    border-color: #82FD28;
    background: #ffffff;
}

.faq-question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: .9rem;
    cursor: pointer;
    list-style: none;
    padding: 1.05rem 1.15rem;
    color: #0f172a;
    font-size: clamp(1.02rem, 1.3vw, 1.06rem);
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: -.01em;
    transition: color .24s ease;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: "";
}

.faq-question-text {
    min-width: 0;
    transition: transform .32s ease;
}

.faq-item[open] .faq-question-text {
    transform: translateY(1px);
}

.faq-chevron {
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    line-height: 0;
    border: 1px solid rgba(148, 163, 184, 0.42);
    color: #334155;
    background: rgba(255, 255, 255, 0.92);
    flex-shrink: 0;
    transition:
    color .3s ease,
    border-color .3s ease,
    background .3s ease;
}

.faq-chevron i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: .72rem;
    height: .72rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    line-height: 1;
    transform-origin: center;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}

.faq-item[open] .faq-chevron {
    color: #4fa816;
    border-color: #82FD28;
    background: rgba(130, 253, 40, 0.12);
}

.faq-item[open] .faq-chevron i {
    transform: translate(-50%, -50%) rotate(180deg);
}

.faq-answer-wrap {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    will-change: max-height, opacity;
    transition:
    max-height .46s cubic-bezier(.22, .61, .36, 1),
    opacity .28s ease;
}

.faq-item[open] .faq-answer-wrap {
    max-height: 32rem;
    opacity: 1;
}

.faq-answer {
    overflow: hidden;
    padding: 0 1.15rem 0;
    transform: translateY(-6px);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
}

.faq-item[open] .faq-answer {
    transform: translateY(0);
}

.faq-answer p {
    margin: 0 0 .58rem;
    color: #4b5563;
    line-height: 1.72;
    transform: translateY(-7px);
    opacity: 0;
    transition: transform .34s ease, opacity .3s ease;
    transition-delay: 0ms;
}

.faq-answer p:nth-child(2) {
    transition-delay: 35ms;
}

.faq-answer p:nth-child(3) {
    transition-delay: 60ms;
}

.faq-answer p:last-child {
    margin-bottom: 1.1rem;
}

.faq-item[open] .faq-answer p {
    transform: translateY(0);
    opacity: 1;
}

.faq-item:has(.faq-question:focus-visible) {
    border-color: rgba(36, 72, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(36, 72, 255, 0.16);
}

.faq-empty {
    grid-column: 1 / -1;
    border: 1px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.2rem 1rem;
    text-align: center;
    color: #475569;
    font-size: .93rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .faq-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
}

@media (prefers-reduced-motion: reduce) {

    .faq-filter-btn,
    .faq-search-field,
    .faq-search-clear,
    .faq-item,
    .faq-chevron,
    .faq-chevron i,
    .faq-answer-wrap,
    .faq-answer p {
        transition: none !important;
    }
}
