/* Match the original Code Snippet markup/classes exactly. */
.community-search-form-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
  align-items: center;
  box-sizing: border-box;
}

.community-search-form-wrapper .form-input-field {
  flex: 1;
  min-width: 0;
  position: relative;
}

.community-search-form-wrapper input[type="text"],
.community-search-form-wrapper select.input-community {
  width: 100%;
  height: 48px;
  padding: 14px 16px 14px 44px;
  border: none;
  border-radius: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.2;
  color: #333333;
  box-sizing: border-box;
  outline: none;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: 14px center;
  background-size: 18px auto;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.community-search-form-wrapper input.input-location {
  background-image: url("../images/search-location.png");
}

.community-search-form-wrapper select.input-community {
  background-image:
    url("../images/search-care.png"),
    linear-gradient(45deg, transparent 50%, #9a9088 50%),
    linear-gradient(135deg, #9a9088 50%, transparent 50%);
  background-position:
    14px center,
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size:
    18px auto,
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  padding-right: 34px;
  cursor: pointer;
}

.community-search-form-wrapper input[type="text"]::placeholder {
  color: #8a8179;
  opacity: 1;
}

.community-search-form-wrapper select.input-community:invalid,
.community-search-form-wrapper select.input-community option[value=""] {
  color: #8a8179;
}

.community-search-form-wrapper select.input-community option {
  color: #333333;
}

.community-search-form-wrapper .btn-submit {
  flex: 0 0 auto;
  white-space: nowrap;
  background-color: #766b62;
  color: #ffffff !important;
  border: none;
  border-radius: 0;
  padding: 14px 28px;
  height: 48px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: none;
}

.community-search-form-wrapper .btn-submit:hover,
.community-search-form-wrapper .btn-submit:focus {
  background-color: #5d544d;
  color: #ffffff !important;
}

.locations-search-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  font-family: inherit;
}

.locations-search-form .form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.locations-search-form label {
  font-size: 13px;
  color: #8c827a;
  margin-bottom: 6px;
  display: block;
}

.locations-search-form input[type="text"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #8c827a;
  border-radius: 0;
  font-size: 15px;
  color: #333333;
  box-sizing: border-box;
  outline: none;
  background-color: #ffffff;
  box-shadow: none;
}

.locations-search-form input[type="text"]:focus {
  border-color: #589098;
}

.locations-search-form .btn-search {
  align-self: flex-start;
  background-color: #589098;
  color: #ffffff !important;
  border: none;
  border-radius: 0;
  padding: 9px 40px 10px 40px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
  box-shadow: none;
}

.locations-search-form .btn-search:hover,
.locations-search-form .btn-search:focus {
  background-color: #47767d;
  color: #ffffff !important;
}

/* Google Places dropdown above Divi layers. */
.pac-container {
  z-index: 100000 !important;
  border-radius: 0;
  border: 1px solid #d7d1cb;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-family: inherit;
}

.pac-item {
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.35;
  cursor: pointer;
}

.pac-item:hover,
.pac-item-selected {
  background: #f4f1ee;
}

@media (max-width: 640px) {
  .community-search-form-wrapper {
    flex-direction: column;
  }

  .community-search-form-wrapper .form-input-field,
  .community-search-form-wrapper .btn-submit {
    width: 100%;
  }
}
