/* FAQ page specific styles */
.faq-intro {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-gray);
}

.faq-container {
    margin-bottom: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--container-bg);
    box-shadow: 0 1px 3px var(--shadow-color);
    border: 1px solid var(--input-border);
}

.faq-question {
    padding: 16px 20px;
    background-color: var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--medium-gray);
}

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-toggle {
    width: 20px;
    height: 20px;
    position: relative;
    transition: transform 0.3s ease;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.faq-toggle::before {
    width: 2px;
    height: 16px;
    left: 9px;
    top: 2px;
    transition: transform 0.3s ease;
}

.faq-toggle::after {
    width: 16px;
    height: 2px;
    left: 2px;
    top: 9px;
}

.faq-item.active .faq-toggle::before {
    transform: rotate(90deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 1000px; /* Large enough to fit content */
    transition: max-height 0.6s ease-in, padding 0.2s ease;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    margin-bottom: 15px;
}

.faq-answer p:last-child,
.faq-answer ul:last-child,
.faq-answer ol:last-child {
    margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-answer li:last-child {
    margin-bottom: 0;
}

.more-questions {
    text-align: center;
    padding: 30px 20px;
    background-color: var(--info-bg);
    border-radius: 8px;
    margin-top: 40px;
}

.more-questions h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.more-questions p {
    color: var(--dark-gray);
}

.more-questions a {
    color: var(--primary-color);
    text-decoration: none;
}

.more-questions a:hover {
    text-decoration: underline;
}

.back-link {
    display: inline-block;
    margin: 20px 0;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.back-icon {
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%233b4250" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="19" y1="12" x2="5" y2="12"></line><polyline points="12 19 5 12 12 5"></polyline></svg>');
    background-repeat: no-repeat;
    background-position: center;
    filter: var(--icon-filter);
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    .faq-question h3 {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .faq-answer {
        font-size: 0.9rem;
    }
    
    .faq-toggle {
        width: 18px;
        height: 18px;
        flex-shrink: 0;
    }
    
    .faq-toggle::before {
        height: 14px;
        left: 8px;
        top: 2px;
    }
    
    .faq-toggle::after {
        width: 14px;
        left: 2px;
        top: 8px;
    }
}