/* BBITS Skills for Life shared site overrides */
/* CONTACT FORMS: force typed text + placeholders to be readable */
main input[type="text"],
main input[type="email"],
main input[type="tel"],
main input[type="url"],
main input[type="search"],
main input[type="number"],
main textarea,
main select {
  color: #000 !important;
  caret-color: #000 !important;
}

/* Placeholders */
main input::placeholder,
main textarea::placeholder {
  color: #000 !important;
  opacity: 1 !important; /* stops “faded” placeholders */
}

/* PageLayer / common form plugin fallbacks (just in case) */
.pagelayer-form input,
.pagelayer-form textarea,
.pagelayer-form select,
.wpcf7 input,
.wpcf7 textarea,
.wpforms-form input,
.wpforms-form textarea,
.gform_wrapper input,
.gform_wrapper textarea,
.fluentform input,
.fluentform textarea,
form input,
form textarea,
form select {
  color: #000 !important;
  caret-color: #000 !important;
}

/* Chrome autofill (often stays white unless you force it) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #000 !important;
  caret-color: #000 !important;
}
/* CF7 textarea fix – message field specifically */
.wpcf7 textarea.wpcf7-textarea {
  color: #000 !important;
  background-color: #fff !important;
  caret-color: #000 !important;
}

/* Placeholder text (if used later) */
.wpcf7 textarea.wpcf7-textarea::placeholder {
  color: #000 !important;
  opacity: 1 !important;
}




/* Hide all image captions site-wide */
.wp-block-image figcaption,
.wp-block-gallery figcaption,
.wp-block-media-text figcaption,
.gallery figcaption,
.wp-caption-text {
  display: none !important;
}
/* Hide "Subscribe to calendar" dropdown everywhere */
.tribe-events-c-subscribe-dropdown__container,
.tribe-events-c-subscribe-dropdown {
    display: none !important;
}

/* TEC: hide subscribe dropdown everywhere */
.tribe-events .tribe-events-c-subscribe-dropdown,
.tribe-events .tribe-events-c-subscribe-dropdown__container {
  display: none !important;
}

/* TEC: remove top bar/header (if that’s what you’re trying to hide) */
.tribe-events .tribe-events-c-top-bar,
.tribe-events .tribe-events-header {
  display: none !important;
}

/* TEC: stop any forced min-height/height creating blank space */
.tribe-events .tribe-events-view,
.tribe-events .tribe-events-l-container,
.tribe-events .tribe-common-l-container {
  height: auto !important;
  min-height: 0 !important;
}


/* ============================================
   BBITS - SKILLS FOR LIFE
   MOBILE NAVIGATION DRAWER SCROLL FIX
   ============================================ */

@media (max-width: 859px) {

  /* Mobile drawer */
  #site-navigation .mobile-nav-drawer {
    max-height: 100vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  /* Menu body */
  #site-navigation .mobile-nav-body {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Menu wrapper */
  #site-navigation .menu-main-container {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  /* Full menu */
  #site-navigation #primary-menu {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding-bottom: 80px !important;
  }

}
