/* ==========================================================================
   Form fields — shared by pages with forms (Vacancy detail, Contact us)
   Figma "Text Input [1.0]": 14px label, 40px white box, soft stroke.
     <div class="field">
       <label class="field__label" for="x">Label</label>
       <input class="field__input" id="x">
     </div>
   ========================================================================== */

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field__label {
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-medium);
  letter-spacing: -0.084px;
  color: var(--color-text-main);
}

.field__input {
  width: 100%;
  height: 40px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--color-stroke-soft);
  border-radius: 10px;
  background: var(--color-white);
  box-shadow: var(--shadow-input);
  font: inherit;
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  letter-spacing: -0.084px;
  color: var(--color-text-main);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field__input::placeholder {
  color: var(--color-text-soft);
  opacity: 1;
}

.field__input:focus,
.field__input:focus-within {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(79, 54, 234, 0.15);
}

/* small white button next to a field ("Upload") */
.field-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--color-stroke-soft);
  border-radius: 6px;
  background: var(--color-white);
  box-shadow: var(--shadow-button);
  font-size: var(--fs-sm);
  line-height: var(--lh-sm);
  font-weight: var(--fw-medium);
  letter-spacing: -0.084px;
  color: var(--color-text-sub);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.field-button:hover {
  background: var(--color-zinc-100);
}
