Responsive Chat Box Design

<!DOCTYPE html>
<html lang="en" dir="ltr">
    <head>
        <meta charset="utf-8">
        <title>Responsive Chat Box Design</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"/>
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <style>
            @import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');
            *{
                margin: 0;
                padding: 0;
                box-sizing: border-box;
                font-family: 'Poppins', sans-serif;
            }
            body{
                overflow: hidden;
                background-image: linear-gradient(to top, #cfd9df 0%, #e2ebf0 100%);
            }
            #click{
                display: none;
            }
            label{
                position: absolute;
                right: 30px;
                bottom: 20px;
                height: 55px;
                width: 55px;
                background: #1e1e1e;
                text-align: center;
                line-height: 55px;
                border-radius: 50px;
                font-size: 30px;
                color: #fff;
                cursor: pointer;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            }
            label i{
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%);
                transition: all 0.4s ease;
            }
            label i.fas{
                opacity: 0;
                pointer-events: none;
            }
            #click:checked ~ label i.fas{
                opacity: 1;
                pointer-events: auto;
                transform: translate(-50%, -50%) rotate(180deg);
            }
            #click:checked ~ label i.fab{
                opacity: 0;
                pointer-events: none;
                transform: translate(-50%, -50%) rotate(180deg);
            }
            .wrapper{
                position: absolute;
                right: 30px;
                bottom: 0px;
                max-width: 400px;
                border-radius: 15px;
                box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.3);
                opacity: 0;
                pointer-events: none;
                transition: all 0.6s cubic-bezier(0.68,-0.55,0.265,1.55);
            }
            #click:checked ~ .wrapper{
                opacity: 1;
                bottom: 85px;
                pointer-events: auto;
            }
            .wrapper .head-text{
                line-height: 60px;
                color: #fff;
                border-radius: 15px 15px 0 0;
                padding: 0 20px;
                font-weight: 500;
                font-size: 20px;
                text-align: center;
                background: #1e1e1e;
            }
            .wrapper .chat-box{
                padding: 20px;
                width: 100%;
                color: #fff;
            }
            .chat-box .desc-text{
                color: #828282;
                text-align: center;
                line-height: 25px;
                font-size: 17px;
                font-weight: 500;
            }
            .chat-box form{
                padding: 10px 15px;
                margin: 20px 0;
                border-radius: 25px;
                border: 1px solid #444;
            }
            .chat-box form .field{
                height: 50px;
                width: 100%;
                margin-top: 20px;
            }
            .chat-box form .field:last-child{
                margin-bottom: 15px;
            }
            form .field input,
            form .field button,
            form .textarea textarea{
                width: 100%;
                height: 100%;
                padding-left: 20px;
                border: 1px solid #444;
                outline: none;
                border-radius: 25px;
                font-size: 16px;
                transition: all 0.3s ease;
            }
            form .field input:focus,
            form .textarea textarea:focus{
                border-color: #d7d7d7;
            }
            form .field input::placeholder,
            form .textarea textarea::placeholder{
                color: #777;
                transition: all 0.3s ease;
            }
            form .field input:focus::placeholder,
            form .textarea textarea:focus::placeholder{
                color: #bbb;
            }
            .chat-box form .textarea{
                height: 70px;
                width: 100%;
            }
            .chat-box form .textarea textarea{
                height: 100%;
                border-radius: 50px;
                resize: none;
                padding: 15px 20px;
                font-size: 16px;
            }
            .chat-box form .field button{
                border: none;
                outline: none;
                cursor: pointer;
                color: #fff;
                font-size: 18px;
                font-weight: 500;
                background: #1e1e1e;
                transition: all 0.3s ease;
                box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
            }
            .chat-box form .field button:active{
                transform: scale(0.97);
            }
        </style>
    </head>
    <body>
        <input type="checkbox" id="click">
        <label for="click">
            <i class="fab fa-facebook-messenger"></i>
            <i class="fas fa-times"></i>
        </label>
        <div class="wrapper">
            <div class="head-text">
                ChatBot - Online
            </div>
            <div class="chat-box">
                <div class="desc-text">
                    Kindly complete the form below to begin chatting with the next available agent.
                </div>
                <form action="#">
                    <div class="field">
                        <input type="text" placeholder="Your Name" required>
                    </div>
                    <div class="field">
                        <input type="email" placeholder="Email Address" required>
                    </div>
                    <div class="field textarea">
                        <textarea cols="30" rows="10" placeholder="Explain your queries.." required></textarea>
                    </div>
                    <div class="field">
                        <button type="submit">Start Chat</button>
                    </div>
                </form>
            </div>
        </div>
    </body>
</html>