#contact-form .contact-controls {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

#contact-form .form-status {
  display: flex;
  align-items: center;
  min-height: 52px;
  margin-top: 24px;
  padding: 12px 14px;
  border: 1px solid var(--line-c);
  border-left: 4px solid var(--navy-3);
  border-radius: 10px;
  background: var(--bg-soft2);
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
  overflow-wrap: break-word;
}

#contact-form .form-status.is-waiting {
  border-left-color: var(--gold);
}

#contact-form .form-status.is-error {
  border-color: #b3261e;
  border-left-color: #b3261e;
  background: #fdf3f2;
  color: #8c1d18;
}

#contact-form .form-status.is-success {
  border-color: #1f6b45;
  border-left-color: #1f6b45;
  background: #eef7f0;
  color: #16532f;
}

#contact-form .form-noscript {
  margin-top: 24px;
  padding: 18px;
  border: 2px solid var(--gold);
  border-radius: 12px;
  background: #fff8ee;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.8;
}

#contact-form .form-noscript__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

#contact-form .form-noscript__links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: var(--navy);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

#contact-form .photo-input {
  display: block;
  width: 100%;
  min-height: 56px;
  padding: 6px;
  border: 1.5px solid #94a6b8;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

#contact-form .photo-input::file-selector-button {
  min-height: 44px;
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

#contact-form .photo-input:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--navy);
}

#contact-form .photo-input:disabled::file-selector-button {
  cursor: not-allowed;
}

#contact-form .photo-status {
  min-height: 27px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

#contact-form .photo-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

#contact-form .photo-item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line-c);
  border-radius: 12px;
  background: var(--bg-soft2);
}

#contact-form .photo-item img {
  width: 88px;
  height: 88px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

#contact-form .photo-item__body {
  min-width: 0;
}

#contact-form .photo-item__name {
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

#contact-form .photo-item__meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

#contact-form .photo-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin-top: 8px;
  padding: 7px 12px;
  border: 1px solid #b3261e;
  border-radius: 8px;
  background: #fff;
  color: #8c1d18;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

#contact-form .photo-remove:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

#contact-form .photo-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 14px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

#contact-form .photo-clear[hidden] {
  display: none;
}

#contact-form .photo-clear:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

#contact-form .photo-remove:disabled,
#contact-form .photo-clear:disabled {
  cursor: not-allowed;
  opacity: .55;
}

#contact-form #field-photos.is-error .photo-input {
  border-color: #b3261e;
  border-width: 2px;
  background: #fdf3f2;
}

#contact-form .turnstile-shell {
  min-height: 72px;
  margin-top: 22px;
}

#contact-form .turnstile-shell[hidden] {
  display: none;
}

#contact-form #turnstile-container {
  max-width: 100%;
  overflow: hidden;
}

@media (max-width: 680px) {
  #contact-form .photo-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 400px) {
  #contact-form .photo-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  #contact-form .photo-item img {
    width: 72px;
    height: 72px;
  }

  #contact-form .form-noscript__links a {
    width: 100%;
  }

  #contact-form .photo-clear {
    width: 100%;
  }
}

@media (max-width: 360px) {
  #form-lock.formlock.is-on {
    padding-inline: 10px;
  }
}
