#modalpopup {
    position: fixed;
    top: 50%;
    left: 50%;
    border-radius: 6px;
    transform: translate(-50%, -45%);
    padding: 20px;
    z-index: 10002;
    box-shadow: 3px 7px 22px -11px rgba(0,0,0,1);
    background-color: #fefefe;
}
#modalpopup .inner {
    display: grid;
    grid-template-columns: auto auto;
}
.modal-form {
    width: 350px;
}
#modalpopup img {
    margin-left: 20px;
    max-width: 325px;
    max-height: 325px;
}
.modal-form form {
    margin-bottom: 0;
    margin-top: 20px;
}
.modal-form input {
    display: block;
    width: 100%;
    margin-bottom: 6px;
    padding: 10px;
    border: 1px solid #ccc;
}
.modal-form input[type="submit"] {
    background-image: none;
    transition: filter .2s;
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    margin-bottom: 0;
    border: none;
}
.modal-form input[type="submit"]:hover {
    filter: brightness(115%);
}
#modal-shadow {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 10001;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}
.modal-close {
    position: absolute;
    right: 1px;
    top: -1px;
    cursor: pointer;
    font-size: 25px;
    transition: all .2s;
}
.modal-close:hover {
    transform: rotateZ(90deg);
}
#modalpopup h1 {
    line-height: 32px;
    margin-bottom: 0;
}
#modalpopup p {
    font-size: 18px;
    line-height: 26px;
    margin-top: 20px;
}
.lds-dual-ring {
    display: inline-block;
    height: 42px;
    width: 42px;
}
.lds-dual-ring:after {
    content: " ";
    display: block;
    width: 30px;
    height: 30px;
    margin: 1px;
    border-radius: 50%;
    border: 5px solid crimson;
    border-color: crimson transparent #fff transparent;
    animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
#modalpopup .result {
    font-size: 18px;
    line-height: 20px;
    margin-top: 15px;
    display: block;
}
#modalpopup .result.sucess {
    color: green;
}
#modalpopup .result.error {
    color: red;
}
#modalpopup .border-title {
    width: 30%;
    height: 2px;
    margin: 20px auto 18px;
}
.banner_mode .modal-form {
    width: 250px;
}
#modalpopup.banner_mode p {
    margin-bottom: 0;
}
#modalpopup img {
    transition: filter .2s;
}
#modalpopup h1:hover,
#modalpopup p:hover,
#modalpopup img:hover {
    filter: brightness(85%);
}
#modalpopup.banner_mode h1 {
    text-transform: uppercase;
    font-size: 25px;
    font-weight: bold;
}
#modalpopup.banner_mode p {
    font-size: 20px;
    letter-spacing: 1px;
    line-height: 35px;
}
#modalpopup .modal-form > form > input {
    width: 100%;
    margin-bottom: 10px;
}

#modalpopup p,
#modalpopup .send_data:hover {
    color: #fff;
    filter: brightness(1.5);
}

@media only screen and (max-width: 1023px) {
    #modalpopup img {
        display: none;
    }
}
@media only screen and (max-width: 479px) {
    .modal-form {
        width: 300px;
    }
}