/* ==========================================================================
#CONTACT PAGE
========================================================================== */
/* an adaptation of http://tympanus.net/codrops/2015/01/08/inspiration-text-input-effects/ */
/*https://medium.com/@flobin/how-to-set-up-a-contact-form-on-a-static-website-62c2267bacfb*/

#contactform {
    /*margin-top: 2rem;*/
    float: left;
    width: 50%;
}

@media only screen and (max-width: 490px) {
    #contactform {
        float: none;
        width: 100%;
    }
}

.field-contact {
    padding-left: 0;
    border: none;
    position: relative;
    z-index: 1;
    display: inline-block;
    /*margin: 0 1em 0 0;*/
    /* this is almost a third, on my own site I use calc(33% - 0.66rem) for width */
    width: 100%;
    vertical-align: top;
    overflow: hidden;
    /*font-family: "adelle-sans", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;*/
}
.input {
    position: relative;
    display: block;
    float: right;
    border: none;
    border-radius: 0;
    -webkit-appearance: none; /* for box shadows to show on iOS */
    width: 100%;
    background: transparent;
    padding: 0.5em;
    margin-bottom: 2em;
    z-index: 100;
    opacity: 0;
    height: 2rem;
}

textarea.input {
    resize: none;
    padding-bottom: 0;
    height: 80px;
}

.input:focus {
    outline: none;
}

.label {
    display: inline-block;
    float: right;
    /*color: hsla(221,72%,55%,1);*/
    font-weight: bold;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    width: 100%;
    position: absolute;
    text-align: left;
    padding: 0.5em 0;
    pointer-events: none;
    font-size: 1em;
}
.label::before,
.label::after {
    content: '';
    position: absolute;
    width: 100%;
    left: 0;
}
.label::before {
    height: 100%;
    background: #fff;
    top: 0;
    -webkit-transform: translate3d(0, -100%, 0);
    transform: translate3d(0, -100%, 0);
    -webkit-transition: -webkit-transform 0.3s;
    transition: transform 0.3s;
}
.label::after {
    height: 1px;
    /*background: hsla(221,72%,55%,1);*/
    background: #27b6c0;
    top: 100%;
    -webkit-transition: opacity 0.3s;
    transition: opacity 0.3s;
}

.label-content {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    -webkit-transform-origin: 0 0;
    transform-origin: 0 0;
    -webkit-transition: -webkit-transform 0.3s, color 0.3s;
    transition: transform 0.3s, color 0.3s;
}

.input:focus,
.input--filled .input {
    opacity: 1;
    -webkit-transition: opacity 0s 0.3s;
    transition: opacity 0s 0.3s;
}

.input:focus + .label::before,
.input--filled .label::before {
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.input:focus + .label::after,
.input--filled .label::after {
    opacity: 0;
}

.input:focus + .label .label-content,
.input--filled .label .label-content {
    color: #cbc4c6;
    -webkit-transform: translate3d(0, 2.1em, 0) scale3d(0.65, 0.65, 1);
    transform: translate3d(0, 2.1em, 0) scale3d(0.65, 0.65, 1);
}

.button, input[type=submit] {
    -webkit-appearance: none;
    /*background-color: #D1DCE5;*/
    background-color: #cccccc;
    width: 100%;
    height: 48px;
    border: medium none;
    transition: background-color 0.3s ease 0s;
    border-radius: 0;

}
.button:hover, .button:focus, .button:active {
    background-color: #27b6c0;
}