/* === CONVERSION OPTIMIZATION CSS === */

/* --- Trust Badges --- */
.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    background: linear-gradient(135deg, #f8ffff 0%, #e8fffe 100%);
    border-top: 1px solid rgba(64, 224, 208, 0.2);
    border-bottom: 1px solid rgba(64, 224, 208, 0.2);
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.trust-badge:hover {
    transform: translateY(-3px);
}

.trust-badge-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 50%;
    color: white;
    font-size: 20px;
}

.trust-badge-text {
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.trust-badge-subtext {
    font-size: 12px;
    color: var(--gray);
}

/* --- Countdown Timer --- */
.countdown-banner {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    padding: 15px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.countdown-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

.countdown-text {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-number {
    font-size: 28px;
    font-weight: 700;
    background: rgba(255,255,255,0.2);
    padding: 8px 15px;
    border-radius: 8px;
    min-width: 60px;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    margin-top: 5px;
    opacity: 0.9;
}

/* --- Exit Intent Popup --- */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.exit-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.exit-popup {
    background: var(--white);
    border-radius: var(--radius);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.exit-popup-overlay.active .exit-popup {
    transform: scale(1);
}

.exit-popup-header {
    background: var(--turquoise-gradient);
    color: white;
    padding: 25px;
    text-align: center;
}

.exit-popup-header h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.exit-popup-header p {
    opacity: 0.9;
}

.exit-popup-body {
    padding: 30px;
}

.exit-popup-offer {
    text-align: center;
    margin-bottom: 25px;
}

.exit-popup-discount {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
}

.exit-popup-form input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    font-size: 16px;
}

.exit-popup-form input:focus {
    border-color: var(--primary);
    outline: none;
}

.exit-popup-form button {
    width: 100%;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.exit-popup-form button:hover {
    background: var(--primary-dark);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.exit-popup-close:hover {
    opacity: 1;
}

.exit-popup-skip {
    display: block;
    text-align: center;
    margin-top: 15px;
    color: var(--gray);
    font-size: 14px;
    cursor: pointer;
}

.exit-popup-skip:hover {
    color: var(--dark);
}

/* --- Savings Calculator --- */
.savings-calculator {
    background: linear-gradient(135deg, #f0ffff 0%, #e0f7f7 100%);
    padding: 40px;
    border-radius: var(--radius);
    margin: 40px 0;
}

.calculator-title {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark);
}

.calculator-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.calculator-item {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
}

.calculator-item label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--dark);
}

.calculator-item select,
.calculator-item input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-size: 16px;
}

.calculator-result {
    background: var(--primary);
    color: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.result-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 10px;
}

.result-savings {
    font-size: 48px;
    font-weight: 700;
}

.result-percentage {
    font-size: 24px;
    opacity: 0.9;
}

/* --- Floating CTA --- */
.floating-cta {
    position: fixed;
    bottom: 100px;
    right: 20px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.floating-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.floating-cta-btn:hover {
    transform: translateX(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.4);
}

.floating-cta-btn.phone {
    background: #25D366;
}

/* --- Review Stars --- */
.review-stars {
    display: inline-flex;
    gap: 2px;
    color: #fbbf24;
}

.review-count {
    margin-left: 10px;
    color: var(--gray);
    font-size: 14px;
}

/* --- Urgency Badge --- */
.urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fef2f2;
    color: #dc2626;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

/* --- Social Proof Notification --- */
.social-proof {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    z-index: 998;
    transform: translateX(-120%);
    transition: transform 0.5s ease;
}

.social-proof.show {
    transform: translateX(0);
}

.social-proof-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.social-proof-text {
    flex: 1;
}

.social-proof-name {
    font-weight: 600;
    color: var(--dark);
}

.social-proof-action {
    font-size: 14px;
    color: var(--gray);
}

.social-proof-time {
    font-size: 12px;
    color: var(--gray-light);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .countdown-timer {
        gap: 10px;
    }

    .countdown-number {
        font-size: 20px;
        padding: 6px 10px;
        min-width: 45px;
    }

    .floating-cta {
        bottom: 80px;
        right: 10px;
    }

    .floating-cta-btn {
        padding: 10px 15px;
        font-size: 14px;
    }

    .social-proof {
        max-width: 300px;
        left: 10px;
        right: 10px;
    }

    .savings-calculator {
        padding: 20px;
    }

    .result-savings {
        font-size: 36px;
    }
}
