/* ====================================
Popup CSS
==================================== */

:root {
    --c-black: #050C36;
    --c-black-rgb: 5, 12, 54;
    --c-iPrimary: #0D43FE;
    --c-iPrimary-2: #726EFC;
    --c-white: #fff;
    --c-border: #E9EBFC;
}

.c-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100%;
    height: 100%;
}

.c-popup .popup {
    display: none;
    position: absolute;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    width: 100%;
    opacity: 0;
    top: 40%;
    transition: all .3s 0s;
    border: 1px solid var(--c-border);
    border-radius: 4px;
}

.c-popup .popup .popup-wrap {
    background: var(--c-white);
    height: 100%;
    box-shadow: 0 3px 7px 0 rgba(var(--c-black-rgb), 0.25);
    border-radius: 4px;
    overflow: hidden;
}

.c-popup .popup .popup-header {
    background: linear-gradient(90deg, #2E0797 0%, #726EFC 100%);
    padding: 24px 20px;
    text-align: center;
}

.c-popup .popup .popup-header .popup-logo {
    max-width: 130px;
    height: auto;
    display: inline-block;
}

.c-popup .popup .popupContent {
    padding: 20px;
}

.c-popup .popup .popupContent h4 {
    color: var(--c-black);
}

/* Override the site-wide dark input theme so popup form fields render on a clean white background */
.c-popup .popup input[type="text"],
.c-popup .popup input[type="email"],
.c-popup .popup input[type="tel"],
.c-popup .popup input[type="number"],
.c-popup .popup input[type="password"],
.c-popup .popup input[type="url"],
.c-popup .popup textarea,
.c-popup .popup .form-control {
    background-color: var(--c-white);
    color: var(--c-black);
    height: 52px;
    line-height: normal;
    width: 100%;
    font-size: 14px;
    font-weight: 400;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 0 16px;
    outline: none;
    transition: all 0.3s ease;
}

.c-popup .popup input[type="text"]::placeholder,
.c-popup .popup input[type="email"]::placeholder,
.c-popup .popup input[type="tel"]::placeholder,
.c-popup .popup input[type="number"]::placeholder,
.c-popup .popup input[type="password"]::placeholder,
.c-popup .popup input[type="url"]::placeholder,
.c-popup .popup textarea::placeholder {
    color: #9ba1ae;
    opacity: 1;
}

.c-popup .popup input[type="text"]:focus,
.c-popup .popup input[type="email"]:focus,
.c-popup .popup input[type="tel"]:focus,
.c-popup .popup input[type="number"]:focus,
.c-popup .popup input[type="password"]:focus,
.c-popup .popup input[type="url"]:focus,
.c-popup .popup textarea:focus,
.c-popup .popup .form-control:focus {
    background-color: var(--c-white);
    border-color: var(--c-iPrimary);
    box-shadow: 0 0 0 3px rgba(13, 67, 254, 0.12);
}

.c-popup .popup .c-close {
    position: absolute;
    top: -25px;
    right: -25px;
    z-index: 999;
    font-size: 38px;
    color: var(--c-iPrimary);
}

.c-popup .popup .c-close:hover {
    color: var(--c-black);
}

.c-popup .popup.popup--full-screen {
    top: 0;
    left: 0;
    transform: none;
    width: 100%;
    height: 100%;
    padding: 0;
    max-width: none;
}

.c-popup .popup.active {
    top: 50%;
    opacity: 1;
    transition-delay: .3s;
}

.c-popup .overlay {
    display: block;
    height: 100%;
    width: 100%;
    background: transparent;
    transition: all .3s;
}

.c-popup.popup--open .overlay {
    background: rgba(var(--c-black-rgb), .6);
}

/* ====================================
END - Popup CSS
==================================== */

/* ====================================
Popup Close Button
==================================== */
.c-close {
    display: inline-block;
    width: 38px;
    height: 38px;
}

.c-popup .popup.sm-popup {
    width: 500px;
}

.c-popup .popup.md-popup {
    width: 750px;
}

.c-popup .popup.lg-popup {
    width: 1220px;
}
