/* General Form Container */
#cod-dz-order-form-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Form Title and Price */
#cod-dz-order-form-container h2 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 10px;
    color: #333;
}

#cod-dz-order-form-container p {
    text-align: center;
    font-size: 20px;
    color: #007bff;
    margin-bottom: 25px;
    font-weight: bold;
}

/* Form Rows for Spacing */
.cod-dz-form .form-row {
    margin-bottom: 20px;
}

/* Labels */
.cod-dz-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
    font-size: 14px;
}

/* Input Fields and Textarea */
.cod-dz-form input[type="text"],
.cod-dz-form input[type="tel"],
.cod-dz-form input[type="number"],
.cod-dz-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 16px;
    transition: border-color 0.3s;
}

.cod-dz-form input[type="text"]:focus,
.cod-dz-form input[type="tel"]:focus,
.cod-dz-form input[type="number"]:focus,
.cod-dz-form textarea:focus {
    border-color: #007bff;
    outline: none;
}

/* Radio Buttons for Delivery Method */
.cod-dz-form input[type="radio"] {
    margin-right: 8px;
}

.cod-dz-form .form-row label input[type="radio"] {
    display: inline-block;
    width: auto;
}

/* Submit Button */
#cod-dz-submit-button {
    width: 100%;
    padding: 15px;
    background-color: #28a745;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

#cod-dz-submit-button:hover {
    background-color: #218838;
}

/* Required Fields Asterisk */
.cod-dz-form .required {
    color: #dc3545;
}

/* Form Messages */
#cod-dz-form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    display: none; /* Hidden by default */
}

#cod-dz-form-messages.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

#cod-dz-form-messages.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Toast Notifications */
.cod-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.5s, bottom 0.5s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-size: 16px;
    font-weight: 500;
}

.cod-toast.error {
    background-color: #e74c3c;
}

.cod-toast.success {
    background-color: #2ecc71;
}
