/* 🔹 1. 包裹 Select2 的容器樣式 */
.select2-container {
  width: 100% !important;
  font-size: 16px;
  font-family: inherit;
}

/* 🔹 2. 目前選中的項目（出現在 input 上） */
.select2-container--default .select2-selection--single {
  background-color: transparent;
  border: none;
  border-radius: 0;
  color: #f0f0f0;
  height: 40px;
  display: flex;
  align-items: center;
}

/* 🔹 3. 選中項目的箭頭（可選擇隱藏） */
.select2-selection__arrow {
  display: none;
}

/* 🔹 4. 點擊展開後的選單區塊 */
.select2-container .select2-dropdown {
  background-color: #1e1e1e;
  border: none;
  border-radius: 0;
}

/* 🔹 5. 選單內每個選項 */
.select2-results__option {
  color: #f0f0f0;
  font-size: 16px;
  padding: 12px 16px;
  cursor: pointer;
}

/* 🔹 6. hover 效果 */
.select2-results__option--highlighted[aria-selected] {
  background-color: #333333;
  color: #ffffff;
  box-shadow: inset 0 0 0 1px #99caff;
}

/* 🔹 7. 已選取的項目樣式（在選單內） */
.select2-results__option[aria-selected="true"] {
  background-color: #2e2e2e;
  color: #fff;
}

/* 🔹 8. 禁用選項 */
.select2-results__option[aria-disabled="true"] {
  color: #777;
  background-color: #1e1e1e;
  cursor: not-allowed;
}

/* 🔹 9. 搜尋框樣式（如果有啟用搜尋） */
.select2-search--dropdown .select2-search__field {
  background-color: #1e1e1e;
  border: 1px solid #444;
  color: #f0f0f0;
  padding: 8px;
}


/* 🔹 11. 出現在輸入框內的選項文字 */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f0f0f0 !important;
}

.select2-selection:focus {
  outline: 2px solid; /* 粗細 + 顏色 */
}

/* 🔹 副標題樣式 */
.subtitle {
  font-size: 1.1rem;
  font-weight: 500;
  color: rgb(255 143 8 / var(--tw-text-opacity, 1));
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

/* 🔹 表單紅字樣式 */
.error-text.hidden {
  display: none !important;
}

