/* ==========================================================================
   HORIZON X — Careers Page Stylesheet (careers.css)
   Completely matching the HORIZON X Design Language & Tokens
   ========================================================================== */

:root {
  --hx-blue: #0899f4;
  --hx-blue-glow: rgba(8, 153, 244, 0.25);
  --hx-dark-bg: #0B0E14;
  --hx-card-bg: #10151E;
  --hx-card-border: rgba(255, 255, 255, 0.08);
  --hx-card-hover: rgba(8, 153, 244, 0.3);
}

/* ================= 1. CAREERS HERO BANNER SECTION (MATCHING BLOGS PAGE HERO) ================= */
.careers-hero-banner-section,
.blogs-hero-banner-section {
  position: relative;
  width: 100%;
  height: clamp(420px, 42vw, 540px);
  overflow: hidden;
  background: #0B1220;
  margin: 0;
  padding: 0;
}

.careers-hero-banner-wrap,
.blogs-hero-banner-wrap {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.careers-hero-banner-img,
.blogs-hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  image-rendering: auto;
}

.careers-hero-banner-overlay,
.blogs-hero-banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(6, 9, 15, 0.88) 0%, rgba(6, 9, 15, 0.65) 45%, rgba(6, 9, 15, 0.2) 80%, transparent 100%),
    linear-gradient(to top, rgba(6, 9, 15, 0.5) 0%, transparent 35%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, transparent 40%);
  padding-top: 54px;
}

.careers-hero-banner-overlay .container,
.blogs-hero-banner-overlay .container {
  width: 100%;
}

.careers-hero-banner-content,
.blogs-hero-banner-content {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.careers-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: clamp(11px, 0.9vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: clamp(12px, 1.8vw, 18px);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.careers-hero-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--hx-blue);
  display: inline-block;
}

.careers-banner-heading,
.blogs-banner-heading {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(38px, 5.2vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.careers-banner-heading .banner-text-white,
.blogs-banner-heading .banner-text-white {
  color: #FFFFFF;
  display: block;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
}

.careers-banner-heading .banner-text-blue,
.blogs-banner-heading .banner-text-blue {
  color: #0899f4;
  display: block;
  text-shadow: 0 2px 18px rgba(8, 153, 244, 0.35);
}

.careers-banner-desc,
.blogs-banner-desc {
  font-family: var(--f-body);
  font-size: clamp(14px, 1.15vw, 16.5px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 18px;
  max-width: 62ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.careers-hero-cta {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.careers-hero-cta:hover,
.careers-hero-cta:focus-visible {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.careers-hero-cta:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

.careers-hero-cta .cta-arrow,
.careers-hero-cta .arrow {
  transition: transform .25s var(--ease), color .25s var(--ease);
  display: inline-block;
  color: inherit;
}

.careers-hero-cta:hover .cta-arrow,
.careers-hero-cta:hover .arrow {
  transform: translateY(4px);
  color: #ffffff;
}

@media (max-width: 768px) {
  .careers-hero-banner-section {
    height: clamp(320px, 60vw, 420px);
  }

  .careers-hero-banner-overlay {
    padding-top: 44px;
    background: linear-gradient(180deg,
        rgba(6, 10, 18, 0.78) 0%,
        rgba(6, 10, 18, 0.6) 100%);
  }

  .careers-banner-heading {
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.05;
  }

  .careers-banner-desc {
    font-size: clamp(13px, 3.4vw, 14.5px);
    margin-top: 12px;
    line-height: 1.5;
  }
}

/* ================= 2. WHY WORK WITH US SECTION ================= */
.why-work-section {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--midnight);
  border-bottom: 1px solid var(--navy-line);
}

.why-work-header {
  margin-bottom: clamp(48px, 6vw, 76px);
  max-width: 780px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--off);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 1.5px;
  background: var(--hx-blue);
  display: inline-block;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.2vw, 56px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 18px 0;
}

.section-desc {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.15vw, 17.5px);
  line-height: 1.65;
  color: var(--off-dim);
  margin: 0;
}

.why-work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.why-feature-block {
  background: var(--ink);
  border: 1px solid var(--navy-line);
  padding: clamp(32px, 3vw, 44px) clamp(24px, 2.5vw, 32px);
  border-radius: 2px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.why-feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 153, 244, 0.45);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.06);
}

.feature-number {
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--hx-blue);
  margin-bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.feature-number::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--navy-line);
  transition: width 0.3s ease, background 0.3s ease;
}

.why-feature-block:hover .feature-number::after {
  width: 38px;
  background: var(--hx-blue);
}

.feature-title {
  font-family: var(--f-head);
  font-size: clamp(17px, 1.3vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 14px 0;
}

.feature-desc {
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--off-dim);
  margin: 0;
}

