.apply-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 0, rgba(255, 113, 11, 0.08), transparent 28%),
    var(--paper);
}

.apply-main {
  width: min(calc(100% - 56px), var(--max));
  margin: 0 auto;
  padding: 150px 32px 110px;
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(590px, 1.22fr);
  align-items: start;
  gap: clamp(55px, 8vw, 125px);
}

.apply-intro {
  position: sticky;
  top: 128px;
  padding: 16px 0 30px;
}

.apply-intro-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.apply-kicker,
.apply-step,
.application-card-heading > p,
.application-success > p:first-of-type {
  margin: 0;
  color: #77777b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.20em;
  text-transform: uppercase;
}

.apply-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
}

.apply-kicker span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange-bright);
}

.apply-step {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
}

.apply-intro h1 {
  margin: 32px 0 0;
  font-size: clamp(66px, 6.2vw, 94px);
  font-weight: 760;
  line-height: 0.93;
  letter-spacing: -0.073em;
}

.apply-intro h1 em {
  color: var(--orange-bright);
  font-family: var(--serif);
  font-weight: 400;
}

.apply-lede {
  max-width: 540px;
  margin: 32px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.67;
}

.apply-commission {
  margin-top: 42px;
  padding: 26px 28px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 30px;
  overflow: hidden;
  color: var(--white);
  border-radius: 30px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 113, 11, 0.22), transparent 40%),
    var(--dark);
  box-shadow: 0 25px 60px rgba(23, 23, 25, 0.14);
}

.apply-commission strong,
.apply-commission span {
  display: block;
}

.apply-commission strong {
  color: var(--orange-bright);
  font-size: 78px;
  line-height: 0.86;
  letter-spacing: -0.08em;
}

.apply-commission sup {
  color: var(--white);
  font-size: 0.32em;
  vertical-align: top;
}

.apply-commission span {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.15em;
}

