﻿body:has(.reg-exit-modal.show) .modal-backdrop.show {
    opacity: 1;
    background-color: rgba(9, 30, 52, 0.55);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

.reg-exit-modal .modal-dialog {
    max-width: 520px;
}

.reg-exit-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    background-color: #ffffff;
    box-shadow: 0 30px 80px rgba(4, 25, 43, 0.28);
}

.reg-exit-modal .reg-exit-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #444;
    background-color: #ffffff;
    font-size: 1.8rem;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.09);
    transition: 0.3s all ease-in-out;
}

    .reg-exit-modal .reg-exit-close:hover,
    .reg-exit-modal .reg-exit-close:focus-visible {
        color: #ffffff;
        background-color: #0965ac;
        -webkit-transform: rotate(90deg);
        transform: rotate(90deg);
    }

.reg-exit-modal .reg-exit-head {
    position: relative;
    padding: 36px 36px 22px;
    background: linear-gradient(160deg, #e3f1fc 0%, #f1f8fd 45%, #ffffff 100%);
    overflow: hidden;
}

    .reg-exit-modal .reg-exit-head::after {
        content: "";
        position: absolute;
        top: -70px;
        right: -60px;
        width: 200px;
        height: 200px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(9, 101, 172, 0.14) 0%, rgba(9, 101, 172, 0) 70%);
        pointer-events: none;
    }

.reg-exit-modal .reg-exit-badge {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 18px;
    border-radius: 15px;
    color: #ffffff;
    background: linear-gradient(135deg, #1a85d6 0%, #0965ac 100%);
    box-shadow: 0 12px 24px rgba(9, 101, 172, 0.3);
}

.reg-exit-modal .reg-exit-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: #0965ac;
    font-family: "Inter", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.reg-exit-modal h2 {
    margin: 0 0 10px;
    color: #191919;
    font-family: "Inter", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.reg-exit-modal .reg-exit-head p,
.reg-exit-modal .reg-exit-thanks p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #444;
    font-size: 1.5rem;
    line-height: 1.65;
}

.reg-exit-modal .reg-exit-body {
    padding: 18px 36px 28px;
}

.reg-exit-modal fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.reg-exit-modal legend {
    float: none;
    width: 100%;
    margin-bottom: 14px;
    color: #191919;
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
}

.reg-exit-modal .reg-exit-options {
    display: grid;
    gap: 10px;
}

.reg-exit-modal .reg-exit-option {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    min-height: 52px;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #e1e9f0;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
}

    .reg-exit-modal .reg-exit-option:hover {
        border-color: #9cc4e4;
        background-color: #f8fbfe;
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px);
    }

    .reg-exit-modal .reg-exit-option input {
        position: absolute;
        opacity: 0;
        width: 1px;
        height: 1px;
        pointer-events: none;
    }

.reg-exit-modal .reg-exit-check {
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 20px;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border: 2px solid #c3d3e0;
    border-radius: 50%;
    background-color: #ffffff;
    transition: 0.3s all ease-in-out;
}

    .reg-exit-modal .reg-exit-check::after {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: #ffffff;
        -webkit-transform: translate(-50%, -50%) scale(0);
        transform: translate(-50%, -50%) scale(0);
        transition: 0.3s all ease-in-out;
    }

.reg-exit-modal .reg-exit-label {
    color: #191919;
    font-family: "Inter", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.4;
}

.reg-exit-modal .reg-exit-option:has(input:checked) {
    border-color: #0965ac;
    background-color: #f1f8fd;
    box-shadow: inset 0 0 0 1px #0965ac;
}

    .reg-exit-modal .reg-exit-option:has(input:checked) .reg-exit-check {
        border-color: #0965ac;
        background-color: #0965ac;
    }

        .reg-exit-modal .reg-exit-option:has(input:checked) .reg-exit-check::after {
            -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
        }

.reg-exit-modal .reg-exit-option:has(input:focus-visible) {
    outline: 3px solid rgba(9, 101, 172, 0.35);
    outline-offset: 2px;
}

.reg-exit-modal .reg-exit-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    gap: 8px;
    margin-top: 22px;
}

    .reg-exit-modal .reg-exit-actions .btn-main,
    .reg-exit-modal .reg-exit-actions .btn-border {
        width: 100%;
        min-height: 50px;
        font-family: "Inter", sans-serif;
        font-size: 1.5rem;
        font-weight: 600;
    }

        .reg-exit-modal .reg-exit-actions .btn-main:disabled {
            opacity: 0.45;
            cursor: not-allowed;
            color: #ffffff;
            background-color: #0965ac;
        }

.reg-exit-modal .reg-exit-skip {
    -ms-flex-item-align: center;
    align-self: center;
    padding: 8px 12px;
    border: 0;
    color: #444;
    background-color: transparent;
    font-family: "Inter", sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    transition: 0.3s all ease-in-out;
}

    .reg-exit-modal .reg-exit-skip:hover,
    .reg-exit-modal .reg-exit-skip:focus-visible {
        color: #0965ac;
        text-decoration: underline;
    }

.reg-exit-modal .reg-exit-note {
    margin: 12px 0 0;
    color: #7a8794;
    font-size: 1.2rem;
    line-height: 1.5;
    text-align: center;
}

