/**
 * epcan FAQ Accordion Styles
 * Modern, clean accordion design with smooth animations
 * Mobile responsive with epcan orange branding (#f1800e)
 */

/* ============================================================================
   FAQ CONTAINER
   ============================================================================ */

.epcan-faq {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
}

.epcan-faq-wrapper {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* ============================================================================
   FAQ ITEMS
   ============================================================================ */

.epcan-faq-item {
    border-bottom: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.epcan-faq-item:last-child {
    border-bottom: none;
}

.epcan-faq-item:hover {
    background-color: #f9f9f9;
}

.epcan-faq-item.active {
    background-color: #fff8f3;
}

/* ============================================================================
   QUESTION SECTION
   ============================================================================ */

.epcan-faq-question {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    position: relative;
    gap: 12px;
}

.epcan-faq-question:hover {
    background-color: rgba(241, 128, 14, 0.05);
}

/* Number Badge */
.epcan-faq-num {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    background-color: #f1800e;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Title */
.epcan-faq-title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.4;
}

/* Icon Container */
.epcan-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    margin-left: auto;
}

.epcan-faq-icon i {
    font-size: 18px;
    color: #f1800e;
    transition: all 0.3s ease;
    position: absolute;
}

/* Plus Icon (visible when closed) */
.epcan-faq-icon .icon-plus {
    opacity: 1;
    transform: rotate(0deg);
}

.epcan-faq-item.active .epcan-faq-icon .icon-plus {
    opacity: 0;
    transform: rotate(90deg);
}

/* Minus Icon (visible when open) */
.epcan-faq-icon .icon-minus {
    opacity: 0;
    transform: rotate(-90deg);
}

.epcan-faq-item.active .epcan-faq-icon .icon-minus {
    opacity: 1;
    transform: rotate(0deg);
}

/* ============================================================================
   ANSWER SECTION
   ============================================================================ */

.epcan-faq-answer {
    display: none;
    padding: 0 20px 20px 64px;
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    animation: slideDown 0.3s ease;
}

.epcan-faq-item.active .epcan-faq-answer {
    display: block;
}

/* Slide Down Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-bottom: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
        padding-bottom: 20px;
    }
}

/* Answer Links */
.epcan-faq-answer a {
    color: #f1800e;
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.2s ease;
}

.epcan-faq-answer a:hover {
    color: #d16a00;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablets */
@media (max-width: 768px) {
    .epcan-faq {
        padding: 15px;
    }

    .epcan-faq-heading {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .epcan-faq-question {
        padding: 15px;
        gap: 10px;
    }

    .epcan-faq-num {
        min-width: 28px;
        height: 28px;
        font-size: 13px;
    }

    .epcan-faq-title {
        font-size: 15px;
    }

    .epcan-faq-answer {
        padding: 0 15px 15px 53px;
        font-size: 14px;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .epcan-faq {
        padding: 10px;
    }

    .epcan-faq-heading {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .epcan-faq-question {
        padding: 12px 10px;
        gap: 8px;
    }

    .epcan-faq-num {
        min-width: 26px;
        height: 26px;
        font-size: 12px;
    }

    .epcan-faq-title {
        font-size: 14px;
    }

    .epcan-faq-icon i {
        font-size: 16px;
    }

    .epcan-faq-answer {
        padding: 0 10px 12px 44px;
        font-size: 13px;
        line-height: 1.6;
    }
}

/* ============================================================================
   ACCESSIBILITY
   ============================================================================ */

.epcan-faq-item:focus {
    outline: 2px solid #f1800e;
    outline-offset: -2px;
}

.epcan-faq-question:focus {
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .epcan-faq-item {
        border-color: #000000;
    }

    .epcan-faq-num {
        background-color: #000000;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .epcan-faq-icon i,
    .epcan-faq-item,
    .epcan-faq-answer {
        animation: none !important;
        transition: none !important;
    }
}
