main {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
}

h1 {
    position: relative;
    text-align: center;
    text-transform: uppercase;
    font-size: 64px;
    line-height: .6em;
    margin-bottom: 1.5em;
    font-weight: 100;
    margin-top: 1em;
}

h1::after {
    position: absolute;
    content: "";
    width: 1em;
    height: 2px;
    background-color: #444;
    bottom: -150%;
    left: 50%;
    -webkit-transform: translateX(-50%);
        -ms-transform: translateX(-50%);
            transform: translateX(-50%);
}

form {
    width: 33%;
    margin-bottom: 50px;
}

input {
    width: 45%;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px #fff solid;
    padding: 15px;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    font-size: 21px;
    margin-bottom: 1em;
    font-weight: 300;
}

::-webkit-input-placeholder {
    color: #fff;
}

::-moz-placeholder {
    color: #fff;
}

:-ms-input-placeholder {
    color: #fff;
}

::-ms-input-placeholder {
    color: #fff;
}

::placeholder {
    color: #fff;
}

input[name="name"] {
    float: left;
}

input[name="email"] {
    float: right;
}

textarea {
    font-weight: 300;
    resize: none;
    display: block;
    width: 100%;
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    background: none;
    border: none;
    outline: none;
    border-bottom: 1px #fff solid;
    padding: 15px;
    box-sizing: border-box;
    font-size: 21px;
    height: 220px;
}

button {
    width: 33%;
    background: none;
    border: none;
    outline: none;
    position: relative;
    cursor: pointer;
    margin: auto;
    display: block;
    margin-top: 50px;
}

button > span {
    position: absolute;
    font-size: 24px;
    left: 50%;
    top: 50%;
    top: -webkit-calc(50% - .07em);
    top: calc(50% - .07em);
    -webkit-transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
            transform: translate(-50%,-50%);
    line-height: 1em;
}

svg {
    width: 100%;
    vertical-align: middle;
}

rect {
    fill:none;
    stroke:#fff;
    stroke-miterlimit:10;
    -webkit-transition: all .5s cubic-bezier(.36,.81,.31,1);
    -o-transition: all .5s cubic-bezier(.36,.81,.31,1);
    transition: all .5s cubic-bezier(.36,.81,.31,1);
    stroke-dashoffset: 293;
    stroke-dasharray: 586, 0;
    stroke-width: 1;
}

button:hover rect {
    stroke-dashoffset: 253;
    stroke-dasharray: 150, 436;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active  {
    -webkit-box-shadow: 0 0 0 30px #111 inset !important;
}

input:-webkit-autofill {
    -webkit-text-fill-color: #fff !important;
}

@media only screen and (max-width: 1400px) {
    form {
        width: 50%;
    }
    rect {
        stroke-width: 2;
    }
}

@media only screen and (max-width: 950px) {
    form {
        width: 66%;
    }
    rect {
        stroke-width: 3;
    }
}

@media only screen and (max-width: 650px) {
    form {
        width: 75%;
    }
}

@media only screen and (max-width: 650px) {
    input[name="name"] {
        clear: both;
        width: 100%;
    }
    input[name="email"] {
        clear: both;
        width: 100%;
    }
    h1 {
        font-size: 48px;
    }
    button > span {
        font-size: 21px;
    }
}

@media only screen and (max-width: 450px) {
    button {
        width: 50%;
    }
    button > span {
        font-size: 18px;
    }
    h1 {
        font-size: 36px;
        margin-top: 2.5em;
    }
}
