/* Exit Intent Popup Styles */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

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

.exit-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    max-width: 420px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
    border: 1px solid #e5e7eb;
}

.exit-popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #9ca3af;
    cursor: pointer;
    z-index: 10001;
    transition: color 0.2s ease;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.exit-popup-close:hover {
    color: #6b7280;
}

.exit-popup-content {
    padding: 24px 24px 20px;
}

.exit-popup-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    padding-bottom: 16px;
}

.exit-popup-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

.exit-popup-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
}

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

.discount-badge {
    color: rgb(255, 255, 255);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 12px;
    text-transform: uppercase;
    box-shadow: rgba(234, 88, 12, 0.3) 0px 2px 8px;
    background: linear-gradient(135deg, rgb(43, 50, 57), rgb(55, 75, 149));
    padding: 6px 12px;
    border-radius: 20px;
    animation: 2s ease 0s infinite normal none running pulse;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.offer-description {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    margin-bottom: 0;
}

.exit-popup-form {
    margin-bottom: 16px;
}

.exit-form-group {
    margin-bottom: 12px;
}

.exit-form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.exit-form-row .exit-form-group {
    flex: 1;
    margin-bottom: 0;
}

.exit-input,
.exit-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
    box-sizing: border-box;
}

.exit-input:focus,
.exit-select:focus {
    outline: none;
    border-color: #52B2BF;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.exit-select {
    color: #9ca3af;
}

.exit-select.has-value,
select.exit-input.has-value {
    color: #000000;
}

.exit-select option {
    color: #1f2937;
}

.exit-select option[value=""] {
    color: #9ca3af;
}

.time-selection {
    margin-bottom: 16px;
}

.time-selection-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.time-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.time-option {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.time-option:hover {
    border-color: #52B2BF;
    background: #f8fafc;
}

.time-option.selected {
    border-color: #52B2BF;
    background: #eff6ff;
}

.time-option input[type="radio"] {
    margin: 0;
    width: 14px;
    height: 14px;
}

.time-option label {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.time-option span {
    font-size: 13px;
    color: #374151;
    cursor: pointer;
    margin: 0;
}

.exit-popup-btn {
    width: 100%;
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: rgba(59, 130, 246, 0.2) 0px 2px 8px;
    background: linear-gradient(135deg, rgb(234, 88, 12) 0%, rgb(220, 38, 38) 100%);
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
    padding: 12px 16px;
    border-radius: 8px;
    transition: 0.2s;
}

.exit-popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.exit-popup-btn:active {
    transform: translateY(0);
}

.exit-popup-footer {
    border-top: 1px solid #f3f4f6;
    padding-top: 12px;
    margin-top: 16px;
    text-align: center;
}

.exit-popup-footer p {
    font-size: 12px;
    color: #6b7280;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .exit-popup {
        margin: 16px;
        max-width: none;
    }

    .exit-popup-content {
        padding: 20px 16px 16px;
    }

    .exit-popup-title {
        font-size: 18px;
    }

    .exit-form-row {
        flex-direction: column;
        gap: 8px;
    }

    .time-options {
        grid-template-columns: 1fr;
    }
}