.group {
    position: relative;
    margin-bottom: 45px
}

textarea {
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: 1px solid #757575;
    border-radius: 15px 15px 15px 0px;
    color: #333;
    background: #fff;
}

textarea:focus {
    outline: 0
}

label {
    color: #b1b1b1;
    font-size: 18px;
    font-weight: 400;
    position: absolute;
    pointer-events: none;
    left: 5px;
    top: 10px;
    transition: .2s ease all
}

textarea:focus~label,
textarea:valid~label {
    top: -20px;
    font-size: 14px;
    color: #b1b1b1
}

textarea:focus~.bar2:after,
textarea:focus~.bar2:before {
    width: 50%
}

.bar2 {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    border-radius: 15px;
    top: 1px
}

.bar2:after,
.bar2:before {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #C52616;
    transition: .2s ease all
}

.bar2:before {
    left: 48%
}

.bar2:after {
    right: 50%
}

input {
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border: 1px solid #333;
    border-radius: 15px 15px 15px 0px;
    color: #333;
    background: #fff;
}

input:focus {
    outline: 0
}

input:focus~label,
input:valid~label {
    top: -20px;
    font-size: 14px;
    color: #b1b1b1
}

.bar {
    position: relative;
    display: block;
    margin: 0 auto;
    width: 100%;
    border-radius: 15px;
    top: 1px;
}

.bar:after,
.bar:before {
    content: '';
    height: 2px;
    width: 0;
    bottom: 1px;
    position: absolute;
    background: #C52616;
    transition: .2s ease all
}

.bar:before {
    left: 48%
}

.bar:after {
    right: 50%
}

input:focus~.bar:after,
input:focus~.bar:before {
    width: 50%
}

.highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: .5
}

input:focus~.highlight {
    animation: inputHighlighter .3s ease
}

@media screen and (max-width: 575px) {
    .bar {
        border-radius: 15px;
        top: 1px;
        width: 98%;
    }

    input {
        border-radius: 5px;
    }
    .bar2 {
        border-radius: 15px;
        top: 1px;
        width: 98%;
    }

    textarea {
        border-radius: 5px;
    }
}