/* Exit Intent Modal Styles */
:root {
    --exit-modal-bg: rgba(26, 15, 10, 0.98);
    --exit-modal-accent: #FF6A30;
    --exit-modal-accent-hover: #CC4F1F;
    --exit-modal-text: #ffffff;
    --exit-modal-text-muted: #d1d1d1;
    --exit-modal-border: #4a3427;
    --exit-modal-btn-bg: linear-gradient(180deg, #6ab23d 0%, #4a8a29 100%);
    --exit-modal-btn-shadow: 0 4px 0 #2d5519;
}

#exit-intent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#exit-intent-overlay.active {
    opacity: 1;
    visibility: visible;
}

#exit-intent-modal {
    width: 90%;
    max-width: 800px;
    background: var(--exit-modal-bg);
    border: 3px solid var(--exit-modal-border);
    border-radius: 20px;
    position: relative;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#exit-intent-overlay.active #exit-intent-modal {
    transform: translateY(0) scale(1);
}

.exit-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--exit-modal-border);
    border-radius: 8px;
    color: #fff;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
}

.exit-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.exit-modal-content {
    display: flex;
    flex-direction: row;
    min-height: 400px;
}

.exit-modal-image-side {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.exit-modal-image-side::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.2), var(--exit-modal-bg));
}

.exit-modal-badge {
    position: relative;
    z-index: 2;
    background: linear-gradient(135deg, #f6ad55 0%, #ed8936 100%);
    padding: 10px 25px;
    border-radius: 4px;
    color: white;
    font-weight: 900;
    font-size: 1.4rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    transform: rotate(-5deg);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.exit-modal-text-side {
    flex: 1.2;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    position: relative;
    z-index: 5;
}

.exit-modal-eyebrow {
    color: var(--exit-modal-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.exit-modal-text-side h2 {
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 20px;
}

.exit-modal-text-side p {
    color: var(--exit-modal-text-muted);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.exit-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.exit-modal-btn-main {
    background: var(--exit-modal-btn-bg);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    padding: 18px 35px;
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: var(--exit-modal-btn-shadow);
    transition: transform 0.1s, box-shadow 0.1s;
    text-align: center;
    width: 100%;
    border-bottom: 4px solid #2d5519;
}

.exit-modal-btn-main:hover {
    transform: translateY(1px);
    box-shadow: 0 3px 0 #2d5519;
}

.exit-modal-btn-main:active {
    transform: translateY(4px);
    box-shadow: none;
}

.exit-modal-btn-dismiss {
    color: var(--exit-modal-text-muted);
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    padding: 5px;
    margin: 10px;
    width: 100%;
    display: block;
    text-align: center;
}

.exit-modal-btn-dismiss:hover {
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-modal-content {
        flex-direction: column;
    }
    .exit-modal-image-side {
        min-height: 200px;
    }
    .exit-modal-image-side::after {
        background: linear-gradient(to bottom, transparent, var(--exit-modal-bg));
    }
    .exit-modal-text-side {
        padding: 40px 30px;
        text-align: center;
    }
    .exit-modal-actions {
        align-items: center;
    }
    .exit-modal-text-side h2 {
        font-size: 1.8rem;
    }
}
