:root {
  --job-bg-dark: #0f1722;
  --job-bg-soft: #f4f7fa;
  --job-accent: #c99b5d;
  --job-border: #e4e8ee;
  --job-text: #1f2937;
  --job-muted: #667585;
}

.job-detail-page {
  background: linear-gradient(180deg, var(--job-bg-soft) 0%, #fff 260px);
  min-height: 100vh;
  color: var(--job-text);
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

.job-detail-hero {
  padding: 58px 0 38px;
  background: linear-gradient(150deg, #14263a 0%, #0c1622 100%);
  color: #fff;
}

.job-detail-hero__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 26px;
  align-items: center;
}

.job-detail-hero__eyebrow {
  margin: 0 0 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ced7e1;
  font-size: 12px;
}

.job-detail-hero h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.job-detail-hero__facts {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-detail-hero__facts span {
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #f4f7fb;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
}

.job-detail-hero__lead {
  margin: 18px 0 0;
  color: #e0e6ee;
  max-width: 720px;
}

.job-detail-hero__image {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.job-detail-hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.job-detail-main {
  margin-top: -18px;
  padding-bottom: 44px;
}

.job-detail-layout {
  display: grid;
  grid-template-columns: 1.2fr 420px;
  gap: 20px;
  align-items: start;
}

.job-detail-copy {
  background: #fff;
  border: 1px solid var(--job-border);
  border-radius: 14px;
  padding: 22px;
}

.job-section + .job-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed #d7dee7;
}

.job-section h2 {
  margin: 0 0 10px;
  font-size: 26px;
}

.job-text {
  margin: 0;
  white-space: pre-line;
  color: #2e3742;
}

.job-apply-card {
  background: #fff;
  border: 1px solid var(--job-border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 12px 26px rgba(12, 22, 34, 0.08);
  position: sticky;
  top: 20px;
}

.job-apply-card h2 {
  margin: 0;
  font-size: 28px;
}

.job-apply-card p {
  margin: 8px 0 16px;
  color: var(--job-muted);
}

.job-apply-card form label {
  display: block;
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 6px;
}

.job-apply-card input,
.job-apply-card select,
.job-apply-card textarea {
  width: 100%;
  border: 1px solid #d4dbe4;
  border-radius: 10px;
  min-height: 44px;
  padding: 10px 12px;
  margin-bottom: 12px;
  background: #fff;
}

.job-apply-card textarea {
  min-height: 120px;
  resize: vertical;
}

.job-phone-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.job-phone-row input {
  margin-bottom: 0;
}

.job-phone-prefix {
  background: #f7f9fc;
  color: #4b5563;
}

.job-check {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.35;
  margin-bottom: 14px;
}

.job-check input {
  width: auto;
  margin: 2px 0 0;
  min-height: 0;
  padding: 0;
}

.job-apply-btn {
  width: 100%;
  border: 0;
  background: linear-gradient(110deg, #101820, #253b52);
  color: #fff;
  border-radius: 11px;
  min-height: 46px;
  font-weight: 700;
}

.job-apply-btn:hover {
  background: linear-gradient(110deg, #0b1118, #1b2f43);
}

.job-alert {
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 14px;
}

.job-alert--error {
  background: #fff1f1;
  border: 1px solid #f7cccc;
  color: #8d1717;
}

.job-alert--success {
  background: #effcf2;
  border: 1px solid #bfedcb;
  color: #156a2f;
}

@media (max-width: 1099px) {
  .job-detail-layout {
    grid-template-columns: 1fr;
  }

  .job-apply-card {
    position: static;
  }
}

@media (max-width: 991px) {
  .job-detail-hero__grid {
    grid-template-columns: 1fr;
  }

  .job-phone-row {
    grid-template-columns: 1fr;
  }
}
