/* FAQ Page Styles - NIS2Have Design System */


/* ===== Hero Section ===== */
.faq-hero {
    padding: 40px 40px 80px;
    background: linear-gradient(
        180deg,
        var(--white) 0%,
        var(--brand-teal-bg) 100%
    );
    position: relative;
    text-align: center;
}

.faq-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(131, 159, 159, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(131, 159, 159, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.faq-hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.faq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-teal-dark);
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(66, 83, 105, 0.06);
}

.faq-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--brand-navy);
    line-height: 1.2;
    margin-bottom: 20px;
}

.faq-hero h1 .highlight {
    color: var(--brand-teal);
}

.faq-hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== FAQ Section ===== */
.faq-section {
    padding: 0 40px 100px;
    background: var(--brand-teal-bg);
    position: relative;
}

.faq-container {
    max-width: 820px;
    margin: 0 auto;
}

/* ===== Category Headers ===== */
.faq-category {
    margin-bottom: 48px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--gray-200);
}

.faq-category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    border-radius: 12px;
    color: var(--brand-teal-dark);
    box-shadow: 0 2px 8px rgba(66, 83, 105, 0.08);
}

.faq-category h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin: 0;
}

/* ===== FAQ Items ===== */
.faq-item {
    background: var(--white);
    border-radius: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(66, 83, 105, 0.06);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(66, 83, 105, 0.1);
}

.faq-item.active {
    border-color: var(--brand-teal);
    box-shadow: 0 8px 24px rgba(131, 159, 159, 0.15);
}

/* ===== Question Button ===== */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease;
}

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

.faq-item.active .faq-question {
    background: var(--brand-teal-bg);
}

.faq-q-number {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-500);
    transition: all 0.3s ease;
}

.faq-item.active .faq-q-number {
    background: var(--brand-teal);
    color: var(--white);
}

.faq-q-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-navy);
    line-height: 1.4;
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--gray-400);
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--brand-teal);
}

/* ===== Answer Section ===== */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height 0.4s ease,
        padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 2000px;
    padding: 0 24px 24px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

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

.faq-answer strong {
    color: var(--brand-navy);
}

.faq-answer ul {
    margin: 0 0 16px 0;
    padding-left: 24px;
}

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

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

/* ===== Stats Grid ===== */
.faq-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.faq-stat {
    background: var(--brand-teal-bg);
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    border: 1px solid rgba(131, 159, 159, 0.2);
}

.faq-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-teal-dark);
    margin-bottom: 4px;
}

.faq-stat-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    line-height: 1.4;
}

/* ===== Timeline ===== */
.faq-timeline {
    margin: 24px 0;
    padding-left: 8px;
}

.faq-timeline-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.faq-timeline-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.faq-timeline-badge {
    flex-shrink: 0;
    width: 56px;
    padding: 8px 12px;
    background: var(--gray-100);
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-600);
    text-align: center;
}

.faq-timeline-badge.urgent {
    background: rgba(231, 76, 60, 0.1);
    color: var(--critical-red);
}

.faq-timeline-badge.warning {
    background: rgba(243, 156, 18, 0.1);
    color: var(--warning-orange);
}

.faq-timeline-content strong {
    display: block;
    font-size: 0.95rem;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.faq-timeline-content p {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ===== Feature Grid ===== */
.faq-feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.faq-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--gray-50);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.faq-feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-teal-bg);
    border-radius: 10px;
    color: var(--brand-teal-dark);
}

.faq-feature strong {
    display: block;
    font-size: 0.9rem;
    color: var(--brand-navy);
    margin-bottom: 4px;
}

.faq-feature p {
    font-size: 0.8rem;
    color: var(--gray-500);
    margin: 0;
    line-height: 1.5;
}

/* ===== CTA Box (inline) ===== */
.faq-cta-box {
    background: linear-gradient(
        135deg,
        var(--brand-teal-bg) 0%,
        rgba(131, 159, 159, 0.15) 100%
    );
    border: 1px solid var(--brand-teal);
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.faq-cta-box strong {
    display: block;
    font-size: 0.95rem;
    color: var(--brand-navy);
    margin-bottom: 8px;
}

.faq-cta-box p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}

.faq-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-teal-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.faq-inline-btn:hover {
    color: var(--brand-navy);
}

/* ===== CTA Section ===== */
.faq-cta-section {
    margin-top: 60px;
}

.faq-cta-card {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(66, 83, 105, 0.12);
    border: 1px solid var(--gray-200);
}

.faq-cta-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 12px;
}

.faq-cta-card > p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 28px;
}

.faq-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.faq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
}

.faq-btn.primary {
    color: var(--white);
    background: var(--brand-teal);
}

.faq-btn.primary:hover {
    background: var(--brand-teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(131, 159, 159, 0.3);
}

.faq-btn.secondary {
    color: var(--brand-navy);
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
}

.faq-btn.secondary:hover {
    border-color: var(--brand-teal);
    background: var(--brand-teal-bg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .faq-hero {
        padding: 120px 20px 60px;
    }

    .faq-hero h1 {
        font-size: 2rem;
    }

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

    .faq-section {
        padding: 0 20px 60px;
    }

    .faq-question {
        padding: 20px;
        gap: 12px;
    }

    .faq-q-text {
        font-size: 0.95rem;
    }

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

    .faq-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .faq-stat {
        padding: 16px;
    }

    .faq-stat-number {
        font-size: 1.5rem;
    }

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

    .faq-cta-card {
        padding: 32px 24px;
    }

    .faq-cta-buttons {
        flex-direction: column;
    }

    .faq-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .faq-hero h1 {
        font-size: 1.75rem;
    }

    .faq-hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .faq-category-header {
        gap: 12px;
    }

    .faq-category-icon {
        width: 40px;
        height: 40px;
    }

    .faq-category h2 {
        font-size: 1.1rem;
    }

    .faq-q-number {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .faq-timeline-item {
        flex-direction: column;
        gap: 8px;
    }

    .faq-timeline-badge {
        width: auto;
        display: inline-block;
    }
}
