/* ==========================================================================
   1. RECAPTCHA & GLOBAL HIDES
   ========================================================================== */

/* ReCaptcha Badge Hiding */
body.page-id-9231 .grecaptcha-badge,
body.page-id-8747 .grecaptcha-badge,
body.page-id-8626 .grecaptcha-badge,
body.page-id-8443 .grecaptcha-badge,
body.page-id-8545 .grecaptcha-badge,
body.page-id-9265 .grecaptcha-badge,
body.page-id-9260 .grecaptcha-badge,
body.page-id-8610 .grecaptcha-badge,
body.page-id-9140 .grecaptcha-badge,
body.page-id-10784 .grecaptcha-badge,
body.page-id-10840 .grecaptcha-badge,
body.page-id-10848 .grecaptcha-badge {
  visibility: hidden !important;
  transition: none !important;
}

/* Hide Default Elements */
p.gf_progressbar_title,
div#gfield_instruction_20_3,
.gform_wrapper.gravity-theme .gform-loader,
.gform_wrapper.gravity-theme .gfield_required .gfield_required_text {
  display: none !important;
}

/* ==========================================================================
   2. TYPOGRAPHY & HEADER BANNERS
   ========================================================================== */

/* Ensure Proxima Nova & Ek Mukta override defaults */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(h1, h2, h3, h4, .bh-main-heading, .gf-welcome-aboard h2, .step-content p strong, .gfield_label) {
  font-family: "proxima-nova", "Ek Mukta", sans-serif !important;
}

.gform_wrapper.gravity-theme .gfield_label {
  font-weight: 400 !important;
}

.gf-ls-sms-timer, 
.gf-ls-sms-message {
  font-size: 18px;
  font-family: "proxima-nova", "Ek Mukta", sans-serif !important;
  font-weight: 400;
}

.e-con p {
  font-weight: 300 !important;
}

/* Gradient Header for Staff Page */
.bh-main-heading h1 {
  background: linear-gradient(270deg, #FF7A00 0%, #EE275C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  font-weight: 700;
}

/* Header Banner Layout */
.bh-header-banner {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: fit-content;    
  max-width: 100%;
  margin: 0 auto 30px auto !important;
  font-family: inherit;
}

.bh-banner-icon {
  flex: 0 0 auto !important;
  display: flex;
  align-items: center;
}

.bh-banner-icon img,
img.brain-station-head-icon {
  width: auto;
  height: 70px;
  display: block;
  object-fit: contain;
}

img.brain-station-head-icon {
  margin-bottom: 30px;
}

.bh-banner-text {
  flex: 0 1 auto !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  margin-left: 10px;
}

.bh-main-heading {
  margin: 0 !important;
  padding: 0 !important;
  color: #EE275C !important;
  font-size: 36px !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.5px;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.bh-sub-heading {
  margin-top: 4px;
  color: #1E293B !important;
  font-size: 20px !important;
  line-height: 1.2 !important;
  display: none;
}

.gf-welcome-aboard h2 {
  font-size: 5rem;
  margin-bottom: 8px;
  text-align: center;
}

.gf-welcome-aboard p.subtitle {
  font-size: 1.8rem;
  font-weight: 300 !important;
  margin-bottom: 40px;
}

/* ==========================================================================
   3. PROGRESS BAR & PAGE CONTAINERS
   ========================================================================== */

/* Pin Progress Bar to Very Top of Viewport */
:is(#gf_progressbar_wrapper_20, #gf_progressbar_wrapper_21, #gf_progressbar_wrapper_23, #gf_progressbar_wrapper_25, #gf_progressbar_wrapper_27, #gf_progressbar_wrapper_30) {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: auto !important;
  width: 100% !important;
  max-width: min(100%, 100vw) !important;
  max-width: min(100%, 100dvw) !important;
  min-width: 0 !important;
  z-index: 1000 !important;
  margin: 0 !important;
  padding: 0 40px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

:is(html[dir="rtl"], body.rtl) :is(#gf_progressbar_wrapper_20, #gf_progressbar_wrapper_21, #gf_progressbar_wrapper_23, #gf_progressbar_wrapper_25, #gf_progressbar_wrapper_27, #gf_progressbar_wrapper_30) {
  left: auto !important;
  right: 0 !important;
}

:is(#gf_progressbar_wrapper_20, #gf_progressbar_wrapper_21, #gf_progressbar_wrapper_23, #gf_progressbar_wrapper_25, #gf_progressbar_wrapper_27, #gf_progressbar_wrapper_30) .gf_progressbar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  display: block !important;
}

/* Adjust top padding for WordPress Admin Bar */
body.admin-bar :is(#gf_progressbar_wrapper_20, #gf_progressbar_wrapper_21, #gf_progressbar_wrapper_23, #gf_progressbar_wrapper_25, #gf_progressbar_wrapper_27, #gf_progressbar_wrapper_30) {
  top: 32px !important;
}

:is(#gform_20, #gform_21, #gform_23, #gform_25, #gform_27, #gform_30) .gf_progressbar_title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #ee275c !important;
}

.gform_wrapper.gravity-theme :is(#gform_20, #gform_21, #gform_23, #gform_25, #gform_27, #gform_30) .gf_progressbar_percentage {
  height: 10px !important;
}

.gform_wrapper.gravity-theme :is(#gform_20, #gform_21, #gform_23, #gform_25, #gform_27, #gform_30) .gf_progressbar {
  margin-top: 25px;
  margin-bottom: 25px;
}

.gform_wrapper.gravity-theme :is(#gform_20, #gform_21, #gform_23, #gform_25, #gform_27, #gform_30) .gf_progressbar_percentage span {
  display: block;
  background-color: #ee275c !important;
  float: right;
  font-size: 20px;
  font-weight: bold;
  line-height: 50px;
  margin: -20px 0px 0px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  text-align: center;
}

body.rtl .gform_wrapper.gravity-theme :is(#gform_20, #gform_21, #gform_23, #gform_25, #gform_27, #gform_30) .gf_progressbar_percentage span {
  float: left !important;
}

/* Hide Progress Bar for Gravity Forms ID 22 & 29 (Language Forms) */
#gf_progressbar_wrapper_22,
#gf_progressbar_wrapper_29,
#gform_wrapper_22 .gf_progressbar_wrapper,
#gform_wrapper_29 .gf_progressbar_wrapper,
#gform_22 .gf_progressbar_wrapper,
#gform_29 .gf_progressbar_wrapper,
#gform_wrapper_22 .gf_progressbar,
#gform_wrapper_29 .gf_progressbar,
#gform_22 .gf_progressbar,
#gform_29 .gf_progressbar,
#gform_wrapper_22 .gf_progressbar_title,
#gform_wrapper_29 .gf_progressbar_title,
#gform_22 .gf_progressbar_title,
#gform_29 .gf_progressbar_title,
body.page-id-8626 .gf_progressbar_wrapper,
body.page-id-8626 .gf_progressbar,
body.page-id-10848 .gf_progressbar_wrapper,
body.page-id-10848 .gf_progressbar {
  display: none !important;
}

/* Form Container Top Spacing */
:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_body {
  margin-top: 60px !important;
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ==========================================================================
   4. FORM FOOTERS & NAVIGATION BUTTONS
   ========================================================================== */

/* Pin Footers to Bottom Viewport on Desktop (1025px+) (Excludes Form 25) */
@media screen and (min-width: 1025px) {
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform-page-footer, .gform_page_footer, .gform_footer) {
    position: fixed !important;
    bottom: 30px !important;
    left: 0 !important;
    right: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 50px !important;
    box-sizing: border-box !important;
    z-index: 999 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
  }
}

/* Align Next button right on Step 1 (Excludes Form 25) */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30) :is(.gform-page-footer, .gform_page_footer):not(:has(.gform_previous_button)) {
  justify-content: flex-end !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_27, #gform_29, #gform_30) .gform_next_button:only-child {
  margin-left: auto !important;
}

.brain-station-first-btn .gform-page-footer, 
.brain-station-first-btn_wrapper .gform-footer {
  justify-content: end !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform-page-footer, .gform_page_footer, .gform_footer) .gform_previous_button {
  order: 1 !important;
  margin-right: auto !important;
  margin-left: 0 !important;
  float: left !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform-page-footer, .gform_page_footer, .gform_footer) :is(.gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"], [id^="gform_submit_button_"]) {
  order: 2 !important;
  margin-left: auto !important;
  margin-right: 0 !important;
  float: right !important;
}

/* Button Base Styles */
:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) :is(.gform_previous_button, .gform_next_button),
:is(#gform_22, #gform_29) .gform_footer input,
#gform_25 .gform_footer input,
#gform_submit_button_21,
#gform_submit_button_25 {
  background-color: #ee275c;
  color: #fff !important;
  font-size: 16px;
}

/* Float Right for Multi-Step Next Buttons (Excludes Form 25 Submit) */
:is(#gform_submit_button_20, #gform_submit_button_21, #gform_submit_button_22, #gform_submit_button_29, #gform_submit_button_23, #gform_submit_button_27, #gform_submit_button_29, #gform_submit_button_30),
:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_next_button {
  float: right;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_previous_button i {
  margin-right: 6px;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) :is(.gform_next_button, .gform_button) i {
  margin-left: 6px;
  display: inline-block !important;
}

/* Submit Styling for Forms 21 and 22 */
#gform_submit_button_21,
#gform_submit_button_22,
#gform_submit_button_29,
#gform_submit_button_30,
:is(#gform_21, #gform_22, #gform_29) .gform_footer :is(input[type="submit"], button[type="submit"]) {
  background-color: #ee275c !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 1.2em 2.2em !important;
  border: none !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  float: right !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Page 9140 (/brain-station-staff/) & Form 25 Layout and Centered Submit Button */
body.page-id-9140 .elementor-9140 section.elementor-element-9da87c0 {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  align-items: center !important;
  padding: 40px 24px !important;
  box-sizing: border-box !important;
}

body.page-id-9140 .elementor-9140 .elementor-element.elementor-element-e7c1aaa > .elementor-element-populated {
  margin-top: 0 !important;
}

body.page-id-9140 .elementor-9140 .elementor-element.elementor-element-9d335fe {
  width: 100% !important;
  align-self: center !important;
}

body.page-id-9140 #gform_wrapper_25:not([style*="display:none"]):not([style*="display: none"]),
#gform_wrapper_25:not([style*="display:none"]):not([style*="display: none"]) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
  width: 100% !important;
  max-width: 400px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.page-id-9140 #gform_25,
#gform_25 {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
}

body.page-id-9140 #gform_25 .gform_body,
#gform_25 .gform_body {
  display: block !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 24px auto 0 auto !important;
  padding: 0 !important;
}

#gform_25 .gfield,
#gform_25 .ginput_container {
  width: 100% !important;
  max-width: 320px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#input_25_4 {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  text-align: center !important;
  margin: 0 auto !important;
}

body.page-id-9140 #gform_wrapper_25 :is(.gform_footer, .gform-footer),
#gform_wrapper_25 :is(.gform_footer, .gform-footer),
#gform_25 :is(.gform_footer, .gform-footer) {
  position: static !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
  margin: 20px auto 0 auto !important;
  padding: 0 !important;
}

