/**
 * Custom Select Styles
 * Extracted from BIT theme for plugin usage
 */

/* Custom Select Wrapper */
.custom-select-wrapper {
  position: relative;
}

.custom-select-wrapper.custom-select-is-open .custom-select-options {
  top: 100%;
  opacity: 1;
  visibility: visible;
  max-height: 400px;
  overflow: auto;
}

.custom-select-wrapper select,
.custom-select-hidden {
  display: none;
}

/* Disabled select states */
.custom-select-wrapper #cf_district + .custom-select-head,
.custom-select-wrapper #cf_locations + .custom-select-head {
  pointer-events: none;
}

.custom-select-wrapper #cf_district + .custom-select-head::after,
.custom-select-wrapper #cf_locations + .custom-select-head::after {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.3);
}

/* Custom Select Head */
.custom-select-head {
  padding: 12px 10px;
  font-weight: 400;
  font-size: 9px;
  color: #2f3644;
  box-shadow: 0px 2.5px 2.5px rgba(0, 0, 0, 0.25);
  border-radius: 1.5px;
  background-color: #fff;
  margin-bottom: 10px;
  display: block;
  border: 0;
  width: 100%;
  position: relative;
  cursor: pointer;
}

.custom-select-head.enabled {
  pointer-events: all !important;
}

.custom-select-head.enabled::after {
  display: none !important;
}

/* Custom Select Value */
.custom-select-value {
  display: block;
}

/* Custom Select Options Container */
.custom-select-options {
  position: absolute;
  padding: 12px 0;
  font-weight: 400;
  font-size: 9px;
  color: #2f3644;
  box-shadow: 0px 2.5px 2.5px rgba(0, 0, 0, 0.25);
  border-radius: 1.5px;
  background-color: #fff;
  display: block;
  border: 0;
  width: 100%;
  top: 110%;
  left: 0;
  right: 0;
  z-index: 1001;
  transition: 0.4s ease-out;
  opacity: 0;
  visibility: hidden;
}

/* Custom Select Option */
.custom-select-option {
  padding: 6px 10px;
  cursor: pointer;
  transition: 0.2s ease-out;
}

.custom-select-option:hover {
  background-color: #f5f5f5;
}

.custom-select-option-selected {
  background-color: #eaebec;
  font-weight: 600;
}

/* Contact Form 7 Integration */
.wpcf7-form .custom-select-wrapper {
  margin-bottom: 13px;
}

/* Responsive styles for larger screens */
@media (min-width: 1200px) {
  .form-page .custom-select-head {
    padding: 21px 27px;
    font-size: 18px;
    margin-bottom: 27px;
  }

  .form-page .custom-select-option {
    padding: 6px 27px;
  }

  .form-page .custom-select-options {
    padding: 21px 0;
    font-size: 24px;
    margin-bottom: 27px;
  }
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .custom-select-options {
    max-height: 300px;
  }
}

