/* Default Form Container Style */
.ewf-whatsapp-form {
    max-width: 500px; /* Default max width, overridden by control */
    margin: auto; /* Center the form */
    padding: 20px; /* Default padding, overridden by control */
    border: 1px solid #ddd; /* Default border, overridden by control */
    border-radius: 5px; /* Default border radius, overridden by control */
    background-color: #f9f9f9; /* Default background color, overridden by control */
    box-sizing: border-box; /* Include padding and border in dimensions */
}

/* Default Field Container Style */
.ewf-whatsapp-form .ewf-form-field {
    margin-bottom: 15px;
}

/* Default Label Style */
.ewf-whatsapp-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333; /* Default label color, overridden by control */
}

/* Default Input/Select Style */
/* Updated selector to remove input[type="email"] */
.ewf-whatsapp-form input[type="text"],
.ewf-whatsapp-form select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc; /* Default border color, overridden by control */
    border-radius: 4px;
    box-sizing: border-box;
    color: #555; /* Default text color, overridden by control */
    background-color: #fff; /* Default background color, overridden by control */
}

.ewf-whatsapp-form input:focus,
.ewf-whatsapp-form select:focus {
    outline: none;
    border-color: #007cba; /* WordPress primary color */
    box-shadow: 0 0 2px rgba(0, 124, 186, 0.8);
}

.ewf-whatsapp-form .required {
    color: red; /* Keep default red for required marker */
}

/* Hint text style is removed */


/* Button Styles (Inherits Elementor/Theme or default) */
.ewf-whatsapp-form .ewf-whatsapp-button {
    padding: 10px 20px;
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s ease;
    /* Default colors - will be overridden by Elementor controls */
    /* background-color: #25D366; */ /* Example default WhatsApp green */
    /* color: #fff; */
    border: none; /* Example default */
    border-radius: 4px; /* Example default */
}

.ewf-whatsapp-form .ewf-whatsapp-button.loading {
    opacity: 0.6;
    cursor: not-allowed;
}

.ewf-whatsapp-form .ewf-form-button-wrap {
     margin-top: 20px;
}

/* Message Area Styles (Frontend Validation/Redirecting) */
.ewf-whatsapp-form .ewf-message-area {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    font-size: 0.9em;
    text-align: center;
    display: none; /* Hidden by default */
    border: 1px solid #ccc;
    background-color: #f0f0f0;
    color: #333;
}

.ewf-whatsapp-form .ewf-message-area.error {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

/* Add more specific styles for success/redirecting if needed */
/* These colors are set via JS style attribute, but you could target them with classes too */
/* Example:
.ewf-whatsapp-form .ewf-message-area[style*="color: green"],
.ewf-whatsapp-form .ewf-message-area[style*="color: rgb(60, 118, 61)"] {
    background-color: #dff0d8;
    border-color: #d6e9c6;
}
*/