body.page-id-9140 #gform_submit_button_25,
#gform_wrapper_25 #gform_submit_button_25,
#gform_submit_button_25 {
  float: none !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
}

body.page-id-9140 #gform_submit_button_25:is([style*="display: none"], [style*="display:none"]),
#gform_wrapper_25 #gform_submit_button_25:is([style*="display: none"], [style*="display:none"]),
#gform_submit_button_25:is([style*="display: none"], [style*="display:none"]) {
  display: none !important;
}

/* Increase button width for Forms 20 and 27 */
:is(#gform_wrapper_20, #gform_wrapper_27) :is(.gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"]),
#gform_submit_button_20,
#gform_submit_button_27,
#gform_submit_button_30 {
  min-width: 160px !important;
  padding-left: 2.5em !important;
  padding-right: 2.5em !important;
  text-align: center !important;
  justify-content: center !important;
}

/* Button Hover States */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):hover,
#gform_submit_button_21:hover,
#gform_submit_button_22:hover,
  #gform_submit_button_29:hover,
#gform_submit_button_29:hover,
#gform_submit_button_25:hover,
#gform_submit_button_30:hover,
#gform_wrapper_25 :is(.gform_footer, .gform_page_footer) :is(input[type="submit"], button[type="submit"]):hover {
  background-color: #ee275c !important;
  color: #ffffff !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  cursor: pointer !important;
}

/* Universal Disabled Buttons */
.gform_page :is(.gform_next_button:disabled, .gform_next_button.gf-button-disabled) {
  background-color: #ebb7c5 !important;
  color: #666666 !important;
  border-color: #ee275c !important;
  cursor: not-allowed !important;
  opacity: 0.5 !important;
  pointer-events: none !important;
  box-shadow: none !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_next_button[disabled="disabled"] {
  background-color: #e8e8e8 !important;
  display: unset !important;
}

:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gform_next_button.btn-disabled, .gform_next_button:disabled),
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gform_page_footer button[data-conditional-logic="hidden"], .gform_page_footer input[data-conditional-logic="hidden"], .gform_next_button[style*="display: none"]) {
  display: inline-flex !important;
  visibility: visible !important;
  background-color: #cccccc !important;
  border-color: #cccccc !important;
  color: #666666 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
  pointer-events: none !important;
}

:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gform_next_button:disabled:hover, .gform_next_button.btn-disabled:hover) {
  background-color: #cccccc !important;
  color: #666666 !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
}

/* Fixed Elementor Positioning Button (Desktop Only) */
@media screen and (min-width: 1025px) {
  .brain-station-button-position {
    position: fixed;
    top: auto;
    bottom: 30px;
  }
}

.brain-station-button-position .elementor-widget-container {
  display: flex;
  justify-content: end;
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   5. FIELD LAYOUTS, INPUTS & VALIDATION
   ========================================================================== */

/* Field Labels, Text & Alignment */
:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) :is(label.gform-field-label, legend.gform-field-label) {
  font-size: 18px !important;
}

#gform_20 legend.gform-field-label,
#gform_30 legend.gform-field-label,
#gform_21 h1, 
:is(#gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) legend.gform-field-label,
.brain-station-center-text,
.center-text,
:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) legend.gfield_label.gform-field-label {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 40px !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) div:not(.align-left) p {
  text-align: center;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .align-left p {
  text-align: left !important;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gfield_html p {
  font-weight: 700;
}

/* Input Focus States */
:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) :is(input[type=number]:focus, input[type=text]:focus, select:focus) {
  border-color: #ee275c;
  box-shadow: 0 0 4px #ee275c;
}

/* Custom Field Width Utilities */
div#gform_page_21_2, 
div#gform_fields_21_3, 
div#gform_page_20_3 .gform_page_fields {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

fieldset#field_21_13 {
  width: fit-content;
  max-width: min(100%, 600px);
  margin: 0 auto;
}

label#label_21_13_1 {
  max-width: 600px;
  margin: 0 auto;
}

div#gform_fields_22, 
div#gform_fields_29, 
div#field_21_10, 
div#field_21_14 {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  box-sizing: border-box;
}

