.search-bar-wrapper {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}

.search-bar {
  display: flex;
  width: 100%;
  max-width: 676px;
  height: 54px;
  background-color: #ffffff;
  border-radius: 50px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  padding: 4px 4px 3px 4px;
}

.search-type-dropdown {
  position: relative;
}

.search-type {
  background-color: #f4e7e7;
  color: #745356;
  border-radius: 50px;
  padding: 0 28px 0 18px;
  font-size: 20px;
  font-weight: 700;
  line-height: 160%;
  display: flex;
  align-items: center;
  position: relative;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease;
  height: 100%;
  user-select: none;
  -webkit-user-select: none;
}

.search-type:hover {
  background-color: #e4caca;
}

.search-type:active {
  background-color: #d8b5b5;
}

.search-type::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' fill='%23745356' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
}

.search-input-container {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  border: none;
  padding: 0 40px 0 12px;
  outline: none;
  font-size: 20px;
  height: 100%;
  line-height: 160%;
  border-radius: 50px;
}

.search-icon {
  position: absolute;
  right: 16px;
  color: #745356;
  background-color: transparent;
  border: none;
}

.provider-dropdown-menu {
  position: absolute;
  top: 115%;
  left: 0;
  width: 180px;
  background-color: #FFFFFF;
  border-radius: 16px;
  padding: 8px;
  box-shadow: 8px 8px 20px 0 rgba(146, 104, 108, 0.2);
  border: none;
  overflow: hidden;
  display: none !important;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1001;
  list-style: none;
}

.search-type-dropdown.active .provider-dropdown-menu,
.search-type-dropdown.active > .provider-dropdown-menu {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.provider-dropdown-item {
  padding: 10px 16px;
  font-size: 20px;
  color: #745356;
  border-radius: 8px;
  transition: background-color 0.2s ease;
  margin-bottom: 2px;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.provider-dropdown-item:last-child {
  margin-bottom: 0;
}

.provider-dropdown-item:hover {
  background-color: #f4e7e7;
  color: #745356;
}

.search-bar-wrapper.hero-overlay {
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  margin: 0;
}

.search-bar-wrapper.centered {
  margin: 30px auto;
}

.search-bar-wrapper.top-fixed {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
}

@media (max-width: 992px) {
  .search-bar {
    width: 100%;
    max-width: 676px;
  }
}

@media (max-width: 768px) {
  .search-bar {
    width: 90%;
    height: auto;
  }
  
  .search-type {
    padding: 12px 28px 12px 18px;
  }
  
  .search-input {
    padding: 12px 40px 12px 12px;
  }

  .search-bar-wrapper.hero-overlay {
    bottom: 50px;
  }
}

@media (max-width: 576px) {
  .search-bar {
    width: 95%;
  }
  
  .search-type {
    font-size: 16px;
    padding-right: 24px;
  }
  
  .search-type::after {
    right: 10px;
  }
}

@media (max-width: 420px) {
  .search-bar {
    display: flex;
    flex-direction: column;
    height: auto;
    border-radius: 16px;
  }
  
  .search-type {
    width: 100%;
    border-radius: 16px;
    padding: 12px;
    justify-content: center;
  }
  
  .search-type::after {
    right: 30%;
  }
  
  .search-input-container {
    padding: 10px 0;
  }
}

.search-type {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.search-type:hover {
  background-color: #e4caca;
}

.search-type:after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 8px;
  vertical-align: middle;
  border-top: 4px solid;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.search-type-dropdown {
  position: relative;
}

.search-type-dropdown.active {
  z-index: 1100;
}

.search-type-dropdown.active .provider-dropdown-menu {
  pointer-events: auto;
} 