
:root {
    --gold-crayola: hsl(38, 61%, 73%);
    --davys-grey: hsla(30, 3%, 34%, 1);
}




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



.body {
   display: flex;
   padding: 0 10px;
   min-height: 100vh;
   align-items: center;
   justify-content: center;
}

.wrapper-kontakty {
    width: 720px;
    background: var(--davys-grey);
    border-radius: 5px;
}

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

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

form .dbl-field {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    justify-content: space-between;
}

.dbl-field .field {
    height: 50px;
    position: relative;
    width: calc(100% / 2 - 13px);
}

form .field input, 
form .message textarea {
    height: 100%;
    width: 100%;
    outline: none;
    padding: 0 18px 0 48px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #bfbfbf;
}

form .field input::placeholder,
form .message textarea::placeholder {
    color: #bfbfbf;
}

form .field input:focus, 
form .message textarea:focus {
    border: 2px solid var(--gold-crayola);
}

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

}

form .field input:focus ~ i,
form .message textarea:focus ~ i {
    color: var(--gold-crayola);
}

form .message {
    position: relative;
}

form .message i {
    top: 30px;
    font-size: 20px;
}

form .message textarea {
    min-width: 100%;
    max-width: 100%;
    min-height: 120px;
    max-height: 300px;
    padding: 15px 20px 0 48px;
}

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

.button-area button {
    font-size: 15px;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 5px;
    background: var(--gold-crayola);
    padding: 13px 25px;
}

.button-area span {
    color: var(--gold-crayola);
    margin-left: 30px;
    display: none;
}



@media (max-width: 600px){
    .wrapper-kontakty header {
        text-align: center;
    }
    form .dbl-field {
        margin-bottom: 0px;
        flex-direction: column;
    }
    .dbl-field .field {
        width: 100%;
        margin-bottom: 20px;
    }
    form .message textarea {
        resize: none;
    }
    form .button-area {
        flex-direction: column;
    }
    .button-area button {
        width: 100%;
    }
    .button-area span {
        text-align: center;
        margin: 20px 0;
    }

}