.contato {
    display: flex;
    justify-content: space-between;
    background-color: var(--fundo-amarelo);
}

.contato__imagem {
    height: 40rem;
    width: 40rem;
    background-image: url('../img/contato-imagem.png');
    background-repeat: no-repeat;
    background-size: cover;
}

.contato__dados {
    position: relative;
    padding-left: 2.5%;
}

.contato__titulo {
    text-align: start;
    margin-bottom: 1rem;
}

.contato__descricao--infoadd {
    display: none;
}

.contato__formulario {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 1rem;
}

.contato__formulario__campo {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 1.5% 0;
    border-radius: 2px;
    box-shadow: 0 0 2px 1px rgba(0, 0, 0, 0.3);
}

.contato__formulario__campo--textarea {
    display: flex;
    height: 8rem;
}

.contato__input {
    display: flex;
    width: 100%;
    padding: 4% 2.5%;
    font-size: 1rem;
    font-family: 'Raleway', sans-serif;
    border: none;
    border-radius: 2px;
}

.contato__input--textarea {
    resize: none;
    box-sizing: border-box;
}

.contato__label {
    color: var(--cinza-escuro);
    position: absolute;
    top: 30%;
    left: 2%;
    pointer-events: none;
    transition: 0.2s ease all;
}

.contato__label--textarea {
    top: 15%
}

.contato__erro {
    color: red;
}

.contato__input:hover,
.contato__input:valid,
.contato__input:focus {
    outline: none;
    border-bottom: 2px solid var(--azul-texto);
}

.contato__input:hover+.contato__label,
.contato__input:valid+.contato__label,
.contato__input:focus-within+.contato__label {
    top: 2%;
    left: .5%;
    font-size: .8rem;
    color: var(--azul-texto);
}

.contato__botao {
    position: absolute;
    bottom: 0;
    align-self: flex-start;
    background-color: var(--fundo-azul);
}

/* Tablet */

@media screen and (max-width:1024px) {
    .contato__imagem {
        display: none;
    }

    .contato__descricao--infoadd {
        display: flex;
    }

    .contato__dados {
        width: 100%;
        padding-left: 0;
        padding-bottom: 10%;
    }

    .contato__input {
        padding: 3% 2.5%;
    }
}

/* Smartphone */

@media screen and (max-width:768px) {

    .contato {
        padding: 10% 5%;
    }

    .contato__dados {
        width: 90%;
        margin: auto;
        padding: 0 0 15% 0;
    }

    .contato__input {
        padding: 6% 2.5%;
    }

    .contato__formulario__campo {
        margin: 5% 0;
    }
}