.screening-builder {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.screening-builder-empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.screening-builder-empty strong,
.screening-builder-empty span {
  display: block;
}

.screening-builder-empty span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .86rem;
}

.screening-question-editor {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.screening-question-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.screening-question-editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.screening-question-editor-head strong {
  font-size: .86rem;
}

.screening-question-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .38fr) minmax(160px, .28fr);
  gap: 16px;
  align-items: end;
}

.screening-choice-field[hidden] {
  display: none;
}

.screening-choice-field textarea {
  min-height: 108px;
}

.screening-builder-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.screening-count {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.screening-job-list {
  display: grid;
  gap: 12px;
}

.screening-job-list article {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.screening-job-list article:first-child {
  border-top: 0;
}

.screening-job-index {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent-dark);
  font-size: .76rem;
  font-weight: 800;
}

.screening-job-copy strong,
.screening-job-copy span {
  display: block;
}

.screening-job-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .8rem;
}

.application-consents {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.application-fields .application-check {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  cursor: pointer;
  font-weight: 500;
  line-height: 1.45;
}

.application-fields .application-check-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.application-check-box {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid #9aa7a1;
  border-radius: var(--radius);
  background: var(--surface);
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.application-check-box::after {
  content: "";
  width: 7px;
  height: 4px;
  margin-top: -2px;
  border-left: 2px solid var(--surface);
  border-bottom: 2px solid var(--surface);
  opacity: 0;
  transform: rotate(-45deg);
}

.application-check-input:checked + .application-check-box {
  border-color: var(--accent);
  background: var(--accent);
}

.application-check-input:checked + .application-check-box::after {
  opacity: 1;
}

.application-check-input:focus-visible + .application-check-box {
  outline: 3px solid rgba(22, 116, 81, .18);
  outline-offset: 2px;
}

.application-check-copy {
  color: var(--text);
  font-size: 14px;
}

.application-check-copy a {
  color: var(--accent);
  font-weight: 700;
}

.application-screening {
  display: grid;
  gap: 18px;
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.application-screening-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.application-screening-head h2 {
  margin: 3px 0 6px;
}

.application-screening-head p {
  margin: 0;
  color: var(--muted);
}

.application-screening-count {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.application-screening-list {
  display: grid;
  gap: 16px;
}

.application-screening-question {
  display: grid;
  gap: 9px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.application-screening-question fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.application-screening-question label,
.application-screening-question legend {
  color: var(--text);
  font-size: .93rem;
  font-weight: 700;
}

.application-screening-question legend {
  margin-bottom: 10px;
}

.application-screening-question textarea {
  resize: vertical;
}

.screening-required {
  margin-left: 7px;
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
}

.screening-choice-list {
  display: grid;
  gap: 9px;
}

.screening-choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500 !important;
}

.screening-choice input {
  width: auto;
  min-width: 16px;
  margin: 0;
}

.resume-on-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.resume-on-file strong,
.resume-on-file span {
  display: block;
}

.resume-on-file span {
  margin-top: 2px;
  color: var(--muted);
  font-size: .8rem;
}

.application-submit-note {
  margin: 22px 0 8px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.6;
}

.screening-answer-list {
  display: grid;
  gap: 0;
}

.screening-answer-list article {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.screening-answer-list article:first-child {
  border-top: 0;
  padding-top: 0;
}

.screening-answer-list strong,
.screening-answer-list p {
  margin: 0;
}

.screening-answer-list p {
  margin-top: 7px;
  color: var(--text);
  line-height: 1.6;
}

.screening-answer-meta {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .76rem;
}

@media (max-width: 900px) {
  .screening-question-editor-grid {
    grid-template-columns: 1fr;
  }

  .application-screening-head,
  .resume-on-file {
    align-items: flex-start;
    flex-direction: column;
  }
}

.application-flow-page {
  min-height: calc(100vh - 84px);
  padding-top: clamp(42px, 6vw, 82px);
  padding-bottom: clamp(70px, 9vw, 120px);
}

.application-flow-shell {
  width: min(960px, 88vw);
  margin: 0 auto;
}

.application-flow-back {
  display: inline-flex;
  margin-bottom: 34px;
}

.application-flow-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.application-flow-header .eyebrow {
  margin-bottom: 8px;
}

.application-capture-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 700;
}

.application-capture-state > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.application-flow-progress-copy {
  color: var(--muted);
  font-size: .8rem;
  font-weight: 700;
}

.application-flow-progress {
  width: 100%;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.application-flow-progress span {
  display: block;
  width: 8%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width 220ms ease;
}

.application-flow-progress span.is-setup {
  width: 18%;
}

.application-flow-errors {
  margin-top: 24px;
}

.application-flow-form {
  margin-top: clamp(42px, 7vw, 78px);
}

.application-flow-step {
  display: none;
  min-height: 520px;
  align-content: center;
}

.application-flow-step.is-active {
  display: grid;
  animation: application-step-in 180ms ease both;
}

.application-question-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--accent-dark);
  font-size: .8rem;
  font-weight: 800;
}

.application-flow-step > .eyebrow {
  margin: 0 0 10px;
}

.application-flow-step > h1 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  font-weight: 400;
  line-height: .98;
  overflow-wrap: normal;
  word-break: normal;
}

.application-question-help {
  max-width: 680px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.application-profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
  gap: 40px;
  align-items: start;
  margin-top: 38px;
}

.application-flow-resume {
  position: relative;
  margin: 0;
}

.application-profile-fields {
  display: grid;
  gap: 16px;
}

.application-profile-fields > label,
.application-profile-fields .form-grid > label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 700;
}

.application-profile-fields input,
.application-profile-fields select,
.application-profile-fields textarea {
  min-height: 46px;
}

.application-flow-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.application-flow-assurance,
.application-keyboard-hint {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.5;
}

.application-flow-primary,
.application-flow-secondary {
  min-height: 48px;
}

.application-flow-primary span {
  margin-left: 5px;
}

.application-flow-secondary:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.application-save-message {
  margin-bottom: 28px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.application-question-step {
  max-width: 820px;
}

.application-question-control {
  width: min(720px, 100%);
  margin-top: 34px;
}

.application-answer-text {
  width: 100%;
  min-height: 60px;
  padding: 14px 4px;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 550;
  line-height: 1.45;
  outline: 0;
}

.application-answer-text:focus {
  border-bottom-color: var(--accent);
}

.application-answer-text::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.application-answer-long {
  min-height: 180px;
  resize: vertical;
}

.application-answer-options {
  display: grid;
  gap: 12px;
}

.application-answer-option {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
  font-weight: 650;
  transition: border-color 140ms ease, transform 140ms ease;
}

.application-answer-option:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.application-answer-option input {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: grid;
  place-content: center;
  width: 20px !important;
  min-width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 0;
  padding: 0;
  border: 1.5px solid #82928b !important;
  border-radius: 50% !important;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
}

.application-answer-option input:checked {
  border: 2px solid var(--accent) !important;
  background: radial-gradient(circle, var(--accent) 0 45%, #fff 48% 100%);
}

.application-answer-option:has(input:checked) {
  border-color: var(--accent);
  background: #f3faf6;
  box-shadow: 0 0 0 3px rgba(22, 116, 81, .08);
}

.application-answer-option:has(input:focus-visible) {
  outline: 3px solid rgba(22, 116, 81, .22);
  outline-offset: 2px;
}

.application-question-error {
  margin: 14px 0 0;
  color: var(--danger);
  font-size: .86rem;
  font-weight: 700;
}

.application-question-actions {
  justify-content: flex-start;
  width: min(720px, 100%);
}

.application-location-question {
  min-height: 430px;
}

.application-location-question > h1 {
  max-width: 650px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
}

.application-location-question .application-question-control {
  margin-top: 26px;
}

.application-location-entry {
  padding: 22px;
  border: 1px solid #cbd7d0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(19, 51, 39, .06);
}

.application-location-entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.application-location-entry-head label {
  color: var(--text);
  font-size: .94rem;
  font-weight: 750;
}

.application-location-entry-head span,
.application-location-entry > p {
  color: var(--muted);
  font-size: .8rem;
}

.application-location-entry > p {
  margin: 14px 0 0;
  line-height: 1.5;
}

.application-location-entry > p strong {
  color: #50625b;
  font-weight: 700;
}

.application-location-entry .application-answer-long {
  min-height: 132px;
  padding: 13px 14px;
  border: 1px solid #b8c8bf;
  border-radius: 10px;
  background: #fbfdfc;
  font-size: 1.05rem;
  font-weight: 500;
}

.application-location-entry .application-answer-text:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22, 116, 81, .13);
}


.application-keyboard-hint {
  margin: 12px 0 0;
}

.application-review-step {
  max-width: 820px;
}

.application-review-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.application-review-card > div {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.application-review-card span {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
}

.application-review-card strong {
  color: var(--text);
  font-size: .95rem;
}

.application-incomplete-list {
  margin-bottom: 28px;
}

.application-incomplete-list article {
  align-items: center;
}

.application-incomplete-copy {
  display: grid;
  gap: 5px;
}

.application-incomplete-copy small {
  color: var(--muted);
}

.application-incomplete-action {
  flex: 0 0 auto;
}

@keyframes application-step-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .application-flow-shell {
    width: min(100%, 760px);
  }

  .application-profile-layout {
    grid-template-columns: 1fr;
  }

  .application-flow-step {
    min-height: 0;
  }

  .application-review-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .application-flow-page {
    padding-left: 22px;
    padding-right: 22px;
  }

  .application-flow-shell {
    width: 100%;
  }

  .application-flow-header {
    align-items: flex-start;
  }

  .application-flow-form {
    margin-top: 42px;
  }

  .application-flow-step > h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .application-flow-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .application-flow-primary,
  .application-flow-secondary {
    width: 100%;
    justify-content: center;
  }

  .application-question-actions {
    flex-direction: row;
  }

  .application-question-actions .application-flow-secondary {
    width: auto;
  }

  .application-question-actions .application-flow-primary {
    flex: 1;
  }

  .application-location-entry {
    padding: 17px;
  }

  .application-keyboard-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .application-flow-progress span,
  .application-answer-option,
  .application-flow-step.is-active {
    animation: none;
    transition: none;
  }
}

.application-question-form:not(.is-enhanced) .application-flow-step {
  display: grid;
  min-height: 0;
  margin-bottom: 64px;
}

.application-question-form:not(.is-enhanced) [data-flow-next],
.application-question-form:not(.is-enhanced) [data-flow-back],
.application-question-form:not(.is-enhanced) .application-keyboard-hint,
.application-question-form:not(.is-enhanced) .application-save-message {
  display: none;
}
