  /* CSS for the modal */
  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.modal-content {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(255, 255, 255, 0.95);
    padding: 2%;
    border: 1px solid #888;
    width: 80%;
    max-width: 1200px;
    overflow-y: auto;
    border-radius: 15px;
}

.modal-content h2{
    font-size: 50px;
    text-align: center;
    font-weight: 600;
}
.modal-content h2 span{
    color: #7CBF45;
}
.modal-content .intro-text{
    font-size: 16px;
    font-weight: lighter;
    text-align: center;
    width: 100%;
    max-width: 650px;
    margin: auto;
    margin-bottom: 15px;
    color: gray;
}

.modal .popup-outer-wrapper{
    max-width: 890px;
    margin: auto;
}
/* Close button */
.modal-body .close {
    color: #aaa;
    font-size: 18px;
    position: absolute;
    top: -20px;
    right: 0px;
    text-decoration: underline;
}
.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.modal p{
    font-size: 16px;
}

.modal .top-field-container{
    display: flex;
    margin: auto;
    gap:3%;
    /* max-width: 890px; */
}
.modal label{
    font-size: 16px;
    font-weight: 600;
}
.modal input{
    margin-bottom: 10px;
    background-color: rgba(217, 217, 217, 0.47);
    outline: none;
    border: none;
    border-radius: 9px;
    height: 40px;
    padding-left: 2%;
}
.modal input[type=checkbox]{
    height: auto;
    margin-top: 10px;
    cursor: pointer;
}
.modal input[type=number], .modal input[type=text]{
    width: 100%;
}
.modal .popup-outer-wrapper > div > div.top-field-container > div:nth-child(3) > p > label:nth-child(5){
    margin-top: 17px;
}
.modal .hdyh-holder{
    margin: auto;
}
.modal .hdyh-holder p{
    margin-bottom: 0px;
    font-size: 16px;
}

.modal .form-disclaimer{
    max-width: 400px;
    line-height: 1.5;
    font-size: 12px;
    margin: auto;
    text-align: center;
    color: gray;
}
.modal input[type=submit]{
    display: flex;
    justify-content: center;
    width: 60%;
    max-width: 337px;
    height: 50px;
    margin: auto;
    margin-top: 15px;
    background-color: #7CBF45;
    font-size: 24px;
    color: white;
}
@media screen and (max-width: 767px) {
    .modal-body .close{
        top: -35px;
    }
    .modal-content{
        width: 100%;
        height: 100%;
        border-radius: 0px;
        z-index: 999;
        background-color: rgba(255, 255, 255, 1);
        padding-top: 50px;
    }
    .modal-body{
        padding: 0px;
    }
    .modal-content h2{
        font-size: 1.6em;
    }
    .modal-content .intro-text{
        font-size: 14px;
    }
    .modal .top-field-container{
        display: block;
        width: 90%;
    }
    .modal .top-field-container p{
        margin-bottom: 0px;
    }
    .modal .hdyh-holder{
        width: 90%;
    }
    #wpcf7-f2821-o1 > form > div.popup-outer-wrapper > div > div:nth-child(4) > div > p > span > span{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .modal .form-disclaimer{
        max-width: 360px;
        margin-top: 15px;
    }
    .modal input[type=submit]{
        width: 90%;
    }
}
