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

.form-header-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 13px;
  font-weight: 650;
}

.form-header-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.form-intro {
  position: relative;
  overflow: hidden;
  padding-block: 95px;
  background: linear-gradient(135deg, #faf9f6, #edf1f3);
}

.form-intro__grid {
  position: absolute;
  inset: 0;
  opacity: 0.34;
  background-image:
    linear-gradient(rgb(35 91 148 / 6%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(35 91 148 / 6%) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, black, transparent 90%);
}

.form-intro__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: end;
  gap: clamp(60px, 8vw, 115px);
}

.form-intro h1 {
  margin: 0;
  color: var(--navy-950);
  font-size: clamp(48px, 5vw, 68px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

.form-intro__layout > div:last-child > p {
  margin-bottom: 24px;
  color: #465b70;
  font-size: 16px;
  line-height: 1.9;
}

.form-intro ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #40556a;
  font-size: 13px;
  font-weight: 650;
}

.form-intro li::before {
  margin-right: 9px;
  color: var(--gold);
  content: "—";
}

.form-area {
  padding-block: 100px 130px;
  background: #f4f7fb;
}

.form-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 50px;
}

.form-progress {
  position: sticky;
  top: 112px;
  padding: 28px 26px;
  color: white;
  background: linear-gradient(145deg, #123f63, var(--navy-950));
  box-shadow: 0 25px 60px rgb(5 28 50 / 17%);
}

.form-progress > p {
  margin-bottom: 27px;
  color: #98b8dc;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}

.form-progress ol {
  display: grid;
  gap: 0;
  margin: 0 0 25px;
  padding: 0;
  list-style: none;
}

.form-progress li {
  position: relative;
  display: grid;
  min-height: 58px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  color: #71859a;
}

.form-progress li::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 14px;
  width: 1px;
  content: "";
  background: #27425b;
}

.form-progress li:first-child::before {
  top: 50%;
}

.form-progress li:last-child::before {
  bottom: 50%;
}

.form-progress li span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-content: center;
  border: 1px solid #3b546b;
  border-radius: 50%;
  background: var(--navy-950);
  font-size: 10px;
}

.form-progress li strong {
  font-size: 13px;
}

.form-progress li.is-complete,
.form-progress li.is-current {
  color: white;
}

.form-progress li.is-complete span {
  border-color: var(--gold);
  color: var(--navy-950);
  background: var(--gold);
}

.form-progress li.is-current span {
  border-color: #64a0f1;
  background: var(--blue-600);
  box-shadow: none;
}

.form-progress__bar {
  height: 3px;
  overflow: hidden;
  background: #294159;
}

.form-progress__bar i {
  display: block;
  width: 25%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), #4c8fed);
  transition: width 240ms ease;
}

.form-progress > small {
  display: block;
  margin-top: 10px;
  color: #8ea3b8;
  font-size: 11px;
  text-align: right;
}

.multi-form {
  min-width: 0;
  padding: 48px 52px;
  border: 1px solid #d9e2eb;
  background: white;
  box-shadow: 0 30px 75px rgb(14 45 75 / 8%);
}

.form-backend-notice {
  margin-bottom: 42px;
  padding: 15px 18px;
  border-left: 3px solid #d39b32;
  color: #725216;
  background: #fff8e8;
  font-size: 12px;
  line-height: 1.7;
}

.form-backend-notice strong {
  display: block;
  color: #5c4010;
  font-size: 13px;
}

.form-step__number {
  margin-bottom: 17px;
  color: var(--blue-600);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
}

.form-step h2 {
  margin: 0 0 15px;
  color: var(--navy-950);
  font-size: clamp(31px, 3.5vw, 45px);
  font-weight: 640;
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.form-step__lead {
  margin-bottom: 38px;
  color: var(--muted);
  font-size: 15px;
}

.topic-options {
  margin: 0;
  padding: 0;
  border: 0;
}

.topic-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.topic-options label {
  position: relative;
  cursor: pointer;
}

.topic-options input {
  position: absolute;
  opacity: 0;
}

.topic-options label > span {
  display: grid;
  min-height: 145px;
  padding: 22px;
  border: 1px solid #d4dee8;
  background: #f9fbfd;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.topic-options label:hover > span {
  border-color: #9dbde5;
  transform: translateY(-1px);
}

.topic-options input:focus-visible + span {
  outline: 3px solid #ffbf47;
  outline-offset: 2px;
}

.topic-options input:checked + span {
  border-color: var(--blue-600);
  background: #f1f7ff;
  box-shadow: inset 0 0 0 1px var(--blue-600);
}

.topic-options b {
  margin-bottom: 15px;
  color: var(--blue-600);
  font-size: 11px;
}

.topic-options strong {
  margin-bottom: 4px;
  font-size: 17px;
}

.topic-options small {
  color: var(--muted);
  font-size: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px 20px;
}

.field-grid__wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 8px;
  color: #21394f;
  font-size: 13px;
  font-weight: 700;
}

