.apply-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(191, 147, 15, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(12, 16, 23, 0.92), rgba(12, 16, 23, 0.98)),
    url("../images/bg/home-2-location.jpg") center top / cover no-repeat fixed;
  color: #f8f4ec;
  font-family: var(--theme-paragraph-font);
}

.apply-header {
  position: relative;
  z-index: 5;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 16, 23, 0.78);
  backdrop-filter: blur(16px);
}

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

.ranch-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  line-height: 1;
}

.ranch-brand:hover {
  color: #fff;
}

.ranch-brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: 210px;
  flex: 0 0 auto;
  object-fit: contain;
}

/* The logo image carries its own wordmark now - no text beside it. */
.ranch-brand-title {
  display: none;
}

.apply-header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.apply-header-nav a {
  color: inherit;
  text-decoration: none;
}

.apply-header-nav a:hover {
  color: rgba(var(--theme-primary), 1);
}

.apply-shell {
  padding: 46px 0 84px;
}

.apply-hero {
  max-width: 720px;
  margin: 0 auto 28px;
  text-align: center;
}

.apply-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(var(--theme-primary), 1);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.apply-title {
  color: #fff;
  font-family: var(--theme-heading-font);
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.4rem);
  line-height: 1;
  margin: 12px 0;
}

.apply-copy {
  max-width: 620px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.6;
}

.apply-layout {
  max-width: 700px;
  margin: 0 auto;
}

.apply-form {
  display: block;
}

.wizard-content {
  display: grid;
  gap: 18px;
}

.wizard-step {
  display: block;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(18, 22, 29, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}

.wizard-step-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  align-items: baseline;
  margin-bottom: 16px;
}

.apply-section-number {
  color: rgba(var(--theme-primary), 1);
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.wizard-step-header h2 {
  margin: 0;
  color: #fff;
  font-family: var(--theme-heading-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
}

.wizard-step-header p {
  grid-column: 2;
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.5;
}

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

.apply-field {
  grid-column: span 3;
}

.apply-field.full {
  grid-column: 1 / -1;
}

.apply-field.third {
  grid-column: span 2;
}

.apply-label,
.apply-field label,
.apply-radio-group legend {
  display: block;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 600;
}

.apply-field input:not([type="radio"]):not([type="checkbox"]),
.apply-field select,
.apply-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 8px 12px;
  font-size: 13.5px;
  line-height: 1.4;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.apply-field textarea {
  min-height: 80px;
  resize: vertical;
}

.apply-field select option {
  color: #171717;
  background: #fff;
}

.apply-field input:not([type="radio"]):not([type="checkbox"]):focus,
.apply-field select:focus,
.apply-field textarea:focus {
  border-color: rgba(var(--theme-primary), 1);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(191, 147, 15, 0.14);
}

.apply-field input::placeholder,
.apply-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.apply-radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.apply-choice {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13.5px;
  font-weight: 500;
}

.apply-choice input {
  appearance: auto;
  width: 14px;
  height: 14px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.5);
  flex: 0 0 auto;
  accent-color: rgba(var(--theme-primary), 1);
}

.apply-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(191, 147, 15, 0.28);
  border-radius: 6px;
  background: rgba(191, 147, 15, 0.08);
  color: rgba(255, 255, 255, 0.65);
  font-size: 12.5px;
  line-height: 1.5;
}

.apply-note i {
  color: rgba(var(--theme-primary), 1);
  margin-top: 4px;
}

.apply-hidden {
  display: none;
}

.wizard-actions {
  display: flex;
  justify-content: center;
  padding: 8px 0 0;
}

.wizard-actions-right {
  display: flex;
  gap: 12px;
}

.apply-form .btn-theme-primary {
  min-height: 44px;
  padding-inline: 30px;
  border-radius: 999px;
}

.apply-submit-status {
  display: none;
  margin: 14px 0 0;
  padding: 12px 16px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.12);
  color: #dff9e5;
  font-weight: 700;
  font-size: 13.5px;
  text-align: center;
}

.apply-submit-status.is-visible {
  display: block;
}

.apply-footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #0c1017;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14px;
}

.apply-footer a {
  color: rgba(var(--theme-primary), 1);
  text-decoration: none;
}

@media (max-width: 767.98px) {
  .apply-shell {
    padding-top: 34px;
  }

  .apply-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .apply-header-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 12px;
  }

  .apply-hero {
    text-align: left;
  }

  .apply-title {
    font-size: 2rem;
  }

  .wizard-step {
    padding: 18px;
  }

  .wizard-step-header {
    grid-template-columns: 1fr;
  }

  .wizard-step-header p {
    grid-column: 1;
  }

  .apply-grid {
    grid-template-columns: 1fr;
  }

  .apply-field,
  .apply-field.third,
  .apply-field.full {
    grid-column: 1 / -1;
  }

  .wizard-actions-right,
  .wizard-actions .btn {
    width: 100%;
  }
}
