/* FAQ Page Styles */

/* Hero Section */
.faq-hero {
    position: relative;
    padding: 3rem 0 3rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    height: 50vh;
    min-height: 300px;
    display: flex;
    align-items: center;
}

.faq-hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.hero-title {
    color: var(--white);
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    color: var(--rgba-white-95);
    font-size: 1.2rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* FAQ Content Section */
.faq-content {
    padding: 60px 0;
    background: var(--white);
}

.faq-wrapper {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--gray-200);
}

/* Search Section */
.faq-search-section {
    margin-bottom: 40px;
}

.search-container {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

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

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

.search-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 1.1rem;
}

/* FAQ Categories */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.category-btn {
    background: var(--gray-100);
    color: var(--gray-600);
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover,
.category-btn.active {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* FAQ Accordion */
.faq-accordion {
    margin-bottom: 50px;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-light);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

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

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

.faq-question h3 {
    margin: 0;
    color: var(--gray-800);
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

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

.faq-item.active .faq-toggle-icon {
    transform: rotate(45deg);
    color: var(--primary-dark);
}

.faq-answer {
    padding: 0 25px;
    background: var(--gray-050);
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 40px;
}

.faq-answer p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.faq-answer ul {
    margin: 0 0 15px 20px;
    padding: 0;
}

.faq-answer li {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

/* Contact CTA Section */
.faq-contact-cta {
    margin-top: 50px;
}

.contact-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

/* Container for the buttons (ensures proper alignment) */
.contact-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/*
  New Design: A clean, high-contrast, and user-friendly pill button.
*/
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: #ffffff; /* Solid white background for maximum contrast */
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 50px; /* Creates the "pill" shape */
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1px solid #DDDDDD; /* Subtle border to define the edge */

    /* A soft shadow to lift the button off the page */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* A clear and satisfying hover effect */
.btn-secondary-custom:hover {
    transform: translateY(-3px); /* Lifts the button on hover */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15); /* Enhances the shadow */
}



.btn-secondary-custom:hover {
    background: var(--rgba-white-30);
    color: var(--white);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Hidden class for search functionality */
.faq-item.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .faq-hero {
        padding: 2rem 0;
        min-height: 250px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .faq-wrapper {
        padding: 25px 20px;
        margin: 0 15px;
    }

    .faq-categories {
        justify-content: center;
    }

    .category-btn {
        font-size: 0.8rem;
        padding: 8px 15px;
    }

    .faq-question {
        padding: 15px 20px;
    }

    .faq-question h3 {
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 20px;
    }

    .contact-card {
        padding: 30px 20px;
    }

    .contact-card h3 {
        font-size: 1.5rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary-custom {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .faq-wrapper {
        padding: 20px 15px;
        margin: 0 10px;
    }

    .faq-categories {
        gap: 8px;
    }

    .category-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .faq-question {
        padding: 12px 15px;
    }

    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-item.active .faq-answer {
        padding-bottom: 15px;
    }

    .contact-card {
        padding: 25px 15px;
    }

    .contact-card h3 {
        font-size: 1.3rem;
    }

    .contact-card p {
        font-size: 1rem;
    }
}

/* Animation for smooth transitions */
.faq-answer {
    transition: max-height 0.3s ease-in-out, padding 0.3s ease-in-out;
}

/* Focus styles for accessibility */
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.category-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.faq-search-input:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}