div.gfield.gfield--type-phone {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gform_wrapper.gravity-theme .gfield-choice-input + label {
  margin: 0px auto;
}

/* Center language selection answer options on both desktop and mobile */
:is(#field_22_3, #field_29_3) .ginput_container {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
}

:is(#field_22_3, #field_29_3) .gfield_radio {
  width: fit-content !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

:is(html[dir="rtl"], body.rtl, .arabic-text) :is(#field_22_3, #field_29_3) .gfield_radio {
  direction: rtl !important;
  align-items: flex-end !important;
}

:is(#field_22_3, #field_29_3) .gchoice {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

:is(#field_22_3, #field_29_3) label.gform-field-label,
label:is(#label_22_3_0, #label_22_3_1, #label_22_3_2, #label_22_3_3, #label_22_3_4, #label_29_3_0, #label_29_3_1, #label_29_3_2, #label_29_3_3, #label_29_3_4) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

div#field_20_52 {
  margin-top: 30px !important;
}

:is(
  #field_20_27, #field_27_27, #field_30_27,
  #field_20_29, #field_27_29, #field_30_29,
  #field_20_30, #field_27_30, #field_30_30,
  #field_20_58, #field_27_58, 
  #field_20_98, #field_27_107, #field_30_98
) :is(legend.gfield_label, p, .gfield_html) {
  max-width: 500px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

:is(#field_20_21, #field_27_21, #field_30_21) legend.gfield_label {
  max-width: 530px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Percentage Width Utility Classes */
[class^='w-'] .ginput_container,
[class*=' w-'] .ginput_container,
[class^='pw-'] .gform_page_fields,
[class*=' pw-'] .gform_page_fields {
  margin: 0 auto;
}
.w-25 .ginput_container, .pw-25 .gform_page_fields { max-width: 25%; }
.w-30 .ginput_container, .pw-30 .gform_page_fields { max-width: 30%; }
.w-40 .ginput_container, .pw-40 .gform_page_fields { max-width: 40%; }
.w-50 .ginput_container, .pw-50 .gform_page_fields { max-width: 50%; }
.w-60 .ginput_container, .pw-60 .gform_page_fields { max-width: 60%; }
.w-75 .ginput_container, .pw-75 .gform_page_fields { max-width: 75%; }

/* Validation & Error Overrides */
div#gfield_instruction_20_3,
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gform_validation_errors, .validation_error, .gform_validation_container) {
  display: none !important;
  height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gfield_error, .gfield_validation_message) {
  background-color: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30) :is(.gfield.field-incomplete input:is([type="text"], [type="number"], [type="email"]), .gfield.field-incomplete select, .gfield.field-incomplete textarea, .gfield.field-incomplete .gchoice) {
  border: 1px solid #d9534f !important;
  border-radius: 4px;
}

:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_30).gravity-theme :is(.gfield_validation_message, .validation_message) {
  background-color: transparent !important;
  color: #a7a7a7 !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 6px !important;
  text-align: center;
}

#gform_wrapper_20 :is(#field_20_3 .gfield_validation_message, #validation_message_20_3) {
  display: block !important;
  color: #a7a7a7 !important;
  margin-top: 6px !important;
  text-align: center !important;
}

.custom-required-notice {
  color: #d9534f;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 6px;
}

/* Custom Error Box */
section:has(div.gf-error.brain-print-email-verification) {
  min-height: 100vh;
  padding: 0px 0px;
}
div.gf-error {
  text-align: center !important;
}
.gf-error h2 {
  font-weight: 700 !important;
  margin-bottom: 20px !important;
}
.gf-error.brain-print-email-verification h2 {
  font-weight: 800 !important;
  margin-bottom: 20px !important;
}
.gf-error p {
  font-weight: normal !important;
  text-align: center !important;
}
.gf-error img {
  max-width: 100px !important;
  margin: 0 auto !important;
}
.gf-error.brain-print-email-verification img {
  max-width: 200px !important;
  margin: 0 auto !important;
  padding-bottom: 100px;
}
.gf-error .button {
  border-radius: 40px;
  background-color: #ee275c;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  font-size: 16px;
  text-decoration: none !important;
  text-transform: uppercase;
  margin: 20px 0px;
}
.gf-error .button:is(:hover, :active, :focus),
.gf-error .button:is(:hover, :active, :focus) * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
.gf-error :is(.small-text, .small-text a) {
  color: #a7a7a7 !important;
  font-size: 15px !important;
}
label[for="brain-print-email"],
label[for="brain-followup-email"] {
  display: none;
}

/* ==========================================================================
   6. RADIO & CHECKBOX CUSTOM UI
   ========================================================================== */

:is(.choice-cards, .choice-buttons) .gfield-choice-input {
  display: none !important;
}

/* Button Choice Style */
.choice-buttons .gfield-choice-input + label {
  max-width: 100% !important;
  margin: 0 !important;
}

.choice-buttons label.gform-field-label {
  display: flex !important;
  align-items: center;
  padding: 6px 6px;
  border: 0;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  font-weight: 500;
}

.choice-buttons label.gform-field-label::before {
  content: '';
  display: inline-block;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 3px solid #ee275c;
  margin: 0 14px;
  background-color: #fff;
  transition: all 0.2s ease;
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 24px;
  color: transparent;
  text-align: center;
  line-height: 34px;
}

.choice-buttons .gfield_checkbox .gf-disabled label.gform-field-label::before {
  opacity: 0.5;
}

.choice-buttons input:is([type='checkbox'], [type='radio']):checked + label.gform-field-label {
  border-color: #ee275c;
  color: #ee275c;
}

.choice-buttons input:is([type='checkbox'], [type='radio']):checked + label.gform-field-label::before {
  content: '\f00c';
  color: #ee275c;
  border-color: #ee275c;
}

/* Card Choice Style */
.choice-cards .gfield-choice-input + label {
  max-width: 100% !important;
}

.choice-cards .gfield_radio {
  display: flex;
  align-items: stretch;
  justify-content: center;
  border: 2px solid #ee275c;
  border-radius: 8px;
}

.choice-cards .gchoice {
  flex: 1;
  border-right: 2px solid #ee275c;
}

body.rtl .choice-cards .gchoice:first-child,
body:not(.rtl) .choice-cards .gchoice:last-child {
  border-right: none !important;
}

.choice-cards label.gform-field-label {
  display: block;
  height: 100% !important;
  cursor: pointer;
  transition: all 0.25s ease-in-out;
  font-weight: 500;
  text-align: center;
  padding: 20px;
}

.choice-cards label.gform-field-label::before {
  content: 'i';
  display: block;
  text-align: center;
  padding: 20px 0px 40px 0px;
  transition: all 0.2s ease;
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
  font-weight: 400;
  font-size: 60px;
  color: #ee275c;
}

.choice-cards input[type='radio']:checked + label.gform-field-label {
  background-color: #f9901d;
  color: #fff;
}

.choice-cards input[type='radio']:checked + label.gform-field-label::before {
  color: #fff;
}

/* Inline Fields (BMI Question - Height and Weight fields) */
.gfield.inline {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 28px !important;
  width: 100% !important;
  max-width: 475px !important; /* Default (English, Chinese, Arabic): 475px for optimal gap */
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Vietnamese: longer label text requires 650px container for perfect spacing */
:is(html[lang^="vi"], body.vi, body.is-vi-lang, .is-vi-lang, .is-vi-selected) .gfield.inline {
  max-width: 650px !important;
}

/* Chinese Simplified & Traditional: 475px */
:is(html[lang*="zh"], body.zh-CN, body.zh-TW, body.is-zh-lang, .is-zh-lang, .is-zh-selected) .gfield.inline {
  max-width: 475px !important;
}

/* Arabic: RTL text width */
:is(html[lang="ar"], body.ar, body.is-ar-lang, .is-ar-lang, .is-ar-active, .is-ar-selected, body.rtl, html[dir="rtl"], [dir="rtl"]) .gfield.inline {
  max-width: 475px !important;
}

.gfield.inline label.gform-field-label {
  flex: 1 1 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  font-size: 16px !important;
  color: #333333 !important;
}

:is(html[dir="rtl"], body.rtl, .arabic-text, .is-ar-active, .is-ar-lang, html[lang="ar"]) .gfield.inline label.gform-field-label {
  text-align: right !important;
}

.gfield.inline .ginput_container {
  flex: 0 0 115px !important;
  width: 115px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
}

.gfield.inline .ginput_container input {
  width: 100% !important;
  max-width: 115px !important;
  height: 42px !important;
  text-align: center !important;
  box-sizing: border-box !important;
  border-radius: 8px !important;
}

/* Medical Condition Checkbox Rows */
:is(.has-multiple-checkbox, #gform_page_30_1) .gform_fields {
  row-gap: 0px !important;
}

:is(.has-multiple-checkbox, #gform_page_30_1) .gform_fields div.gfield--type-html:nth-child(2),
:is(#field_20_109, #field_27_109, #field_30_109) {
  margin-bottom: 20px !important;
}

:is(.has-multiple-checkbox, #gform_page_30_1) .gform_fields div.gfield--type-html:last-child,
:is(#field_20_98, #field_27_107, #field_30_98) {
  margin-top: 30px !important;
}

:is(.has-multiple-checkbox, #gform_page_30_1) :is(.ginput_container, .ginput_container_checkbox) {
  max-width: 35%;
  margin-left: auto;
  margin-right: auto;
}

#field_30_1 {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
}

/* Mood Icons (Form 20, 21, 23, 25, 27, 30 and structural fallback) */
.choice-cards label:is(#label_20_28_0, #label_21_28_0, #label_23_28_0, #label_25_28_0, #label_27_28_0, #label_30_28_0).gform-field-label::before,
.choice-cards .gchoice:nth-of-type(1) label.gform-field-label::before { content: '\f599'; }
.choice-cards label:is(#label_20_28_1, #label_21_28_1, #label_23_28_1, #label_25_28_1, #label_27_28_1, #label_30_28_1).gform-field-label::before,
.choice-cards .gchoice:nth-of-type(2) label.gform-field-label::before { content: '\f118'; }
.choice-cards label:is(#label_20_28_2, #label_21_28_2, #label_23_28_2, #label_25_28_2, #label_27_28_2, #label_30_28_2).gform-field-label::before,
.choice-cards .gchoice:nth-of-type(3) label.gform-field-label::before { content: '\f11a'; }
.choice-cards label:is(#label_20_28_3, #label_21_28_3, #label_23_28_3, #label_25_28_3, #label_27_28_3, #label_30_28_3).gform-field-label::before,
.choice-cards .gchoice:nth-of-type(4) label.gform-field-label::before { content: '\f119'; }

/* ==========================================================================
   7. CARD GROUPS, SPINNERS & SPECIAL CARDS
   ========================================================================== */

/* Dynamic Score Display */
.display-score-card {
  text-align: center;
  margin-top: 40px;
}

.display-score-card span {
  font-weight: bold;
  font-size: 28px;
}

.survey-grey-text {
  color: #757575;
  font-style: italic;
}

/* Custom Spinner Controls */
.custom-spinner-wrapper {
  display: inline-flex;
  align-items: center;
}

.spinner-btn {
  background: #eee;
  border: 1px solid #ccc;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
}

.spinner-btn.minus {
  border-radius: 4px 0 0 4px;
  border-right: none;
  position: relative;
  left: 10px;
}

.spinner-btn.plus {
  border-radius: 0 4px 4px 0;
  border-left: none;
  position: relative;
  right: 10px;
}

.custom-spinner-wrapper input[type='number'] {
  border-radius: 0;
  text-align: center;
  width: 70px;
  -moz-appearance: textfield;
}

.custom-spinner-wrapper input::-webkit-outer-spin-button,
.custom-spinner-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Card Groups Layout */
.gform_page.card-group .gform_fields {
  display: flex;
  flex-wrap: wrap;
}

.gform_page.card-group .gfield.gfield_html {
  flex: 0 0 100%;
}

.gform_page.card-group .gfield:not(.gfield_html) {
  flex: 1;
  text-align: center;
}

.gform_page.card-group.alcohol .gfield_description.instruction {
  display: none;
}

.gform_page.card-group.alcohol .gfield input.large {
  width: 70px;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  border: none !important;
  padding: 8px 8px 8px 15px !important;
}

.gform_page.card-group.alcohol .gform_fields button {
  background: none;
  border: none;
  color: #ee275c;
  font-size: 30px !important;
  box-shadow: none !important;
}

.gform_page.card-group.alcohol .is-spinner .gfield_description {
  padding: 0px !important;
}

.gform_page.card-group.alcohol .gfield {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.gform_page.card-group .gfield.gfield_html p {
  text-align: center;
  display: block;
  width: 100%;
}

.gform_page.card-group.alcohol .gfield :is(label, div) {
  flex: 1 1 100%;
  align-items: top;
}

.gform_page.card-group.alcohol .gfield label {
  order: 1;
  min-height: 60px;
}

.gform_page.card-group.alcohol .gfield_description span {
  font-size: 40px;
  color: #f9901d;
  font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
}

:is(#field_20_66, #field_27_66, #field_30_66) .gform-field-label__text::after {
  content: "(e.g. G&T, alcopop, spritzer)";
  display: block;
  margin-top: 4px;
  font-size: 0.8em;
  color: #757575;
  font-style: italic;
}

/* Horizontal Centering for Card Groups (Forms 22, 25 & 27) */
:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group:not(.alcohol) .gform_fields {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center; 
  align-items: stretch;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group:not(.alcohol) .gfield {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;     
  text-align: center !important;      
  justify-content: flex-start;
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group :is(.gfield_label, .gfield_description) {
  text-align: center !important;
  width: 100% !important;
}

.gform_page.card-group .gfield_description svg {
  max-height: 80px !important;
  fill: #F9901D !important;
  color: #F9901D !important;
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group .gfield_radio {
  display: flex !important;
  flex-direction: row !important;      
  justify-content: center !important;  
  align-items: stretch !important;     
  gap: 16px !important;                
  width: 100% !important;
  max-width: 450px;                    
  margin-top: 12px;
  margin-left: auto !important;
  margin-right: auto !important;
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group .gchoice {
  flex: 1 1 0% !important;             
  min-width: 100px !important;         
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;                
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group .gchoice input[type="radio"] {
  float: none !important;
  margin: 0 !important;
  position: static !important;
  flex-shrink: 0 !important;           
}

:is(#gform_22, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group .gchoice label {
  width: auto !important;
  max-width: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;                 
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* Consent Box & Download Card Styling */
.pdf-download-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 32px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
  margin: 50px auto 15px;
  gap: 20px;
}

.pdf-card-content {
  flex: 1;
}

.pdf-card-tag {
  color: #e60067;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.pdf-card-title {
  color: #2d3748;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px 0 !important;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.pdf-card-description {
  color: #4a5568;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 16px 0 !important;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.consent-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #e60067;
  cursor: pointer;
  flex-shrink: 0;
}

.consent-text {
  color: #2d3748;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 400;
}

.pdf-inline-link {
  color: #e60067 !important;
  font-weight: 700;
  text-decoration: underline !important;
  transition: color 0.2s ease;
}

.pdf-inline-link:hover {
  color: #c40057 !important;
}

/* Reset Link & Popups */
.brain-station-reset-link .elementor-widget-container,
.brain-station-reset-link .elementor-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.brain-station-reset-link :is(a, .elementor-icon, .elementor-heading-title) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: auto !important;
}

@media screen and (min-width: 1025px) and (min-height: 601px) {
  .elementor .brain-station-reset-link,
  .brain-station-reset-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: auto;
    bottom: 30px;
    left: 0;
    right: 0;
    width: 100%;
    min-height: 54px;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none;
    z-index: 99999;
  }
}

@media screen and (max-width: 1024px),
       screen and (max-height: 600px) {
  .elementor-widget:has(.gform_wrapper):has(~ .brain-station-reset-link),
  .brain-station-button-position:has(~ .brain-station-reset-link) {
    margin-bottom: 0 !important;
  }

  .elementor .brain-station-reset-link,
  .brain-station-reset-link,
  .elementor-element.brain-station-reset-link {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    overflow: visible !important;
    margin: 0 auto !important;
    padding: 0 !important;
    transform: translateY(calc(-1 * max(24px, env(safe-area-inset-bottom)) - 22px));
    pointer-events: none;
    z-index: 99999;
  }
}

@media screen and (max-width: 480px) {
  .elementor .brain-station-reset-link,
  .brain-station-reset-link {
    transform: translateY(calc(-1 * max(24px, env(safe-area-inset-bottom)) - 20px));
  }

  .brain-station-reset-link .elementor-icon {
    font-size: 40px;
  }
}

.brain-station-reset-field input {
  margin-bottom: 20px;
}

.brain-station-reset-field input:focus {
  border-color: #ee275c !important;
  box-shadow: 0 0 4px #ee275c !important;
}

/* SMS Verification */
#gform_21 :is(.gform_next_button:disabled, .gf-ls-sms-verification button:disabled) {
  display: none !important;
}

.gf-ls-sms-verification {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  text-align: center !important;
}

.gf-ls-sms-code-wrap {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  box-sizing: border-box;
}

.gf-ls-sms-verification .gf-ls-sms-code {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px !important;
}

.gf-ls-sms-verification button {
  display: inline-block !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  margin-bottom: 20px !important;
}

.gf-ls-sms-verification :is(.gf-ls-sms-timer, .gf-ls-sms-message) {
  margin-bottom: 6px !important;
}

.gf-ls-sms-verification :is(.button.gf-ls-send-code, .button.gf-ls-verify-code):is(:hover, :focus) {
  background-color: #FDD755 !important;
  color: #000131 !important;
  opacity: 1 !important;
  box-shadow: none !important;
  transform: none !important;
  filter: none !important;
  transition: none !important;
  cursor: pointer !important;
}

.gf-ls-sms-verification .gf-ls-sms-resend:disabled:hover {
  background-color: transparent !important;
  color: #a7a7a7 !important;
  opacity: 0.5 !important;
  transform: none !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   8. PROCESS STEPS & RTL MULTI-LANGUAGE
   ========================================================================== */

.ele-step-container .e-con > * {
  position: relative !important;
  z-index: 1 !important;
}

.step-content {
  margin-top: 15px;
}

/* RTL Specific Configuration for Arabic */
:is(.gfield, .ginput_container):has(.arabic-card),
.pdf-download-card.arabic-card {
  direction: rtl !important;
  text-align: right !important;
}

.arabic-card .consent-label {
  display: flex !important;
  flex-direction: row !important;
  justify-content: flex-start !important;
  align-items: flex-start !important;
  gap: 12px !important;
  direction: rtl !important;
  text-align: right !important;
}

.arabic-card .check-icon {
  flex-shrink: 0;
  margin-top: 0 !important; /* Overrides inline margin-top: 2px */
  transform: translateY(-1px) scaleX(-1) !important; /* Moves up 2px while maintaining reversed check flip */
  flex-shrink: 0 !important;
}

.arabic-card .consent-text {
  line-height: 1.5;
}

:is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30, .arabic-text div:not(.align-left)) .arabic-text p:not(.subtitle) {
  text-align: right !important;
}

.arabic-text p.subtitle {
  text-align: center !important;
}

.arabic-text :is(.ele-step-container, .ele-step-container > .e-con-inner) {
  direction: rtl !important;
}

/* =========================================================================
   RTL / ARABIC BUTTON LAYOUT & CORRESPONDING CHEVRONS
   Applied ONLY when Arabic is chosen across Language Forms (22, 29) & Live Survey:
   - Next / Submit button moves to the LEFT with chevron pointing LEFT (<)
   - Previous / Back button moves to the RIGHT with chevron pointing RIGHT (>)
   ========================================================================= */

/* Ensure chevrons are visible inside button footers across all forms */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30) :is(.gform_page_footer, .gform-page-footer, .gform_footer) i {
  display: inline-block !important;
}

/* Ensure button footer maintains standard order across all languages (Back on left, Next on right) */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30) :is(.gform_page_footer, .gform-page-footer, .gform_footer) {
  display: flex !important;
  direction: ltr !important;
  justify-content: space-between !important;
  align-items: center !important;
}

/* Multi-language Subtitles for Field 20 Question 66 */
:is(html[lang="ar"], body.ar, .is-ar-selected) :is(#field_20_66, #field_27_66, #field_30_66) .gform-field-label__text::after {
  content: "(ن والتونيك، المشروبات الكحولية، والمشروبات الفوّارة المخلوطة بالكحول)" !important;
}

/* Hide/clear the subtitle for Simplified Chinese, Traditional Chinese, and Vietnamese */
:is(
  html[lang^="zh"], 
  html[lang^="vi"], 
  body.zh-CN, 
  body.zh-TW, 
  body.vi, 
  .is-zh-selected, 
  .is-vi-selected
) :is(#field_20_66, #field_27_66, #field_30_66) .gform-field-label__text::after {
  content: "" !important;
  display: none !important;
}

/* ==========================================================================
   9. MEDIA QUERIES
   ========================================================================== */

/* Desktop Layout (1025px+) */
@media (min-width: 1025px) {
  .ele-step-container,
  .ele-step-container > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .ele-step-container .e-con,
  .ele-step-container > .e-con-inner > .e-con {
    width: 23% !important;
    max-width: 23% !important;
    position: relative !important;
    overflow: visible !important;
  }

  .ele-step-container .e-con:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 34px !important; 
    left: 47% !important; 
    width: 50% !important; 
    border-top: 3px dotted #cbd5e1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  .arabic-text .ele-step-container .e-con:not(:last-child)::after {
    left: auto !important;
    right: calc(50% + 30px) !important;
    width: calc(100% - 10px) !important;
  }
}

/* Desktop Connectors (1024px+) */
@media screen and (min-width: 1024px) {
  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con:nth-child(-n+3)::after {
    content: '' !important;
    position: absolute !important;
    top: 40px !important;              
    left: auto !important;             
    right: 54% !important;             
    width: 50% !important;             
    border-top: 3px dotted #cbd5e1 !important;
    border-left: none !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }

  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con:last-child::after {
    display: none !important;
  }
}
 
@media screen and (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con:nth-child(-n+3)::after {
    left: -2% !important; 
  }
}

/* Tablet Landscape (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) and (orientation: landscape) {
  .ele-step-container,
  .ele-step-container > .e-con-inner {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    gap: 20px !important;
    overflow: visible !important;
  }

  .ele-step-container .e-con,
  .ele-step-container > .e-con-inner > .e-con {
    width: 23% !important;
    max-width: 23% !important;
    position: relative !important;
    overflow: visible !important;
  }

  .ele-step-container .e-con:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 34px !important; 
    left: 52% !important; 
    width: 50% !important; 
    border-top: 3px dotted #cbd5e1 !important;
    z-index: 1 !important;
    pointer-events: none !important;
  }
}

/* Mobile and tablet root canvas & overflow protection across all survey pages */
@media screen and (max-width: 1024px) {
  html:has(body:is(.page-id-8626, .page-id-8747, .page-id-9140, .page-id-9231, .page-id-10840, .page-id-10848, .page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610)),
  html:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) {
    background-color: #ffffff !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
  }

  body:is(.page-id-8626, .page-id-8747, .page-id-9140, .page-id-9231, .page-id-10840, .page-id-10848, .page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610),
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) {
    position: relative !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    height: auto !important;
    background-color: #ffffff !important;
    overflow-x: hidden !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  :is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30),
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_body {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30),
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_page {
    position: relative !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform_page_fields, .gform_fields, .gfield, .ginput_container) {
    min-width: 0 !important;
    box-sizing: border-box !important;
    align-items: baseline;
  }

  body:is(.page-id-8626, .page-id-9140, .page-id-9231, .page-id-10848, .page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) :is(#page, .site, .site-container, .site-inner, .site-content, .entry-content, .elementor, .elementor-section, .elementor-container),
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) :is(#page, .site, .site-container, .site-inner, .site-content, .entry-content, .elementor, .elementor-section, .elementor-container) {
    background-color: #ffffff !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    /*overflow-x: clip !important;*/
    overflow-y: visible !important;
  }

  /* Explicitly prevent reset button widget from inheriting 100% min-height */
  :is(.elementor .brain-station-reset-link, .brain-station-reset-link, .elementor-element.brain-station-reset-link) {
    min-height: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
  }

  body:is(.page-id-8626, .page-id-10848) :is(#page, .site, .site-container, .site-inner, .site-content, .entry-content),
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) :is(#page, .site, .site-container, .site-inner, .site-content, .entry-content) {
    background-color: #ffffff !important;
  }

  body:is(.page-id-8626, .page-id-10848) .site-inner,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .site-inner {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    background-color: #ffffff !important;
  }

  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) {
    overflow: visible !important;
    height: auto !important;
    padding-bottom: 20px !important;
  }

  body.page-id-9140 .elementor-9140 .elementor-element.elementor-element-3e902bf {
    --lottie-container-max-width: min(32%, 180px) !important;
    margin-bottom: 12px !important;
  }

  body.page-id-9140 .elementor-9140 .bh-main-heading h1 {
    font-size: clamp(28px, 5vw, 44px) !important;
    line-height: 1.2 !important;
  }

  body.page-id-9140 .elementor-9140 .elementor-element.elementor-element-a048e79 {
    max-width: 600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.page-id-9231 .elementor-9231 section.elementor-element-9da87c0 {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  body.page-id-9231 .elementor-9231 .elementor-element.elementor-element-e7c1aaa > .elementor-element-populated {
    padding: 36px 32px !important;
    box-sizing: border-box !important;
  }

  body.page-id-9231 .elementor-9231 .elementor-element.elementor-element-9d335fe {
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Page 8747 & 10840 (/brain-station-start/ & /brain-station-demo-start/): allow scrolling when content exceeds viewport */
  body:is(.page-id-8747, .page-id-10840) section.elementor-element-9da87c0 {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
  }

  body:is(.page-id-8747, .page-id-10840) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-8747, .page-id-10840) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    height: auto !important;
    /*min-height: 100% !important;*/
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: visible !important;
  }

  /* Page 8626 & 10848 (/brain-station-language/ & /brain-station-demo-language/): override Elementor landscape -100px top margin */
  body:is(.page-id-8626, .page-id-10848) :is(.elementor-8626, .elementor-10848) .elementor-element.elementor-element-e7c1aaa > .elementor-element-populated {
    margin: 0 auto !important;
    margin-top: 0 !important;
    padding-top: 24px !important;
  }

  /* Section 9da87c0: Ensure full-height minimum while allowing natural scrolling across all survey & landing pages */
  body:is(.page-id-8747, .page-id-10840, .page-id-8626, .page-id-10848, .page-id-9231, .page-id-9140, .page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610, .page-id-10445) section.elementor-element-9da87c0,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) section.elementor-element-9da87c0,
  section.elementor-element-9da87c0 {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
  }

  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610, .page-id-10445) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610, .page-id-10445) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    height: auto !important;
    min-height: 100% !important;
    justify-content: flex-start !important;
    align-content: flex-start !important;
    align-items: stretch !important;
    overflow: visible !important;
  }
}

/* Tablet Portrait (768px to 1023px) */
@media screen and (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .ele-step-container .e-con .step-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    flex: 1 !important;
    text-align: left !important;
  }

  .ele-step-container .e-con .step-content p {
    margin-top: 0 !important;
    margin-bottom: 4px !important;
    text-align: left !important;
  }

  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con .step-content {
    align-items: flex-start !important;
    text-align: right !important;
  }

  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con .step-content p {
    text-align: right !important;
  }
  
  .ele-step-container,
  .ele-step-container > .e-con-inner {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
    position: relative !important;
    overflow: visible !important;
  }

  .ele-step-container .e-con,
  .ele-step-container > .e-con-inner > .e-con {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    overflow: visible !important;
    text-align: left !important;
  }

  .ele-step-container .e-con :is(h2, h3, p) {
    text-align: left !important;
    margin-left: 0 !important;
  }

  .ele-step-container .e-con :is(.elementor-widget-image, img) {
    flex: 0 0 80px !important;
    width: 80px !important;
    height: 80px !important;
    object-fit: contain !important;
    position: relative !important;
  }

  .ele-step-container .step-2::before {
    display: none !important;
  }

  .ele-step-container .e-con:not(:last-child)::after {
    content: '' !important;
    position: absolute !important;
    top: 92px !important;                 
    left: 50px !important;                
    transform: translateX(-50%) !important;
    width: 0 !important;
    height: 40px !important;              
    border-left: 3px dotted #cbd5e1 !important;
    border-top: none !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gform_fields {
    display: flex !important;
    align-items: flex-start !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gfield {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
  }

  :is(#field_20_66, #field_21_66, #field_23_66, #field_25_66, #field_27_66, #field_30_66) label.gfield_label.gform-field-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin-top: 0 !important;
  }

  :is(#field_20_66, #field_27_66, #field_30_66) label.gfield_label.gform-field-label .gform-field-label__text::after {
    content: "(e.g. G&T, alcopop, spritzer)";
    display: block;
    margin-top: 4px;
    font-size: 0.8em;
    color: #757575;
    font-weight: 400;
    text-align: center;
  }

  .p-50 .ginput_container {
    max-width: 50%;
  }

  /* RTL Tablet Portrait Overrides */
  :is(html[dir="rtl"], body.rtl) .ele-step-container :is(&, > .e-con-inner >) .e-con {
    flex-direction: row-reverse !important; 
    text-align: right !important;
  }

  :is(html[dir="rtl"], body.rtl) .ele-step-container .e-con :is(h2, h3, p) {
    text-align: right !important;
    margin-right: 0 !important;
    margin-left: initial !important;
  }

  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con:not(:last-child)::after {
    left: auto !important;
    right: 48px !important;               
    transform: translateX(50%) !important;
    top: 90px !important;                 
    width: 0 !important;
    height: 40px !important;              
    border-left: 3px dotted #cbd5e1 !important;
    border-top: none !important;
    z-index: 0 !important;
    pointer-events: none !important;
  }

  .arabic-text .ele-step-container :is(.e-con:nth-child(1)::after, .e-con:nth-child(3)::after) {
    left: auto !important;
    right: calc(30% + 30px) !important;
    width: calc(40% + 20px) !important;
  }

  .arabic-text .ele-step-container .step-2::before {
    right: auto !important;
    left: 50% !important;
    transform: scaleX(-1);
  }
}

/* Size between 768px and 853px */
@media (min-width: 768px) and (max-width: 853px) {
  .ele-step-container,
  .ele-step-container > .e-con-inner {
    gap: 60px !important;
  }
}

/* Size between 834px and 853px */
@media (min-width: 834px) and (max-width: 853px) {
  .ele-step-container .e-con:not(:last-child)::after {
    left: 80%!important;
  }
  :is(html[dir="rtl"], body.rtl, .arabic-text) .ele-step-container .e-con:nth-child(-n+3)::after {
    left: -30%!important;
  }
}


/* Mobile & Small Screen Media Queries */
@media (max-width: 999px) {
  :is(.pw-25, .pw-30, .pw-40, .pw-50, .pw-60, .pw-75) .gform_page_fields {
    max-width: 100%;
  }
}

/* Center and size .choice-buttons selections across all screens (desktop, tablet, mobile) */
fieldset.gfield.choice-buttons,
.gfield.choice-buttons {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.gfield.choice-buttons .ginput_container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  justify-content: center !important;
}

.gfield.choice-buttons :is(.gfield_radio, .gfield_checkbox) {
  width: fit-content !important;
  max-width: min(100%, 420px) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.gfield.choice-buttons .gchoice {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  list-style: none !important;
}

.gfield.choice-buttons label.gform-field-label {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 6px 0 !important;
  text-align: left !important;
}

.gfield.choice-buttons label.gform-field-label::before {
  margin: 0 14px 0 0 !important;
  flex-shrink: 0 !important;
}

/* Multi-field checkbox pages: keep a shared centered column width so circles align vertically */
.has-multiple-checkbox .gfield.choice-buttons .ginput_container,
#gform_page_30_1 .gfield.choice-buttons .ginput_container,
#gform_page_30_1 .ginput_container_checkbox {
  width: 100% !important;
  max-width: 300px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  display: block !important;
}

.has-multiple-checkbox .gfield.choice-buttons :is(.gfield_checkbox, .gfield_radio),
#gform_page_30_1 :is(.gfield_checkbox, .gfield_radio) {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* RTL support for .choice-buttons */
:is(html[dir="rtl"], body.rtl, .arabic-text) .gfield.choice-buttons :is(.gfield_radio, .gfield_checkbox) {
  direction: rtl !important;
}

:is(html[dir="rtl"], body.rtl, .arabic-text) .gfield.choice-buttons label.gform-field-label {
  text-align: right !important;
}

:is(html[dir="rtl"], body.rtl, .arabic-text) .gfield.choice-buttons label.gform-field-label::before {
  margin: 0 0 0 14px !important;
}

@media (max-width: 800px) {
  .w-25 .ginput_container,
  .pw-25 .gform_page_fields {
    max-width: 40%;
  }
  :is(.has-multiple-checkbox, #gform_page_30_1) :is(.ginput_container, .ginput_container_checkbox) {
    max-width: 53%;
  }
}

@media (max-width: 767px) {
  .ele-step-container {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
  }

  .ele-step-container :is(.e-con::after, .step-2::before) {
    display: none !important;
  }

  .gfield.choice-buttons :is(.gfield_radio, .gfield_checkbox) {
    max-width: min(100%, 300px) !important;
  }

  .has-multiple-checkbox .gfield.choice-buttons .ginput_container,
  #gform_page_30_1 .gfield.choice-buttons .ginput_container,
  #gform_page_30_1 .ginput_container_checkbox {
    max-width: 280px !important;
  }

  body.page-id-9140 .elementor-9140 section.elementor-element-9da87c0 {
    padding: 32px 20px !important;
  }

  body.page-id-9140 .elementor-9140 .elementor-element.elementor-element-3e902bf {
    --lottie-container-max-width: min(45%, 140px) !important;
  }

  body.page-id-9231 .elementor-9231 .elementor-element.elementor-element-e7c1aaa > .elementor-element-populated {
    padding: 24px 20px !important;
  }

  #gform_21 .gform_body {
    margin-top: 24px !important;
  }
}

@media (max-width: 600px) {
  .bh-main-heading {
    font-size: 28px !important;
  }
  .bh-sub-heading {
    font-size: 16px !important;
  }
  .bh-banner-icon img {
    width: 60px;
  }
}

/* ==========================================================================
   RESPONSIVE SURVEY NAVIGATION BUTTONS (MOBILE LANDSCAPE & PORTRAIT)
   ========================================================================== */

/* Landscape & Short Viewport Behavior (Start Pages, Language Pages & Survey Pages)
   - Elements remain at their standard sizes (no shrinking of icons, field inputs, or answer options)
   - Content maintains centered alignment and scrolls naturally top-to-bottom without clipping */
@media screen and (max-height: 600px),
       screen and (max-width: 1024px) and (orientation: landscape) {
  /* Page 8747 & 10840 (Start pages): Maintain centered alignment and allow natural vertical scroll */
  body:is(.page-id-8747, .page-id-10840) section.elementor-element-9da87c0 {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px 20px !important;
    box-sizing: border-box !important;
  }

  body:is(.page-id-8747, .page-id-10840) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-8747, .page-id-10840) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    height: auto !important;
    min-height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    overflow: visible !important;
  }

  body:is(.page-id-8747, .page-id-10840) .elementor-element.elementor-element-94e368f {
    margin-top: 16px !important;
    margin-bottom: 20px !important;
  }

  /* Page 8626 & 10848 (Language pages): Allow natural scrolling without shrinking */
  body:is(.page-id-8626, .page-id-10848) section.elementor-element-9da87c0,
  body:is(.page-id-8626, .page-id-10848) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-8626, .page-id-10848) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  /* All Survey Pages (Page 10784, 8443, 8545, 9260, 9265, 8610 & Form Wrappers): Allow natural top-to-bottom scroll */
  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) section.elementor-element-9da87c0,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) section.elementor-element-9da87c0 {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    overflow-x: clip !important;
    overflow-y: visible !important;
    padding-top: max(16px, env(safe-area-inset-top)) !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    padding-left: max(16px, env(safe-area-inset-left)) !important;
    padding-right: max(16px, env(safe-area-inset-right)) !important;
  }

  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap,
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    height: auto !important;
    min-height: 100% !important;
    overflow: visible !important;
  }

  /* Survey progress bar top margin */
  :is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30) .gform_body {
    margin-top: 24px !important;
  }

  /* Ensure footer buttons stay reachable by scroll in natural flow */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30, #gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30, .gform_wrapper:not(#gform_wrapper_25)) :is(.gform-page-footer, .gform_page_footer, .gform_footer),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform_footer, .gform-page-footer, .gform_page_footer),
  .brain-station-button-position {
    padding-top: 20px !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    margin-top: 20px !important;
  }
}

