/* =========================================
   The "Big 5" Competitor Suite Styles
   ========================================= */

/* --- 1. Bundle Builder (Progressive Style) --- */
.bundle-builder-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.bundle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.bundle-item {
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    padding: 1.5rem 1rem;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.7;
}

.bundle-item.active {
    border-color: var(--primary);
    background: #eff6ff;
    opacity: 1;
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.bundle-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.bundle-label {
    font-weight: 700;
    color: var(--gray-700);
}

.bundle-savings {
    font-size: 2rem;
    font-weight: 800;
    color: var(--success);
    margin: 1rem 0;
    min-height: 4rem;
    /* prevent jump */
}

/* --- 2. Discount Stacker (Geico Style) --- */
.discount-stacker-container {
    background: var(--dark);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.discount-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.discount-checkbox {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s;
}

.discount-checkbox:hover {
    background: rgba(255, 255, 255, 0.2);
}

.discount-checkbox input {
    margin: 0;
    transform: scale(1.2);
    cursor: pointer;
}

/* --- 3. Risk Heatmap (Next Insurance Style) --- */
.risk-map-container {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1rem;
    height: 400px;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 20px 20px;
}

.heatmap-overlay {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.4) 0%, rgba(239, 68, 68, 0) 70%);
    border-radius: 50%;
    animation: pulseRisk 3s infinite;
    display: none;
}

.heatmap-overlay.active {
    display: block;
}

@keyframes pulseRisk {
    0% {
        transform: scale(0.9);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.6;
    }

    100% {
        transform: scale(0.9);
        opacity: 0.3;
    }
}

/* --- 4. Depreciation Calculator (CarGurus Style) --- */
.depreciation-tool {
    background: white;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--gray-200);
}

/* --- 5. Renewal Forecaster (Gabi Style) --- */
.forecaster-timeline {
    display: flex;
    justify-content: space-between;
    margin: 3rem 0;
    position: relative;
}

.forecaster-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-200);
    z-index: 0;
}

.month-point {
    position: relative;
    z-index: 1;
    width: 34px;
    height: 34px;
    background: var(--gray-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: white;
    cursor: default;
}

.month-point.best {
    background: var(--success);
    transform: scale(1.3);
    box-shadow: 0 0 0 5px rgba(16, 185, 129, 0.2);
}

.month-point.bad {
    background: var(--danger);
}

.month-tooltip {
    position: absolute;
    top: -40px;
    background: var(--dark);
    color: white;
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.2s;
}

.month-point:hover .month-tooltip {
    opacity: 1;
}