/* Pin footer to the bottom of the viewport when content is short */
.apply-site {
  background: #0a0a0a;
  min-height: 100vh;
  min-height: 100dvh;
}

.apply-site [data-scroll-container] {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.apply-site .apply-portal {
  flex: 1 0 auto;
}

.apply-site #footer-container {
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
}

.apply-site #footer-container .site-footer {
  margin-top: 0;
}

.apply-list {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.apply-loading,
.apply-error {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: "Satoshi", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.apply-error {
  color: #f87171;
}

.apply-section-title {
  margin: 0 0 0.85rem;
  color: #fff;
  font-family: "Satoshi", sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.apply-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.apply-form-card {
  --card-accent: var(--accent-orange, #f26227);
  --card-glow: rgba(242, 98, 39, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 168px;
  padding: 1.25rem 1.35rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  background: radial-gradient(
    circle at bottom right,
    var(--card-glow) 0%,
    rgba(14, 14, 14, 0.4) 70%
  );
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.apply-form-card:hover {
  background: radial-gradient(
    circle at bottom right,
    var(--card-glow) 0%,
    rgba(14, 14, 14, 0.7) 70%
  );
  border-color: rgba(255, 255, 255, 0.15);
}

.apply-form-card:focus-visible {
  outline: 2px solid var(--card-accent);
  outline-offset: 3px;
}

.apply-form-card-graphic {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 100%;
  width: 42%;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  pointer-events: none;
  z-index: 1;
}

.apply-form-card-graphic img {
  max-height: 132px;
  max-width: 100%;
  object-fit: contain;
  object-position: bottom right;
}

.apply-form-card-body {
  position: relative;
  z-index: 2;
  max-width: 70%;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.apply-form-card-title {
  margin: 0;
  color: #fff;
  font-family: "Satoshi", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.apply-form-card-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media screen and (max-width: 800px) {
  .apply-section-grid {
    grid-template-columns: 1fr;
  }

  .apply-form-card {
    min-height: 0;
    padding-bottom: 7.5rem;
  }

  .apply-form-card-body {
    max-width: 100%;
  }

  .apply-form-card-graphic {
    width: 50%;
    height: 110px;
  }

  .apply-form-card-graphic img {
    max-height: 110px;
  }
}
