.apply-main {
  display: grid;
  gap: 22px;
  padding: 24px clamp(18px, 6vw, 80px) 40px;
}

.apply-hero {
  align-items: end;
  background:
    linear-gradient(135deg, rgba(17, 29, 38, 0.96), rgba(41, 83, 88, 0.78)),
    url("https://images.unsplash.com/photo-1516339901601-2e1b62dc0c45?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  color: #ffffff;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  min-height: 300px;
  padding: clamp(24px, 5vw, 44px);
}

.apply-hero .eyebrow {
  color: #bde6dc;
}

.apply-hero h1 {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1;
  margin: 0;
  max-width: 880px;
}

.apply-hero p:not(.eyebrow) {
  color: #dce8e8;
  font-size: 18px;
  max-width: 760px;
}

.review-flow {
  display: grid;
  gap: 10px;
}

.review-flow article {
  align-items: center;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  color: #17202b;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 66px;
  padding: 12px;
}

.review-flow strong {
  align-items: center;
  background: #e6f2ef;
  border-radius: 7px;
  color: #28566f;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.apply-workspace {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
}

.application-form,
.apply-side article {
  background: #ffffff;
  border: 1px solid #d4dce5;
  border-radius: 8px;
  padding: 18px;
}

.application-form {
  display: grid;
  gap: 14px;
}

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

.application-form label {
  color: #536174;
  display: grid;
  font-size: 13px;
  gap: 6px;
}

.file-drop {
  background: #f8fafc;
  border: 1px dashed #b8c5d1;
  border-radius: 8px;
  padding: 14px;
}

.file-drop small,
.selected-files small,
.apply-side p,
.apply-side li {
  color: #657588;
}

.selected-files {
  display: grid;
  gap: 8px;
}

.selected-files article {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #dbe4eb;
  border-radius: 7px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
}

.status-line {
  color: #557086;
  min-height: 20px;
}

.status-line.error {
  color: #a43d3d;
}

.apply-side {
  align-self: start;
  display: grid;
  gap: 14px;
  position: sticky;
  top: 88px;
}

.apply-side h2 {
  font-size: 24px;
  margin: 0 0 8px;
}

.apply-side ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
  padding-left: 20px;
}

:root[data-theme="dark"] .apply-hero,
:root[data-theme="dark"] .application-form,
:root[data-theme="dark"] .apply-side article {
  border-color: #223140;
}

:root[data-theme="dark"] .application-form,
:root[data-theme="dark"] .apply-side article {
  background: #0f171f;
  color: #e1edf4;
}

:root[data-theme="dark"] .file-drop,
:root[data-theme="dark"] .selected-files article {
  background: #0b1118;
  border-color: #1d2a36;
}

:root[data-theme="dark"] .application-form label,
:root[data-theme="dark"] .file-drop small,
:root[data-theme="dark"] .selected-files small,
:root[data-theme="dark"] .apply-side p,
:root[data-theme="dark"] .apply-side li {
  color: #9fafbd;
}

:root[data-theme="dark"] .status-line {
  color: #91c8e4;
}

:root[data-theme="dark"] .status-line.error {
  color: #f09c9c;
}

@media (max-width: 1040px) {
  .apply-workspace,
  .apply-hero {
    grid-template-columns: 1fr;
  }

  .apply-side {
    position: static;
  }
}

@media (max-width: 720px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