/* ================= 3. OPEN POSITIONS SECTION ================= */
.positions-section {
  padding: clamp(80px, 9vw, 130px) 0;
  background: var(--ink);
  border-bottom: 1px solid var(--navy-line);
}

.positions-header {
  margin-bottom: clamp(40px, 5vw, 64px);
  max-width: 720px;
}

.positions-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Job Listing Card */
.job-card {
  background: var(--midnight);
  border: 1px solid var(--navy-line);
  border-radius: 2px;
  padding: clamp(24px, 3vw, 36px) clamp(24px, 3.5vw, 44px);
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  transition: all 0.3s var(--ease);
  position: relative;
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background 0.3s ease;
}

.job-card:hover {
  background: var(--ink);
  border-color: rgba(8, 153, 244, 0.4);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.05);
  transform: translateX(4px);
}

.job-card:hover::before {
  background: var(--hx-blue);
}

.job-main-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.job-dept-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-blue);
}

.job-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0;
  line-height: 1.2;
}

.job-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(16px, 2.5vw, 32px);
}

.job-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--off-dim);
}

.job-meta-item svg {
  color: var(--grey);
  flex-shrink: 0;
}

.job-action {
  display: flex;
  align-items: center;
}

.job-apply-btn {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.job-apply-btn .arrow,
.job-apply-btn .cta-arrow {
  transition: transform .25s var(--ease), color .25s var(--ease);
  display: inline-block;
  color: inherit;
}

.job-apply-btn:hover,
.job-apply-btn:focus-visible,
.job-card:hover .job-apply-btn {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.job-apply-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

.job-apply-btn:hover .arrow,
.job-apply-btn:hover .cta-arrow,
.job-card:hover .job-apply-btn .arrow,
.job-card:hover .job-apply-btn .cta-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

/* Empty Jobs State */
.empty-jobs-panel {
  text-align: center;
  padding: clamp(60px, 8vw, 90px) 24px;
  background: var(--midnight);
  border: 1px dashed var(--navy-line);
  border-radius: 2px;
  max-width: 680px;
  margin: 0 auto;
}

.empty-jobs-title {
  font-family: var(--f-display);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--off);
  margin-bottom: 12px;
}

.empty-jobs-desc {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--off-dim);
  margin: 0;
}

/* ================= 4. JOB DETAILS MODAL VIEW ================= */
.job-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 40px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s var(--ease);
}

.job-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.job-modal-container {
  background: #FFFFFF;
  border: 1px solid var(--navy-line);
  border-radius: 2px;
  width: min(90%, 900px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s var(--ease);
  position: relative;
  scrollbar-width: thin;
  scrollbar-color: rgba(8, 153, 244, 0.4) rgba(0, 0, 0, 0.04);
}

.job-modal-container::-webkit-scrollbar {
  width: 6px;
}

.job-modal-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
}

.job-modal-container::-webkit-scrollbar-thumb {
  background: rgba(8, 153, 244, 0.4);
  border-radius: 3px;
}

.job-modal-container::-webkit-scrollbar-thumb:hover {
  background: #0899f4;
}

.job-modal-backdrop.is-open .job-modal-container {
  transform: translateY(0) scale(1);
}

#jobModalContent {
  display: flex;
  flex-direction: column;
}

.job-modal-header {
  padding: clamp(20px, 3vw, 32px) clamp(20px, 3.5vw, 40px) 18px;
  border-bottom: 1px solid var(--navy-line);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  background: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 5;
}

.job-modal-header-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-modal-title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: var(--off);
  margin: 0;
}

.job-modal-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 2px;
  border: 1px solid var(--navy-line);
  background: transparent;
  color: var(--off);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.job-modal-close-btn:hover,
.job-modal-close-btn:focus-visible {
  background: var(--off);
  color: #FFFFFF;
  border-color: var(--off);
}

.job-modal-body {
  padding: clamp(20px, 3.5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 26px;
  overflow: visible;
}

.job-modal-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px 20px;
  background: var(--midnight);
  border: 1px solid var(--navy-line);
  border-radius: 2px;
}

.job-meta-item-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-meta-box-label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.job-meta-box-val {
  font-family: var(--f-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--off);
}

.job-modal-section-title {
  font-family: var(--f-head);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 12px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-modal-section-title::before {
  content: '';
  width: 12px;
  height: 2px;
  background: var(--hx-blue);
  display: inline-block;
}

.job-modal-text {
  font-family: var(--f-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--off-dim);
  margin: 0;
}

.job-modal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job-modal-list li {
  position: relative;
  padding-left: 20px;
  font-family: var(--f-body);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--off-dim);
}

.job-modal-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--hx-blue);
  font-weight: 600;
}

