/*
===================================
  ERPIN® PREMIUM FAQ COMPONENT
  Custom boxed card design with icons
===================================
*/

.erpin-faq {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.erpin-faq-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(0, 40, 85, 0.08);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 40, 85, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.erpin-faq-item:hover {
    box-shadow: 0 12px 40px rgba(0, 40, 85, 0.12);
    transform: translateY(-4px);
    border-color: rgba(74, 144, 226, 0.3);
}

.erpin-faq-question {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
}

.erpin-faq-question:hover {
    background: linear-gradient(135deg, #eef2f7 0%, #e2e8f0 100%);
}

.erpin-faq-question::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 28px;
    right: 28px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 40, 85, 0.1), transparent);
}

.erpin-faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #002855 0%, #1a4b7c 100%);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 40, 85, 0.25);
    transition: all 0.3s ease;
}

.erpin-faq-item:hover .erpin-faq-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 40, 85, 0.35);
}

.erpin-faq-icon i {
    color: #ffffff;
    font-size: 20px;
}

.erpin-faq-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #002855;
    line-height: 1.4;
    margin: 0;
}

.erpin-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 40, 85, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.erpin-faq-toggle i {
    color: #002855;
    font-size: 14px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.erpin-faq-item.active .erpin-faq-toggle {
    background: linear-gradient(135deg, #002855 0%, #1a4b7c 100%);
}

.erpin-faq-item.active .erpin-faq-toggle i {
    color: #ffffff;
    transform: rotate(180deg);
}

.erpin-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.erpin-faq-item.active .erpin-faq-answer {
    max-height: 500px;
}

.erpin-faq-answer-inner {
    padding: 24px 28px 28px 98px;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
    position: relative;
}

.erpin-faq-answer-inner::before {
    content: '';
    position: absolute;
    left: 52px;
    top: 0;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(180deg, rgba(74, 144, 226, 0.3) 0%, transparent 100%);
    border-radius: 2px;
}

/* Badge/Highlight for important terms */
.erpin-faq-answer-inner strong {
    color: #002855;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .erpin-faq-question {
        padding: 18px 20px;
        gap: 14px;
    }

    .erpin-faq-icon {
        width: 44px;
        height: 44px;
        min-width: 44px;
        border-radius: 10px;
    }

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

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

    .erpin-faq-toggle {
        width: 32px;
        height: 32px;
        min-width: 32px;
    }

    .erpin-faq-toggle i {
        font-size: 12px;
    }

    .erpin-faq-answer-inner {
        padding: 18px 20px 22px 20px;
        font-size: 14px;
    }

    .erpin-faq-answer-inner::before {
        display: none;
    }
}

/* Animation class for entrance */
.erpin-faq-item {
    opacity: 0;
    transform: translateY(20px);
    animation: faqFadeIn 0.6s ease forwards;
}

.erpin-faq-item:nth-child(1) { animation-delay: 0.1s; }
.erpin-faq-item:nth-child(2) { animation-delay: 0.2s; }
.erpin-faq-item:nth-child(3) { animation-delay: 0.3s; }
.erpin-faq-item:nth-child(4) { animation-delay: 0.4s; }
.erpin-faq-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes faqFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
