/* FAQ Section Styles */
.faq-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0edff 100%);
    position: relative;
    overflow: hidden;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/pawna-lake-1.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.06;
    z-index: 0;
    animation: subtle-move 30s infinite alternate ease-in-out;
}

@keyframes subtle-move {
    0% { transform: scale(1.0) translate(0, 0); }
    100% { transform: scale(1.05) translate(-5px, -5px); }
}

.faq-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.faq-header h2 {
    font-size: 48px;
    color: #1a237e;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 800;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.faq-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 5px;
    background: linear-gradient(90deg, #3f51b5, #5c6bc0, #7986cb);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.faq-header:hover h2::after {
    width: 180px;
}

.faq-header p {
    color: #455a64;
    max-width: 700px;
    margin: 30px auto 0;
    line-height: 1.8;
    font-size: 19px;
}

.faq-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 35px;
    max-width: 1300px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 30px;
}

.faq-item {
    background-color: rgba(255, 255, 255, 0.97);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 5px solid #3f51b5;
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.7s ease-out forwards;
    opacity: 0;
    transform: translateY(25px);
    animation-delay: calc(var(--i, 0) * 0.15s);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(63, 81, 181, 0.18);
}

.faq-item .question {
    display: flex;
    align-items: center;
    font-size: 19px;
    font-weight: 600;
    color: #1a237e;
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    user-select: none;
    transition: color 0.3s ease;
}

.faq-icon {
    margin-right: 15px;
    font-size: 24px;
    background: linear-gradient(135deg, #3f51b5, #7986cb);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    transition: transform 0.3s ease;
}

.faq-item:hover .faq-icon {
    transform: scale(1.2);
}

.toggle-icon {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: #3f51b5;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.faq-item.active .toggle-icon {
    transform: translateY(-50%) rotate(180deg);
    color: #5c6bc0;
}

.faq-item .answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                padding 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), 
                opacity 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    margin-top: 0;
    opacity: 0;
}

.faq-item.active .answer {
    max-height: 500px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(63, 81, 181, 0.2);
    opacity: 1;
}

.faq-item .answer p {
    color: #455a64;
    line-height: 1.7;
    font-size: 16px;
    margin: 0;
    margin-bottom: 10px;
}

.faq-item .answer p:last-child {
    margin-bottom: 0;
}

.faq-item.active {
    border-left: 5px solid #5c6bc0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 15px 35px rgba(63, 81, 181, 0.2);
}

.faq-item.active .question {
    color: #3f51b5;
}

.more-questions {
    text-align: center;
    margin-top: 40px;
}

.contact-support-btn {
    display: inline-block;
    background-color: #3f51b5;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.contact-support-btn:hover {
    background-color: #5c6bc0;
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
    
    .faq-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .faq-container {
        grid-template-columns: 1fr;
    }
    
    .faq-header h2 {
        font-size: 32px;
    }
    
    .faq-header p {
        font-size: 16px;
    }
    
    .faq-item .question {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .faq-section {
        padding: 60px 0;
    }
    
    .faq-header h2 {
        font-size: 28px;
    }
    
    .faq-header p {
        font-size: 16px;
    }
    
    .faq-item {
        padding: 20px;
    }
    
    .faq-item .question {
        font-size: 16px;
    }
    
    .faq-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}