.job-modal-footer {
  padding: 20px clamp(24px, 4vw, 44px);
  border-top: 1px solid var(--navy-line);
  background: var(--midnight);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.modal-apply-btn {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.modal-apply-btn .arrow,
.modal-apply-btn .cta-arrow,
.modal-apply-btn span[aria-hidden="true"] {
  transition: transform .25s var(--ease), color .25s var(--ease);
  display: inline-block;
  color: inherit;
}

.modal-apply-btn:hover,
.modal-apply-btn:focus-visible {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.modal-apply-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

.modal-apply-btn:hover .arrow,
.modal-apply-btn:hover .cta-arrow,
.modal-apply-btn:hover span[aria-hidden="true"] {
  transform: translateX(4px);
  color: #ffffff;
}

/* ================= 5. APPLICATION FORM SECTION ================= */
.application-section {
  padding: clamp(80px, 9vw, 130px) 0;
  background-color: #f3f4f6;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
}

.application-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: flex-start;
}

.application-sidebar {
  display: flex;
  flex-direction: column;
}

.app-side-header {
  margin-bottom: 32px;
}

.application-sidebar .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hx-blue);
  margin-bottom: 12px;
}

.application-sidebar .section-eyebrow::before {
  content: '';
  width: 14px;
  height: 1.5px;
  background: var(--hx-blue);
  display: inline-block;
}

.app-side-title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4vw, 54px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 16px 0;
}

.app-side-desc {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.15vw, 16.5px);
  line-height: 1.65;
  color: #4B5563;
  margin: 0;
}

