

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

p{
    margin: 10px;
}

body{ 
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6; 
    color: rgb(49, 45, 77);
    background: rgb(243, 245, 246); 
}

.contact-form{ 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 60%;
    margin: 0 auto;
}

.contact-input{
    display: flex;
    flex-flow: wrap; 
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 20px;
}   

.btn{
    padding: 15px; 
    background-color: #6158de;
    color: white;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    margin: 10px auto;
    width: 25%; 
    display: block; 
    transition: all 0.1s ease;
}

.btn:hover{
    padding: 16px;    
    width: 26%; 
} 

.input{
    position: relative;
    margin: 15px;
    width: 45.5%;
    height: 50px;
}

.input input,
.input textarea{
    width: 100%; 
    height: 100%;
    border: 1px solid rgb(234, 232, 232);
    border-radius: 7px; 
    padding-left: 14px;
    padding-top: 10px;
    padding-right: 10px;
}

.input label{
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px; 
    transition: all 0.25s ease;
    pointer-events: none;
}

.message{
    width: 95%;
    margin: 15px;
    height: 150px;
} 

.message textarea{
    padding-top: 25px;
}

.input input:focus + label,
.input textarea:focus + label,
.input input:not(:placeholder-shown) + label,
.input textarea:not(:placeholder-shown) + label{ 
    top: 6px;           
    transform: none;
    font-size: 10px; 
    outline: none; 
}  

@media (max-width: 768px) {

    .contact-form{
        width: 90%;
    }

    .input{
        width: 100%;
    }

    .btn{
        width: 60%;
    }

    .btn:hover{
        width: 61%;
    }
}

@media (max-width: 480px) {
    .input{
        width: 100%;
    } 

    .btn{
        width: 60%;
    }

    .btn:hover{
        width: 61%;
    }

    .contact-form{
        width: 90%;
    }
}