/* ==========================================================================
   FAQ Page Styles - Consistent with About Page Theme
   Maintains Ashapura Electricals brand colors and design consistency
   ========================================================================== */

/* Page Hero Section - Same as About page */
.page-hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Hero Title - Same as About page */
.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Grid overlay effect - Same as About page */
.page-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    z-index: 1;
}

.hero-content {
    animation: heroContentFadeIn 1.2s ease-out;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Styling - Consistent with About page */
.faq-content-section {
    background: #f8f9fa;
    padding: 2rem 0;
}

.section-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 24px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* FAQ Accordion Styling */
.faq-accordion {
/*    max-width: 900px;*/
}

.faq-item {
    background: white;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

    .faq-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0,0,0,0.1);
        border-color: rgba(228, 54, 54, 0.2);
    }

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
}

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

.faq-icon-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #e43636, #8a0606);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.faq-item:hover .faq-icon-wrapper {
    transform: scale(1.05);
    background: linear-gradient(135deg, #e43636, #8a0606);
}

.faq-icon {
    color: white;
    font-size: 1.2rem;
}

.question-text {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    color: #011936;
    line-height: 1.4;
}

.faq-toggle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e43636, #8a0606);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

    .faq-toggle i {
        color: white;
        font-size: 0.9rem;
        transition: all 0.3s ease;
    }

.faq-item .collapse.show + .faq-question .faq-toggle {
    background: linear-gradient(135deg, #28a745, #20c997);
    transform: rotate(180deg);
}

.faq-answer {
    border-top: 1px solid #f0f0f0;
}

.faq-answer-content {
    padding: 0 2rem 2rem 2rem;
    color: #011936;
    line-height: 1.7;
    font-size: 1rem;
}

    .faq-answer-content p {
        margin: 0;
        padding-left: 4rem;
    }

/* Contact CTA Section */
.contact-cta-section {
    background: #f8f9fa;
/*    padding: 4rem 0;*/
}

.col-lg-10 {
    flex: 0 0 auto;
    width: 90% !important;
}

.cta-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 1.5rem;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

    .cta-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.12);
    }

.cta-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #e43636, #8a0606);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.cta-card:hover .cta-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #e43636, #8a0606);
}

.cta-icon i {
    color: white;
    font-size: 2rem;
}

.cta-title {
    font-size: 2rem;
    font-weight: 700;
    color: #011936;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #e43636, #8a0606));
    border: none;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    color: white;
    text-decoration: none;
}

    .btn-primary:hover {
        background: linear-gradient(135deg, #c92a2a, #e43636);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(1,25,50,0.4) ;
        color: white;
    }

.btn-outline-primary {
    border: 2px solid #011936;
    color: #011936;
    background: transparent;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-outline-primary:hover {
        background: #011936;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(1,25,50,0.4);
        border: 2px solid #011936 !important;
    }
    .btn-outline-primary:active {
        background: #011936 !important;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(1,25,50,0.4);
        border: 2px solid #011936 !important;
    }

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .page-hero-section {
        min-height: 50vh;
        background-attachment: scroll;
    }

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

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

    .section-title {
        font-size: 2.2rem;
    }

    .faq-question {
        padding: 1.2rem 1.5rem;
        gap: 0.8rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem 1.5rem;
    }

        .faq-answer-content p {
            padding-left: 3rem;
        }

    .faq-icon-wrapper {
        width: 45px;
        height: 45px;
    }

    .faq-icon {
        font-size: 1.1rem;
    }

    .question-text {
        font-size: 1rem;
    }

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

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }
}

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

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

    .hero-breadcrumb .breadcrumb-item {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-hero-section {
        min-height: 45vh;
    }

    .hero-content {
        padding: 1rem;
    }

    .faq-question {
        padding: 1rem 1.2rem;
        gap: 0.6rem;
    }

    .faq-answer-content {
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

        .faq-answer-content p {
            padding-left: 2.5rem;
            font-size: 0.95rem;
        }

    .faq-icon-wrapper {
        width: 40px;
        height: 40px;
        border-radius: 10px;
    }

    .faq-icon {
        font-size: 1rem;
    }

    .faq-toggle {
        width: 35px;
        height: 35px;
    }

    .question-text {
        font-size: 0.95rem;
    }

    .cta-card {
        padding: 2rem 1rem;
    }

    .cta-icon {
        width: 70px;
        height: 70px;
    }

        .cta-icon i {
            font-size: 1.8rem;
        }

    .cta-title {
        font-size: 1.6rem;
    }

    .cta-description {
        font-size: 1rem;
    }
}

/* Additional Animations */
.faq-item {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth transitions for accordion */
.faq-answer {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

    .faq-answer.collapsing {
        transition: height 0.3s ease;
    }

/* Focus states for accessibility */
.faq-question:focus {
    outline: 2px solid #e43636;
    outline-offset: 2px;
}

/* Enhanced hover states */
.faq-question:hover .question-text {
    color:  #8a0606;
}

.faq-question:hover .faq-toggle {
    transform: scale(1.1);
}

/* Active state styling */
.faq-item:has(.collapse.show) {
    border-color: rgba(228, 54, 54, 0.3);
    box-shadow: 0 12px 28px rgba(228, 54, 54, 0.1);
}

    .faq-item:has(.collapse.show) .faq-question {
        background: rgba(228, 54, 54, 0.03);
    }

    .faq-item:has(.collapse.show) .question-text {
        color: #e43636;
    }

    .faq-item:has(.collapse.show) .faq-toggle {
        background: linear-gradient(135deg, #28a745, #20c997);
    }

        .faq-item:has(.collapse.show) .faq-toggle i:before {
            content: "\f068"; /* minus icon */
        }
