.form {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form__fields {
  display: grid;
  min-width: 0;
}

.form__field {
  min-width: 0;
}

.form__label {
  display: block;
  margin: 0;
  color: var(--color-ink);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.37;
  letter-spacing: -0.04em;
}

.form__label--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.form__control {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  padding: 0 0 16px;
  border: 0;
  border-bottom: 1px solid var(--color-muted);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: 400 14px/17px "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

.form__control::placeholder {
  color: var(--color-muted);
  opacity: 1;
}

.form__control--lead {
  margin-top: 0;
  padding-bottom: 15px;
}

.form__hint,
.form__error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.3;
}

.form__error {
  color: #b42318;
}

.form__consent {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 460px;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.form__consent-control {
  appearance: none;
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin: 0;
  border: 1px solid var(--color-ink);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
}

.form__consent-control:checked {
  background: var(--color-ink);
  box-shadow: inset 0 0 0 3px #fff;
}

.form__consent-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.form__consent--vacancy {
  font-family: "Gilroy", Arial, sans-serif;
}

.form__file {
  display: flex;
  position: relative;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-muted);
  color: var(--color-ink);
  font-weight: 400;
  cursor: pointer;
}

.form__file-icon {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.form--dialog {
  display: grid;
  gap: 24px;
  margin-top: 30px;
}

.form__fields--dialog {
  gap: 24px;
}

.form__file-text {
  min-width: 0;
}

.form__file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.form__file:focus-within,
.form__control:focus-visible,
.form__consent-control:focus-visible,
.form__consent-link:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
}

.form__submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 767px) {
  .form__control--lead {
    font-size: 12px;
    line-height: 15px;
  }
}
