.sp-fit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  margin: 32px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}

.sp-fit-list li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-2);
}

.sp-fit-list li::before {
  color: var(--accent);
  content: "→";
  font-family: var(--mono);
}

.sp-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 32px 0;
  padding: 0;
  border: 1px solid var(--rule);
  list-style: none;
  counter-reset: review-step;
}

.sp-process li {
  min-height: 150px;
  padding: 24px;
  border-right: 1px solid var(--rule);
  color: var(--ink-2);
  counter-increment: review-step;
}

.sp-process li:last-child {
  border-right: 0;
}

.sp-process li::before {
  display: block;
  margin-bottom: 16px;
  color: var(--accent);
  content: "0" counter(review-step);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
}

#application-status {
  border-top: 1px solid var(--rule);
}

#application-status p:last-child a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.sp-form,
.sp-answer-review {
  margin-top: 32px;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--rule);
  border-radius: 24px;
  background: var(--surface, transparent);
}

.sp-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.sp-form label,
.sp-choice legend {
  display: block;
  color: var(--ink-1, var(--ink));
  font-weight: 600;
}

.sp-form label > span,
.sp-choice legend > span { color: var(--accent-ink, var(--accent)); }
.sp-span-2 { grid-column: 1 / -1; }

.sp-form input:not([type="checkbox"]),
.sp-form textarea,
.sp-form select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper, transparent);
  font: inherit;
  font-weight: 400;
}

.sp-form textarea { min-height: 112px; resize: vertical; }
.sp-form label > input:not([type="checkbox"]),
.sp-form label > textarea,
.sp-form label > select,
.sp-form label > small { display: block; margin-top: 8px; }
.sp-form input:focus-visible,
.sp-form textarea:focus-visible,
.sp-form select:focus-visible,
.sp-form button:focus-visible,
.sp-form a:focus-visible,
.sp-answer-review button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.sp-form small { color: var(--ink-2); font-size: .9rem; font-weight: 400; line-height: 1.5; }
.sp-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  min-width: 0;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--rule);
}
.sp-choice legend { padding: 0 8px; }
.sp-choice label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  line-height: 1.45;
}
.sp-choice label:has(> input:not([type="checkbox"])) { display: block; font-weight: 600; }
.sp-choice input[type="checkbox"],
.sp-privacy input[type="checkbox"] { width: 20px; height: 20px; flex: 0 0 20px; margin: 1px 0 0; accent-color: var(--accent); }
.sp-choice small { grid-column: 1 / -1; }
.sp-privacy { display: flex !important; align-items: flex-start; gap: 12px !important; font-weight: 400 !important; line-height: 1.55; }
.sp-privacy a { color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.sp-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sp-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.sp-form-actions button { min-height: 48px; cursor: pointer; }
.sp-form-actions button:disabled { cursor: not-allowed; opacity: .7; }
.sp-form-actions a { color: var(--accent-ink, var(--accent)); text-decoration: underline; text-underline-offset: 3px; }
.nav-drawer-backdrop { width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; }
.sp-form-error { margin: 18px 0 0; padding-left: 12px; border-left: 3px solid var(--ink); color: var(--ink); font-weight: 600; }
.sp-answer-summary { display: grid; grid-template-columns: minmax(170px, .7fr) minmax(0, 1.3fr); margin: 24px 0; border-top: 1px solid var(--rule); }
.sp-answer-summary dt, .sp-answer-summary dd { margin: 0; padding: 12px 8px; border-bottom: 1px solid var(--rule); overflow-wrap: anywhere; }
.sp-answer-summary dt { color: var(--ink-2); font-weight: 600; }
.sp-answer-summary dd { white-space: pre-wrap; }

[hidden] { display: none !important; }

@media (max-width: 900px) {
  .sp-process {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sp-process li:nth-child(2) {
    border-right: 0;
  }

  .sp-process li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }
}

@media (max-width: 640px) {
  .sp-fit-list,
  .sp-process {
    grid-template-columns: 1fr;
  }

  .sp-process li,
  .sp-process li:nth-child(2) {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .sp-process li:last-child {
    border-bottom: 0;
  }

  .sp-form-grid,
  .sp-choice { grid-template-columns: 1fr; }
  .sp-span-2 { grid-column: auto; }
  .sp-choice small { grid-column: auto; }
  .sp-answer-summary { grid-template-columns: 1fr; }
  .sp-answer-summary dt { padding-bottom: 4px; border-bottom: 0; }
  .sp-answer-summary dd { padding-top: 4px; }
}
