.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;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.ranch-brand-title {
  display: block;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.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: 960px;
  margin: 0 auto 34px;
  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(2.5rem, 1.65rem + 3.5vw, 5.25rem);
  line-height: 0.96;
  margin: 14px 0;
}

.apply-copy {
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 18px;
  line-height: 1.65;
}

.apply-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.apply-form-card,
.apply-side-panel {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(18, 22, 29, 0.9);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.apply-form-card {
  overflow: hidden;
}

.wizard-content {
  display: grid;
  gap: 0;
}

.wizard-step {
  display: block;
  padding: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.wizard-step:last-of-type {
  border-bottom: 0;
}

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

.apply-section-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(191, 147, 15, 0.55);
  border-radius: 50%;
  color: rgba(var(--theme-primary), 1);
  background: rgba(191, 147, 15, 0.1);
  font-weight: 900;
}

.wizard-step-header h2 {
  margin: 0;
  color: #fff;
  font-family: var(--theme-heading-font);
  font-size: clamp(1.75rem, 1.35rem + 1vw, 2.65rem);
  line-height: 1.05;
}

.wizard-step-header p {
  grid-column: 2;
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
}

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

.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: 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.apply-field input,
.apply-field select,
.apply-field textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 12px 14px;
  font-size: 15px;
  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: 120px;
  resize: vertical;
}

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

.apply-field input:focus,
.apply-field select:focus,
.apply-field textarea:focus {
  border-color: rgba(var(--theme-primary), 1);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 4px rgba(191, 147, 15, 0.14);
}

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

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

.apply-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.06);
  font-weight: 800;
}

.apply-choice input {
  width: 18px;
  height: 18px;
  accent-color: rgba(var(--theme-primary), 1);
}

.apply-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  padding: 14px 16px;
  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.7);
  font-size: 14px;
  line-height: 1.55;
}

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

.apply-hidden {
  display: none;
}

.wizard-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  padding: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.apply-form-card .btn-theme-primary {
  min-height: 56px;
  padding-inline: 30px;
}

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

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

.apply-side-panel {
  position: sticky;
  top: 24px;
  overflow: hidden;
}

.apply-side-panel-top {
  padding: 26px;
  background: rgba(255, 255, 255, 0.04);
}

.apply-side-panel-top h2 {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--theme-heading-font);
  font-size: 30px;
  line-height: 1.1;
}

.apply-side-panel-top p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.6;
}

.apply-side-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.apply-side-list li {
  display: flex;
  gap: 12px;
  padding: 18px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.64);
}

.apply-side-list i {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
  background: rgba(191, 147, 15, 0.12);
  color: rgba(var(--theme-primary), 1);
}

.apply-side-list strong {
  display: block;
  margin-bottom: 3px;
  color: #fff;
}

.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: 1199.98px) {
  .apply-layout {
    grid-template-columns: 1fr;
  }

  .apply-side-panel {
    position: static;
  }
}

@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: 2.45rem;
  }

  .wizard-step,
  .wizard-actions {
    padding: 24px;
  }

  .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,
  .wizard-actions-right,
  .wizard-actions .btn {
    width: 100%;
  }

  .apply-submit-status {
    margin-inline: 24px;
  }
}
