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

.show-btn {

    position: fixed;
    left: 75%;
    top: 85%;
    width: 90px;
    height: 90px;
    cursor: pointer;
    border-radius: 50%;
    text-align: center;
    background: #fd0000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 10px 5px #000;
    z-index: 100;
}

.show-btn i {
    font-size: 40px;
}

input[type="checkbox"] {
    display: none;
}

#show:checked ~ .wrapper-chat {
    display: block;
}

.wrapper-chat {
    display: none;
    width: 320px;
    height: 400px;
    position: fixed;
    bottom: 10%;
    right: 10%;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0px 10px 5px #000;
    animation: popup 1s;
    z-index: 80;
    font-family: "Poppins", sans-serif;
}

.wrapper-chat h5 {
    color: #fff;
    padding: 15px;
    background: #fd0000;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    margin: 0;
    text-align: center;
    font-size: 20px;
}

.wrapper-chat p {
    font-size: 13px;
    margin-top: 10px;
    padding: 5px 20px;
    text-align: center;
}

.wrapper-chat form {
    margin: 10px;
    width: 270px;
    padding: 20px 15px;
    border-radius: 10px;
    border: 1px solid rgb(236, 234, 234);
}

.wrapper-chat input, .wrapper-chat textarea {
    display: block;
    width: 92%;
    border: none;
    outline: none;
    padding: 10px;
    color: #fd0000;
    margin-bottom: 10px;
    border-radius: 12px;
    border: 1px solid rgb(236, 234, 234);
}

.wrapper-chat input::placeholder , .wrapper-chat textarea::placeholder {
    color: rgb(214, 211, 211);
}

.wrapper-chat button {
    width: 100%;
    padding: 8px;
    border: none;
    outline: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
    background: #fd0000;
    border-radius: 12px;
}

.wrapper-chat input:focus {
    border-color: #fd0000;
}

.wrapper-chat button:hover {
    background: rgba(189, 23, 23, 0.5);
}

.wrapper-chat .error {
    color: red;
    font-size: 0.9em;
    margin-top: 5px;
}


@keyframes popup {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
    70% {
        transform: scale(1.2);
    }
    90% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.g-recaptcha iframe {
    bottom: 0;
    right: 0;
    position: absolute;
}


.success-message {
    color: red !important;
    font-weight: bold !important;
}

/* Media Queries for mobile responsiveness */
@media (max-width: 768px) {
    .show-btn {
        width: 70px;
        height: 70px;
        left: 70%;
        top: 80%;
    }

    .show-btn i {
        font-size: 30px;
    }

    .wrapper-chat {
        width: 90%;
        height: 60%;
        bottom: 5%;
        right: 5%;
    }

    .wrapper-chat h5 {
        font-size: 18px;
    }

    .wrapper-chat p {
        font-size: 12px;
    }

    .wrapper-chat form {
        width: auto;
        padding: 15px 10px;
    }

    .wrapper-chat input {
        padding: 8px;
        margin-bottom: 8px;
    }

    .wrapper-chat button {
        padding: 6px;
        font-size: 14px;
    }
}
