/* ============================================================
   JT Elementor Widgets — FAQ Accordion
   Widget styles + smooth animation
   ============================================================ */

/* ── Wrapper ─────────────────────────────────────────────── */
.jt-faq-wrapper {
    width: 100%;
}

/* ── Item ────────────────────────────────────────────────── */
.jt-faq-item {
    background-color: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 0 24px;
    overflow: hidden;
    transition:
        border-color    0.25s ease,
        background-color 0.25s ease,
        box-shadow      0.25s ease;
}

.jt-faq-item + .jt-faq-item {
    margin-top: 12px;
}

.jt-faq-item.jt-active {
    border-color: rgba(59, 130, 246, 0.40);
}

/* ── Question button ─────────────────────────────────────── */
.jt-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    color: #0f172a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.jt-faq-question:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 3px;
    border-radius: 4px;
}

.jt-faq-question:hover {
    color: #1d4ed8;
}

.jt-faq-item.jt-active .jt-faq-question {
    color: #1d4ed8;
}

.jt-faq-question-text {
    flex: 1;
    min-width: 0;
}

/* ── Toggle icon ─────────────────────────────────────────── */
.jt-faq-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.jt-faq-icon svg {
    width: 20px;
    height: 20px;
    stroke: #94a3b8;
    display: block;
    transition: stroke 0.2s ease;
}

.jt-faq-item.jt-active .jt-faq-icon {
    transform: rotate(180deg);
}

.jt-faq-item.jt-active .jt-faq-icon svg {
    stroke: #1d4ed8;
}

/* ── Answer panel ────────────────────────────────────────── */
.jt-faq-answer {
    overflow: hidden;
    /* JS manages max-height for animation */
}

/* When hidden attribute is set we still need display:block so
   the height can be measured & animated by JS */
.jt-faq-answer[hidden] {
    display: block !important;
    max-height: 0 !important;
    visibility: hidden;
}

/* JS adds this class during the transition */
.jt-faq-answer.jt-animating {
    transition:
        max-height  0.36s cubic-bezier(0.4, 0, 0.2, 1),
        visibility  0.36s ease;
}

/* ── Answer inner content ────────────────────────────────── */
.jt-faq-answer-inner {
    padding-bottom: 22px;
    padding-top: 4px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.7;
}

.jt-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.jt-faq-answer-inner a {
    color: #2563eb;
    text-decoration: underline;
}

.jt-faq-answer-inner a:hover {
    color: #1d4ed8;
}

.jt-faq-answer-inner strong {
    color: inherit;
    font-weight: 600;
}

/* ── Empty state ─────────────────────────────────────────── */
.jt-faq-empty {
    color: #94a3b8;
    font-style: italic;
    text-align: center;
    padding: 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 767px) {
    .jt-faq-item {
        padding: 0 16px;
    }

    .jt-faq-question {
        font-size: 15px;
        padding: 14px 0;
    }

    .jt-faq-icon svg {
        width: 18px;
        height: 18px;
    }
}
