.modal {
    --bp-primary: #008474;
    --bp-primary-hover: #006b5e;
    --bp-primary-dark: #005249;
    --bp-primary-mid: #4db6a8;
    --bp-primary-light: #e6f5f3;
    --bp-text: #0f2e2a;

    --bs-modal-zindex: 111111;
    --bs-modal-width: 500px;
    --bs-modal-padding: 1rem;
    --bs-modal-margin: 0.5rem;
    --bs-modal-color: ;
    --bs-modal-bg: #fff;
    --bs-modal-border-color: var(--bs-border-color-translucent);
    --bs-modal-border-width: 1px;
    --bs-modal-border-radius: 0.5rem;
    --bs-modal-box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --bs-modal-inner-border-radius: calc(0.5rem - 1px);
    --bs-modal-header-padding-x: 1rem;
    --bs-modal-header-padding-y: 1rem;
    --bs-modal-header-padding: 1rem 1rem;
    --bs-modal-header-border-color: var(--bs-border-color);
    --bs-modal-header-border-width: 1px;
    --bs-modal-title-line-height: 1.5;
    --bs-modal-footer-gap: 0.5rem;
    --bs-modal-footer-bg: ;
    --bs-modal-footer-border-color: var(--bs-border-color);
    --bs-modal-footer-border-width: 1px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-modal-zindex);
    display: none;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    outline: 0
}

.img-mobile { display: none; }

.modal-dialog {
    position: relative;
    width: auto;
    margin: var(--bs-modal-margin);
    pointer-events: none
}

.modal.fade .modal-dialog {
    transition: transform .3s ease-out;
    transform: translate(0, -50px)
}

@media (prefers-reduced-motion:reduce) {
    .modal.fade .modal-dialog {
        transition: none
    }
}

.modal.show .modal-dialog {
    transform: none
}

.modal.modal-static .modal-dialog {
    transform: scale(1.02)
}

.modal-dialog-scrollable {
    height: calc(100% - var(--bs-modal-margin) * 2)
}

.modal-dialog-scrollable .modal-content {
    max-height: 100%;
    overflow: hidden
}

.modal-dialog-scrollable .modal-body {
    overflow-y: auto
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - var(--bs-modal-margin) * 2)
}

.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    color: var(--bs-modal-color);
    pointer-events: auto;
    background-color: var(--bs-modal-bg);
    background-clip: padding-box;
    border: var(--bs-modal-border-width) solid var(--bs-modal-border-color);
    border-radius: var(--bs-modal-border-radius);
    outline: 0
}

.modal-backdrop {
    --bs-backdrop-zindex: 1050;
    --bs-backdrop-bg: #000;
    --bs-backdrop-opacity: 0.5;
    position: fixed;
    top: 0;
    left: 0;
    z-index: var(--bs-backdrop-zindex);
    width: 100vw;
    height: 100vh;
    background-color: var(--bs-backdrop-bg)
}

.modal-backdrop.fade {
    opacity: 0
}

.modal-backdrop.show {
    opacity: var(--bs-backdrop-opacity)
}

.modal-header {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    padding: var(--bs-modal-header-padding);
    border-bottom: var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);
    border-top-left-radius: var(--bs-modal-inner-border-radius);
    border-top-right-radius: var(--bs-modal-inner-border-radius)
}

.modal-header .btn-close {
    padding: calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);
    margin: calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto
}

.modal-title {
    margin-bottom: 0;
    line-height: var(--bs-modal-title-line-height)
}

.modal-body {
    position: relative;
    flex: 1 1 auto;
    padding: var(--bs-modal-padding)
}

.modal-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);
    background-color: var(--bs-modal-footer-bg);
    border-top: var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);
    border-bottom-right-radius: var(--bs-modal-inner-border-radius);
    border-bottom-left-radius: var(--bs-modal-inner-border-radius)
}

.modal-footer>* {
    margin: calc(var(--bs-modal-footer-gap) * .5)
}

