.contact {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5rem;
}

.form {
    background-color: white;
    padding: 4rem;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.01);
    max-width: 1000px;
}

.name-email {
    display: flex;
    padding: 2rem 0;
}

.form h3 {
    font-size: 50px;
    text-align: center;
}

.form p {
    font-size: 18px;
    text-align: center;
    margin-bottom: .5rem;
    padding: 0 3rem;
}

.form input {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 1rem 0;
    border-bottom: 1px solid black;
}

#inp {
    margin-bottom: 2rem;
}

.form label {
    display: block;
}

.form textarea {
    width: 100%;
    height: 100px;
    outline: none;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid black;
    padding: 1rem 0;
}

.txtarea {
    margin: 2rem;
}

textarea {
    resize: none;
}

.form .name-email div {
    margin: 0 2rem;
}

.btn-form {
    position: relative;
    font-size: 20px;
    padding: 1rem 20px;
    font-weight: 500;
    border: 1.5px solid black;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50%;
}

.btn-form::before {
    content: "";
    right: -1px;
    position: absolute;
    height: 58px;
    width: 0px;
    background-color: rgb(0, 0, 0);
    transition: .5s;
}

.btn-form:hover {
    color: white;
}

.btn-form:hover::before {
    width: 100%;
    color: white;
}

.btn-form:hover>span {
    z-index: 999;
    color: white;
}

.submit {
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width:900px) {
    .contact {
        padding: 1rem;
        height: fit-content;
    }
    .name-email {
        flex-direction: column;
    }
    .txtarea {
        margin-top: 1rem;
    }
    .form {
        padding: 2rem;
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
    .form h3 {
        font-size: 30px;
    }
    .form p {
        font-size: 15px;
    }
    .btn-form {
        font-size: 15px;
    }
}