#exit-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#exit-popup {
    background: #fff;
    width: 90%;
    max-width: 900px;
    display: flex;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: visible;
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #333;
    z-index: 10;
    line-height: 1;
}

.exit-popup-left {
    flex: 1.2;
    padding: 40px;
}

.exit-popup-right {
    flex: 0.8;
    background: #f8f8f8;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-left: 1px solid #ddd;
    position: relative;
}

/* "lub" on the divider */
.exit-popup-right::before {
    content: "lub";
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 10px 5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #999;
    font-size: 14px;
    z-index: 5;
}

.exit-popup-left h2,
.exit-popup-right h3 {
    font-size: 28px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000;
    position: relative;
    z-index: 2;
    display: inline-block;
}

.exit-popup-left h2::before,
.exit-popup-right h3::before {
    z-index: -1;
    content: "";
    width: 24px;
    height: 21px;
    left: -6px;
    top: -4px;
    position: absolute;
    background-color: #FF0000;
    pointer-events: none;
}

.exit-popup-right h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

.exit-popup-phone {
    font-size: 24px;
    font-weight: 700;
    color: #FF0000;
    text-decoration: none;
    margin-top: 10px;
}

.exit-popup-form .input-wrapper {
    margin-bottom: 30px;
    position: relative;
}

.exit-popup-form .form-label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    display: block;
}

.exit-popup-form .form-control {
    border-radius: 0;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc !important;
    background: transparent;
    box-shadow: none;
    width: 100%;
    font-size: 16px;
    /* Fix for iOS auto-zoom */
}

.exit-popup-form .form-control:focus {
    border-bottom: 1px solid #FF0000 !important;
}

.exit-popup-form .rodo-rules {
    font-size: 11px;
    margin-top: 25px;
}

.exit-popup-form .rules-text {
    line-height: 1.4;
    color: #666;
    display: inline;
}

.exit-popup-form .rules-text p {
    display: inline;
    margin: 0;
}

.exit-popup-form .rules-text a {
    color: inherit;
    text-decoration: underline !important;
}

.exit-popup-form .rules-text a:hover {
    text-decoration: none !important;
}

/* Individual collapsible consents */
.rule-wrapper {
    margin-bottom: 15px;
}

.rule-text-container {
    max-height: 31px;
    /* Approx 2 lines (11px * 1.4 * 2) */
    overflow: hidden;
    position: relative;
    transition: max-height 0.3s ease-out;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rule-text-container.expanded {
    max-height: 1000px;
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.rule-toggle {
    display: inline-block;
    cursor: pointer;
    color: #666;
    font-weight: 400;
    text-decoration: underline;
    text-transform: lowercase;
    margin-left: 0;
    font-size: 11px;
    margin-top: 2px;
}

.exit-popup-form button[type="submit"] {
    width: 100% !important;
    margin-top: 20px;
    display: block;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(314deg, rgb(158, 0, 11) 0%, rgb(215, 6, 19) 19%, rgb(236, 37, 50) 50%, rgb(215, 6, 19) 78%, rgb(158, 0, 11) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.exit-popup-form button[type="submit"]:hover {
    filter: brightness(1.1);
}

/* Validation Engine Overrides for Popup */
#exit-popup .formError {
    z-index: 10000 !important;
    pointer-events: none;
}

#exit-popup .formError .formErrorContent {
    background: #FF0000 !important;
    color: #fff !important;
    border: none !important;
    font-size: 10px !important;
    padding: 4px 8px !important;
    box-shadow: none !important;
}

#exit-popup .formError .formErrorArrow div {
    background: #FF0000 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
    #exit-popup {
        flex-direction: column;
        max-height: 95vh;
        overflow-y: auto;
        width: 95%;
    }

    .exit-popup-left,
    .exit-popup-right {
        padding: 30px 15px;
    }

    .exit-popup-right {
        border-left: 0;
        border-top: 1px solid #ddd;
    }

    .exit-popup-right::before {
        left: 50%;
        top: -15px;
        transform: translateX(-50%);
        padding: 5px 10px;
    }

    .exit-popup-form .row {
        margin-left: 0;
        margin-right: 0;
    }

    .exit-popup-form .row>div {
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 20px !important;
    }
}

#exit-popup-success {
    text-align: center;
    padding: 40px 20px;
}

#exit-popup-success h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: 700;
}

#exit-popup-success p {
    font-size: 16px;
    margin-bottom: 30px;
    color: #444;
}

.success-icon {
    margin-bottom: 20px;
    animation: scaleIn 0.5s ease-out;
}

.exit-popup-close-btn {
    width: 100%;
    display: block;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(314deg, rgb(158, 0, 11) 0%, rgb(215, 6, 19) 19%, rgb(236, 37, 50) 50%, rgb(215, 6, 19) 78%, rgb(158, 0, 11) 100%);
    color: #fff;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 20px;
}

.exit-popup-close-btn:hover {
    filter: brightness(1.1);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}