.shared-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding: 1rem 1rem 2rem;
  color: white;
  font-family: "Space Mono", monospace;
}

.shared-form-visual {
  display: none;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.shared-form-image {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
  object-fit: contain;
}

.shared-form-fields {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
  min-height: 52rem;
}

.shared-form-title {
  margin: 0 0 1.5rem;
  font-size: clamp(1.5rem, 5vw, 2.25rem);
  font-weight: bold;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.shared-form-fields .public-form label {
  font-size: 1rem;
}

@media (min-width: 640px) {
  .shared-form-layout {
    padding-inline: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .shared-form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
  }
  .shared-form-fields {
    justify-content: center;
  }
  .shared-form-visual {
    display: flex;
  }
  .shared-form-image {
    width: 400px;
    height: 400px;
  }
}

/* Shared dimensions for primary form actions, including wrapped mobile labels. */
.shared-form-fields button[type="submit"],
.shared-form-fields .form-submit-action {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 8px 16px;
  border: 0;
  font-family: "Space Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}

#hackerForm .buttonsBox > .form-submit-action {
  flex: 0 0 100%;
}
