/* * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    overflow: hidden;
    background: #f2f2f2;
} */



section.chat #click {
    display: none;
}

section.chat label {
    /* position: absolute; */
    position: fixed;
    right: 130px;
    bottom: 20px;
    height: 55px;
    width: 55px;
    background: var(--gradient);
    text-align: center;
    line-height: 55px;
    border-radius: 50px;
    font-size: 30px;
    color: #fff;
    cursor: pointer;
}

label i {
    position: relative;
    /* position: fixed; */
    /* top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); */
    transition: all 0.4s ease;
    
}

section.chat label i.fas {
    opacity: 0;
    pointer-events: none;
}

section.chat #click:checked ~ label i.fas {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) rotate(180deg);
}

section.chat #click:checked ~ label i.fab {
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(180deg);
}



section.chat .wrapper {     /*you can add section.chat to allother elements for clarity*/
    /* position: absolute; */
    position: fixed;
    right: 30px;
    bottom: 0px;
    max-width: 400px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0px 15px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

section.chat #click:checked ~ .wrapper {
    opacity: 1;
    bottom: 85px;
    pointer-events: auto;
}

section.chat .wrapper .head-text {
    line-height: 60px;
    color: #fff;
    border-radius: 15px 15px 0 0;
    padding: 0 20px;
    font-weight: 500;
    font-size: 20px;
    background: var(--gradient);
}

section.chat .wrapper .chat-box {
    padding: 20px;
    width: 100%;
}

section.chat .chat-box .desc-text {
    color: #515365;
    font-size: 16px;
    text-align: center;
    line-height: 25px;
    font-weight: 500;
}

section.chat .chat-box form {
    padding: 10px 15px;
    margin: 20px 0;
    border-radius: 25px;
    border: 1px solid var(--lightergray);
}

section.chat .chat-box form .field {
    height: 50px;
    width: 100%;
    margin-top: 20px;
}

section.chat .chat-box form .field:last-child {
    margin-bottom: 15px;
}

section.chat form .field input,
section.chat form .field button,
section.chat form .textarea textarea {
    width: 100%;
    height: 100%;
    padding-left: 20px;
    border: 1px solid var(--lightgray);
    outline: none;
    border-radius: 25px;
    font-size: 16px;
    color: var(--darkgray);
    background-color: var(--white);
    transition: all 0.3s ease;
  
}

section.chat form .field input:focus,
section.chat form .textarea textarea:focus {
    border-color: var(--pink);
}

section.chat form .field input::placeholder,
section.chat form .textarea textarea::placeholder {
    color: var(--silver);
    transition: all 0.3s ease;
}

section.chat form .field input:focus::placeholder,
section.chat form .textarea textarea:focus::placeholder {
    color: var(--lightergray);
}

section.chat .chat-box form .textarea {
    height: 70px;
    width: 100%;
}

section.chat .chat-box form .textarea textarea {
    resize: none;
    height: 100%;
    border-radius: 50px;
    padding: 15px 20px;
    font-size: 16px;
}

section.chat .chat-box form .field button {
    border: none;
    background: var(--gradient);
    color: #fff;
    outline: none;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

section.chat .chat-box form .field button:active {
    transform: scale(0.97);
}
/* 
@media (max-width: 768px) {
    label {
        right: 20px;
        bottom: 15px;
        height: 45px;
        width: 45px;
        line-height: 45px;
        font-size: 25px;
    }

    .wrapper {
        max-width: 300px;
        right: 20px;
        bottom: 0px;
    }

    #click:checked ~ .wrapper {
        bottom: 70px;
    }

    .wrapper .head-text {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    label {
        right: 10px;
        bottom: 10px;
        height: 40px;
        width: 40px;
        line-height: 40px;
        font-size: 20px;
    }

    .wrapper {
        max-width: 250px;
        right: 10px;
        bottom: 0px;
    }

    #click:checked ~ .wrapper {
        bottom: 60px;
    }

    .wrapper .head-text {
        font-size: 16px;
    }

    .chat-box .desc-text {
        font-size: 14px;
    }

    form .field input,
    form .textarea textarea {
        font-size: 14px;
    }

    chat-box form .textarea {
        height: 60px;
    }
} */





/*reponsive new*/

/* @media (max-width: 768px) {
    label {
        right: 20px;
        bottom: 15px;
        height: 45px;
        width: 45px;
        line-height: 45px;
        font-size: 28px;
    }

    .wrapper {
        right: 20px;
        bottom: 0;
        max-width: 350px;
        border-radius: 10px;
    }

    #click:checked ~ .wrapper {
        bottom: 70px;
    }

    .wrapper .head-text {
        line-height: 50px;
        font-size: 18px;
    }

    .chat-box .desc-text {
        font-size: 14px;
        line-height: 22px;
    }

    .chat-box form .field {
        height: 45px;
    }

    form .field input,
    form .field button,
    form .textarea textarea {
        padding-left: 15px;
        font-size: 14px;
    }

    form .textarea textarea {
        padding: 10px 15px;
    }

    .chat-box form .textarea {
        height: 60px;
    }

    .chat-box form .field button {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    label {
        right: 15px;
        bottom: 10px;
        height: 45px;
        width: 45px;
        line-height: 45px;
        font-size: 25px;
    }

    .wrapper {
        right: 15px;
        bottom: 0;
        max-width: 300px;
        border-radius: 10px;
    }

    #click:checked ~ .wrapper {
        bottom: 60px;
    }

    .wrapper .head-text {
        line-height: 45px;
        font-size: 16px;
    }

    .chat-box .desc-text {
        font-size: 13px;
        line-height: 20px;
    }

    .chat-box form .field {
        height: 40px;
    }

    form .field input,
    form .field button,
    form .textarea textarea {
        padding-left: 10px;
        font-size: 13px;
    }

    form .textarea textarea {
        padding: 10px;
    }

    .chat-box form .textarea {
        height: 50px;
    }

    .chat-box form .field button {
        font-size: 14px;
    }
}



@media (max-width: 768px) {
    .chat-box {
        display: none;
    }
} 


@media (max-width: 1440px) {
    .chat-box{
        display: none;
    }
} */



@media (max-width: 1080px), (max-height: 720px) {
    section.chat #click,
    section.chat label[for='click'],
    section.chat .wrapper {
        display: none;
    }
}