/* ========================================
   FAQ SECTION - PREMIUM ACCORDION DESIGN
   ======================================== */

.faq-section {
    padding: 6rem 0;
    background: #000;
    position: relative;
    overflow: hidden;
}

.faq-section__wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* ========================================
   LEFT SIDE: ILLUSTRATION
   ======================================== */

.faq-section__header {
    margin-bottom: 3rem;
}

.faq-section__subtitle {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 50px;
    color: #25D366;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.faq-section__title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-section__description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 500px;
}

/* Illustration Container */
.faq-illustration {
    position: relative;
    width: 100%;
    height: 400px;
    margin: 2rem 0;
}

.faq-illustration__bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.1), transparent 70%);
    border-radius: 50%;
    animation: pulse-bg 3s ease-in-out infinite;
}

@keyframes pulse-bg {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Animated Icons */
.faq-illustration__icon {
    position: absolute;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: float 6s ease-in-out infinite;
}

.faq-illustration__icon svg {
    width: 100%;
    height: 100%;
}

.faq-illustration__icon--1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.faq-illustration__icon--2 {
    top: 15%;
    right: 15%;
    animation-delay: 1s;
}

.faq-illustration__icon--3 {
    bottom: 20%;
    left: 5%;
    animation-delay: 2s;
}

.faq-illustration__icon--4 {
    bottom: 15%;
    right: 20%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(-10px) rotate(-5deg);
    }
    75% {
        transform: translateY(-15px) rotate(3deg);
    }
}

/* Trust Badge */
.faq-section__trust {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(37, 211, 102, 0.05);
    border: 1px solid rgba(37, 211, 102, 0.2);
    border-radius: 16px;
    margin-top: 2rem;
    max-width: 400px;
}

.faq-section__trust-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.faq-section__trust-icon svg {
    width: 24px;
    height: 24px;
}

.faq-section__trust-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.faq-section__trust-text strong {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

.faq-section__trust-text span {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* ========================================
   RIGHT SIDE: FAQ ACCORDION
   ======================================== */

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(37, 211, 102, 0.3);
    transform: translateY(-2px);
}

.faq-item.active {
    background: rgba(37, 211, 102, 0.05);
    border-color: rgba(37, 211, 102, 0.4);
}

/* FAQ Trigger Button */
.faq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: #fff;
    text-align: right;
    cursor: pointer;
    transition: all 0.3s ease;
}

[dir="ltr"] .faq-item__trigger {
    text-align: left;
}

.faq-item__question {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    transition: color 0.3s ease;
}

.faq-item.active .faq-item__question {
    color: #25D366;
}

/* FAQ Icon */
.faq-item__icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item__icon svg {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-item__icon {
    background: #25D366;
    transform: rotate(180deg);
}

.faq-item.active .faq-item__icon svg {
    color: #000;
}

/* FAQ Answer - CRITICAL: Controls visibility */
.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-item__answer {
    max-height: 500px; /* Adjust based on content */
}

.faq-item__content {
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-item__content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ========================================
   CTA at Bottom
   ======================================== */

.faq-section__cta {
    margin-top: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.1));
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 16px;
    text-align: center;
}

.faq-section__cta-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
}

.faq-section__cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50px;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-section__cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.faq-section__cta-btn svg {
    width: 20px;
    height: 20px;
}

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

/* Tablet */
@media (max-width: 1023px) {
    .faq-section__wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .faq-section__title {
        font-size: 2.25rem;
    }
    
    .faq-illustration {
        height: 300px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .faq-section {
        padding: 4rem 0;
    }
    
    .faq-section__title {
        font-size: 1.875rem;
    }
    
    .faq-section__description {
        font-size: 1rem;
    }
    
    .faq-illustration {
        height: 250px;
    }
    
    .faq-illustration__icon {
        width: 50px;
        height: 50px;
    }
    
    .faq-item__trigger {
        padding: 1.25rem;
    }
    
    .faq-item__question {
        font-size: 1rem;
    }
    
    .faq-item__content {
        padding: 0 1.25rem 1.25rem 1.25rem;
    }
    
    .faq-item__content p {
        font-size: 0.9375rem;
    }
    
    .faq-section__trust {
        padding: 1.25rem;
    }
}
