/* =========================
   Popup base
========================= */

.popup {
    background: rgba(0, 0, 0, 35%);
    backdrop-filter: blur(10px);
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.popup-content {
    color: #fff;
    border-radius: 69px;
    background: rgba(255, 255, 255, 15%);
    backdrop-filter: blur(30px);
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    margin: auto;
    position: relative;
    animation: bounce 0.6s ease-out;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* =========================
   Popup elements
========================= */

.close {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 30px;
    cursor: pointer;
    color: #f60;
}

.popup-title {
    font-size: 22px;
    font-weight: 900;

    span {
        color: #f60;
        font-size: inherit;
    }
}

.popup-text {
    font-size: 14px;
}

/* =========================
   Popup inner components
========================= */

.popup-content span.select2.select2-container.select2-container--default {
    width: 100% !important;
}

.popup-content input[type="submit"] {
    width: 100% !important;
}

/* =========================
   Z-index helpers / stacking
========================= */

.nav-is-stuck header {
    z-index: 999 !important;
}

.cta-test-session {
    z-index: 999 !important;
}

.widget-price {
    z-index: 888 !important;
}

.section.hero.style-two .wp-cta {
    z-index: 888 !important;
}

/* =========================
   Specific blocks
========================= */

.tpl_img_bg_popup {
    background-repeat: no-repeat !important;
    width: 100%;
    height: 148px;
    background-size: cover !important;
    border-radius: 5px;
    margin: 18px 0px 24px 0px !important;
}

/* =========================
   Form / Gravity Forms tweaks
========================= */

.popup-content .gchoice {
    display: flex;
    align-items: baseline;
}

.popup-content .gchoice label {
    font-size: 13px  !important;
    text-align: left !important;
    margin-left: 4px !important;
}

.popup-content .gfield-choice-input{
    position: relative;
    top: 2px !important;
}

.iti.iti--allow-dropdown {
    width: 100%;
}

.popup-content .gform_wrapper.gravity-theme input[type=color],
.gform_wrapper.gravity-theme input[type=date],
.gform_wrapper.gravity-theme input[type=datetime-local],
.gform_wrapper.gravity-theme input[type=datetime],
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=month],
.gform_wrapper.gravity-theme input[type=number],
.gform_wrapper.gravity-theme input[type=password],
.gform_wrapper.gravity-theme input[type=search],
.gform_wrapper.gravity-theme input[type=tel],
.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=time],
.gform_wrapper.gravity-theme input[type=url],
.gform_wrapper.gravity-theme input[type=week],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea {
    font-size: 12px !important;
}

.popup-content .select2 .select2-selection--single .select2-selection__rendered {
    font-size: 12px !important;
}

a.btn.btn-secondary {
    line-height: 15px;
}

/* =========================
   Responsive
========================= */

@media (max-width: 641px) {
    .popup-title {
        font-size: 18px;
    }

    .popup-content {
        width: 90%;
        padding: 20px;
        max-width: 320px;
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .popup {
        padding: 10px;
        align-items: flex-start;
    }

    .popup-content input {
        line-height: 0 !important;
    }

    .popup-content input[type="submit"] {
        padding: 18px !important;
    }

    .popup-content .gchoice {
        text-align: left;
    }

    .popup-content .gchoice label {
        padding-left: 15px !important;
        font-size: 13px !important;
    }

    .popup-content .gform_wrapper.gravity-theme .gform_fields {
        grid-column-gap: 11px;
    }
}

@media (max-width: 477px) {
    .logo{
        height : 13.259px !important;
    }
}

/* =========================
   Animations
========================= */

@keyframes bounce {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(0);
        opacity: 0;
    }
}