.contact-badges {
  svg {
    width: 1em;
  }
}

.sourcing {
  fieldset {
    border: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5em;

    span:last-child {
      font-style: italic;
      font-size: 0.8em;
      margin-top: -0.5em;
    }
  }

  .sourcing-form {
    label {
      font: var(--font-monospace);
      text-transform: uppercase;
      font-weight: 500;
      font-size: 1rem;
    }

    header {
      max-width: 60ch;
      margin-left: 1.5em;
    }
  }

  .divider {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    line-height: 0.1em;
    margin-left: 1.5em;
    text-align: center;

    span {
      background: var(--bg-background);
      padding: 0 10px;
      font-weight: 500;
    }
  }

  .loading-overlay {
    position: absolute;
    height: 100%;
    width: 100%;
    z-index: 100;
    background: rgba(0, 0, 0, 0.08);

    .loading-spinner {
      height: 5rem;
      width: 5rem;
    }
  }

  [data-sourcing-search-radius-target] {
    border: solid 1px var(--border-border);
    padding: 1em;
    max-width: 50ch;
  }

  .submit__wrapper {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    padding-left: 1.25em;

    button {
      width: 50ch;
    }
  }

  .person-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  [data-controller="sourcing-form-type"] .checked-radio {
    --selector-width: 15ch;
  }
}

.hw-combobox {
  max-width: 60ch;
}

.hw-combobox__main__wrapper {
  width: 100%;
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0.125rem;
}

.hw-combobox__container label {
  pointer-events: none;
}

.hw-combobox__input {
  border-radius: 0.125rem;
}

.hw-combobox__input[disabled] {
  opacity: 0.5;
  pointer-events: none;

  ~ .hw-combobox__handle {
    opacity: 0.6;
    pointer-events: none;
  }
}


.checked-radio {
  --selector-width: 10ch;
  display: flex;
  gap: 1em;

  label {
    display: block;
    cursor: pointer;
    text-transform: none;
    font-weight: normal;
    font-size: 1rem;
    text-align: center;
    border: solid 1px var(--border-border);
    padding: 0.4rem 0.6rem;
    border-radius: var(--form-radius);
    width: var(--selector-width);
    box-sizing: border-box;
  }

  input {
    display: none;
  }

  input:checked + label {
    border-width: 2px;
    border-color: var(--border-border-darkest);
    font-weight: 500;
  }
}

/* Search Card Styles */
/* Search Card with 3D Hover Effect */
.sourcing-search-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  border-radius: 0.25rem;
  background: var(--bg-background);
  cursor: pointer;
  /* Remove the original border since we'll be using :before and :after */
  border: none;
  transition: color 0.1s ease;
}

/* Inner content positioning */
.sourcing-search-card > * {
  position: relative;
  z-index: 2;
  transition: transform 0.1s ease;
}

/* Background layer (shadow effect) */
.sourcing-search-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  border: 1.5px solid var(--bg-primary);
  border-radius: 0.25rem;
  box-sizing: border-box;
  z-index: 0;
}

/* Foreground layer (movable part) */
.sourcing-search-card:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-background);
  border: 1px solid var(--border-border);
  border-radius: 0.25rem;
  box-sizing: border-box;
  transition: transform 0.1s ease, border-color 0.1s ease;
  z-index: 1;
  transform: translate(0px, 0px);
}

.sourcing-search-card:hover:after {
  transform: translate(-4px, -4px);
  border-color: var(--bg-primary);
}

.sourcing-search-card:hover > * {
  transform: translate(-4px, -4px);
}

.sourcing-search-card-header {
  display: flex;
  justify-content: space-between;
  min-height: 4.5rem;
  border-bottom: 1px solid var(--border-border);
}
.sourcing-search-card-action {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid var(--border-border);
  min-height: 4.5rem;
  max-width: 4.5rem;
}