@media (min-width:576px) {
    .modal {
        --bs-modal-margin: 1.75rem;
        --bs-modal-box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15)
    }

    .modal-dialog {
        max-width: var(--bs-modal-width);
        margin-right: auto;
        margin-left: auto
    }

    .modal-sm {
        --bs-modal-width: 300px
    }
}

@media (min-width:992px) {

    .modal-lg,
    .modal-xl {
        --bs-modal-width: 800px
    }
}

@media (min-width:1200px) {
    .modal-xl {
        --bs-modal-width: 1140px
    }
}

.modal-fullscreen {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0
}

.modal-fullscreen .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0
}

.modal-fullscreen .modal-footer,
.modal-fullscreen .modal-header {
    border-radius: 0
}

.modal-fullscreen .modal-body {
    overflow-y: auto
}

@media (max-width:575.98px) {
    .modal-fullscreen-sm-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-sm-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-sm-down .modal-footer,
    .modal-fullscreen-sm-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-sm-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:767.98px) {
    .modal-fullscreen-md-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-md-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-md-down .modal-footer,
    .modal-fullscreen-md-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-md-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:991.98px) {
    .modal-fullscreen-lg-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-lg-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-lg-down .modal-footer,
    .modal-fullscreen-lg-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-lg-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:1199.98px) {
    .modal-fullscreen-xl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-xl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-xl-down .modal-footer,
    .modal-fullscreen-xl-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-xl-down .modal-body {
        overflow-y: auto
    }
}

@media (max-width:1399.98px) {
    .modal-fullscreen-xxl-down {
        width: 100vw;
        max-width: none;
        height: 100%;
        margin: 0
    }

    .modal-fullscreen-xxl-down .modal-content {
        height: 100%;
        border: 0;
        border-radius: 0
    }

    .modal-fullscreen-xxl-down .modal-footer,
    .modal-fullscreen-xxl-down .modal-header {
        border-radius: 0
    }

    .modal-fullscreen-xxl-down .modal-body {
        overflow-y: auto
    }
}

