/* Global styling for the form */
.wi-leads-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.wi-leads-form h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

/* Form control styling (input, textarea, select) */
.wi-form-control {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border: 1px solid #ced4da;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    color: #495057;
}

.wi-form-control:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(38, 143, 255, 0.25);
}

/* Button styling */

/* Base styles for the custom button */
button.wi-btn, [type=submit].wi-btn {
    display: inline-block !important; /* Override default display */
    font-weight: 500 !important; /* Custom font weight */
    color: #808080 !important; /* Button text color */
    text-align: center !important;
    white-space: nowrap !important;
    background-color: transparent !important; /* Primary button color */
    border: 1px solid #808080 !important; /* Match the background color */
    padding: 0.6rem 1.2rem !important; /* Adjust padding for better look */
    font-size: 1rem !important;
    border-radius: 5px !important; /* Smooth corners */
    transition: all 0.3s ease-in-out !important;
    cursor: pointer !important; /* Pointer cursor for better UX */
}

/* Button hover and focus styles */
button.wi-btn:hover, [type=submit].wi-btn:hover,
button.wi-btn:focus, [type=submit].wi-btn:focus {
    color: #fff !important; /* Keep text white on hover */
    background-color: #808080 !important; /* Darker shade for hover effect */
    border-color: #808080 !important; /* Match the hover background */
    text-decoration: none !important; /* Remove any underline */
}

/* Ensure compatibility with disabled buttons */
button.wi-btn:disabled, [type=submit].wi-btn:disabled {
    background-color: #ccc !important; /* Light gray for disabled state */
    color: #666 !important; /* Dim text for disabled state */
    cursor: not-allowed !important; /* Show not-allowed cursor */
    border-color: #ccc !important; /* Match disabled background */
    opacity: 0.8 !important; /* Slightly transparent */
}

/* Success message after form submission */
.wi-success-message {
    color: #28a745;
    text-align: center;
    font-weight: bold;
}

/* Error message styling */
.wi-error-message {
    color: #dc3545;
    text-align: center;
    font-weight: bold;
}

#wi-leads-message {
    display: none;
    background-color: #28a745;
    color: white;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#wi-leads-message.show {
    display: block;
    animation: fadeIn 1s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* .widefat tfoot td, .widefat th, .widefat thead td {
    font-weight: 700 !important;
} */

.wi-table-heading th {
    font-weight: bold;
}

/* Adjustments for smaller screens (Mobile responsiveness) */
@media (max-width: 576px) {
    .wi-leads-form {
        padding: 15px;
    }
}