@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

*{
    margin:0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins",sans-serif;
}

body{
    display: flex;
    padding:0 10px;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    background: #0d6efd;
}
.wrapper{
    width:720px;
    background: #fff;
    border-radius: 5px;
}

.wrapper header{
    font-size: 22px;
    font-weight: 600;
    padding:20px 30px;
    border-bottom: 10px solid #bfbfbf;
}

.wrapper form{
    margin:35px 30px;
}

form .dbl-field{
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    justify-content: space-between;
}
.dbl-field .field{
    height:50px;
    width:calc(100%/2 - 13px);
    position:relative;
}
form .field input, form .message textarea{
    height: 100%;
    width: 100%;
    outline:none;
    padding: 0 50px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px soild #bfbfbf;
    
}

.wrapper form i{
    position:absolute;
    left:18px;
    top:50%;
    font-size: 17px;
    pointer-events:none; /* what is pointer events */
    transform: translateY(-50%);
    color:#bfbfbf;
}

form .message{
    position: relative;
}
/* how the icons are positioned */
form .message i{
    top:30px;
    font-size: 20px; 
}
form .message textarea{
    min-height: 120px;
    padding:15px 20px 0 48px;
}
/* changing the color of the icon when focus on the input box */
form .field input:focus ~ i,form .message textarea:focus ~i{
    color:blue;
}

form .button-area{
    margin:25px 0;
    display: flex;
    align-items: center;
}

.button-area button{
    font-size: 18px;
    border: none;
    color:#fff;
    cursor:pointer;
    border-radius: 5px;
    background: #0d6efd;
    padding: 13px 25px;
}

.button-area span{
    color:#0d6efd;
    margin-left: 30px;
    display: none;
}