.contact-page-form,
.career-page-form {
  max-width: 1500px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.contact-page-form input,
.contact-page-form textarea,
.career-page-form input,
.career-page-form textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background-color: #f4f4f4;
  color: var(--color-text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-page-form input,
.career-page-form input {
  min-height: 78px;
  padding: 0 36px;
}

.contact-page-form textarea,
.career-page-form textarea {
  padding: 28px 36px 0;
  resize: vertical;
}

.form-file-upload {
  position: relative;
}

.form-file-upload__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.form-file-upload__field {
  width: 100%;
  min-height: 78px;
  padding: 16px 24px 16px 36px;
  border-radius: 12px;
  background-color: #f4f4f4;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  transition: background-color 0.28s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-file-upload__text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #9f9f9f;
  font-size: 16px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-file-upload__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.form-file-upload__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) saturate(0%) opacity(0.42);
}

.form-file-upload__input:focus-visible + .form-file-upload__field {
  background-color: rgba(235, 111, 27, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  outline: none;
}

.form-file-upload.has-file .form-file-upload__field {
  box-shadow: inset 0 0 0 1px rgba(235, 111, 27, 0.2);
}

.form-file-upload.has-file .form-file-upload__text {
  color: var(--color-text);
}

.contact-page-form input::placeholder,
.contact-page-form textarea::placeholder,
.career-page-form input::placeholder,
.career-page-form textarea::placeholder {
  color: #9f9f9f;
}

.contact-page-form input:focus,
.contact-page-form textarea:focus,
.career-page-form input:focus,
.career-page-form textarea:focus {
  background-color: rgba(235, 111, 27, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02);
  outline: none;
}

.contact-page-form__submit,
.career-page-form__submit {
  margin-top: 18px;
  min-height: 72px;
  border-radius: 999px;
}

@media (hover: hover) and (pointer: fine) {
  .contact-page-form input:hover,
  .contact-page-form textarea:hover,
  .career-page-form input:hover,
  .career-page-form textarea:hover,
  .form-file-upload__field:hover {
    background-color: rgba(235, 111, 27, 0.08);
    box-shadow: inset 0 0 0 1px rgba(235, 111, 27, 0.06);
  }
}

@media (max-width: 820px) {
  .contact-page-form input,
  .career-page-form input {
    min-height: 64px;
    padding: 0 22px;
  }

  .form-file-upload__field {
    min-height: 64px;
    padding: 14px 18px 14px 22px;
  }

  .form-file-upload__text {
    font-size: 15px;
  }

  .form-file-upload__icon {
    width: 18px;
    height: 18px;
  }

  .form-file-upload__icon img {
    width: 18px;
    height: 18px;
  }

  .contact-page-form textarea,
  .career-page-form textarea {
    padding: 22px;
  }

  .contact-page-form__submit,
  .career-page-form__submit {
    min-height: 60px;
    margin-top: 10px;
  }
}
