* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1 {
    margin-top: 80px;
}

body {
    height: 150vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: column;
    font-family: sans-serif;
}

form {
    max-width: 800px;
    width: 50%;
    position: relative;
    height: 100%;
    overflow: hidden;
}

form input {
    width: 100%;
    height: 100%;
    color: #595f6e;
    padding-top: 20px;
    border: none;
    outline: 0;
}

form label {
    position: absolute;
    bottom: 0px;
    left: 0%;
    width: 100%;
    height: 100%;
    pointer-events: none;
    border-bottom: 1px solid black;
}

form label:after {
    content: "";
    position: absolute;
    left: 0px;
    bottom: -2px;
    height: 100%;
    width: 100%;
    border-bottom: 3px solid #5fa8d3;
    transform: translateX(-100%);
}

.content-name {
    position: absolute;
    bottom: 5px;
    left: 0px;
    transition: all 0.3s ease;
}

form input:focus+.label-name .content-name,
form input:valid+.label-name .content-name {
    transform: translateY(-150%);
    font-size: 14px;
    color: #5fa8d3;
}

form input:focus+.label-name:after,
form input:valid+.label-name:after {
    transform: translate(0%);
    transition: all 0.3s ease;
}

#imie {
    position: relative;
}

#nazwisko,
#wiek,
#mail,
#text_area {
    margin-top: 50px;
    position: relative;
}

#text_area>textarea {
    resize: none;
    font-family: 'sans-serif';
    position: relative;
    width: 100%;
    height: 100%;
    color: #595f6e;
    border: none;
    outline: 0;
    font-size: 20px;
}

#text_area>textarea:focus {
    transform: translate(0px, 20px);
    transition: all 0.3s ease;
    padding-bottom: 400px;
}

#text_area .content-name {
    position: absolute;
    bottom: 10px;
}

#text_area textarea:focus+.label-name>#zniknij {
    top: 0px;
    transform: translate(0px, -10px);
    color: #5fa8d3;
    transition: all 0.3s ease;
    font-size: 14px;
}

#text_area label {
    transition: all 0.3s ease;
    transform: translate(0px, -4px);
}

form textarea:focus+.label-name:after {
    transform: translate(0%);
    transition: all 0.3s ease;
}

form>* {
    margin-top: 20px;
}

input[type="submit"] {
    margin-top: 100px;
    height: 35px;
    padding: 0px;
    display: flex;
    transform: translate(0px);
    justify-content: center;
    align-items: center;
    opacity: 0.5;
    position: relative;
}

#submit>#nakladka {
    transition: all 0.3s ease;
    content: "";
    position: absolute;
    background: #5fa8d3;
    opacity: 1;
    height: 35px;
    z-index: -1;
    transform: translate(-100%, 35px);
    width: 100%;
}