.apply-parent {
  display: inline-block;
  color: #c6e9ff;
  text-underline-offset: .24em;
  font-weight: 800;
  margin-bottom: .6rem;
}
.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  gap: clamp(1.3rem, 4vw, 3.2rem);
  align-items: start;
  padding-block: clamp(2rem, 6vw, 5rem);
}
.apply-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.7rem;
}
.apply-progress li {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 3rem;
  padding: .45rem .5rem;
  background: #eef4fa;
  border: 1px solid #d6e3ef;
  border-radius: .3rem;
  color: #36536a;
  font-size: .87rem;
  font-weight: 750;
  line-height: 1.15;
}
.apply-progress li span {
  display: grid;
  place-items: center;
  flex: 0 0 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #dbe9f5;
  color: #16324c;
}
.apply-progress li[aria-current="step"] { background: var(--blue-dark); color: white; border-color: var(--blue-dark); }
.apply-progress li[aria-current="step"] span { background: var(--yellow); color: #102940; }
.apply-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.apply-step h3, .apply-finished h3 { font-size: clamp(1.28rem, 3vw, 1.65rem); letter-spacing: -.035em; margin: 0 0 1rem; }
.apply-step h3:focus, .apply-finished h3:focus { outline-offset: .22rem; }
.apply-choice-set, .apply-branch { min-width: 0; margin: 1.2rem 0 0; border: 0; padding: 0; }
.apply-choice-set legend, .apply-branch legend { padding: 0; font-weight: 800; margin-bottom: .55rem; }
.apply-choice-set legend span, .apply-branch legend span { font-weight: 500; font-size: .88em; color: #455d73; }
.apply-choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.apply-choices label {
  display: flex;
  align-items: center;
  gap: .5rem;
  min-height: 2.8rem;
  padding: .45rem .65rem;
  border: 1px solid #8aa2b8;
  border-radius: .35rem;
  background: #fbfdff;
  cursor: pointer;
  font-weight: 650;
}
.apply-choices label:has(:checked) { background: #e7f4ff; border-color: var(--ocean); }
.apply-step :is(input[type="radio"], input[type="checkbox"]) { accent-color: var(--blue-dark); width: 1.08rem; height: 1.08rem; flex: 0 0 auto; }
.apply-step :is(input[type="radio"], input[type="checkbox"]):focus-visible { outline: 3px solid #1771be; outline-offset: 2px; }
.apply-fields { margin-top: 1.2rem; }
.apply-branch .contact-fields { padding: .85rem; border-radius: .4rem; background: #f0f7fd; }
.application-notes > p { margin-top: .85rem; }
.apply-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }
.apply-actions .contact-submit { margin: 0; }
.back-button {
  color: #16324c;
  background: white;
  border: 1px solid #8aa2b8;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}
.back-button:hover { background: #e7f4ff; }
.apply-review { background: #eef6ff; padding: .25rem 1rem; border-radius: .4rem; }
.apply-review > div {
  display: grid;
  grid-template-columns: minmax(7rem, .75fr) minmax(0, 1fr);
  align-items: baseline;
  gap: .25rem 1rem;
  padding: .5rem 0;
  border-bottom: 1px solid #cfdeed;
}
.apply-review > div:last-child { border: 0; }
.apply-review dt { font-weight: 800; }
.apply-review dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.agreement > label { display: flex; align-items: baseline; gap: .45rem; margin-bottom: .45rem; }
.agreement .contact-fields { margin-top: .9rem; }
.apply-finished { padding: clamp(1rem, 3vw, 2rem); background: #eef6ff; border-left: 4px solid var(--ocean); }
.apply-finished .back-button { margin-top: 1rem; }
.apply-layout [hidden] { display: none; }
@media (max-width: 910px) {
  .apply-layout { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
  .apply-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply-review > div { grid-template-columns: 1fr; }
}
