section#contact {
    min-height: fit-content;
    max-height: 800px;
    box-sizing: border-box;
}

section#contact > h2 {
    margin-top: 5%;
    text-align: center;
    margin-bottom: 1%;
    font-size: 2em;
}

section#contact > input {
    flex: 0;
    height: 2em;
}

section#contact > textarea {
    flex: auto;
    resize: none;
    padding: 0.5em 0.7em;
    min-height: 180px;
}
section#contact > label {
    color: var(--sub-text-color);
    font-weight: bold;
    width: 80%;
    font-size: 0.9em;
    padding: 0 7px;
    box-sizing: border-box;
}

.form {
    display: block;
    width: 80%;
    border: solid 2px rgba(128, 128, 128, 0.3);
    font-family: 'M PLUS 1p', sans-serif;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--main-text-color);
    line-height: 1.1em;
    margin: 1.5% 0;
    margin-top: 1px;
    margin-bottom: 4%;
    padding: 0.3em 0.6em;
    box-sizing: border-box;
    letter-spacing: 0.05em;
    /*box-shadow:0px 0px 6px 2px rgba(80, 80, 80, 0.1) inset;*/
    border-radius: 3px;
}
.form:focus {
    outline: none;
    border: solid 2px #5269db60;
}
.form::placeholder {
    opacity: 0.4;
}

div#contact_submit {
    transition: transform 0.3s, opasity 0.3s;
    position: relative;
    margin-top: 2%;
    padding: 0.7em 2em;
    color: white;
    font-weight: bold;
    font-size: 0.9em;
    background-color: #ffae42;
    background: linear-gradient(#ffae42, #ff9838);
    border-radius: 50px;
    cursor: pointer;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
    box-shadow: 0 1px 6px rgba(128, 128, 128, 0.3);
}
div#contact_submit:hover {
    transform: scale(1.03);
}
div#contact_submit:active {
    cursor: progress;
    opacity: 0.8;
}
div#contact_submit_gauge {
    margin-top: 3%;
    color: #ffae42;
    font-weight: bold;
    min-height: 1.5em;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media (max-width: 800px) {
    section#contact > label {
        width: 100%;
    }
    .form {
        width: 100%;
    }
    div#contact_submit_gauge {
        font-size: 0.9em;
    }
}

@media (min-width: 1920px) {
    section#contact {
        max-height: 800px;
    }
}