/* FAQ Page Specific Styles */

/* Reduce top spacing for FAQ page to bring content closer to header */
.faq-page {
    padding-top: 20px;
}

/* FAQ Info Button */
.faq-info-btn {
    margin: 0 auto 20px;
    display: block;
    background-color: transparent;
    border: 1px solid var(--light-gray);
    border-radius: 20px;
    padding: 6px 16px;
    font-size: 0.9rem;
    color: var(--dark-gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-info-btn i {
    margin-right: 5px;
    color: var(--primary);
}

.faq-info-btn:hover {
    background-color: var(--light-gray);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* FAQ Modal */
.faq-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
}

.faq-modal-content {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    padding: 25px;
    position: relative;
}

.faq-modal-content h2 {
    margin-top: 0;
    color: var(--dark-text);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.faq-modal-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    margin-bottom: 0;
}

.faq-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: var(--dark-gray);
    cursor: pointer;
}

.faq-modal-backdrop {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* FAQ Search Bar */
.faq-search {
    display: flex;
    max-width: 600px;
    margin: 30px auto;
    position: relative;
}

/* Search box in page header */
.page-header .faq-search {
    margin-top: 20px;
    margin-bottom: 15px;
    max-width: 500px;
}

/* Adjust page header spacing with removed subtitle */
.page-header h1 {
    margin-bottom: 25px;
}

/* Category navigation in header */
.page-header .faq-categories-nav {
    margin: 0 0 25px;
    padding-bottom: 10px;
}

.page-header .category-link {
    font-size: 0.85rem;
    padding: 6px 14px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.page-header .category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.faq-search input {
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: 2px solid var(--light-gray);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.faq-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.2);
    outline: none;
}

.faq-search button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-search button:hover {
    background-color: var(--primary-dark);
}

.faq-item.hidden {
    display: none;
}

.no-results {
    text-align: center;
    padding: 40px 0;
    color: var(--dark-gray);
}

/* FAQ Category Headings with Icons */
.faq-categories h2 {
    position: relative;
    padding-left: 45px;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.faq-categories h2 .category-icon {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

/* FAQ Item Styling */
.faq-item {
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.faq-question {
    background-color: var(--white);
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    flex: 1;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--light-gray);
    border-radius: 50%;
    margin-left: 15px;
    transition: all 0.3s ease;
}

.toggle-icon i {
    color: var(--primary);
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.faq-item.active .toggle-icon {
    background: var(--primary);
}

.faq-item.active .toggle-icon i {
    color: var(--white);
}

/* FAQ Answer Styling - No transitions */
.faq-answer {
    background: var(--white);
    padding: 0;
    overflow: hidden;
}

/* Enhanced Answer Styling */
.faq-callout {
    background-color: rgba(var(--primary-rgb), 0.05);
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.faq-tip {
    background-color: rgba(120, 200, 120, 0.1);
    border-left: 4px solid #78c878;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.faq-note {
    background-color: rgba(100, 180, 250, 0.1);
    border-left: 4px solid #64b4fa;
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
}

.faq-important {
    background: linear-gradient(135deg, rgba(255, 230, 200, 0.3), rgba(255, 200, 200, 0.2));
    border: 1px solid rgba(255, 150, 150, 0.3);
    padding: 15px;
    margin: 15px 0;
    border-radius: 8px;
    font-weight: 500;
}

.faq-timeline {
    display: flex;
    margin: 20px 0;
    padding: 0;
    position: relative;
}

.faq-timeline::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--light-gray);
    z-index: 0;
}

.timeline-point {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.timeline-point-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--white);
    border: 2px solid var(--primary);
    margin-bottom: 10px;
}

.timeline-point-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark-text);
    text-align: center;
    line-height: 1.2;
}

.timeline-point-sublabel {
    font-size: 0.7rem;
    color: var(--dark-gray);
    text-align: center;
    margin-top: 3px;
}

/* List styling in FAQ answers */
.faq-answer ul.enhanced-list {
    padding-left: 0;
    list-style-type: none;
}

.faq-answer ul.enhanced-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.faq-answer ul.enhanced-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-answer ul.enhanced-list li::after {
    content: '✓';
    position: absolute;
    left: 5px;
    top: 3px;
    color: white;
    font-size: 10px;
    font-weight: bold;
}

.answer-highlight {
    font-weight: 500;
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .faq-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .faq-timeline::before {
        width: 2px;
        height: 100%;
        left: 10px;
        top: 0;
    }
    
    .timeline-point {
        flex-direction: row;
        align-items: flex-start;
        gap: 15px;
    }
    
    .timeline-point-marker {
        margin-bottom: 0;
    }
}

/* Top section with intro content */
.faq-top-section {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 20px;
    margin-bottom: 25px;
    padding: 0 15px;
}

.intro-content {
    width: 100%;
    max-width: 800px;
    background-color: var(--white);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.intro-content p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.5;
}

/* Responsive adjustments for the top section */
@media (max-width: 768px) {
    .faq-top-section {
        flex-direction: column;
        gap: 20px;
    }
}

/* FAQ Categories Nav */
.faq-categories-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 30px;
}

.category-link {
    padding: 8px 16px;
    background-color: var(--light-gray);
    border-radius: 20px;
    color: var(--dark-text);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-link:hover,
.category-link.active {
    background-color: var(--primary);
    color: var(--white);
}

/* Popular Question Indicator */
.popular-question {
    position: relative;
}

.popular-badge {
    background: linear-gradient(135deg, #ff9a9e, #fad0c4);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .faq-categories h2 {
        font-size: 1.3rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .category-link {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

/* Floating Help Button */
.floating-help-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 99;
    transition: all 0.3s ease;
}

.floating-help-button i {
    font-size: 1.2rem;
}

.floating-help-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* FAQ Question Popup (similar to consultation popup) */
#faq-question-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    max-width: 350px;
    width: 90%;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: fadeIn 0.3s ease-out;
}

.consultation-popup .popup-content {
    padding: 30px 20px;
    position: relative;
}

.consultation-popup .popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 18px;
    color: #999;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.consultation-popup .popup-close:hover {
    color: #666;
    background-color: #f5f5f5;
}

.popup-icon-container {
    margin: 0 auto 20px;
    width: 70px;
    height: 70px;
    background-color: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon {
    font-size: 30px;
    color: var(--primary);
}

.consultation-popup h3 {
    margin-bottom: 15px;
    color: var(--dark-text);
    font-size: 1.4rem;
}

.consultation-popup p {
    color: var(--dark-gray);
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.5;
}

.popup-buttons {
    margin-top: 20px;
}

.popup-btn {
    display: inline-block;
    padding: 12px 25px;
    width: 100%;
    text-align: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
}

#faq-question-popup.show {
    display: block;
}

#faq-question-popup.hide {
    animation: fadeOut 0.3s ease-out forwards;
}

/* Mobile adjustments for popup */
@media (max-width: 768px) {
    .floating-help-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 16px;
    }
    
    #faq-question-popup {
        width: 85%;
    }
}
