/* Modal CSS */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #ffffff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;

}

@media (min-width: 767px) and (max-width: 1024px){
    .modal-content {
        width: 80%;
        height: auto;
        border-radius: 12px;
        ustify-content: center;
    }
}

@media (min-width: 1024px){
    .modal-content {
        width: 60%;
        height: auto;
        padding: 60px 40px;
        border-radius: 12px;
        justify-content: center;
    }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    max-width: 100%;
    text-align: right;
}

@media (min-width: 1024px){
    .close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        max-width: 100%;
        text-align: right;
        position: absolute;
        top: 20px;
        right: 40px;
    }
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Prevent scrolling */
.no-scroll {
    overflow: hidden;
}

@media(max-width: 767px){
    div#gform_fields_2 {
    row-gap: 10px;
}
}

.no-scroll .gform_heading {
    display: none;
}

input#gform_submit_button_2 {
    background-color: var(--accent);
    border-color: var(--accent);
    width: 100%;
    font-size: 16px;
    padding: 15px 20px;
    border-radius: 4px;
}

@media (min-width: 767px){
    input#gform_submit_button_2 {
        max-width: 300px;
    }
}

.site-footer .gfield input{
    border-radius: 12px;
}

.site-footer .gfield a{
    color: var(--contrast-2);
    text-decoration:underline;
}

button#openFormButton {
    justify-content: center;
    min-width: 200px;
    font-weight: 600;
    text-align: center;
    padding: 15px 20px;
    border-radius: 4px;
    border: 2px solid var(--accent);
    background-color: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
}

@media (min-width: 767px){
    button#openFormButton {
        width: 80%;
    }
}