.app-perks-card {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  padding: clamp(24px, 3vw, 32px);
  border-radius: 2px;
  margin-top: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.app-perks-title {
  font-family: var(--f-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-perks-title svg {
  color: var(--hx-blue);
}

.app-perks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-perks-list li {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.55;
  color: #4B5563;
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-perks-list li::before {
  content: '✓';
  color: var(--hx-blue);
  font-weight: 700;
  font-size: 13px;
}

/* Form Container */
.application-form-panel {
  background: #FFFFFF;
  border: 1px solid #E5E7EB;
  border-radius: 2px;
  padding: clamp(32px, 4vw, 52px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.careers-form {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.careers-form.is-hidden {
  display: none !important;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  position: relative;
}

.form-field label {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #374151;
  display: block;
}

.form-field .req {
  color: var(--hx-blue);
  margin-left: 2px;
  font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  background: #FAFAFA;
  border: 1px solid #D1D5DB;
  border-radius: 2px;
  padding: 13px 16px;
  outline: none;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #9CA3AF;
  font-family: var(--f-body);
  font-size: 14px;
  opacity: 1;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: #FFFFFF;
  border-color: var(--hx-blue);
  box-shadow: 0 0 0 3px rgba(8, 153, 244, 0.12);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  padding: 14px 16px;
}

.form-field select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23374151' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
  height: 48px;
}

.form-field select option {
  background: #FFFFFF;
  color: #111827;
  font-family: var(--f-body);
  font-size: 14px;
  padding: 10px;
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea,
.form-field.is-invalid .resume-dropzone {
  border-color: #EF4444 !important;
  background-color: #FFF5F5 !important;
}

.form-error-msg {
  font-family: var(--f-body);
  font-size: 12px;
  color: #EF4444;
  margin-top: 4px;
  display: none;
}

.form-field.is-invalid .form-error-msg {
  display: block;
}

/* ================= 6. RESUME UPLOAD COMPONENT ================= */
.resume-upload-wrapper {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.resume-dropzone {
  border: 1.5px dashed #CBD5E1;
  border-radius: 2px;
  background: #FAFAFA;
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  position: relative;
}

.resume-dropzone:hover,
.resume-dropzone.is-dragover {
  border-color: var(--hx-blue);
  background: rgba(8, 153, 244, 0.04);
}

.resume-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  z-index: 2;
}

.resume-idle-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
}

.resume-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(8, 153, 244, 0.1);
  color: var(--hx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.resume-text-main {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #111827;
}

.resume-text-sub {
  font-family: var(--f-body);
  font-size: 12px;
  color: #64748B;
}

/* Selected File Display */
.resume-file-selected {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #FAFAFA;
  border: 1px solid #E2E8F0;
  padding: 14px 18px;
  border-radius: 2px;
}

.resume-file-selected.is-active {
  display: flex;
}

.resume-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.resume-file-icon {
  color: var(--hx-blue);
  flex-shrink: 0;
}

.resume-file-details {
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
}

.resume-file-name {
  font-family: var(--f-head);
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.resume-file-size {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: #64748B;
}

.resume-remove-btn {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #EF4444;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, 0.2);
  padding: 6px 12px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.resume-remove-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

/* Checkbox Row */
.form-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 4px;
}

.form-checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--hx-blue);
  cursor: pointer;
}

.form-checkbox-label {
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.5;
  color: #4B5563;
  cursor: pointer;
  user-select: none;
}

.form-checkbox-label .req {
  color: var(--hx-blue);
  font-weight: 700;
}

.careers-submit-btn {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  cursor: pointer;
  width: 100%;
}

.careers-submit-btn .arrow,
.careers-submit-btn .cta-arrow {
  transition: transform .25s var(--ease), color .25s var(--ease);
  display: inline-block;
  color: inherit;
}

.careers-submit-btn:hover:not(:disabled),
.careers-submit-btn:focus-visible:not(:disabled) {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.careers-submit-btn:hover:not(:disabled) .arrow,
.careers-submit-btn:hover:not(:disabled) .cta-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.careers-submit-btn:active:not(:disabled) {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

.careers-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ================= 7. SUCCESS & ERROR PANELS ================= */
.app-success-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 6vw, 72px) 24px;
  background: var(--ink);
  border: 1px solid var(--navy-line);
  border-radius: 2px;
}

.app-success-panel.is-shown {
  display: flex;
}

.app-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(8, 153, 244, 0.1);
  color: var(--hx-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.app-success-heading {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--off);
  margin: 0 0 16px 0;
}

.app-success-desc {
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--off-dim);
  max-width: 500px;
  margin: 0 0 32px 0;
}

.app-reset-btn {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  cursor: pointer;
  text-decoration: none;
}

.app-reset-btn:hover,
.app-reset-btn:focus-visible {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.app-reset-btn:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

.app-error-banner {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #B91C1C;
  padding: 14px 18px;
  border-radius: 2px;
  font-family: var(--f-body);
  font-size: 13.5px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

/* ================= 8. DON'T SEE YOUR ROLE SECTION ================= */
.dont-see-role-section {
  padding: clamp(70px, 8vw, 110px) 0;
  background: var(--ink);
  text-align: center;
}

.dont-see-role-inner {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dont-see-title {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: var(--off);
  margin: 0 0 16px 0;
}

.dont-see-desc {
  font-family: var(--f-body);
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
  color: var(--off-dim);
  margin: 0 0 32px 0;
}

.dont-see-btn,
.careers-contact-cta {
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: 0.07em;
  font-weight: 500;
  text-transform: uppercase;
  color: #0899f4;
  background: rgba(8, 153, 244, 0.06);
  border: 1px solid #0899f4;
  padding: 13px 26px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), gap .25s var(--ease);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.dont-see-btn .arrow,
.dont-see-btn .cta-arrow,
.careers-contact-cta .arrow,
.careers-contact-cta .cta-arrow {
  transition: transform .25s var(--ease), color .25s var(--ease);
  display: inline-block;
  color: inherit;
}

.dont-see-btn:hover,
.dont-see-btn:focus-visible,
.careers-contact-cta:hover,
.careers-contact-cta:focus-visible {
  background: #0899f4;
  color: #ffffff;
  border-color: #0899f4;
  gap: 14px;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(8, 153, 244, 0.32);
}

.dont-see-btn:hover .arrow,
.dont-see-btn:hover .cta-arrow,
.careers-contact-cta:hover .arrow,
.careers-contact-cta:hover .cta-arrow {
  transform: translateX(4px);
  color: #ffffff;
}

.dont-see-btn:active,
.careers-contact-cta:active {
  transform: translateY(0) scale(.98);
  transition-duration: .12s;
}

/* ================= 9. RESPONSIVE MEDIA QUERIES ================= */
@media (max-width: 1080px) {
  .why-work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .job-card {
    grid-template-columns: 1fr auto;
  }
  
  .job-meta-row {
    grid-column: 1 / -1;
  }
  
  .job-action {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 860px) {
  .careers-hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .careers-hero-content {
    max-width: 100%;
  }
  
  .careers-hero-media {
    order: -1;
  }
  
  .careers-hero-image-wrap {
    min-height: 280px;
    max-height: 420px;
  }
  
  .application-layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .job-modal-backdrop {
    padding: 12px;
  }

  .job-modal-container {
    width: calc(100% - 24px);
    max-height: 92vh;
  }
}

@media (max-width: 640px) {
  .why-work-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  
  .job-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .job-action {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  
  .job-apply-btn {
    width: 100%;
    justify-content: center;
  }
  
  .resume-file-name {
    max-width: 170px;
  }
  
  .job-modal-footer {
    justify-content: stretch;
  }
  
  .modal-apply-btn {
    width: 100%;
    justify-content: center;
  }
}
