/* Hero */
.vacancies__hero {
  display: flex;
  flex-direction: column;
  gap: 16px;

  @media (min-width: 1024px) {
    flex-direction: row;
    gap: 20px;
  }

  img[left] {
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 5 / 3;
    max-height: 262px;
  }
}

.vacancies__hero-content {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding-block: 12px;

  h4 {
    font-size: 28px;
    line-height: 34px;
    font-weight: 500;
  }

  p {
    font-size: 16px;
    line-height: 22px;
    font-weight: 400;
  }
}

.vacancies__hero-content--upper {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

/* List */
.vacancies__list {
  h2 {
    font-size: 32px;
    font-weight: 700;
    margin-top: 72px;
    margin-bottom: 32px;
  }
}

.vacancies__list-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;

  hr {
    height: 1px;
    background-color: #dddddd;
    border: 0;
  }
}

.vacancies__list-card {
  display: flex;
  flex-direction: column;
  gap: 20px;

  span[icon] {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 16px;

    @media (min-width: 768px) {
      font-size: 16px;
      line-height: 20px;
      gap: 28px;
    }
  }

  span[icon] img {
    height: 16px;

    @media (min-width: 768px) {
      height: 24px;
    }
  }

  [title] {
    font-size: 20px;
    font-weight: 500;

    @media (min-width: 768px) {
      font-size: 28px;
    }
  }
}

.vacancies__list-card-main {
  display: flex;
  gap: 20px;
  flex-direction: column;

  @media (min-width: 768px) {
    flex-direction: row;
  }

  [main] {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
    padding-block: 4px;
  }
}

.vacancies__list-card-icon {
  border-radius: 8px;
  width: 100%;
  background-color: #efefef;
  padding-block: 20px;

  display: flex;
  align-items: center;
  justify-content: center;

  @media (min-width: 768px) {
    max-width: 214px;
  }

  img {
    height: 98px;

    @media (min-width: 768px) {
      height: 74px;
    }
  }
}

.vacancies__list-card-info {
  list-style-type: disc;
  line-height: 17px;
  font-size: 12px;
  padding-left: 20px;

  @media (min-width: 768px) {
    line-height: 24px;
    font-size: 16px;
    padding-left: 24px;
  }
}
.vacancies__list-salary {
  font-size: 22px;
  line-height: 30px;
  font-weight: 500;

  @media (min-width: 768px) {
    font-size: 28px;
    line-height: 36px;
  }
}

.vacancies__list-button {
  height: fit-content;
  margin-left: auto;
  width: 100%;
  color: #ff0002;
  background: #ff00021a;
  padding: 12px 20px;
  border-radius: 16px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;

  @media (min-width: 768px) {
    width: fit-content;
  }

  img {
    height: 32px;
  }
}

/* Form */
.vacancies__form {
  margin-top: 52px;
  margin-bottom: 42px;
  border-radius: 24px;
  padding: 20px 16px;
  width: 100%;
  background: #202020;
  @media (min-width: 1200px) {
    padding: 40px 58px;
    margin-top: 76px;
    margin-bottom: 62px;
    background:
      url(../../../img/vacancies/form-bg.svg) bottom right / auto no-repeat,
      #202020;
  }
}
.vacancies__form-wrapper {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;

  @media (min-width: 1200px) {
    width: 60%;
  }
}

.vacancies__form__header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;

  @media (min-width: 1200px) {
    gap: 16px;
  }

  img {
    height: 24px;
    @media (min-width: 1200px) {
      height: 42px;
    }
  }
}
.vacancies__form__header-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #ffffff;

  @media (min-width: 1200px) {
    gap: 28px;
  }

  h3[title] {
    font-size: 18px;
    line-height: 26px;
    font-weight: 500;

    @media (min-width: 1200px) {
      font-size: 35px;
      line-height: 105%;
    }
  }
  p[desc] {
    font-size: 12px;
    line-height: 20px;
    font-weight: 300;

    @media (min-width: 1200px) {
      font-size: 16px;
      line-height: 24px;
    }
  }
}

.vacancies__form form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;

  @media (min-width: 1200px) {
    width: 80%;
  }

  .first-row {
    display: flex;
    flex-direction: column;
    gap: 20px;

    @media (min-width: 1200px) {
      flex-direction: row;
    }
  }

  .input__wrapper {
    max-width: unset !important;
  }

  input,
  select[name="vacancies-list"],
  label[file] {
    position: relative;
    font-size: 15px;
    color: #ffffff;
    background: #f3f3f41f;
    border-radius: 12px;
    padding: 14px 12px;
    width: 100%;

    ::placeholder {
      color: #8b8b8b;
    }
  }
  .input__wrapper {
    position: relative !important;
  }
  .input__wrapper::after {
    content: "*";
    color: #f90000;
    position: absolute;
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
  }

  select[name="vacancies-list"] {
    appearance: none;
    position: relative;
    background-image: url(../../../img/icons/dropdown-white.svg);
    background-repeat: no-repeat;
    background-position: right 12px center;
  }
  select[name="vacancies-list"] option {
    color: #8b8b8b;
  }

  span[placeholder] {
    color: #8b8b8b;
    width: fit-content;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
  }
  input[type="file"] {
    display: none;
  }

  button[type="submit"] {
    margin-top: 12px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 12px;
    color: #ffffff;
    background: #f90000;
  }
}
