.open-page {
  min-width: 320px;
}

.open-header {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(1.25rem, 6vw, 4rem);
  border-bottom: 1px solid var(--rule);
}

.open-shell {
  width: min(100%, 76rem);
  margin: 0 auto;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.25rem, 6vw, 4rem) clamp(4rem, 10vw, 8rem);
}

.open-shell > section {
  max-width: var(--measure);
}

.open-shell h1,
.open-shell h2 {
  max-width: 14ch;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: 0;
}

.open-intro,
.upload-note,
.handling-link {
  margin: clamp(1.5rem, 3vw, 2rem) 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.06rem, 1.25vw, 1.2rem);
  font-weight: 400;
  line-height: 1.68;
}

#business-file-form {
  margin-top: clamp(3rem, 7vw, 5rem);
}

.form-section,
.upload-section,
.contact-section {
  margin: 0;
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border: 0;
  border-top: 1px solid var(--rule);
}

.form-section label,
.upload-section legend,
.contact-section legend {
  display: block;
  width: 100%;
  margin: 0 0 0.85rem;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.18rem, 2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.3;
}

.form-section input,
.upload-section input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  color: var(--ink);
  font: inherit;
  background: var(--paper-raised);
  border: 1px solid var(--rule-strong);
  border-radius: 2px;
}

.form-section input:focus-visible,
.upload-section input[type="file"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.file-inputs {
  display: grid;
  gap: 0.75rem;
}

.add-file {
  margin-top: 0.9rem;
}

.identity-fields {
  margin-top: clamp(3rem, 6vw, 4rem);
}

.field-note,
.field-error,
.form-error {
  margin: 0.6rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  font-weight: 400;
  line-height: 1.5;
}

.field-error,
.form-error {
  min-height: 1.5em;
  color: var(--stamp);
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.contact-choice.is-selected {
  background: var(--accent);
  border-color: var(--accent-deep);
}

.contact-choice.is-selected::before {
  transform: scaleX(1);
}

.submit-file {
  min-height: 48px;
  margin-top: 0.5rem;
}

.submit-file[disabled] {
  cursor: wait;
  opacity: 0.68;
}

.handling-link {
  max-width: var(--measure);
  font-size: 0.96rem;
}

.handling-link a {
  color: var(--ink);
  text-decoration-color: var(--accent-deep);
  text-underline-offset: 0.2em;
}

.confirmation-view .ms-prose {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.confirmation-view h2 {
  width: fit-content;
}

.confirmation-view h2:focus {
  outline: 2px solid var(--stamp);
  outline-offset: 0.12em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 520px) {
  .contact-options .btn {
    flex: 1 1 calc(50% - 0.7rem);
    text-align: center;
  }
}
