/* A single focus treatment for fields, including compound search controls. */
input:where(:not([type='checkbox']):not([type='radio'])):focus,
select:focus,
textarea:focus,
.select-trigger:focus,
.search-input:focus-within,
.hero-search:focus-within,
.message-composer:focus-within {
  outline: none;
  border-color: #7c9e86;
  box-shadow: 0 0 0 3px #285b4914;
}
.search-input input:focus,
.hero-search .search-input:focus-within,
.message-composer textarea:focus {
  outline: none;
  box-shadow: none;
}
.autocomplete {
  position: relative;
  min-width: 0;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  height: var(--control-height);
  border: 1px solid #dfe4dc;
  border-radius: 9px;
  background: #fdfdfa;
  padding: 11px 14px;
  font-size: var(--control-font-size);
  line-height: 1.5;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.select-trigger > span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.select-trigger::after {
  content: '';
  flex: 0 0 7px;
  height: 7px;
  border-right: 1.5px solid #7b827b;
  border-bottom: 1.5px solid #7b827b;
  transform: translateY(-2px) rotate(45deg);
  margin-right: 2px;
}
.select-trigger:disabled {
  opacity: 0.6;
  cursor: default;
}
.select-options .suggestion-option {
  font-size: 14px;
  font-weight: 400;
}
.select-options .suggestion-option[aria-selected='true']::after {
  content: '✓';
  color: var(--green);
}
.select-options .suggestion-option.is-active {
  background: #eff4ed;
}
.select-options .suggestion-option[aria-disabled='true'] {
  opacity: 0.5;
  cursor: default;
}
.select-error {
  display: block;
  margin-top: 6px;
  color: #9b4f36;
  font-size: 12px;
}
.sort-label .custom-select {
  min-width: 150px;
}
.sort-label .select-trigger {
  background: transparent;
  border-color: transparent;
  padding-block: 5px;
  font-size: 13px;
}
.sort-label .select-options {
  min-width: 180px;
  left: auto;
  right: 0;
}
.hero-copy {
  position: relative;
  z-index: 5;
  min-width: 0;
}
.home-discovery {
  max-width: 536px;
}
.hero-search > .autocomplete {
  flex: 1;
}
.hero-search {
  position: relative;
}
.hero-search > .autocomplete {
  position: static;
}
.suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  z-index: 30;
  max-height: min(360px, 55dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid #dfe4dc;
  border-radius: 12px;
  padding: 5px;
  background: #fff;
  box-shadow: 0 12px 32px #243f361a;
}
.suggestion-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  min-height: 44px;
  border-radius: 7px;
  cursor: pointer;
  text-align: left;
}
.suggestion-option:hover,
.suggestion-option[aria-selected='true'] {
  background: #eff4ed;
}
.suggestion-option strong,
.suggestion-option small {
  display: block;
  line-height: 1.4;
}
.suggestion-option strong {
  font-size: 14px;
  font-weight: 500;
}
.suggestion-option small {
  margin-top: 3px;
  color: #657166;
  font-size: 12px;
}
.suggestion-status {
  margin: 6px 10px;
  font-size: 12px;
  line-height: 1.5;
  color: #657166;
  font-weight: 400;
}
.suggestion-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #edf0e9;
  padding: 4px 6px 10px;
  font-size: 12px;
}
.suggestion-heading > span {
  flex: 1;
  min-width: 100px;
}
.suggestion-heading .text-link {
  width: 100%;
  text-align: left;
  padding: 6px;
  font-size: 13px;
}
.service-browse,
.selected-service {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 14px;
  font-size: 13px;
}
.service-browse > span {
  color: var(--muted);
  margin-right: 4px;
}
.service-browse a {
  padding: 7px 11px;
  border: 1px solid #dfe4dc;
  border-radius: 20px;
  background: #fff;
}
.service-browse a:hover {
  background: #eff4ed;
}
.selected-service {
  justify-content: space-between;
}
.selected-service a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.service-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.service-picker legend {
  font-size: 13px;
  font-weight: 500;
}
.service-picker > p {
  margin: 6px 0 12px;
  font-size: 13px;
}
.service-picker details {
  border-bottom: 1px solid #e9ece5;
}
.service-picker summary {
  padding: 12px 0;
  font-size: 14px;
  cursor: pointer;
}
.service-picker-options {
  display: grid;
  gap: 10px;
  padding: 4px 0 16px;
}
.service-picker .checkbox {
  align-items: start;
  line-height: 1.5;
}
.service-depth-1 {
  margin-left: 18px;
}
.service-depth-2 {
  margin-left: 36px;
}
.offered-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}
.job-schedule {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.job-schedule legend {
  padding: 0;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 500;
}
.schedule-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
}
.schedule-choice {
  display: flex;
  position: relative;
  cursor: pointer;
}
.schedule-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.schedule-choice span {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-height: var(--control-height);
  padding: 9px 8px;
  border: 1px solid #dfe4dc;
  border-radius: 9px;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
.schedule-choice input:checked + span {
  border-color: #7c9e86;
  background: #eff4ed;
  color: var(--green);
}
.schedule-choice input:focus-visible + span {
  outline: 2px solid #7c9e86;
  outline-offset: 2px;
}
.schedule-dates,
.schedule-time {
  margin-top: 14px;
}
.field-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: #657166;
}
@media (max-width: 560px) {
  .schedule-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .catalog-filters > [data-service-search] {
    grid-column: 1 / -1;
  }
  .catalog-filters .city-field .suggestions {
    width: min(320px, calc(100vw - 66px));
    left: auto;
    right: 0;
  }
  .catalog-filters > .custom-select .select-options {
    width: min(320px, calc(100vw - 66px));
  }
  .hero-search > .button {
    padding-inline: 14px;
  }
}
