/* Field focus uses the existing line and a quiet background, without a new frame. */
.field input:focus,
.field input:focus-visible,
.field textarea:focus,
.field textarea:focus-visible,
.field select:focus,
.field select:focus-visible,
.enquiry-result textarea:focus,
.enquiry-result textarea:focus-visible {
  outline: none;
  box-shadow: none;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible,
.enquiry-result textarea:focus-visible {
  background-color: var(--sage);
  border-color: var(--green);
}

.field-select.is-enhanced:after { display: none; }

.taruin-select__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 10px 4px 13px 0;
  border: 0;
  border-bottom: 1px solid var(--field-rule);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  cursor: pointer;
  appearance: none;
}

.taruin-select__trigger:focus,
.taruin-select__trigger:focus-visible,
.taruin-select__trigger:active {
  outline: none;
  box-shadow: none;
}

.taruin-select__trigger:focus-visible {
  background: var(--sage);
  border-color: var(--green);
}

.field-select:has(.taruin-select__trigger:focus-visible) > label { color: var(--green); }
.taruin-select__value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.taruin-select__arrow {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1px solid var(--green);
  border-bottom: 1px solid var(--green);
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}
.taruin-select__trigger[aria-expanded="true"] .taruin-select__arrow { transform: rotate(225deg) translate(-2px, -2px); }

.taruin-select__listbox {
  position: fixed;
  z-index: 100;
  margin: 0;
  padding: 7px;
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
  border: 0;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 42px color-mix(in srgb, var(--ink) 9%, transparent);
  font-family: var(--body);
  font-size: 13px;
  line-height: 1.5;
}

.taruin-select__option {
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.taruin-select__option:hover { background: var(--mist); }
.taruin-select__option.is-active { background: var(--sage); }
.taruin-select__option.is-selected { color: var(--green-dark); font-weight: 500; }
.taruin-select__option[aria-disabled="true"] { color: var(--muted); cursor: not-allowed; }
.taruin-select__check {
  width: 6px;
  height: 11px;
  margin-right: 4px;
  flex: 0 0 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0;
  transform: translateY(-2px) rotate(45deg);
}
.taruin-select__option.is-selected .taruin-select__check { opacity: 1; }

@media (max-width: 680px) {
  .taruin-select__trigger,
  .taruin-select__listbox { font-size: 16px; }
  .taruin-select__option { min-height: 51px; padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .taruin-select__arrow { transition: none; }
}
