/* Custom Select (for inquiry form) */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select__button {
  height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1.3rem 1.5rem 0.9rem 2.2rem;
  border: 0.1rem solid rgba(0, 0, 0, 0.6);
  border-radius: 0.5rem;
  background-color: var(--color-white);
  cursor: pointer;
  font-size: 2rem;
  font-weight: 500;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  line-height: 1;
  color: rgba(0, 0, 0, 0.6);
  transition: border-color 0.2s ease;
}

.custom-select__button:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 0.3rem rgba(var(--color-primary-rgb), 0.1);
}

.custom-select__icon {
  width: 2.6rem;
  height: 2.6rem;
  color: #6b7280;
  flex-shrink: 0;
}

.custom-select__list {
  position: absolute;
  left: 0;
  right: 0;
  max-height: 24rem;
  overflow: auto;
  background: var(--color-white);
  border: 0.1rem solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0.8rem 2rem rgba(0, 0, 0, 0.08);
  border-radius: 0.5rem;
  z-index: 20;
  display: none;
}

.custom-select__list[aria-hidden="false"] {
  display: block;
}

.custom-select__option {
  height: 3.7rem;
  list-style: none;
  padding: 0.5rem 1.1rem;
  font-size: 2rem;
  font-weight: 500;
  font-family: "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--color-text-primary);
  cursor: pointer;
}

.custom-select__option[aria-selected="true"],
.custom-select__option:hover {
  background: #3a7cff;
  color: var(--color-white);
}

/* Hide original select after enhancement */
.custom-select--enhanced + select.inquiry-form__select,
.custom-select--enhanced + select.register-form__select {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Hide register page arrow icon when enhanced */
.custom-select--enhanced ~ .register-form__select-icon {
  display: none !important;
}

@media (max-width: 768px) {
  .custom-select__button {
    height: 4.6rem;
    padding: 1.2rem 1.1rem;
  }

  .custom-select__icon {
    width: 1.8rem;
    height: 1.8rem;
  }
}
