/* JetEngine FAQ Widget Styles */

.jefaq-wrapper {
    width: 100%;
}

.jefaq-item {
    overflow: hidden;
    transition: all 0.3s ease;
}

.jefaq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.jefaq-question:hover {
    opacity: 0.9;
}

.jefaq-question-text {
    flex: 1;
    font-weight: 600;
}

.jefaq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.jefaq-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.jefaq-icon-vertical {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Active state - rotate icon and hide vertical line */
.jefaq-item.active .jefaq-icon {
    transform: rotate(180deg);
}

.jefaq-item.active .jefaq-icon-vertical {
    opacity: 0;
    transform: rotate(90deg);
}

.jefaq-answer {
    overflow: hidden;
    transition: all 0.3s ease;
}

.jefaq-answer p:first-child {
    margin-top: 0;
}

.jefaq-answer p:last-child {
    margin-bottom: 0;
}

/* Animation for opening/closing */
.jefaq-answer {
    max-height: 0;
    opacity: 0;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.jefaq-item.active .jefaq-answer {
    max-height: 2000px;
    opacity: 1;
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .jefaq-question {
        font-size: 14px;
    }
    
    .jefaq-answer {
        font-size: 13px;
    }
    
    .jefaq-icon {
        margin-left: 10px;
    }
}

/* Accessibility */
.jefaq-question:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .jefaq-answer {
        display: block !important;
        max-height: none !important;
        opacity: 1 !important;
    }
    
    .jefaq-icon {
        display: none;
    }
}

/* ── Iframe / Embed support ───────────────────────────────────────────── */
.jefaq-answer iframe,
.jefaq-answer object,
.jefaq-answer embed {
    display: block;
    max-width: 100%;
    width: 100%;
    border: 0;
}
