/* FAQ Page Styles */

.faq-section {
    padding: 80px 0;
    background-color: #f5f5f5;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    margin-bottom: 20px;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid #eee;
    margin-bottom: 30px;
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 1;
}

.faq-item.animated {
    opacity: 1;
    transform: translateY(0);
}

.faq-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.faq-item:hover::before {
    opacity: 1;
}

.faq-question {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: #333;
    user-select: none;
    font-size: 20px;
    letter-spacing: -0.02em;
    pointer-events: auto;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.faq-question span {
    flex: 1;
    padding-right: 20px;
    pointer-events: auto;
}

.faq-question:hover {
    background: rgba(0,0,0,0.02);
}

.faq-question:focus {
    outline: none;
    background: rgba(0,0,0,0.02);
}

.faq-item.active .faq-question {
    background-color: rgba(0,0,0,0.03);
    color: #000;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 2000px; /* Increased to accommodate larger answers */
    opacity: 1;
}

/* Improved toggle button */
.faq-toggle {
    position: relative;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    background-color: #333;
    transition: all 0.3s ease;
}

.faq-toggle::before {
    width: 12px;
    height: 2px;
    border-radius: 1px;
}

.faq-toggle::after {
    width: 2px;
    height: 12px;
    border-radius: 1px;
}

.faq-item.active .faq-toggle {
    background-color: #333;
    transform: rotate(180deg);
}

.faq-item.active .faq-toggle::before,
.faq-item.active .faq-toggle::after {
    background-color: white;
}

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

.faq-category {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -0.02em;
    color: #333;
    margin: 80px 0 40px;
    padding-left: 45px;
    position: relative;
    opacity: 1 !important;
    transform: none !important;
    display: flex;
    align-items: center;
    gap: 15px;
}

.faq-category::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 30px;
    height: 2px;
    background: #333;
    transform: translateY(-50%);
}

/* Search styles */
.faq-search {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

.faq-search::after {
    content: '🔍';
    position: absolute;
    right: 35px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    opacity: 0.5;
}

.faq-search-input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.faq-search-input:focus {
    border-color: #333;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Contact section styles */
.faq-contact {
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(45deg, #f8f8f8, #fff);
    border: 2px solid #eee;
    border-radius: 8px;
    text-align: center;
}

.contact-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    position: relative;
}

.contact-options::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1px;
    height: 80%;
    background: #eee;
    transform: translate(-50%, -50%);
}

.contact-option {
    flex: 1;
    max-width: 280px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.contact-option::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s ease;
}

.contact-option:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.contact-option.primary {
    background: #333;
    color: white;
}

.contact-option.primary h4 {
    color: white;
}

.contact-option.primary p {
    color: rgba(255,255,255,0.8);
}

.contact-option.secondary {
    background: white;
}

.contact-divider {
    font-size: 14px;
    color: #666;
    margin: 0 10px;
}

.contact-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

.contact-option span {
    font-size: 32px;
    display: block;
    margin-bottom: 15px;
}

.contact-option h4 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 18px;
    margin: 0 0 10px;
    color: #333;
}

.contact-option p {
    font-size: 15px;
    line-height: 1.5;
    color: #666;
    margin: 0;
}

/* Category Navigation */
.faq-categories-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 20px;
    margin-bottom: 40px;
}

.faq-categories-nav a {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 30px;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.faq-categories-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #333;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.faq-categories-nav a:hover {
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.faq-categories-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.faq-categories-nav a.active {
    color: #333;
    background: #f8f8f8;
}

.faq-categories-nav a.active::after {
    transform: scaleX(1);
}

/* Related Questions */
.related-questions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    pointer-events: auto;
    position: relative;
    z-index: 3;
}

.related-questions h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.related-questions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-questions li {
    margin-bottom: 10px;
}

.related-questions a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
    padding: 8px 16px;
    background: #f8f8f8;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    cursor: pointer;
}

.related-questions a:hover {
    background: #333;
    color: white;
    transform: translateY(-2px);
}

/* Answer Feedback */
.answer-feedback {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: center;
}

.answer-feedback p {
    margin: 0 0 10px;
    font-size: 14px;
    color: #666;
}

.feedback-btn {
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    background: #f8f8f8;
    border: 2px solid #eee;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    transform: scale(1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feedback-btn:hover {
    background: #333;
    color: white;
    transform: scale(1.15);
}

.feedback-btn.active {
    opacity: 1;
    animation: pulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Line animations */
.line-fill {
    height: 2px;
    background-color: #333;
    width: 0;
    transition: width 0.6s ease;
    position: absolute;
    left: 0;
    top: 0;
}

.faq-item.active .line-fill {
    width: 100%;
}

/* Typography */
.stacked-heading h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
    color: #333;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

.body-display {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    line-height: 1.6;
    color: #666;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.5s;
}

/* Inline links */
.inline-link {
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid rgba(51, 51, 51, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    cursor: pointer;
}

.inline-link:hover {
    color: #000;
    border-bottom-color: #000;
}

.faq-answer a {
    pointer-events: auto;
}

/* Premium Header Styling */
.section.grey {
    background-color: #f5f5f5;
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.grid-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.full-stacked-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: relative;
}

.left-line {
    width: 60px;
    height: 2px;
    background: rgba(51, 51, 51, 0.1);
    position: relative;
}

/* Scroll progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #eee;
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    background: #333;
    width: 0;
    transition: width 0.1s ease;
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
}

.preloader-content {
    text-align: center;
}

.preloader-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 32px;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.indicator-wrapper {
    width: 200px;
    height: 2px;
    background: rgba(51, 51, 51, 0.1);
    position: relative;
    overflow: hidden;
}

.indicator-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #333;
    animation: fill 2s ease infinite;
}

@keyframes fill {
    0% { width: 0; left: 0; }
    50% { width: 100%; left: 0; }
    100% { width: 0; left: 100%; }
}

/* Back to home */
.back-to-home {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: white;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.home-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: #333;
    color: white;
}

.home-link svg {
    transition: transform 0.3s ease;
}

.home-link:hover svg {
    transform: translateX(-5px);
}

.faq-error {
    color: #ff4444;
    padding: 10px;
    margin: 10px 0;
    background: #fff;
    border-radius: 4px;
    display: none;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stacked-heading h1 {
        font-size: 40px;
    }
    
    .body-display {
        font-size: 18px;
    }
    
    .faq-category {
        font-size: 28px;
        margin: 60px 0 30px;
    }
    
    .back-to-home {
        margin: 40px auto;
    }
    
    .faq-question {
        font-size: 18px;
    }
    
    .contact-options::before {
        display: none;
    }
    
    .contact-option {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .faq-question {
        font-size: 16px;
        padding: 15px;
    }
    
    .faq-toggle {
        width: 20px;
        height: 20px;
    }
    
    .faq-toggle::before {
        width: 10px;
    }
    
    .faq-toggle::after {
        height: 10px;
    }
    
    .faq-category {
        font-size: 24px;
        margin: 40px 0 20px;
        padding-left: 30px;
    }
    
    .faq-category::before {
        width: 20px;
    }
} 