.modal {
        background: rgba(0, 0, 0, .6);
        backdrop-filter: blur(10px);
    }

    .flip-clock-container [class|=flip-item] .flip-digit>span {
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .flip-clock-container [class|=flip-item] .flip-digit>span::after,
    .flip-clock-container [class|=flip-item] .flip-digit>span::before {
        font-size: 35px;
    }
    .justify-content-end {
        justify-content: flex-end !important
    }

    .balti_popup {
        width: 475px;
        box-shadow: -18px 31px 76px 0 rgba(0, 0, 0, 0.35);
        background: var(--bp-primary);
        background: linear-gradient(165deg, var(--bp-primary-dark) 0%, var(--bp-primary) 100%);
        border-radius: 45px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 1;
    }

    .balti_popup .balti_popup_wrapper {
        width: 100%;
        height: 100%;
        position: relative;
        padding: 30px 20px;
        z-index: 1;
    }

    .balti_popup .balti_popup_before {
        width: 166px;
        position: absolute;
        left: -35px;
        top: -102px;
        z-index: -1;
    }

    .balti_popup .balti_popup_after {
        background: linear-gradient(90deg, var(--bp-primary-dark) 0%, var(--bp-primary) 100%);
        border-radius: 0px 45px 45px 0;
        width: 75px;
        height: 445px;
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        right: -75px;
        top: 50%;
        transform: translateY(-50%);
        z-index: -1;
    }

    .balti_popup .balti_popup_after img {
        width: 100%;
    }

    .balti_popup h4 {
        text-transform: uppercase;
        text-align: center;
        color: #fff;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        font-size: 30px;
        margin-top: 0;
        margin-bottom: .5rem;
        font-weight: 500;
        line-height: 1.2;
    }

    .balti_popup h4 span {
        display: block;
        -webkit-text-fill-color: transparent;
        -webkit-background-clip: text;
        -webkit-text-stroke: 1px;
        -webkit-text-stroke-color: #fff;
        text-transform: uppercase;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .balti_popup p {
        font-size: 14px;
        margin: 0;
        margin-top: 40px;
        color: #fff;
        text-align: center;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .balti_popup h6 {
        font-weight: 500;
        font-size: 16px;
        text-transform: uppercase;
        text-align: center;
        color: var(--bp-soft);
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        margin: 0;
        line-height: 1.2;
    }

    .balti_popup form {
        width: 100%;
    }

    .balti_popup form .control_form {
        margin-top: 15px;
    }

    .balti_popup form .control_form input,
    .balti_popup form .control_form textarea {
        background: transparent;
        border: 0.91px solid var(--bp-text);
        padding: 10px 15px;
        width: 100%;
        color: #fff;
        font-size: 14px;
        border-radius: 27px;
        box-shadow: none;
        outline: 0;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    }

    .balti_popup form .control_form textarea {
        height: 80px;
        resize: unset;
    }

    .balti_popup form .control_form input::placeholder,
    .balti_popup form .control_form textarea::placeholder {
        font-size: 14px;
        font-weight: 300;
        color: #fff;
    }

    .balti_popup form button {
        background: linear-gradient(186deg, var(--bp-primary) 0%, var(--bp-text) 100%);
        padding: 15px 45px;
        color: #fff;
        border: 0;
        border-radius: 27px;
        margin-top: 10px;
        font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
        transition: filter 0.2s, transform 0.15s, box-shadow 0.2s;
        box-shadow: 0 6px 20px rgba(var(--bp-primary-rgb), 0.3);
    }

    .balti_popup form button:hover{
        filter: brightness(1.05);
        box-shadow: 0 10px 28px rgba(var(--bp-primary-light), 0.4);
        transform: translateY(-1px);
    }

    .balti_popup .fancybox-close-small {
        width: 40px;
        height: 40px;
        border-radius: 50px;
        background: #fff;
        border: none;
        position: absolute;
        top: 20px;
        right: 20px;
        outline: 0;
        cursor: pointer;
        z-index: 1;
    }

    .balti_popup .fancybox-close-small:after {
        content: "\f00d";
        font-family: "Font Awesome 5 Free";
        font-weight: 900;
        color: #000;
        font-size: 20px;
        border-radius: 50%;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: .1s linear;
    }

    .modal-backdrop {
        display: none !important
    }

    @media screen and (max-width:1399px) {
        .balti_popup .balti_popup_before {
            display: none;
        }
    }

    @media screen and (max-width:991px) {
        .balti_popup form .control_form {
            margin-top: 10px;
        }
    }

    @media screen and (max-width:768px) {

        .balti_popup .balti_popup_wrapper {
            padding: 20px 0px;
        }

        .balti_popup .balti_popup_after {
            width: 55px;
            height: 410px;
            right: -55px;
        }

        .balti_popup .balti_popup_after img {
            width: auto;
            height: 80%;
            object-fit: contain;
        }

        .balti_popup .fancybox-close-small {
            width: 35px;
            height: 35px;
        }

        .balti_popup form button {
            padding: 10px 30px;
        }
    }

    /* Also adjust the 415px breakpoint so it stays visible */
    @media screen and (max-width: 576px) {
        .balti_popup {
            margin-top: 70px; /* Make room for the top image */
            width: 390px;
            border-radius: 0 0 24px 24px;
        }

        .balti_popup h4 {
            font-size: 25px;
        }

        .balti_popup h6 {
            font-size: 14px;
        }

        .balti_popup form .control_form {
            margin-top: 5px;
        }
        .balti_popup .balti_popup_after {
            background: linear-gradient(180deg, var(--bp-primary-dark) 0%, var(--bp-primary) 100%);
            width: 100%;
            height: 60px;
            right: auto;
            left: 50%;
            top: -60px;
            transform: translateX(-50%);
            border-radius: 45px 45px 0 0;
            z-index: 2;
        }
        /* .balti_popup .balti_popup_after img {
            transform: rotate(-90deg);
        } */
        .balti_popup .balti_popup_after img {
            height: 90%;
        }
        .img-desktop { display: none; }
        .img-mobile { display: block; }

        .balti_popup .fancybox-close-small {
            top: 10px;
            right: 10px;
        }
    }

    @media screen and (max-width:415px) {
        .balti_popup {
            width: 350px;
        }
    }