.popup-shade {
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    display: none;
}

.popup {
    width: 780px;
    margin: auto auto;
    background: white;
    padding: 30px;
    border-radius: 20px;
    height: fit-content;
}

.popup.popup.success,
.popup.error {
    display: none;
    position: fixed;
    z-index: 10;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.popup.success {
    background: #28a745;
    color: white;
}

.popup.error {
    background: #dc3545;
    color: white;
}

.popup form {
    width: 50%;
    float: left;
}

.product-box {
    height: 500px;
    float: right;
    position: relative;
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
}

@media (min-width: 1301px) {
    .product-box {
        width: 40%;
    }
}

@media (max-width: 1300px) {
    .product-box {
        width: 50%;
    }
}

.product-box img {
    position: absolute;
    width: 165%;
    max-width: unset;
}

@media (max-width: 1920px) and (min-width: 991px) {
    .popup form .title {
        color: #212529;
        font-size: 1.5vw;
        text-align: center;
        padding: 20px 0 5px;
        top: 10px;
    }
}

.popup form .title {
    color: #212529;
    font-size: 1.1vw;
    text-align: center;
    padding: 20px 0 5px;
    top: 10px;
}

@media (min-width: 1000px) {
    .popup form .title {
        line-height: 26px;
    }
}

.popup form .form-control {
    background-color: #f2f6f8;
    border-radius: 2rem;
    border: none;
    box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
}

.popup form .form-control.thick {
    height: 3.3rem;
    padding: 0.7rem 0.5rem 0.5rem 1.5rem;
    font-size: 1.5vw;
}

@media (max-width: 1300px) {
    .popup form ::placeholder {
        font-size: 1.5vw;
    }
}

@media (max-width: 1919px) and (min-width: 1301px) {
    .popup form ::placeholder {
        font-size: 1.3vw;
    }
}

@media (min-width: 1920px) {
    .popup form ::placeholder {
        font-size: 1vw;
    }
}

.popup form .form-control:focus {
    background-color: #f2f6f8;
    border: none;
    box-shadow: 0px 7px 5px rgba(0, 0, 0, 0.11);
}

.popup form ::placeholder {
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
    color: #838788;
    position: relative;
    left: 0;
}

.popup form img {
    float: left;
}

.popup form .d-block {
    position: absolute;
    transform: translate(100%, 55%);
}

.popup .exit-icon {
    width: fit-content;
    height: fit-content;
    position: relative;
    float: right;
    cursor: pointer;
    font-style: normal;
    color: black;
    font-size: 28px;
    z-index: 1;
}

.popup .btn.btn-primary {
    font-family: 'Quicksand', sans-serif;
    font-weight: bold;
    line-height: 2.5rem;
    border: 0;
    border-radius: 3rem;
    background: var(--main-bg-color);
    box-shadow: 0px 2.5px gray;
    padding: 0 1rem;
    width: 100%;
}

.btn-primary p {
    margin: 5px;
}

.popup.success,
.popup.error {
    width: 60%;
    top: 30px !important;
    height: 7%;
    text-align: center;
    left: 50%;
}

.popup .title {
    padding: 0;
    margin: 0;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
}

.btn.btn-primary:hover:enabled {
    box-shadow: 0 0.5em 0.5em -0.4em #ff923c ba;
    background-size: 100% 100%;
    transform: translateY(-0.15em);
}

@media (min-width: 992px) {
    .popup form {
        display: flex;
        flex-direction: column;
        position: relative;
        margin-top: 40px;
    }
}

@media ((max-width: 1300px) and (min-width: 992px)) {
    .popup {
        width: 650px;
    }
}

@media ((max-width: 991px) and (min-width: 679px)) {
    .popup {
        width: 390px;
    }

    form .form-control.thick {
        height: 1.8rem;
        padding: 1rem 2.6rem;
    }

    form .d-block {
        position: absolute;
        transform: translate(50%, 10%);
    }

    .popup .btn.btn-primary {
        height: 2.5rem;
        line-height: 2rem;
        font-size: 1.7vw;
    }

    form .title {
        font-size: 2.3vw !important;
        padding: 0 !important;
        line-height: 22px;
        top: 30px !important;
    }

    .form-group.checkbox label {
        max-width: 170px !important;
    }
}

@media ((max-width: 678px) and (min-width: 441px)) {
    .popup form ::placeholder {
        font-size: 3vw;
    }

    .popup {
        width: 55%;
        padding: 15px;
    }

    .popup form .title {
        font-size: 3vw;
        line-height: 22px;
    }

    .text-center {
        font-size: 2.5vw;
    }

    .popup.success,
    .popup.error {
        width: 100%;
        transform: none !important;
        top: 30px !important;
        height: 7%;
        text-align: center;
        left: 0 !important;
        line-height: 35px;
    }

    .popup .title {
        padding: 0;
        margin: 0;

    }
}

form .title p {
    margin-bottom: 0;
}



@media (max-width: 991px) {

    .product-box {
        display: none;
    }

    .popup form {
        float: none;
        width: 100%;
    }

    .popup .exit-icon {
        font-size: 20px;
    }

    form .title {
        font-size: 2.5vw;
        max-width: 80%;
        margin: auto !important;
        padding: 0 !important;
        top: 30px !important;
    }

    .form-group.checkbox label {
        max-width: 75% !important;
        font-size: 11px;
    }

    .white-space {
        height: 5vw !important;
        width: 5vw !important;
        max-width: 29px;
        max-height: 29px;
    }

    .popup form .btn-primary {
        margin-bottom: 0 !important;
    }

    .popup {
        height: fit-content;
    }
}

@media (max-width: 441px) {
    .popup form ::placeholder {
        font-size: 3vw;
    }

    .popup form .title {
        font-size: 3.8vw;
    }

    .popup form .form-control.thick {
        font-size: 3vw;
        height: 2.5rem;
        padding: 0.6rem 0.5rem 0.5rem 1rem;
    }

    .popup form .d-block {
        transform: translate(50%, 30%);
    }

    .popup {
        width: 100%;
        padding: 15px;
    }

    .popup .btn.btn-primary {
        font-size: 3.5vw;
    }

    .popup .exit-icon {
        font-size: 20px;
    }

    .popup.success,
    .popup.error {
        width: 90%;
        top: 30px !important;
        height: 12%;
        transform: translateX(-50%) !important;
    }
}

/* Hide the default checkbox input */
input[type="checkbox"] {
    display: none;
}

/*
.form-group.position-relative {
    position: relative;
    margin-bottom: 20px;
}

input[type="checkbox"] + label::before {
    content: "";
    position: absolute;
    left: -11px;
    top: 0;
    width: 29px !important;
    height: 29px;
    margin-right: 12px;

    border: 1px solid black;
    border-radius: 100%;
}

input[type="checkbox"]:checked + label::before {
    background: #75f98d;
 }

input[type="checkbox"] + label {
    font-size: 16px; 
    color: #000;
    margin-left: 30px;
    text-align: left;
}
*/

span.white-space {
    width: 29px;
    height: 29px;
    border: 1px solid;
    border-radius: 100%;
    display: flex;
    cursor: pointer;
    margin: auto 0;
}

.form-group.checkbox {
    height: fit-content;
    max-width: 100%;
    display: flex;
    margin-top: 20px;
}

.form-group.checkbox label {
    margin: auto 10px;
    text-align: left;
    max-width: 282px;
}

.checked {
    width: 19px;
    height: 19px;
    background: var(--main-bg-color);
    border-radius: 100%;
    margin: auto;
    display: none;
}

.input-description {
    font-weight: bold;
}