/* Apply-page styles are scoped to .apply-page so the homepage stays unchanged. */
.apply-page {
  --apply-red: #e50914;
  --apply-red-dark: #b80710;
  --apply-black: #080808;
  --apply-panel: #121212;
  --apply-border: #303030;
  --apply-muted: #b8b8b8;
  margin: 0;
  min-width: 320px;
  color: #fff;
  background: var(--apply-black);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

.apply-page *,
.apply-page *::before,
.apply-page *::after {
  box-sizing: border-box;
}

.apply-page a {
  color: inherit;
}

.apply-shell {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.apply-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(8, 8, 8, 0.96);
}

.apply-header__inner {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.apply-brand {
  display: inline-flex;
  align-items: center;
}

.apply-brand img {
  display: block;
  width: auto;
  max-width: min(230px, 48vw);
  max-height: 70px;
  object-fit: contain;
}

.apply-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.apply-nav a {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.apply-nav a:hover,
.apply-nav a:focus-visible {
  color: #ff5660;
}

.apply-nav .apply-nav__button {
  padding: 12px 20px;
  border-radius: 6px;
  color: #fff;
  background: var(--apply-red);
}

.apply-nav .apply-nav__button:hover,
.apply-nav .apply-nav__button:focus-visible {
  color: #fff;
  background: var(--apply-red-dark);
}

.apply-intro {
  position: relative;
  overflow: hidden;
  padding: 86px 0 80px;
  text-align: center;
  background:
    radial-gradient(circle at 50% -20%, rgba(229, 9, 20, 0.3), transparent 52%),
    linear-gradient(180deg, #101010 0%, #080808 100%);
}

.apply-intro::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--apply-red), transparent);
}

.apply-eyebrow {
  margin: 0 0 10px;
  color: #ff4d57;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.apply-intro h1 {
  margin: 0;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.apply-intro > .apply-shell > p:last-child {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--apply-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.apply-section {
  padding: 72px 0 90px;
}

.application-form {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 52px);
  border: 1px solid var(--apply-border);
  border-radius: 14px;
  background: var(--apply-panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.application-form__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--apply-border);
}

.application-form__heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.3rem);
  line-height: 1.15;
}

.application-form__heading > p {
  margin: 0 0 4px;
  color: var(--apply-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.application-form__heading span,
.form-field label span,
.form-consent b {
  color: #ff4d57;
}

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

.application-form__full {
  grid-column: 1 / -1;
}

.form-field {
  min-width: 0;
}

.form-section-title {
  margin-top: 10px;
  padding-top: 28px;
  border-top: 1px solid var(--apply-border);
}

.form-section-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.form-section-title p {
  margin: 6px 0 0;
  color: var(--apply-muted);
  font-size: 0.88rem;
}

.employment-list {
  display: grid;
  gap: 18px;
}

.employment-card {
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid #3a3a3a;
  border-radius: 9px;
  background: #0b0b0b;
}

.employment-card__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2d2d2d;
}

.employment-card__heading h4 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employment-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.employment-card__full {
  grid-column: 1 / -1;
}

.add-employer-button,
.remove-employer-button {
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.add-employer-button {
  width: 100%;
  min-height: 52px;
  margin-top: 16px;
  border: 1px solid #555;
  color: #fff;
  background: #1d1d1d;
}

.add-employer-button span {
  margin-right: 5px;
  color: #ff4d57;
  font-size: 1.25rem;
}

.add-employer-button:hover,
.add-employer-button:focus-visible {
  border-color: var(--apply-red);
  background: #282828;
}

.remove-employer-button {
  padding: 7px 11px;
  border: 1px solid #6b3639;
  color: #ff7b82;
  background: transparent;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.remove-employer-button:hover,
.remove-employer-button:focus-visible {
  border-color: #ff4d57;
  color: #fff;
  background: #6f080e;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 800;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid #434343;
  border-radius: 6px;
  outline: none;
  color: #fff;
  background: #090909;
  font: inherit;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-field input,
.form-field select {
  min-height: 52px;
  padding: 0 15px;
}

.form-field textarea {
  min-height: 150px;
  padding: 14px 15px;
  resize: vertical;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--apply-red);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.file-upload {
  padding: 18px;
  border: 1px dashed #505050;
  border-radius: 7px;
  background: #0b0b0b;
}

.file-upload input {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.file-upload input::file-selector-button {
  margin-right: 14px;
  padding: 10px 14px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  background: #323232;
  font-weight: 800;
  cursor: pointer;
}

.file-upload p {
  margin: 10px 0 0;
  color: var(--apply-muted);
  font-size: 0.8rem;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 28px 0;
  color: #d1d1d1;
  font-size: 0.86rem;
  cursor: pointer;
}

.form-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 2px 0 0;
  accent-color: var(--apply-red);
}

.application-form__submit {
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--apply-red);
  font: inherit;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.application-form__submit:hover {
  background: var(--apply-red-dark);
  transform: translateY(-1px);
}

.application-form__submit:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.apply-footer {
  padding: 38px 0;
  border-top: 1px solid var(--apply-border);
  text-align: center;
  background: #050505;
}

.apply-footer img {
  width: auto;
  max-width: 150px;
  max-height: 48px;
  object-fit: contain;
  opacity: 0.9;
}

.apply-footer p {
  margin: 14px 0 0;
  color: #888;
  font-size: 0.8rem;
}

@media (max-width: 700px) {
  .apply-shell {
    width: calc(100% - 24px);
  }

  .apply-header__inner {
    min-height: 70px;
    gap: 12px;
  }

  .apply-brand img {
    max-width: 125px;
    max-height: 50px;
  }

  .apply-nav {
    gap: 12px;
  }

  .apply-nav a:not(.apply-nav__button) {
    display: none;
  }

  .apply-nav .apply-nav__button {
    padding: 9px 11px;
    font-size: 0.7rem;
  }

  .apply-intro {
    padding: 44px 0 42px;
  }

  .apply-intro h1 {
    font-size: clamp(2.1rem, 11vw, 3rem);
    line-height: 1.08;
  }

  .apply-intro > .apply-shell > p:last-child {
    margin-top: 16px;
    font-size: 0.96rem;
  }

  .apply-section {
    padding: 24px 0 48px;
  }

  .application-form {
    padding: 20px 16px 22px;
    border-radius: 10px;
  }

  .application-form__heading {
    display: block;
  }

  .application-form__heading > p {
    margin-top: 12px;
  }

  .application-form__heading {
    margin-bottom: 24px;
    padding-bottom: 20px;
  }

  .application-form__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .employment-card__grid {
    grid-template-columns: 1fr;
  }

  .employment-card {
    padding: 16px 14px;
  }

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

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

  .file-upload {
    padding: 14px;
  }

  .file-upload input::file-selector-button {
    display: block;
    margin: 0 0 10px;
  }

  .form-consent {
    font-size: 0.82rem;
  }

  .application-form__full,
  .employment-card__full {
    grid-column: auto;
  }

  .apply-footer {
    padding: 30px 0;
  }
}

@media (max-width: 380px) {
  .apply-brand img {
    max-width: 110px;
  }

  .apply-nav .apply-nav__button {
    padding-inline: 8px;
    font-size: 0.66rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apply-page *,
  .apply-page *::before,
  .apply-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
