body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.mailForm * {
    box-sizing: border-box;
    font-family: sans-serif;
    transition: all 0.3s ease;
}

.mailForm {
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    position: fixed;
    z-index: 999;
    display: none;
}

.mailForm .form {
    width: 100%;
    max-width: 415px;
    height: auto;
    margin: auto;
    position: relative;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    padding: 28px;
    border: 10px solid rgba(179, 179, 179, 0.5);
    background-color: white;
    overflow-y: auto;
}

.mailForm .x {
    width: 50px;
    height: 50px;
    line-height: 50px;
    position: absolute;
    top: 0;
    right: 0;
    text-align: center;
    color: dimgray;
    font-weight: 900;
    font-size: 2em;
    cursor: default;
    overflow: hidden;
}

.mailForm .x:hover {
    color: indianred;
}

.mailForm input,
.mailForm textarea {
    width: 100%;
    max-width: 100%;
    padding: 8px;
    margin-bottom: 18px;
    border: 0;
    border-radius: 0;
    color: dimgray;
    border-bottom: 1px solid rgba(179, 179, 179, 0.5);
    font-size: 0.8em;
    letter-spacing: 2px;
    font-weight: 900;
}

.mailForm input:placeholder-shown,
.mailForm textarea:placeholder-shown {
    text-transform: uppercase;
    font-weight: 500;
}

.mailForm input:focus,
.mailForm textarea:focus {
    outline: none;
    border-bottom: 1px solid dimgray;
}

.mailForm input[type=submit] {
    display: block;
    width: 200px;
    float: right;
    padding: 16px;
    margin-bottom: 0;
    border: 0;
    color: white;
    -webkit-appearance: none;
    border-radius: 8px;
    background-color: #126c12;
}

.mailForm textarea {
    min-height: 125px;
}

.mailForm .clear {
    clear: both;
}

.mailForm .postMessage {
    text-align: center;
    display: none;
}

.mailForm .postMessage h2 {
    font-size: 2em;
    font-weight: 900;
    text-transform: uppercase;
    color: dimgray;
    margin-bottom: 30px;
    margin-top: 0;
}

.mailForm .postMessage h3 {
    margin-bottom: 30px;
    font-weight: 200;
}

.mailForm .postMessage .closeBtn {
    width: 200px;
    height: 40px;
    line-height: 40px;
    margin: auto;
    background-color: rgb(73, 73, 73);
    color: white;
    border-bottom: 2px solid dimgray;
    border-radius: 6px;
}

.mailForm .postMessage .closeBtn:hover {
    background-color: dimgray;
    border-bottom: 2px solid darkgray;
}

@media only screen and (min-device-width: 320px) and (max-width: 768px) {
    .mailForm .form {
        width: 100%;
        height: 100%;
    }
}