.reg-exit-modal .reg-exit-thanks {
    padding: 48px 36px 34px;
    text-align: center;
    background: linear-gradient(180deg, #f1f8fd 0%, #ffffff 55%);
}

    .reg-exit-modal .reg-exit-thanks:not([hidden]) {
        -webkit-animation: regExitFadeUp 0.35s ease-out;
        animation: regExitFadeUp 0.35s ease-out;
    }

.reg-exit-modal .reg-exit-badge-success {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34b56a 0%, #1f9150 100%);
    box-shadow: 0 12px 24px rgba(31, 145, 80, 0.28);
}

.reg-exit-modal .reg-exit-message h2:focus {
    outline: none;
}

.reg-exit-modal .reg-exit-thanks .reg-exit-message p + p {
    margin-top: 10px;
}

.reg-exit-modal .reg-exit-contact {
    margin-top: 26px;
    padding: 22px 20px 20px;
    border: 1px solid #e1e9f0;
    border-radius: 15px;
    background-color: #f8fbfe;
    text-align: left;
}

    .reg-exit-modal .reg-exit-contact h3 {
        margin: 0 0 4px;
        color: #191919;
        font-family: "Inter", sans-serif;
        font-size: 1.7rem;
        font-weight: 700;
        line-height: 1.35;
    }

.reg-exit-modal .reg-exit-thanks .reg-exit-contact p {
    margin: 0 0 14px;
    font-size: 1.4rem;
    line-height: 1.5;
}

.reg-exit-modal .reg-exit-contact-list {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .reg-exit-modal .reg-exit-contact-list li {
        margin: 0;
        padding: 0;
    }

.reg-exit-modal .reg-exit-contact-link {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border: 1px solid #e1e9f0;
    border-radius: 12px;
    background-color: #ffffff;
    text-decoration: none;
    transition: 0.3s all ease-in-out;
}

    .reg-exit-modal .reg-exit-contact-link:hover,
    .reg-exit-modal .reg-exit-contact-link:focus-visible {
        border-color: #0965ac;
        background-color: #f1f8fd;
        -webkit-transform: translateY(-1px);
        transform: translateY(-1px);
    }

    .reg-exit-modal .reg-exit-contact-link:focus-visible {
        outline: 3px solid rgba(9, 101, 172, 0.35);
        outline-offset: 2px;
    }

.reg-exit-modal .reg-exit-contact-icon {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 40px;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    color: #0965ac;
    background-color: #e3f1fc;
    font-size: 1.7rem;
    transition: 0.3s all ease-in-out;
}

.reg-exit-modal .reg-exit-contact-link:hover .reg-exit-contact-icon,
.reg-exit-modal .reg-exit-contact-link:focus-visible .reg-exit-contact-icon {
    color: #ffffff;
    background-color: #0965ac;
}

.reg-exit-modal .reg-exit-contact-text {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    font-family: "Inter", sans-serif;
    line-height: 1.35;
}

    .reg-exit-modal .reg-exit-contact-text strong {
        color: #191919;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .reg-exit-modal .reg-exit-contact-text span {
        overflow-wrap: anywhere;
        color: #0965ac;
        font-size: 1.35rem;
        font-weight: 500;
    }

.reg-exit-modal .reg-exit-thanks .reg-exit-actions {
    margin-top: 18px;
}

@-webkit-keyframes regExitFadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@keyframes regExitFadeUp {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

@media (max-width: 767px) {
    .reg-exit-modal .modal-dialog {
        -webkit-box-align: end;
        -ms-flex-align: end;
        align-items: flex-end;
        max-width: none;
        min-height: 100%;
        margin: 0;
    }

    .reg-exit-modal.fade .modal-dialog {
        -webkit-transform: translateY(100%);
        transform: translateY(100%);
    }

    .reg-exit-modal.show .modal-dialog {
        -webkit-transform: none;
        transform: none;
    }

    .reg-exit-modal .modal-content {
        max-height: 92dvh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
    }

    .reg-exit-modal .reg-exit-head {
        padding: 28px 20px 18px;
    }

    .reg-exit-modal .reg-exit-body {
        padding: 14px 20px calc(22px + env(safe-area-inset-bottom));
    }

    .reg-exit-modal .reg-exit-thanks {
        padding: 40px 20px calc(26px + env(safe-area-inset-bottom));
    }

    .reg-exit-modal .reg-exit-contact {
        margin-top: 22px;
        padding: 18px 14px 14px;
    }

    .reg-exit-modal h2 {
        font-size: 2.4rem;
    }

    .reg-exit-modal .reg-exit-badge {
        width: 48px;
        height: 48px;
        margin-bottom: 14px;
    }

    .reg-exit-modal .reg-exit-option {
        min-height: 48px;
        padding: 11px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .reg-exit-modal .reg-exit-option,
    .reg-exit-modal .reg-exit-close,
    .reg-exit-modal .reg-exit-contact-link,
    .reg-exit-modal .reg-exit-thanks:not([hidden]) {
        -webkit-animation: none;
        animation: none;
        transition: none;
    }
}