@media screen and (max-height: 600px) {
  body:has(:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    margin-top: 5px;
  }
}

/* Full-Height Survey Layout: Stretch view down to bottom of viewport near footer
   Buttons sit at the bottom of the viewport in natural document flow (position: relative).
   Inactive pages stay strictly hidden to prevent multiple buttons.
   Layout: Back on the left, Next/Submit on the right */
@media screen and (max-width: 1024px),
       screen and (max-height: 600px) {
  /* Full-Height Survey Containers */
  :is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30, .gform_wrapper:not(#gform_wrapper_25)),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) {
    min-height: calc(100vh - 80px) !important;
    min-height: calc(100dvh - 80px) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 0 !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) form {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-bottom: 0 !important;
  }

  /* CRITICAL: Inactive Gravity Forms pages must ALWAYS remain hidden */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_page:is([style*="none"], [style*="hidden"], [aria-hidden="true"], .hidden),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) .gform_page:is([style*="none"], [style*="hidden"], [aria-hidden="true"], .hidden),
  .gform_wrapper .gform_page:is([style*="none"], [style*="hidden"], [aria-hidden="true"], .hidden) {
    display: none !important;
  }

  /* ONLY the active page stretches full height */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_page:not([style*="none"]):not([style*="hidden"]):not([aria-hidden="true"]):not(.hidden),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) .gform_page:not([style*="none"]):not([style*="hidden"]):not([aria-hidden="true"]):not(.hidden) {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
    min-height: 100% !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: space-between !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_page_fields {
    flex: 1 1 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /*align-items: center !important;
    margin-top: auto !important;
    margin-bottom: auto !important;*/
    min-height: 0 !important;
  }

  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) .gform_page_fields {
    flex: 1 1 auto !important;
    max-width: 1120px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    /*align-items: center !important;
    margin-top: auto !important;
    margin-bottom: auto !important;*/
    min-height: 0 !important;
    margin: 0 auto;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_fields {
    width: 100% !important;
    max-width: 100% !important;
    margin-top: auto !important;
    margin-bottom: auto !important;
  }

  /* Form 30 & Survey Pages: Prevent content from moving up on 1024px and below; questions and answers stay centered in the middle of the window */
  body:has(:is(#gform_wrapper_30, #gform_wrapper_20, #gform_wrapper_27)) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) .elementor-element.elementor-element-9da87c0 > .elementor-container,
  body:has(:is(#gform_wrapper_30, #gform_wrapper_20, #gform_wrapper_27)) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap,
  body:is(.page-id-10784, .page-id-8443, .page-id-8545, .page-id-9260, .page-id-9265, .page-id-8610) .elementor-element.elementor-element-9da87c0 .elementor-widget-wrap {
    justify-content: center !important;
    align-content: center !important;
  }

  /* Anchored Footer at Bottom of Viewport (Near the footer / bottom edge) */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30, #gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30, .gform_wrapper:not(#gform_wrapper_25)) :is(.gform-page-footer, .gform_page_footer, .gform_footer),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform_footer, .gform-page-footer, .gform_page_footer),
  .brain-station-button-position {
    position: relative !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    float: none !important;
    clear: both !important;
    margin-top: auto !important;
    padding-top: 35px !important;
    margin-bottom: 0 !important;
    padding-bottom: max(24px, env(safe-area-inset-bottom)) !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 10 !important;
  }

  /* When only Next/Submit button exists (no Previous button), push footer items to right */
  :is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30, .gform_wrapper:not(#gform_wrapper_25)) :is(.gform-page-footer, .gform_page_footer, .gform_footer):not(:has(.gform_previous_button:not([style*="none"]))),
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform-page-footer, .gform_page_footer, .gform_footer):not(:has(.gform_previous_button:not([style*="none"]))),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform_footer, .gform-page-footer, .gform_page_footer):not(:has(.gform_previous_button:not([style*="none"]))),
  .brain-station-first-btn .gform-page-footer,
  .brain-station-first-btn_wrapper .gform-footer {
    justify-content: flex-end !important;
  }

  /* Back button on the left */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) .gform_previous_button,
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) .gform_previous_button {
    order: 1 !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    /*padding: 0.9em 1.6em !important;
    font-size: 16px !important;*/
    float: left !important;
    margin: 0 !important;
    margin-right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* Next & Submit button ALWAYS pinned to the right corner */
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"]),
  :is(#gform_submit_button_20, #gform_submit_button_21, #gform_submit_button_22, #gform_submit_button_29, #gform_submit_button_23, #gform_submit_button_27, #gform_submit_button_29, #gform_submit_button_30),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"], #gform_submit_button_22, #gform_submit_button_29) {
    order: 2 !important;
    width: auto !important;
    min-width: 120px !important;
    max-width: none !important;
    /*padding: 0.9em 1.6em !important;
    font-size: 16px !important;*/
    float: right !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

/* Mobile portrait phones (<= 767px portrait & <= 600px): Alcohol answers in 1 column, 1 on top of the other */
@media screen and (max-width: 767px) and (orientation: portrait),
       screen and (max-width: 600px) {
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .bh-header-banner {
    margin: 0 auto 20px auto !important;
    gap: 12px !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .bh-header-banner .bh-banner-icon img {
    max-height: 52px !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .bh-header-banner .bh-main-heading {
    font-size: 20px !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .bh-header-banner .bh-sub-heading {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gform_fields {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 16px !important;
    width: 100% !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gfield:not(.gfield_html) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 280px !important;
    margin: 0 auto !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gfield_description:not(.instruction) {
    order: 1 !important;
    height: 50px !important;
    margin-bottom: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gfield_description:not(.instruction) img {
    /*max-height: 50px !important;
    width: auto !important;*/
    object-fit: contain !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .ginput_container {
    order: 2 !important;
    height: 42px !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .gform_page.card-group.alcohol .gfield label.gform-field-label {
    order: 3 !important;
    font-size: 14px !important;
    line-height: 1.3 !important;
    margin: 0 auto !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    min-height: unset !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .display-score-card.alcohol {
    margin-top: 18px !important;
    margin-bottom: 6px !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .display-score-card.alcohol span {
    font-size: 24px !important;
  }

  /* Mobile portrait phones (<= 767px portrait & <= 600px): Mood answers in 1 column, 1 on top of the other */
  :is(#field_20_28, #field_21_28, #field_23_28, #field_25_28, #field_27_28, #field_30_28) legend.gform-field-label,
  .choice-cards legend.gform-field-label {
    margin-bottom: 20px !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards.w-75 .ginput_container,
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards .ginput_container,
  .choice-cards.w-75 .ginput_container,
  .choice-cards .ginput_container {
    max-width: 100% !important;
    width: 100% !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards .gfield_radio,
  .choice-cards .gfield_radio {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
    border: none !important;
    border-radius: 0 !important;
    width: 100% !important;
    max-width: 380px !important;
    margin: 0 auto !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards .gchoice,
  .choice-cards .gchoice,
  body.rtl .choice-cards .gchoice:first-child,
  body:not(.rtl) .choice-cards .gchoice:last-child {
    flex: 0 0 auto !important;
    width: 100% !important;
    border: 2px solid #ee275c !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    background: #ffffff;
    transition: all 0.2s ease;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards .gchoice:has(input[type='radio']:checked),
  .choice-cards .gchoice:has(input[type='radio']:checked) {
    border-color: #f9901d !important;
    box-shadow: 0 6px 16px -4px rgba(249, 144, 29, 0.4);
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards label.gform-field-label,
  .choice-cards label.gform-field-label {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding: 12px 18px !important;
    min-height: 64px !important;
    height: auto !important;
    gap: 16px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_25, #gform_27, #gform_29, #gform_30) .choice-cards label.gform-field-label::before,
  .choice-cards label.gform-field-label::before {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 34px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 34px !important;
    padding: 0 !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    line-height: 1 !important;
  }

  :is(html[lang="ar"], body.rtl, [dir="rtl"]) .choice-cards label.gform-field-label {
    text-align: right !important;
  }
}

/* Mobile phones (<= 767px): prevent inline/progressbar overflow and reclaim footer padding without >100% widths */
@media screen and (max-width: 767px) {
  :is(#gf_progressbar_wrapper_20, #gf_progressbar_wrapper_21, #gf_progressbar_wrapper_22, #gf_progressbar_wrapper_23, #gf_progressbar_wrapper_25, #gf_progressbar_wrapper_27, #gf_progressbar_wrapper_30) {
    padding: 0 28px 0 38px !important;
    right: auto !important;
    width: 100% !important;
    max-width: min(100%, 100vw) !important;
    max-width: min(100%, 100dvw) !important;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) {
    overflow-x: clip !important;
  }

  .gfield.inline {
    max-width: 100% !important;
    box-sizing: border-box !important;
    gap: 16px !important;
  }

  .gfield.inline label.gform-field-label {
    font-size: 14px !important;
  }

  .gfield.inline .ginput_container {
    flex: 0 0 95px !important;
    width: 95px !important;
  }

  .gfield.inline .ginput_container input {
    max-width: 95px !important;
    height: 38px !important;
  }

  .gfield.inline > * {
    min-width: 0;
  }

  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30, #gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_27, #gform_wrapper_30, .gform_wrapper:not(#gform_wrapper_25)) :is(.gform-page-footer, .gform_page_footer, .gform_footer),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform-page-footer, .gform_page_footer, .gform_footer) {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 20px !important;
    box-sizing: border-box !important;
  }
}

/* Mobile portrait phones (e.g. iPhone SE 375px, iPhone 16 393px, Pro Max 430px): balanced button sizing */
@media screen and (max-width: 480px) {
  :is(#gform_20, #gform_21, #gform_22, #gform_23, #gform_27, #gform_29, #gform_30) :is(.gform_previous_button, .gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"]),
  body:is(.page-id-8626, .page-id-10848) :is(#gform_wrapper_22, #gform_wrapper_29) :is(.gform_previous_button, .gform_next_button, .gform_button[type="submit"], input[type="submit"], button[type="submit"], #gform_submit_button_22, #gform_submit_button_29) {
    min-width: 108px !important;
    padding: 0.85em 1.3em !important;
    font-size: 15px !important;
  }

  .gf-ls-sms-verification :is(.button.gf-ls-send-code, .button.gf-ls-verify-code) {
    padding: 0.95em 1.5em !important;
    font-size: 15px !important;
  }
}

/* ==========================================================================
   BUTTON HOVER & TAP / ACTIVE FEEDBACK STATES
   ========================================================================== */

/* Hover State for Next, Previous, and Submit Buttons */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):hover,
#gform_submit_button_20:hover,
#gform_submit_button_21:hover,
#gform_submit_button_22:hover,
  #gform_submit_button_29:hover,
#gform_submit_button_23:hover,
#gform_submit_button_25:hover,
#gform_submit_button_27:hover,
#gform_submit_button_30:hover,
.bs-age-modal-btn:hover {
  background-color: #F64D31 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
}

/* Active (Pressed/Tapped) & Focus States for Next, Previous, and Submit Buttons */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):is(:active, :focus),
#gform_submit_button_20:is(:active, :focus),
#gform_submit_button_21:is(:active, :focus),
#gform_submit_button_22:is(:active, :focus),
#gform_submit_button_29:is(:active, :focus),
#gform_submit_button_23:is(:active, :focus),
#gform_submit_button_25:is(:active, :focus),
#gform_submit_button_27:is(:active, :focus),
#gform_submit_button_30:is(:active, :focus),
.bs-age-modal-btn:is(:active, :focus) {
  background-color: #FF7A00 !important;
  transform: scale(0.96) !important;      /* Subtle shrink/pressed effect */
  transition: transform 0.05s ease, background-color 0.05s ease !important;
  outline: none !important;
  color: #ffffff !important;
}

/* Ensure disabled buttons do not activate, focus-style, or scale on tap */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button:disabled, .btn-disabled, [disabled="disabled"]):is(:active, :focus) {
  background-color: #cccccc !important;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   TOUCH & ACTIVE FEEDBACK (iOS SAFE)
   ========================================================================== */

/* Remove default iOS tap highlight shadow */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]),
.bs-age-modal-btn {
  -webkit-tap-highlight-color: transparent;
}

/* Hover State - Desktop Only */
@media (hover: hover) and (pointer: fine) {
  :is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
  :is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):hover,
  #gform_submit_button_20:hover,
  #gform_submit_button_21:hover,
  #gform_submit_button_22:hover,
  #gform_submit_button_29:hover,
  #gform_submit_button_23:hover,
  #gform_submit_button_25:hover,
  #gform_submit_button_27:hover,
  #gform_submit_button_30:hover,
  .bs-age-modal-btn:hover {
    background-color: #F64D31 !important;
    color: #ffffff !important;
    cursor: pointer !important;
  }
}

/* Active (Tap/Press) State Only - Excludes :focus to stop persistent blank text on iOS */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):active,
#gform_submit_button_20:active,
#gform_submit_button_21:active,
#gform_submit_button_22:active,
#gform_submit_button_29:active,
#gform_submit_button_23:active,
#gform_submit_button_25:active,
#gform_submit_button_27:active,
#gform_submit_button_30:active,
.bs-age-modal-btn:active {
  background-color: #FF7A00 !important;
  color: #ffffff !important;
  transform: scale(0.96) !important;
  transition: transform 0.05s ease, background-color 0.05s ease !important;
}

/* Explicitly force text and icons to remain solid white on active press */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):active *,
.bs-age-modal-btn:active * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  opacity: 1 !important;
}

/* Safari may retain hover/focus after a tap, so preserve the button label color. */
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):is(:hover, :active, :focus),
:is(#gform_submit_button_20, #gform_submit_button_21, #gform_submit_button_22, #gform_submit_button_23, #gform_submit_button_25, #gform_submit_button_27, #gform_submit_button_29, #gform_submit_button_30):is(:hover, :active, :focus),
.bs-age-modal-btn:is(:hover, :active, :focus),
:is(#gform_wrapper_20, #gform_wrapper_21, #gform_wrapper_22, #gform_wrapper_23, #gform_wrapper_25, #gform_wrapper_27, #gform_wrapper_29, #gform_wrapper_30)
:is(.gform_next_button, .gform_previous_button, input[type="submit"], button[type="submit"]):is(:hover, :active, :focus) *,
.bs-age-modal-btn:is(:hover, :active, :focus) * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Age Shadowbox OK Button - Inherit Form 20/27 Button Styles */
.bs-age-modal-btn {
  background-color: #ee275c !important;
  color: #ffffff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  padding: 1.2em 2.2em !important;
  border: none !important;
  border-radius: 30px !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 160px !important;
  max-width: 200px !important;
  box-sizing: border-box !important;
}

/* SMS Verification Success Badge Layout */
.gf-ls-sms-message.success {
  margin-top: 15px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.gf-ls-sms-message.success .badge-wrapper {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
}

.gf-ls-sms-message.success .badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background-color: #e8f5e9 !important;
  border: 1px solid #c8e6c9 !important;
  border-radius: 50px !important;
  color: #2e7d32 !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
}

.gf-ls-sms-message.success .badge-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  background-color: #2e7d32 !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  font-size: 16px !important;
}

/* ==========================================================================
   MEDICAL CONDITIONS: VISUAL GREYING-OUT (FULLY CLICKABLE)
   ========================================================================== */
.choice-buttons .gchoice.gf-disabled-visual,
.choice-buttons .gchoice.gf-disabled-visual label,
.choice-buttons .gchoice.gf-disabled-visual input,
.gchoice.gf-disabled-visual,
.gchoice.gf-disabled-visual label,
.gchoice.gf-disabled-visual input {
  pointer-events: auto !important;
  cursor: pointer !important;
}

.choice-buttons .gchoice.gf-disabled-visual label,
.choice-buttons .gchoice.gf-disabled-visual label.gform-field-label,
.choice-buttons .gfield_checkbox .gf-disabled label,
.choice-buttons .gfield_checkbox .gf-disabled label.gform-field-label,
.gchoice.gf-disabled-visual label,
.gchoice.gf-disabled-visual label.gform-field-label,
.gchoice.gf-disabled label,
.gchoice.gf-disabled label.gform-field-label {
  opacity: 0.45 !important;
  transition: opacity 0.2s ease !important;
}

.choice-buttons .gchoice.gf-disabled-visual label::before,
.choice-buttons .gchoice.gf-disabled-visual label.gform-field-label::before,
.choice-buttons .gfield_checkbox .gf-disabled label::before,
.choice-buttons .gfield_checkbox .gf-disabled label.gform-field-label::before,
.gchoice.gf-disabled-visual label::before,
.gchoice.gf-disabled-visual label.gform-field-label::before,
.gchoice.gf-disabled label::before,
.gchoice.gf-disabled label.gform-field-label::before {
  opacity: 0.45 !important;
}