
/* Modal Container */
.whatsapp_instance_modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    padding-top: 50px;
}

/* Modal Content Box */
.whatsapp_instance_modal-content {
    background-color: #fefefe;
    margin: 5% auto; /* 5% from the top, 15% from the bottom and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Close Button */
.whatsapp_instance_close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.whatsapp_instance_close-btn:hover,
.whatsapp_instance_close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Button */
.whatsapp_instance_btn {
    background-color: #4CAF50;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.whatsapp_instance_btn:hover {
    background-color: #45a049;
}

/* Form Input Styles */
.whatsapp_instance_form-group {
    margin-bottom: 15px;
}

.whatsapp_instance_form-control {
    width: 100%;
    padding: 10px;
    margin: 5px 0 10px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

/* Modal Container */

/* Modal Content */
.whatsapp_instance_modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 600px; /* Limit width */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

/* Close Button */
.whatsapp_instance_close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.whatsapp_instance_close-btn:hover,
.whatsapp_instance_close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Form Groups */
.whatsapp_instance_form-group {
    margin-bottom: 15px;
}

.whatsapp_instance_form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.whatsapp_instance_form-group .form-control {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    color: #fff;
}

.btn-primary {
    background-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
}

.btn-danger {
    background-color: #dc3545;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Error Messages */
p[style*="color: red"] {
    margin-top: 5px;
    font-size: 14px;
}



@media (max-width: 425px) {
    .whatsapp_instance_modal{
        margin-top: 250px;
    }
}
