.contact-form select {
  width: 100%;
  min-height: 50px;
  padding: 0.85rem 0.95rem;
  border: 1px solid rgba(11, 20, 32, 0.16);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand) 50%),
    linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.contact-form select:invalid {
  color: var(--muted);
}

.contact-form select:focus-visible {
  outline: 2px solid rgba(27, 73, 101, 0.22);
  outline-offset: 2px;
  border-color: rgba(27, 73, 101, 0.36);
}

.contact-form .form-field--upload {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-form .form-field__label {
  color: var(--ink);
  font-weight: 800;
}

.contact-form .file-upload {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 58px;
  padding: 0.5rem;
  border: 1px solid rgba(11, 20, 32, 0.16);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

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

.contact-form .file-upload__button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid rgba(27, 73, 101, 0.14);
  border-radius: 999px;
  background: rgba(27, 73, 101, 0.08);
  color: var(--brand);
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.contact-form .file-upload__status {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form .file-upload__input:focus-visible + .file-upload__button {
  outline: 2px solid rgba(27, 73, 101, 0.22);
  outline-offset: 2px;
}

.contact-form .file-upload__button:hover {
  border-color: rgba(27, 73, 101, 0.3);
  background: rgba(27, 73, 101, 0.13);
}

.field-note {
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.55;
}

.form-actions {
  display: grid;
  justify-items: start;
  gap: 1.95rem;
  margin-top: 1rem;
}

.form-actions .button {
  margin-bottom: 0;
}

.form-note {
  display: block;
  max-width: 40ch;
  line-height: 1.55;
  margin-top: 0;
  padding-top: 0.9rem;
}

@media (max-width: 720px) {
  .contact-form .file-upload {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    padding: 0.55rem;
  }

  .contact-form .file-upload__button {
    width: 100%;
  }

  .contact-form .file-upload__status {
    padding: 0.15rem 0.35rem 0.25rem;
    font-size: 0.88rem;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .form-actions {
    gap: 1.45rem;
    margin-top: 1rem;
  }

  .form-note {
    max-width: 34ch;
    padding-top: 0.8rem;
    font-size: 0.9rem;
    line-height: 1.42;
  }
}

.form-feedback[data-state="pending"] {
  color: #214b66;
}

.form-feedback[data-state="success"] {
  color: #1d6643;
}

.form-feedback[data-state="error"] {
  color: #b44f2d;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
