/* General form container styling */
#mechanicdesk-booking-form {
    max-width: 600px;
    margin: 20px auto;
    font-family: Arial, sans-serif;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Fieldsets and legends */
#mechanicdesk-booking-form fieldset {
    border: none; /* Remove browser default borders */
    margin-bottom: 20px;
    padding: 0;
}

#mechanicdesk-booking-form legend {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

/* Input, textarea, and select elements */
#mechanicdesk-booking-form input[type="text"],
#mechanicdesk-booking-form input[type="email"],
#mechanicdesk-booking-form textarea,
#mechanicdesk-booking-form select {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* On focus */
#mechanicdesk-booking-form input:focus,
#mechanicdesk-booking-form textarea:focus,
#mechanicdesk-booking-form select:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.5);
}

/* Textarea */
#mechanicdesk-booking-form textarea {
    min-height: 80px;
    resize: vertical; /* Only allow vertical resizing */
}

/* Submit button */
#mechanicdesk-booking-form button[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: var(--e-global-color-primary) !important;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#mechanicdesk-booking-form button[type="submit"]:hover {
    background-color: #005b8a;
}

/* Disabled submit button */
#mechanicdesk-booking-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    background-color: #888 !important;
}
#mechanicdesk-booking-form fieldset {
    border: none !important;
    padding: 0px !important;
}
#mechanicdesk-booking-form legend {
    background: #eb116e;
    color: #ffffff !important;
    display: block !important;
    width: 100%;
    padding: 7px 15px;
    margin-bottom: 15px;
}