footer {
    margin-top: 8em;
}

form {
    max-width: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
}

input,
select,
textarea {
    background-color: transparent;
}

h2:last-of-type {
    margin-top: 2em;
}

.field {
    width: 100%;
    max-width: 600px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10px 20px;
    margin: 0 1em;
    flex-shrink: 1;
    margin-top: 1em;
    border: 1px solid rgb(210, 210, 215);
    border-radius: 12px;
    line-height: 120%;
    background-color: white;
}

.field.active {
    border: 1px solid green;
}

.field.focus {
    border: 1px solid #11a1a1;
    box-shadow: 0 0 5px 1px #11a1a1;
}

.field label {
    padding: 0.65em 0;
    text-align: left;
    color: gray;
}

.field label:hover {
    cursor: pointer;
}

.field label.active {
    padding: 0;
    font-size: 0.7em;
}

.field label.focus {
    color: #11a1a1;
}

.field input {
    height: 0;
    border: 0;
    padding: 0;
    line-height: inherit;
    font-size: 1em;
    color: #363636;
}

.field input.active {
    height: auto;
    margin-top: 3px;
}

.field input.focus {
    outline: 0;
}

label[for='contact_time'] {
    height: 0;
    font-size: 0;
}

label[for='contact_time'].active {
    height: auto;
}

.field select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 0;
    margin-top: 3px;
    padding: 0.6em 0;
    font-size: 1em;
    color: gray;
    position: relative;
}

.field select.active {
    padding: 0;
}

.field select:hover {
    cursor: pointer;
}

.field select:focus {
    outline: 0;
}


/* Hard Code for Select */

.field:nth-of-type(5):after {
    content: '';
    display: inline-block;
    position: absolute;
    top: calc(50% - 0.4em);
    right: 1em;
    width: 0.5em;
    height: 0.5em;
    margin-left: 5px;
    margin-bottom: 4px;
    border-top: 2px solid #363636;
    border-left: 2px solid #363636;
    transform: rotate(-135deg);
    transition: 0.2s ease-out;
}

.field textarea {
    overflow-y: hidden;
    height: 0;
    max-width: 100%;
    border: 0;
    padding: 0;
    line-height: inherit;
    font-size: 1em;
    color: #363636;
}

.field textarea.active {
    height: auto;
    margin-top: 3px;
}

.field textarea.focus {
    outline: 0;
}

#requirement_supplement {
    width: 100%;
    max-width: 600px;
    margin: 6px 1.5em 5px 2.5em;
    text-align: left;
    line-height: 150%;
    font-size: 0.8em;
    color: gray;
}

input[type='submit'] {
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    margin-top: 2em;
    padding: 1em 6em;
    border: 0;
    border-radius: 6px;
    background-color: rgb(210, 210, 215);
    color: white;
    font-size: inherit;
}

input[type='submit']:not([disabled]) {
    cursor: pointer;
    background-color: #2786bd;
}

input[type='submit']:not([disabled]):hover {
    box-shadow: 1px 1px 8px 3px gray;
}

input[type='submit']:not([disabled]):active {
    box-shadow: inset 0px 0px 6px 3px gray;
}