.apply-commission p {
  margin: 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.apply-commission p a {
  color: var(--white);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.apply-trust {
  margin-top: 35px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.apply-faces {
  display: flex;
  flex: 0 0 auto;
}

.apply-faces img {
  width: 43px;
  height: 43px;
  margin-left: -10px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  object-fit: cover;
}

.apply-faces img:first-child {
  margin-left: 0;
}

.apply-trust p {
  max-width: 340px;
  margin: 0;
  color: #848489;
  font-size: 11px;
  line-height: 1.5;
}

.application-card {
  position: relative;
  min-height: 720px;
  padding: clamp(36px, 4.6vw, 68px);
  border: 1px solid rgba(23, 23, 25, 0.08);
  border-radius: 44px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.application-card-heading {
  margin-bottom: 44px;
}

.application-card-heading > p {
  margin-bottom: 14px;
  color: var(--orange-bright);
}

.application-card-heading h2,
.application-success h2 {
  margin: 0;
  font-size: clamp(43px, 4.2vw, 62px);
  font-weight: 760;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.application-card-heading > span {
  display: block;
  margin-top: 18px;
  color: #929297;
  font-size: 11px;
}

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

.form-field {
  display: block;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field > span {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 15px 16px;
  color: var(--ink);
  border: 1px solid rgba(23, 23, 25, 0.13);
  border-radius: 15px;
  outline: none;
  background: #fbfbfa;
  font: inherit;
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field input,
.form-field select {
  min-height: 54px;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaaab0;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--orange-bright);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(255, 113, 11, 0.09);
}

.form-field > small,
.consent-error {
  min-height: 16px;
  margin-top: 5px;
  display: block;
  color: #b42318;
  font-size: 10px;
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #d92d20;
}

.form-consent {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: flex-start;
  gap: 13px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
  cursor: pointer;
}

.form-consent input {
  appearance: none;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  display: grid;
  place-items: center;
  border: 1.5px solid #89898e;
  border-radius: 5px;
  background: var(--white);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.form-consent input::before {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--white);
  border-bottom: 2px solid var(--white);
  opacity: 0;
  transform: translateY(-1px) rotate(-45deg) scale(0.65);
  transition: opacity 140ms ease, transform 140ms ease;
}

.form-consent input:checked {
  border-color: var(--orange-bright);
  background: var(--orange-bright);
}

.form-consent input:checked::before {
  opacity: 1;
  transform: translateY(-1px) rotate(-45deg) scale(1);
}

.form-consent input:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 113, 11, 0.13);
}

.form-consent > span {
  display: block;
  padding-top: 1px;
}

.form-consent a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.apply-submit {
  width: 100%;
  min-height: 66px;
  margin-top: 27px;
  padding: 17px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 18px 38px rgba(23, 23, 25, 0.15);
  font: inherit;
  font-size: 15px;
  font-weight: 760;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.apply-submit:hover:not(:disabled) {
  transform: translateY(-2px);
  background: #000;
}

.apply-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.submit-arrow {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--white);
}

.apply-submit.is-loading .submit-arrow {
  animation: submitPulse 900ms ease-in-out infinite alternate;
}

.submit-note {
  margin: 14px 0 0;
  color: #9a9a9f;
  font-size: 10px;
  text-align: center;
}

.form-alert {
  margin: -17px 0 26px;
  padding: 13px 15px;
  color: #b42318;
  border: 1px solid #f6c5c0;
  border-radius: 13px;
  background: #fff3f2;
  font-size: 12px;
  font-weight: 650;
}

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

.noscript-note {
  color: #b42318;
  font-size: 12px;
  text-align: center;
}

.application-success {
  min-height: 610px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.application-success[hidden] {
  display: none;
}

.success-mark {
  width: 78px;
  height: 78px;
  margin-bottom: 34px;
  display: grid;
  place-items: center;
  color: var(--white);
  border-radius: 50%;
  background: var(--orange-bright);
  box-shadow: 0 18px 40px rgba(255, 113, 11, 0.20);
}

.success-mark svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.application-success > p:first-of-type {
  margin-bottom: 15px;
  color: var(--orange-bright);
}

.application-success > p:nth-of-type(2) {
  max-width: 520px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.success-reference {
  margin-top: 28px;
  padding: 11px 14px;
  border-radius: 999px;
  background: var(--orange-pale);
  color: var(--orange-bright);
  font-size: 11px;
}

.success-link {
  margin-top: 45px;
  padding-bottom: 6px;
  display: inline-flex;
  gap: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 750;
}

.apply-footer {
  padding: 35px max(28px, calc((100% - var(--max)) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  color: rgba(255, 255, 255, 0.54);
  background: var(--dark);
  font-size: 11px;
}

.apply-footer .wordmark {
  color: var(--orange-bright);
  font-size: 30px;
}

.apply-footer p {
  margin: 0;
}

.apply-footer > div {
  justify-self: end;
  display: flex;
  gap: 22px;
}

.apply-footer a:hover {
  color: var(--white);
}

@keyframes submitPulse {
  from { transform: scale(0.92); }
  to { transform: scale(1.05); }
}

@media (max-width: 1050px) {
  .apply-main {
    width: 100%;
    padding: 140px 28px 100px;
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .apply-intro {
    position: static;
    max-width: 780px;
  }

  .apply-commission {
    max-width: 620px;
  }

  .application-card {
    width: min(100%, 820px);
  }
}

@media (max-width: 640px) {
  .apply-nav-back {
    padding: 10px 13px;
    font-size: 11px;
  }

  .apply-main {
    padding: 122px 16px 70px;
    gap: 45px;
  }

  .apply-intro {
    padding-left: 4px;
    padding-right: 4px;
  }

  .apply-intro h1 {
    margin-top: 27px;
    font-size: clamp(52px, 15vw, 68px);
  }

  .apply-lede {
    font-size: 16px;
  }

  .apply-commission {
    padding: 23px;
    grid-template-columns: 1fr;
    gap: 20px;
    border-radius: 26px;
  }

  .apply-commission strong {
    font-size: 66px;
  }

  .apply-trust {
    align-items: flex-start;
  }

  .application-card {
    min-height: auto;
    padding: 34px 20px;
    border-radius: 30px;
  }

  .application-card-heading {
    margin-bottom: 34px;
  }

  .application-card-heading h2,
  .application-success h2 {
    font-size: 42px;
  }

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

  .form-field-wide {
    grid-column: auto;
  }

  .form-field input,
  .form-field select,
  .form-field textarea {
    font-size: 16px;
  }

  .application-success {
    min-height: 520px;
  }

  .apply-footer {
    padding: 34px 20px;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .apply-footer > div {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-submit.is-loading .submit-arrow {
    animation: none;
  }
}
