.smaller-form {
  width: fit-content;
  max-width: 35rem;
  margin: var(--grid-gutter) auto;
  border: var(--border-size-1) solid var(--accent-color);
  border-radius: var(--border-size-3);
  padding: 0 var(--grid-gutter);
  text-align: center;

  &:focus-within {
    border-color: var(--gray-text);
  }

  h1:first-of-type {
    margin-block-start: calc(var(--grid-gutter) / 2);
  }

  &.organization {
    max-width: 45rem;
  }

  .field {
    padding-inline: 0;
  }
}

.hidden {
  display: none;
}

.ask-totp-code {
  text-align: start;
}

.signin.narrow {
  max-width: 24rem;
}

[type=file]::file-selector-button {
  padding: 0.3rem 0.6rem;
}

.button_to {
  display: inline-block;
}

.candidate_type.field {
  padding-inline-end: 0.5rem;
}

.work-experience-years {
  padding: 0.25rem;
  width: 1.75rem;
  text-align: center;
}

.offer-form-progress {

  li.current {
    font-weight: bold;
  }

}

.job-locations {
  width: fit-content;

  .locations-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    margin-block-start: 1rem;

    .column {
      margin-inline-end: 1rem;
    }

    label {
      display: flex;
      margin: 0.5rem 0;
      gap: 0.25rem;
      &[for=__chk_location_ids_remote] { 
        margin-block-end: 1.875lh;
      }
    }
  }
}

.remote label:has(:checked) {
  font-weight: 600;
  color: var(--canvas-text);
}

.remote-type {
  margin-block-start: 0;
}

.practise-fields {
  width: fit-content;
  max-width: 66rem;
}

.practise-field-list {
  font-size: 0.875rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "civil business admin family"
    "civil business admin criminal"
    "civil business admin other";
  gap: 1rem;
  align-items: start;

  .civil {
    grid-area: civil;
    /* grid-row: 1 / 4; */
  }

  .business {
    grid-area: business;
    /* grid-row: 1 / 4; */
  }

  .administration {
    grid-area: admin;
    /* grid-row: 1 / 4; */
  }

  .family {
    grid-area: family;
    /* grid-row: 1 / 2; */
  }

  .criminal {
    grid-area: criminal;
    /* grid-row: 2 / 3; */
  }

  .other {
    grid-area: other;
    /* grid-row: 3 / 4; */
  }

  h4 {
    margin-block-end: 0.5rem;
  }

  .subcategory {
    margin-bottom: 1rem;
  }

  .practise-field {
    display: block;
    padding-inline-start: 1.25rem;
    text-indent: -1.25rem;
  }
}

.destroy-checkbox {
  position: relative;
  inset: 0.125rem 0 0;

  svg {
    opacity: 0;
    height: 1.25rem;
    width: 1.25rem;

    & * {
      stroke: var(--color-dark-red);
      stroke-width: 0.125rem;
    }
  }

  input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1em;
    height: 1em;
    cursor: pointer;

    &:focus+svg {
      outline: 0.1875rem solid var(--color-dark-red);
      outline-offset: 0.125rem;
    }

    /* hide the focus styles for mouse users */
    &:focus:not(:focus-visible)+svg {
      outline: none;
    }

    &:hover+svg * {
      stroke: var(--color-red);
    }
  }
}

.language-ability,
.studies.fields,
.document-file
 {
  &:hover svg {
    opacity: 1;
  }

  .field {
    width: fit-content;
  }
}

[name="language-selection"] {
  width: fit-content;
}

.offer-logo {
  max-width: 20rem;
  max-height: 10rem;
  width: unset !important;
}

.bilingual {
  &:has(.field span[lang="en"]) .field {
    span {
      position: relative;

      &::after {
        content: attr(lang);
        display: inline-block;
        position: absolute;
        top: -1lh;
        right: 0;
        font-weight: 500;
        font-size: var(--font-size-xs);
      }
    }
  }
}
