/* Form controls */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.input,
.select,
.textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: var(--radius-s);
  background: var(--input-bg);
  border: 1px solid var(--input-line);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-3);
}

.input:focus-visible,
.select:focus-visible,
.textarea:focus-visible {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
  outline-offset: 0;
}

.input[aria-invalid="true"],
.textarea[aria-invalid="true"] {
  border-color: var(--accent);
}

.textarea {
  height: auto;
  min-height: 150px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

/* Native select with a token-colored chevron drawn by the wrapper */
.select-wrap {
  position: relative;
}

.select {
  padding-right: 40px;
  appearance: none;
  -webkit-appearance: none;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 18px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border-right: 2px solid var(--text-3);
  border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg);
  pointer-events: none;
}
