.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.custom-select-native {
  position: absolute !important;
  inline-size: 1px !important;
  block-size: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none !important;
}

.custom-select-trigger {
  --custom-select-accent: var(--satc-gold, #b8955c);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 52px;
  padding: 11px 15px;
  border: 1px solid #d8d2cb;
  border-radius: 6px;
  background: #f8f7f5;
  color: var(--satc-charcoal, #211d1e);
  font: inherit;
  font-weight: 500;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.custom-select-trigger:hover { border-color: #b9aa98; background: #fff; }
.custom-select-trigger:focus-visible,
.custom-select.is-open .custom-select-trigger {
  border-color: var(--custom-select-accent);
  box-shadow: inset 0 -2px 0 var(--custom-select-accent);
}
.custom-select-trigger:focus { outline: 0; }
.custom-select-trigger:disabled { opacity: .58; cursor: not-allowed; }
.custom-select.is-invalid .custom-select-trigger { border-color: #b42318; box-shadow: inset 0 -2px 0 #b42318; }

.custom-select-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-select-chevron {
  flex: 0 0 auto;
  inline-size: 9px;
  block-size: 9px;
  border-inline-end: 1.5px solid currentColor;
  border-block-end: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
[dir="rtl"] .custom-select-chevron { transform: rotate(45deg) translateY(-2px); }
.custom-select.is-open .custom-select-chevron { transform: rotate(225deg) translate(-2px, -2px); }

.custom-select-popover {
  position: absolute;
  z-index: 1100;
  inset-inline: 0;
  top: calc(100% + 6px);
  min-width: 100%;
  padding: 6px;
  border: 1px solid #d8c6aa;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(31, 27, 28, .16), 0 3px 10px rgba(31, 27, 28, .08);
}
.custom-select.opens-up .custom-select-popover { top: auto; bottom: calc(100% + 6px); }
.custom-select-popover[hidden] { display: none; }

.custom-select-listbox {
  max-height: min(280px, 42vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c8b38e transparent;
}

.custom-select-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 42px;
  padding: 9px 13px;
  padding-inline-end: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--satc-charcoal, #211d1e);
  font: inherit;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
}
.custom-select-option:hover,
.custom-select-option.is-active { background: #f3ede4; }
.custom-select-option.is-selected { font-weight: 700; background: #f7f2ea; }
.custom-select-option.is-selected::after {
  content: "";
  position: absolute;
  inset-inline-end: 15px;
  inline-size: 11px;
  block-size: 6px;
  border-inline-start: 2px solid var(--custom-select-accent, #b8955c);
  border-block-end: 2px solid var(--custom-select-accent, #b8955c);
  transform: rotate(-45deg);
}
[dir="ltr"] .custom-select-option.is-selected::after { transform: rotate(-45deg); }
.custom-select-option:focus { outline: 0; }
.custom-select-option[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.contact-form .custom-select-trigger,
.interest-form .custom-select-trigger {
  min-height: 70px;
  border: 0;
  border-bottom: 1px solid #d9d1c8;
  border-radius: 0;
  background: #f7f6f4;
}

.admin-body .custom-select-trigger {
  min-height: 44px;
  padding: 9px 12px;
  border-color: #ded8d2;
  background: #fff;
}
.admin-body .custom-select-popover { z-index: 1200; }

@media (max-width: 575.98px) {
  .custom-select-popover { position: fixed; inset-inline: 14px; top: auto; bottom: 14px; width: auto; max-width: none; }
  .custom-select.opens-up .custom-select-popover { top: auto; bottom: 14px; }
  .custom-select-listbox { max-height: min(340px, 52vh); }
}

