/* ===== Base Styles ===== */
#bes-mail-form {
    max-width: 80%;
    margin: 25px auto;
    background: #fff;
    padding: 20px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.bes-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.bes-field {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.bes-field label {
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.bes-field select,
.bes-field input,
.bes-field textarea {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
    font-size: 15px;
}

.bes-submit-btn {
    margin: 20px auto 0;
    display: block;
    padding: 12px 20px;
    background: #e9c25f;
    color: #32151a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.bes-submit-btn:hover {
    background: #d8b255;
}

#bes-response {
    margin-top: 20px;
    font-weight: bold;
    text-align: center;
}

textarea#bes-message {
    height: 175px;
}

.bes-specific-toggle {
    margin-top: 10px;
    margin-bottom: 10px;
}

.bes-checkbox-label {
    display: flex;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

input#send-specific {
    width: auto;
    transform: scale(1.2);
}

#specific-users-field label {
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

/* ===== Progress Bar Styling ===== */
#progress-wrapper {
    border-radius: 6px;
    overflow: hidden;
    background: #eee;
}
#progress-bar {
    transition: width 0.4s ease;
    font-weight: 600;
}

/* ===== Responsive Breakpoints ===== */

/* Medium Screens (Tablets) */
@media (max-width: 1024px) {
    #bes-mail-form {
        max-width: 85%;
        padding: 18px;
    }

    .bes-row {
        gap: 15px;
    }

    .bes-field label {
        font-size: 14px;
    }

    .bes-field select,
    .bes-field input,
    .bes-field textarea {
        font-size: 14px;
    }
}

/* Small Screens (Mobile) */
@media (max-width: 768px) {
    #bes-mail-form {
        max-width: 95%;
        padding: 15px;
    }

    .bes-row {
        flex-direction: column;
        gap: 12px;
    }

    .bes-submit-btn {
        width: 100%;
        font-size: 16px;
        padding: 14px;
    }

    textarea#bes-message {
        height: 140px;
    }

    .bes-checkbox-label {
        font-size: 15px;
    }

    #progress-bar {
        font-size: 14px;
    }
}

/* Extra Small Screens (Phones <480px) */
@media (max-width: 480px) {
    #bes-mail-form {
        border-radius: 0;
        box-shadow: none;
        padding: 15px 10px;
    }

    .bes-field label {
        font-size: 13px;
    }

    .bes-submit-btn {
        padding: 12px;
        font-size: 15px;
    }

    .bes-row {
        flex-direction: column;
        gap: 10px;
    }

    .bes-field select,
    .bes-field input,
    .bes-field textarea {
        font-size: 14px;
    }
}


/* Add red dot/asterisk for required fields */
.required-label::after {
    content: " *";
    color: red;
    font-weight: bold;
    margin-left: 3px;
}

/* Optional — style all required inputs consistently */
/* select:required,
input:required,
textarea:required {
    border-color: #e74c3c;
} */

/* Optional: highlight invalid required fields */
/* select:required:invalid,
input:required:invalid,
textarea:required:invalid {
    border-color: #ff5b5b;
} */

/* Responsive label adjustments */
@media (max-width: 600px) {
    .required-label {
        font-size: 14px;
    }
}
