.attachment-field {
  position: relative;
  margin-bottom: 1.5rem;
}

.attachment-heading {
  color: #121212;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.attachment-heading label {
  cursor: pointer;
}

.attachment-heading em {
  margin-left: .4rem;
  color: #686868;
  font-size: .7rem;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
}

.file-control {
  display: flex;
  align-items: stretch;
  min-height: 3.1rem;
  border: 1px dashed #aaa99f;
  background: #f9faf7;
  color: #121212;
  cursor: pointer;
  transition: border-color .18s, background-color .18s, outline-color .18s;
}

.file-button {
  display: flex;
  align-items: center;
  padding: .75rem 1rem;
  background: #f2e697;
  color: #121212;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.drop-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: .15rem;
  align-items: center;
  padding: .75rem 1rem;
  text-transform: none;
}

.drop-copy strong {
  color: #121212;
  font-size: .8rem;
}

#file-name {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  color: #686868;
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: 0;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: nowrap;
}

.file-input:focus-visible + .file-control,
.file-control:hover,
.file-control.is-dragging {
  border-color: #8b7b2c;
  outline: 3px solid rgba(242, 230, 151, .6);
}

.file-control.is-dragging {
  background: #fffbe3;
}

@media (max-width: 460px) {
  .file-control { flex-direction: column; }
  .file-button { justify-content: center; }
}

