/* =========================================
   Deep Engagement Suite Styles
   ========================================= */

/* --- Trust Pulse Ticker --- */
.trust-pulse-container {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 999;
}

.trust-pulse-notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 5px solid var(--success);
    margin-top: 1rem;
    animation: slideInLeft 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 350px;
}

.trust-pulse-content strong {
    display: block;
    color: var(--gray-900);
}

.trust-pulse-content span {
    font-size: 0.85rem;
    color: var(--gray-600);
}

.trust-pulse-icon {
    font-size: 1.5rem;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

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

@keyframes slideOutFade {
    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* --- Rate Trend Explorer --- */
.rate-chart-section {
    padding: 4rem 0;
    background: white;
}

.chart-container {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    position: relative;
    height: 400px;
    width: 100%;
}

.chart-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* --- Safe Driver Quiz (Modal) --- */
.quiz-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.quiz-overlay.active {
    display: flex;
}

.quiz-card {
    background: white;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 20px;
    position: relative;
    animation: zoomIn 0.3s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.quiz-btn {
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    background: transparent;
    text-align: left;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.quiz-btn:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.quiz-score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 8px solid var(--success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin: 2rem auto;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}