.allergist-gf-container { margin-top: 40px; text-align: left; }
.allergist-gf-search { background: #fff; color: #222; border-radius: 4px; }
.allergist-gf-search { padding: 1rem; }
.allergist-gf-search .gform_wrapper { margin: 0; }
.allergist-gf-search .gfield_label { display: block; font-weight: 600; }
.allergist-gf-search input[type=text], .allergist-gf-search select { width: 100%; min-height: 44px; }
.allergist-gf-search .gform_footer { margin-bottom: 0; }
.allergist-gf-search .gform_button { min-height: 44px; cursor: pointer; }
.allergist-gf-search .gfield_validation_message, .allergist-gf-search .validation_error { color: #a00; background: #fff; padding: .5rem; }
.allergist-gf-search :focus-visible { outline: 3px solid #0062a7; outline-offset: 3px; }

.allergist-gf-search .gfield_required { margin-left: .25em; }
.allergist-gf-search .ginput_counter { display: none; }
.allergist-gf-search .gform_button { background: #0062a7; color: #fff; border: 0; border-radius: 3px; padding: 12px 24px; }
.allergist-gf-search .gform_button:hover { background: #004b80; }

/* Landing-page search: match the original theme's 800px by 52px search bar.
 * Keep results-page filters and Gravity Forms' honeypot/validation behavior intact. */
.allergist-gf-container .allergist-gf-search { padding: 0; background: transparent; border-radius: 0; }
.allergist-gf-container #gform_11 { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 0; margin: 0; }
.allergist-gf-container #gform_11 .gform-body { min-width: 0; }
.allergist-gf-container #gform_fields_11 { gap: 0; }
.allergist-gf-container #field_11_1 { min-width: 0; padding: 0; margin: 0; }
/* Preserve the accessible name while presenting the original placeholder-only design. */
.allergist-gf-container #field_11_1 > .gfield_label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.allergist-gf-container #field_11_1 .ginput_container { position: relative; margin: 0; }
.allergist-gf-container #field_11_1 .ginput_container::before { content: ""; position: absolute; z-index: 1; pointer-events: none; width: 14px; height: 23px; left: 16px; top: 15px; background: url("../themes/socialdriver-acaai-patient/images/location-icon.svg") center / cover no-repeat; }
.allergist-gf-container #input_11_1 { box-sizing: border-box; width: 100%; height: 52px; min-height: 52px; padding: 16px 44px !important; margin: 0 !important; border: 0 !important; border-radius: 3px 0 0 3px; background: #fff; color: #000; font-family: "Helvetica Neue LT W05_55 Roman", Helvetica, Arial, sans-serif; font-size: 15px; font-weight: 400 !important; line-height: 20px; letter-spacing: 0; box-shadow: none; }
.allergist-gf-container #input_11_1::placeholder { color: gray; font-style: italic; opacity: 1; }
/* Optional filters remain available on the results page; never target the honeypot by ID alone. */
.allergist-gf-container #field_11_2.gfield--type-checkbox,
.allergist-gf-container #field_11_3.gfield--type-select { display: none; }
.allergist-gf-container #gform_11 .gform_footer { margin: 0; padding: 0; align-self: start; }
.allergist-gf-container #gform_submit_button_11 { box-sizing: border-box; width: 200px; min-width: 200px; height: 52px; min-height: 52px; margin: 0; padding: 0; border: 0; border-radius: 0 3px 3px 0; background: #fff; color: #0062a7; font-family: "Helvetica Neue LT W05_75 Bold", Helvetica, Arial, sans-serif; font-size: 16px; font-weight: 700; line-height: 52px; letter-spacing: .44px; text-transform: none; white-space: nowrap; box-shadow: 0 2px 12px rgba(0, 0, 0, .12); }
.allergist-gf-container #gform_submit_button_11:hover { background: #c7f0ff; }
.allergist-gf-container .gform_validation_errors { grid-column: 1 / -1; margin-bottom: 12px; padding: 16px; background: #fff; color: #a00; text-align: left; }
.allergist-gf-container .gfield_validation_message { margin: 0; text-align: left; }
/* Stack when the original fixed-width button would crowd the location field. */
@media (max-width: 540px) {
    .allergist-gf-container #gform_11 { grid-template-columns: minmax(0, 1fr); }
    .allergist-gf-container #input_11_1 { border-radius: 3px 3px 0 0; }
    .allergist-gf-container #gform_submit_button_11 { width: 100%; min-width: 0; border-radius: 0 0 3px 3px; }
}

.allergist-gf-container .gform_validation_errors a { color: #a00; }

/* Results-page controls mirror the original sidebar, retaining the GF submit button. */
body.page-id-4505 .allergist-gf-search { padding: 14px 16px 26px; border-radius: 0; border-bottom: 1px solid #d8d8d8; }
body.page-id-4505 #gform_11 { position: relative; margin: 0; }
body.page-id-4505 #gform_fields_11 { gap: 0; }
body.page-id-4505 #field_11_1 { margin: 0; padding: 0 0 15px; }
body.page-id-4505 #field_11_1 > .gfield_label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
body.page-id-4505 #input_11_1 { box-sizing: border-box; width: 100%; height: 48px; min-height: 48px; padding: 10px 50px 10px 16px !important; margin: 0 !important; border: 1px solid #d8d8d8 !important; border-radius: 3px; background: #fff; color: #131415; font-family: "Helvetica Neue LT W05_55 Roman", Helvetica, Arial, sans-serif; font-size: 12px; font-weight: 400 !important; letter-spacing: .23px; line-height: 16px; }
body.page-id-4505 #gform_11 .gform_footer { position: absolute; top: 0; right: 0; margin: 0; padding: 0; }
/* Text stays in the accessibility tree; the existing location icon is the visible submit control. */
body.page-id-4505 #gform_submit_button_11 { width: 48px; min-width: 48px; height: 48px; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 3px; background: transparent url("../themes/socialdriver-acaai-patient/images/location-icon.svg") center / 14px 23px no-repeat; color: transparent; font-size: 0; box-shadow: none; }
body.page-id-4505 #gform_submit_button_11:hover { background-color: #edf8fc; }
body.page-id-4505 #field_11_2.gfield--type-checkbox { border: 0; border-top: 1px solid #d8d8d8; margin: 0 -16px; padding: 16px 16px 0; min-width: 0; }
body.page-id-4505 #field_11_2 .gfield_label { float: left; width: 100%; margin: 0 0 15px; padding: 0; font-family: "Helvetica Neue LT W05_75 Bold", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 12px; font-weight: 700; }
body.page-id-4505 #field_11_2 .ginput_container { clear: both; }
body.page-id-4505 #field_11_2 .gfield_checkbox { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 0; margin: 0 0 25px; }
body.page-id-4505 #field_11_2 .gchoice { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
body.page-id-4505 #field_11_2 input[type=checkbox] { appearance: none; box-sizing: border-box; width: 16px; height: 16px; min-height: 16px; margin: 0; padding: 0; border: 1px solid #079eda; border-radius: 3px; background: #fff; flex: 0 0 16px; }
body.page-id-4505 #field_11_2 input[type=checkbox]:checked { background: #fff url("../themes/socialdriver-acaai-patient/images/icon-checkbox.svg") center no-repeat; }
body.page-id-4505 #field_11_2 .gchoice label { max-width: none; margin: 0; padding: 0; font-family: "Helvetica Neue LT W05_55 Roman", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 16px; font-weight: 400; }
body.page-id-4505 #field_11_3.gfield--type-select { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 0; margin: 0; }
body.page-id-4505 #field_11_3 .gfield_label { margin: 0; padding: 0; font-family: "Helvetica Neue LT W05_55 Roman", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 29px; font-weight: 400; }
body.page-id-4505 #input_11_3 { box-sizing: border-box; width: 199px; max-width: 100%; height: 29px; min-height: 29px; margin: 0; padding: 0 25px 0 10px; border: 1px solid #d8d8d8; border-radius: 3px; background: #fff url("../themes/socialdriver-acaai-patient/images/icon-dropdown.svg") right 10px center / 8px 8px no-repeat; font-family: "Helvetica Neue LT W05_55 Roman", Helvetica, Arial, sans-serif; font-size: 12px; line-height: normal; }
body.page-id-4505 .gform_validation_errors { background: #fff; color: #a00; }
body.page-id-4505 .gform_validation_errors a { color: #a00; }
/* Override the theme's global !important Gravity Forms field defaults. */
body.page-id-4505 #field_11_2 .gfield_label { border: 0; font-family: "Helvetica Neue LT W05_75 Bold", Helvetica, Arial, sans-serif !important; font-weight: 700 !important; }
body.page-id-4505 #field_11_3 .gfield_label { width: auto; flex: 0 0 auto; }
body.page-id-4505 #field_11_3 .ginput_container { width: auto; max-width: 100%; margin: 0; flex: 0 1 199px; }
body.page-id-4505 #input_11_3 { height: 29px !important; padding: 0 25px 0 10px !important; margin: 0 !important; border: 1px solid #d8d8d8 !important; color: #131415; font-size: 12px !important; font-weight: 400 !important; }
