.maillink{
    font-variant: small-caps;
    font-size: 1.2em;
    text-decoration: underline;
    color: #fff;
    cursor: pointer;
}
.maillink:hover{
    color: rgb(201, 157, 15);
}
#popForm{
    display: none;
    position: absolute;
    width: 100%;
    margin: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hidden form{
    opacity: 0;
    transition: opacity .1s linear;
}
.active form{
    opacity: 1;
    transition: opacity .1s linear;
}
.contact-form{
    margin: auto;
    width: 100%;
    min-width: 300px;
    max-width: 500px;
    background-color: white;
    padding: 18px;
    box-sizing: border-box;
    border: 5px solid #014a80;
    box-shadow: 3px 4px 10px 5px rgba(0,0,0,0.3);
    /* box-shadow: -5px 6px 10px 5px rgba(0,0,0,0.3), 7px -6px 15px 5px rgba(0,0,0,0.2); */
}
.contact-form input, .contact-form button, .contact-form textarea{
    width: 100%;
    box-sizing: border-box;
}
.contact-form textarea{
    min-height: 300px;
}
.contact-form .form-btns{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
    gap: 5px;
    justify-content: space-evenly;
    box-sizing: border-box;
}
.contact-form .formCap{
    width: 100%;
    display: block;
    margin: auto;
}
.contact-form .formCap label{
    margin: auto;
    display: block;
}
.contact-form .formCap p{
    font-size: 0.8em;
    margin: 3px auto;
}
.contact-form .formCap img{
    display: block;
    margin: auto;
}
.contact-form .formCap input{
    font-size: 1.2em;
    margin: 8px auto 1em;
}
.contact-form .form-btns button{
    padding: 8px 4px;
    color: white;
    border-radius: 5px;
}
.contact-form .form-btns button:hover{
    background-color: #225766 !important;
    color: #d9e4f9;
    cursor: pointer;
    font-weight: bold;
}
.contact-form .form-btns button[type=submit]{
    background-color: #2aa5d7;
}
.contact-form .form-btns button[type=reset]{
    background-color: #022e5b;
}

@media screen and (max-width: 600px){
    #popForm{
        display: none;
        position: absolute;
        width: 100%;
        max-width: 500px;
        margin: 0;
        top: 20px;
        left: 20px;
        transform: none;
    }
    .contact-form{
        margin: auto;
        width: 100%;
        min-width: unset;
        max-width: unset;
        background-color: white;
        padding: 12px;
        box-sizing: border-box;
        border: 5px solid #014a80;
        box-shadow: 3px 4px 10px 5px rgba(0,0,0,0.3);
        /* box-shadow: -5px 6px 10px 5px rgba(0,0,0,0.3), 7px -6px 15px 5px rgba(0,0,0,0.2); */
    }
}

/*IE ONLY STYLES*/
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {  
    /* Put your IE-only styles here. Works for IS 10 & IE 11*/
    #popForm{
        display: none;
        position: relative;
        width: auto;
        margin: 0;
        top: auto;
        left: auto;
        transform: none;
    }
}