.form-field label span {
  padding: 1px 6px;
  color: white;
  background: var(--blue-600);
  font-size: 10px;
}

.form-field label small {
  color: #6b7b8c;
  font-size: 11px;
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  border: 1px solid #cdd8e3;
  border-radius: 0;
  color: var(--ink);
  background: #fbfcfe;
  font-size: 16px;
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.75;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue-600);
  outline: 2px solid rgb(23 105 232 / 18%);
  background: white;
}

.form-actions {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid #e0e7ee;
}

.form-actions--end {
  justify-content: flex-end;
}

.form-actions .button {
  min-width: 180px;
}

.file-field {
  margin-bottom: 32px;
  padding: 24px;
  border: 1px dashed #9bb4cc;
  background: #f7fafc;
}

.file-field > label {
  display: grid;
  min-height: 105px;
  grid-template-columns: 48px 1fr;
  align-content: center;
  gap: 2px 14px;
  cursor: pointer;
}

.file-field > label > span {
  display: grid;
  width: 42px;
  height: 42px;
  grid-row: 1 / 3;
  place-content: center;
  border: 1px solid #a9bed1;
  color: var(--blue-600);
  background: white;
  font-size: 24px;
}

.file-field > label strong {
  font-size: 16px;
}

.file-field > label small,
.file-field > p {
  color: var(--muted);
  font-size: 12px;
}

.file-field input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file-field input:focus-visible + p {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

.file-list {
  display: grid;
  gap: 7px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.file-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  color: #294159;
  background: white;
  font-size: 12px;
}

.file-error {
  margin: 10px 0 0 !important;
  color: #b42318 !important;
  font-weight: 650;
}

.review-panel {
  margin-bottom: 25px;
  border: 1px solid #d5dfe8;
}

.review-panel__heading {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 19px;
  border-bottom: 1px solid #d5dfe8;
  background: #f4f7fa;
}

.review-panel h3 {
  margin: 0;
  font-size: 17px;
}

.review-panel button {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  color: var(--blue-700);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.review-panel dl {
  margin: 0;
}

.review-panel dl div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 22px;
  padding: 15px 19px;
  border-top: 1px solid #e5ebf0;
}

.review-panel dl div:first-child {
  border-top: 0;
}

.review-panel dt {
  color: #68798a;
  font-size: 12px;
}

.review-panel dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.consent-panel {
  padding: 20px;
  background: #eef4fa;
}

.consent-panel label {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.8;
}

.consent-panel input {
  width: 20px;
  height: 20px;
  margin-top: 4px;
  accent-color: var(--blue-600);
}

.consent-panel a {
  color: var(--blue-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.consent-panel p {
  margin: 12px 0 0 34px;
  color: var(--muted);
  font-size: 12px;
}

.submit-status {
  margin: 22px 0 0;
  color: #8a3f00;
  font-size: 13px;
  font-weight: 650;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

@media (max-width: 900px) {
  .form-intro__layout {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .form-layout {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .form-progress {
    position: static;
  }

  .form-progress ol {
    grid-template-columns: repeat(4, 1fr);
  }

  .form-progress li {
    min-height: 50px;
    grid-template-columns: 28px;
    justify-content: center;
  }

  .form-progress li::before {
    top: 14px !important;
    right: 0;
    bottom: auto !important;
    left: 0;
    width: auto;
    height: 1px;
  }

  .form-progress li:first-child::before {
    left: 50%;
  }

  .form-progress li:last-child::before {
    right: 50%;
  }

  .form-progress li strong {
    display: none;
  }
}

@media (max-width: 620px) {
  .form-header-nav a:first-child {
    display: none;
  }

  .form-intro {
    padding-block: 65px;
  }

  .form-intro h1 {
    font-size: 38px;
  }

  .form-intro ul {
    grid-template-columns: 1fr;
  }

  .form-area {
    padding-block: 45px 85px;
  }

  .form-progress {
    padding: 20px;
  }

  .multi-form {
    padding: 28px 20px;
  }

  .form-backend-notice {
    margin-bottom: 32px;
  }

  .form-step h2 {
    font-size: 30px;
  }

  .topic-options,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .field-grid__wide {
    grid-column: auto;
  }

  .topic-options label > span {
    min-height: 120px;
  }

  .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .form-actions .button {
    width: 100%;
  }

  .form-actions .button--primary {
    grid-row: 1;
  }

  .review-panel dl div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}
