/* Field
   An underline-style form field used by the marketing forms: a bold label
   above a borderless input that carries only a bottom rule. Works for text
   inputs, textareas and selects. Colour and type from tokens.css. */

.dp-field {
  display: flex;
  flex-direction: column;
  gap: var(--dp-space-2);
}

.dp-field-label {
  font-size: var(--dp-text-sm);
  font-weight: var(--dp-weight-bold);
  color: var(--dp-navy);
}

.dp-field-input {
  width: 100%;
  padding: var(--dp-space-2) 0;
  font: inherit;
  font-size: var(--dp-text-base);
  color: var(--dp-text);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--dp-border-strong);
  border-radius: 0;
  outline: none;
  transition: border-color 0.15s ease;
}

.dp-field-input::placeholder { color: var(--dp-text-subtle); }

.dp-field-input:focus { border-bottom-color: var(--dp-link); }

textarea.dp-field-input { resize: vertical; }

select.dp-field-input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23101a50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 1.1rem;
  padding-right: 1.6rem;
}
