/* Floating WhatsApp button */
#fwf-floating-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    z-index: 9999;
    cursor: pointer;
}

#fwf-floating-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25D366;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

#fwf-floating-icon img:hover {
    transform: scale(1.1);
}

/* Hidden form container */
#fwf-contact-form {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 300px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 99999;
    display: none;
    text-align: center; /* Center the content */
}
/* Title styling */
#fwf-contact-form h1 {
    font-size: 20px;
    font-weight: bold;
    color: #128C7E; /* WhatsApp green tone */
    margin-bottom: 15px;
    text-align: center;
    display: inline-block; /* Ensures the h1 shrinks to the width of the text */
    position: relative; /* Required for positioning the ::after element */
}

/* Dynamic width separator line */
#fwf-contact-form h1::after {
    content: '';
    display: block;
    width: 100%; /* Matches the width of the h1 */
    height: 2px;
    margin: 5px auto 0; /* Space above and below the line */
    background-color: #25D366; /* WhatsApp brighter green */
    border-radius: 2px; /* Slightly rounded edges */
}


#fwf-form{
    direction: rtl;
}

#fwf-form input[type="tel" i]{
    direction: rtl;
}

#fwf-contact-form input {
    pointer-events: auto !important;
}

/* Form inputs */
#fwf-contact-form label {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #128C7E;
    display: block;
    text-align: right;
}

#fwf-success{
    color: #128C7E;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

#fwf-error{
    color: #FF0000;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
}

#fwf-contact-form input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #128C7E;
    border-radius: 5px;
    font-size: 16px;
    outline: none;
}

#fwf-contact-form button {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background: #25D366;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

#fwf-contact-form button:hover {
    background: #128C7E;
}

@media (max-width: 480px) {
    #fwf-contact-form {
        width: 90%;
        bottom: 20px;
        right: 5%;
    }

    #fwf-contact-form h1 {
        font-size: 18px;
    }
}
