/* Hide theme page title when form provides its own heading */
.page-id-1588 .entry-header,
.page-id-1588 .page-header,
.page-id-1588 h1.entry-title,
body.page-id-1588 .wp-block-post-title {
  display: none !important;
}

.nei-job {
  --nei-blue: #004080;
  --nei-blue-soft: #e8f0f8;
  --nei-ink: #1a1a1a;
  --nei-muted: #5a6570;
  --nei-line: #d5dde6;
  --nei-bg: #f5f7fa;
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
  color: var(--nei-ink);
  font-family: "Tajawal", "Noto Naskh Arabic", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.65;
  background:
    radial-gradient(1200px 400px at 100% -10%, rgba(0, 64, 128, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--nei-bg) 28%, #ffffff 100%);
}

.nei-job__hero {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 3px solid var(--nei-blue);
}

.nei-job__eyebrow {
  margin: 0 0 0.35rem;
  color: var(--nei-blue);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.nei-job__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--nei-blue);
  font-weight: 800;
}

.nei-job__lead {
  margin: 0;
  color: var(--nei-muted);
  max-width: 46rem;
}

.nei-job__notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1.25rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
}

.nei-job__notice--success {
  background: #e8f7ee;
  border-color: #9fceb0;
  color: #14532d;
}

.nei-job__notice--error {
  background: #fdecec;
  border-color: #e7b0b0;
  color: #7f1d1d;
}

.nei-job__section {
  background: #fff;
  border: 1px solid var(--nei-line);
  border-radius: 10px;
  padding: 1.25rem 1.25rem 1.5rem;
  margin-bottom: 1.15rem;
  box-shadow: 0 8px 24px rgba(0, 40, 80, 0.04);
}

.nei-job__section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
  color: var(--nei-blue);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--nei-blue-soft);
}

.nei-job__subhead {
  margin: 1rem 0 0.75rem;
  font-size: 1rem;
  color: #163a63;
}

.nei-job__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.nei-job__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.nei-job__field > span {
  color: #334155;
  font-weight: 600;
}

.nei-job__field--full {
  grid-column: 1 / -1;
}

.nei-job__field input,
.nei-job__field select,
.nei-job__field textarea {
  width: 100%;
  border: 1px solid var(--nei-line);
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  background: #fff;
  color: var(--nei-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nei-job__field input:focus,
.nei-job__field select:focus,
.nei-job__field textarea:focus {
  outline: none;
  border-color: var(--nei-blue);
  box-shadow: 0 0 0 3px rgba(0, 64, 128, 0.12);
}

.nei-job__check {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
}

.nei-job__check input {
  width: auto;
  margin-top: 0.3rem;
}

.nei-job__declare {
  background: var(--nei-blue-soft);
  border-right: 4px solid var(--nei-blue);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
  color: #243447;
  font-size: 0.95rem;
}

.nei-job__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  min-width: 220px;
  padding: 0.85rem 1.4rem;
  border: 0;
  border-radius: 6px;
  background: var(--nei-blue);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.nei-job__submit:hover {
  background: #003366;
}

.nei-job__submit:active {
  transform: translateY(1px);
}

.nei-job__hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.nei-job [data-nei-show] {
  display: none;
}

.nei-job [data-nei-show].is-visible {
  display: flex;
}

@media (max-width: 720px) {
  .nei-job {
    padding: 1.25rem 0.85rem 3rem;
  }

  .nei-job__grid {
    grid-template-columns: 1fr;
  }

  .nei-job__section {
    padding: 1rem;
  }

  .nei-job__submit {
    width: 100%;
  }
}
