/* BMGRB Styles */

.bmgrb-form { /* Updated class */
    border: 1px solid #e0e0e0;
    padding: 25px;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.bmgrb-form p {
    margin-bottom: 15px;
}

.bmgrb-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.bmgrb-form input[type="text"],
.bmgrb-form input[type="email"],
.bmgrb-form input[type="number"],
.bmgrb-form select,
.bmgrb-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    box-sizing: border-box; /* Include padding and border in element's total width/height */
}

.bmgrb-form textarea {
    min-height: 150px;
    resize: vertical;
}

.bmgrb-form .wpcf7-list-item {
    margin-left: 0;
    margin-right: 15px;
    display: inline-block; /* For radio/checkbox */
}
.bmgrb-form .wpcf7-list-item-label {
    font-weight: normal; /* Override CF7 default bold */
}


.bmgrb-form span.wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 0.9em;
    display: block;
    margin-top: 3px;
}

.bmgrb-form .wpcf7-response-output {
    margin: 20px 0 0 0;
    padding: 15px;
    border-radius: 4px;
}

/* Style the acceptance checkbox */
.bmgrb-form .wpcf7-acceptance .wpcf7-list-item-label {
    display: inline; /* Make label appear next to checkbox */
    margin-left: 5px;
}

/* Recaptcha alignment if needed */
.bmgrb-form .wpcf7-recaptcha {
    margin-top: 15px;
}

.bmgrb-form input[type="submit"] {
    background-color: #0073aa;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.bmgrb-form input[type="submit"]:hover {
    background-color: #005177;
}

/* Hide the specific hidden field label/wrapper if CF7 renders one */
.bmgrb-form p.hidden-theme-field {
    display: none;
    visibility: hidden;
}