.custom-dropdown {
  width: 33%;
  height: 50px;
  padding: 0;
  background: white;
  border-radius: 9px;
  position: relative;
  box-sizing: border-box;
}

.custom-dropdown::before {
  content: "";
  position: absolute;
  right: 12px;
  top: 18px;
  z-index: 9999;
  width: 8px;
  height: 8px;
  border: 1px solid grey;
  border-top: transparent;
  border-right: transparent;
  transform: rotate(-45deg);
  pointer-events: none;
  transition: all 0.3s linear;
}

.custom-dropdown input {
  transition: 0.3s;
  width: 100%;
  height: 100%;
  padding: 0 12px;
  cursor: pointer;
  border: none;
  outline: none;
  font-size: 16px;
  position: absolute;
  top: 0;
  left: 0;
  border-bottom: 1px solid #173F35;
  box-sizing: border-box;
  color: #173F35;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
}

.custom-dropdown input::placeholder {
  color: #173F35;
}

.custom-dropdown .options {
  width: 100%;
  padding: 0;
  cursor: pointer;
  background: white;
  border: none;
  outline: none;
  font-size: 16px;
  overflow: hidden;
  position: absolute;
  list-style-type: none;
  top: 50px;
  left: 0;
  transition: all 0.4s ease;
  background-color: #FAFAFA;
  z-index: 100;
  opacity: 0;
  transform: translateY(-20px);
  visibility: hidden;
  box-shadow: rgba(0, 0, 0, 0.25) 0px 3px 4px;
  border-radius: 5px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;

  min-height: 38px;
  position: relative;
}

.custom-dropdown .options:after {
  content: "No matched result.";
  text-align: center;
  position: absolute;
  width: 100%;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #97999B;
  bottom: 0;
  z-index: -1;
}

.custom-dropdown .options .option {
  padding: 8px 12px;
  transition: all 0.2s ease;
  color: #97999B;
  background-color: #FAFAFA;
  margin: 0;
}

.custom-dropdown .options .option:hover {
  color: #173F35;
  background: #fff;
}

/* opened state of dropdown list */
.custom-dropdown.opened .options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  max-height: 247px;
  min-height: 40px;

  overflow: -moz-scrollbars-vertical;
  overflow: auto;
}

.custom-dropdown.opened .options::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 7px;
  height: 7px;
  border-bottom-right-radius: 4px;
}

.custom-dropdown.opened .options::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.custom-dropdown.opened input {
  transition: 0.3s;
  background-color: #FAFAFA;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-color: #F0F0F0;
}

@media (max-width: 768px) {
  .custom-dropdown {
    width: 100%;
  }
}