.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 40px 15px 16px;
  background: #ffffff;
  border: 1px solid #d9e1e2;
  border-radius: 3px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  color: #a0a0a0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233c3c3c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  outline: none;
}

.custom-dropdown__trigger.has-value {
  color: #3c3c3c;
}

.custom-dropdown__trigger:hover,
.custom-dropdown__trigger:focus {
  border-color: #005dab;
}

.custom-dropdown.is-open .custom-dropdown__trigger {
  border-color: #005dab;
  border-radius: 3px 3px 0 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%23005dab' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

.custom-dropdown__panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 100;
  background: #ffffff;
  border: 1px solid #005dab;
  border-top: none;
  border-radius: 0 0 3px 3px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.is-open .custom-dropdown__panel {
  display: block;
}

.custom-dropdown__search {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border: none;
  border-bottom: 1px solid #e8ecee;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #3c3c3c;
  outline: none;
  background: #fafbfc;
  box-sizing: border-box;
}

.custom-dropdown__search::placeholder {
  color: #a0a0a0;
}

.custom-dropdown__list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 220px;
  overflow-y: auto;
}

.custom-dropdown__item {
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #3c3c3c;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.custom-dropdown__item:hover {
  background-color: #f0f6fc;
}

.custom-dropdown__item.is-selected {
  background-color: #e8f0fe;
  color: #005dab;
  font-weight: 600;
}

.custom-dropdown__no-result {
  padding: 12px 16px;
  font-size: 14px;
  color: #a0a0a0;
  font-style: italic;
}

.custom-dropdown__list::-webkit-scrollbar {
  width: 4px;
}

.custom-dropdown__list::-webkit-scrollbar-track {
  background: transparent;
}

.custom-dropdown__list::-webkit-scrollbar-thumb {
  background: #d9e1e2;
  border-radius: 2px;
}

.custom-dropdown.is-dropup .custom-dropdown__trigger {
  border-radius: 0 0 3px 3px;
}

.custom-dropdown.is-dropup .custom-dropdown__panel {
  top: auto;
  bottom: 100%;
  border: 1px solid #005dab;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.is-dropup .custom-dropdown__search {
  order: 1;
  border-bottom: none;
  border-top: 1px solid #e8ecee;
}

.custom-dropdown.is-dropup .custom-dropdown__panel {
  display: none;
  flex-direction: column;
}

.custom-dropdown.is-dropup.is-open .custom-dropdown__panel {
  display: flex;
}
