/**
 * AJ Long Electric - FAQ Page Styles
 * Modern, vibrant design for better user engagement
 */

/* ===========================================
   FAQ HERO SECTION
   =========================================== */
.faq-hero {
    background: linear-gradient(135deg, #FF7200 0%, #e66600 100%);
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.faq-hero h1 {
    position: relative;
    z-index: 1;
}

/* ===========================================
   FAQ CATEGORY SECTIONS
   =========================================== */
.faq-category {
    transition: all 0.3s ease;
}

.faq-category-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.faq-icon-wrapper {
    background: linear-gradient(135deg, #FF7200, #ff8c33);
    padding: 1rem;
    border-radius: 50%;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(255, 114, 0, 0.3);
    transition: all 0.3s ease;
}

.faq-icon-wrapper:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(255, 114, 0, 0.4);
}

.faq-icon-wrapper i {
    color: white;
    font-size: 1.75rem;
}

.faq-category-title {
    color: #2d3748;
    font-weight: 700;
    font-size: 1.875rem;
}

/* ===========================================
   FAQ ITEMS - ACCORDION CARDS
   =========================================== */
.faq-items-container {
    background: linear-gradient(to bottom right, #f8f9fa, #ffffff);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-item {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.faq-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #FF7200, #ff8c33);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-item:hover {
    border-color: #FF7200;
    box-shadow: 0 8px 20px rgba(255, 114, 0, 0.15);
    transform: translateY(-2px);
}

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

.faq-item.active {
    border-color: #FF7200;
    box-shadow: 0 8px 25px rgba(255, 114, 0, 0.2);
}

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

/* ===========================================
   FAQ QUESTION BUTTON
   =========================================== */
.faq-question {
    background: white;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: linear-gradient(to right, #fff5f0, white);
}

.faq-item.active .faq-question {
    background: linear-gradient(to right, #fff5f0, white);
}

.faq-question h3 {
    color: #2d3748;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.5;
    padding-right: 2rem;
    transition: color 0.3s ease;
}

.faq-item:hover .faq-question h3,
.faq-item.active .faq-question h3 {
    color: #FF7200;
}

/* ===========================================
   FAQ ICON - ANIMATED PLUS/MINUS
   =========================================== */
.faq-icon {
    color: #FF7200;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 114, 0, 0.1);
    border-radius: 50%;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    background: rgba(255, 114, 0, 0.2);
}

.faq-item:hover .faq-icon {
    background: rgba(255, 114, 0, 0.15);
    transform: scale(1.1);
}

.faq-item.active:hover .faq-icon {
    transform: rotate(45deg) scale(1.1);
}

/* ===========================================
   FAQ ANSWER CONTENT
   =========================================== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 1.5rem;
    background: linear-gradient(to bottom, #fafafa, white);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.faq-answer p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

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

.faq-answer ul {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.faq-answer ul li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    color: #4a5568;
    line-height: 1.6;
}

.faq-answer ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #FF7200;
    font-size: 0.875rem;
}

.faq-answer a {
    color: #FF7200;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border-bottom: 1px solid transparent;
}

.faq-answer a:hover {
    border-bottom-color: #FF7200;
}

/* ===========================================
   COST HIGHLIGHT BOXES
   =========================================== */
.cost-highlight {
    background: linear-gradient(135deg, #fff5f0 0%, #ffffff 100%);
    border-left: 4px solid #FF7200;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    box-shadow: 0 2px 8px rgba(255, 114, 0, 0.1);
}

.cost-highlight strong {
    color: #FF7200;
    font-size: 1.125rem;
}

/* ===========================================
   QUICK NAVIGATION
   =========================================== */
.faq-quick-nav {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 3rem;
    border: 2px solid #e2e8f0;
}

.faq-quick-nav h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.faq-nav-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.25rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    text-decoration: none;
    color: #2d3748;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-nav-link:hover {
    border-color: #FF7200;
    background: linear-gradient(to right, #fff5f0, white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 114, 0, 0.2);
}

.faq-nav-link i {
    color: #FF7200;
    font-size: 1.25rem;
    margin-right: 0.75rem;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.faq-cta {
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    padding: 3rem 2rem;
    border-radius: 1rem;
    margin-top: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 114, 0, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.faq-cta h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.faq-cta p {
    color: #cbd5e0;
    font-size: 1.125rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.faq-cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #FF7200, #ff8c33);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 3rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 114, 0, 0.4);
    position: relative;
    z-index: 1;
}

.faq-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 114, 0, 0.5);
    background: linear-gradient(135deg, #ff8c33, #FF7200);
}

/* ===========================================
   MOBILE RESPONSIVE
   =========================================== */
@media (max-width: 768px) {
    .faq-icon-wrapper {
        padding: 0.75rem;
    }

    .faq-icon-wrapper i {
        font-size: 1.5rem;
    }

    .faq-category-title {
        font-size: 1.5rem;
    }

    .faq-items-container {
        padding: 1.25rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
    }

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

    .faq-answer {
        padding: 0 1.25rem;
    }

    .faq-item.active .faq-answer {
        padding: 1.25rem;
    }

    .faq-nav-grid {
        grid-template-columns: 1fr;
    }

    .faq-cta h2 {
        font-size: 1.5rem;
    }

    .faq-cta p {
        font-size: 1rem;
    }
}

/* ===========================================
   PRINT STYLES
   =========================================== */
@media print {
    .faq-item {
        page-break-inside: avoid;
        border: 1px solid #ddd;
        margin-bottom: 1rem;
    }

    .faq-answer {
        max-height: none !important;
        padding: 1rem !important;
    }

    .faq-icon {
        display: none;
    }
}
