.form {
    display: flex;
    flex-direction: column;
    gap: 1em;
    max-width: 50em;
    background-color: #fff;
    padding: 1em;
    border-radius: 1em;
    margin: auto;
    border: 0.1em solid rgba(105, 105, 105, 0.5);
}

.flex {
    display: flex;
    width: 100%;
    gap: 6px;
}

.form label {
    position: relative;
}

.form label .input {
    width: 96.5%;
    padding: 0.68em 0.68em 1.5em 0.68em;
    outline: 0;
    border: 0.1em solid rgba(105, 105, 105, 0.397);
    border-radius: 5px;
    font-weight: 100;
    font-size: 1em;
}

.form label .input+span {
    position: absolute;
    left: 10px;
    top: 15px;
    color: grey;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form label .input:placeholder-shown+span {
    top: 15px;
    font-size: 0.9em;
}

.form label .input:focus+span,
.form label .input:valid+span {
    top: 30px;
    font-size: 0.7em;
    font-weight: 600;
}

.form label .input:valid+span {
    color: green;
}

.input01 {
    width: 96.35%;
    padding: 0.68em 0.68em 1.5em 0.68em;
    border: 0.1em solid rgba(105, 105, 105, 0.397);
    border-radius: 5px;
    font-size: 1.3em;
    font-weight: 450;
    resize: none;
}

.form label .input01+span {
    position: absolute;
    left: 10px;
    top: 50px;
    color: grey;
    font-size: 0.9em;
    cursor: text;
    transition: 0.3s ease;
}

.form label .input01:placeholder-shown+span {
    top: 40px;
    font-size: 0.9em;
}

.fancy {
    background-color: transparent;
    border: 0.12em solid #cacaca;
    border-radius: 0px;
    box-sizing: border-box;
    color: black;
    cursor: pointer;
    display: inline-block;
    letter-spacing: 2px;
    margin: 0;
    outline: none;
    overflow: visible;
    padding: 0.5em 2.5em;
    position: relative;
    text-align: center;
    text-decoration: none;
    text-transform: none;
    transition: all 0.3s ease-in-out;
    user-select: none;
    font-family: 'Futura Std';
    font-style: normal;
    font-weight: 400;
    font-size: 1.1em;
    width: 99.5%;
}

.fancy::before {
    content: " ";
    width: 1.7rem;
    height: 2px;
    background: linear-gradient(-45deg, #f8b332 0%, #E8501F 100% );
    top: 50%;
    left: 1.5em;
    position: absolute;
    transform: translateY(-50%);
    transform: translateX(230%);
    transform-origin: center;
    transition: background 0.3s linear, width 0.3s linear;
}

.fancy .text {
    font-size: 1.125em;
    line-height: 1.33333em;
    padding-left: 2em;
    display: block;
    text-align: left;
    transition: all 0.3s ease-in-out;
    text-transform: lowercase;
    text-decoration: none;
    color: #818181;
    transform: translateX(30%);
}

.fancy:hover {
    color: white;
    background: linear-gradient(-45deg, #f8b332 0%, #E8501F 100% );
}

.fancy:hover::before {
    width: 1.5rem;
    background: linear-gradient(-45deg, #f8b332 0%, #E8501F 100% );
}

#mess {
    color: green;
    font-family: 'Futura Std';
    font-style: normal;
    font-weight: 400;
    font-size: 1.1em;
    text-align: center;
}

#mess_err {
    color: red;
    font-family: 'Futura Std';
    font-style: normal;
    font-weight: 400;
    font-size: 1.1em;
    text-align: center;
}
