/* ==========================================
   HARA DIAGNOSTICS - CAREERS PAGE
========================================== */

.careers-page {
  font-family: 'Inter', sans-serif;
  color: #152c49;
  background: #fff;
}


/* ==========================================
   CAREERS HERO - HARA DIAGNOSTICS
========================================== */

.careers-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: auto;
  padding: 35px 0;
  overflow: hidden;

  background:
    linear-gradient(
      95deg,
      rgba(6, 54, 111, 0.94) 0%,
      rgba(6, 54, 111, 0.80) 48%,
      rgba(11, 79, 156, 0.38) 100%
    ),
    url("../images/careers-hero.webp");

  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
}

.careers-hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -150px;
  bottom: -190px;
  border: 35px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  pointer-events: none;
}

.careers-hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.careers-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: #a9e77e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.careers-hero h1 {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
}

.careers-hero h1 span {
  color: #70c9ff;
}

.careers-hero p {
  max-width: 490px;
  color: rgba(255, 255, 255, .88);
  font-size: 16px;
  line-height: 1.8;
}

.career-primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 14px 24px;
  border-radius: 8px;
  color: #fff;
  background: #45a61b;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: .3s ease;
}

.career-primary-btn:hover {
  color: #fff;
  background: #368a13;
  transform: translateY(-3px);
}


/* ==========================================
   SECTION HEADINGS & BENEFITS
========================================== */

.career-heading > span,
.career-form-intro > span {
  display: inline-block;
  margin-bottom: 15px;
  color: #45a61b;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
}

.career-benefits {
  padding: 75px 0;
  background: #fff;
}

.career-heading {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.career-heading h2 {
  margin: 0 0 13px;
  color: #06285a;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
}

.career-heading h2 strong {
  color: #45a61b;
}

.career-heading p {
  color: #667085;
  font-size: 15px;
  line-height: 1.8;
}

.career-benefit-card {
  height: 100%;
  padding: 30px 22px;
  border: 1px solid #e2ebf3;
  border-radius: 16px;
  background: #fff;
  text-align: center;
  transition: .3s ease;
}

.career-benefit-card:hover {
  transform: translateY(-6px);
  border-color: #b8dca4;
  box-shadow: 0 15px 35px rgba(6, 40, 90, .09);
}

.career-benefit-card > i {
  display: grid;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 16px;
  color: #45a61b;
  background: #eff8e9;
  font-size: 25px;
}

.career-benefit-card h3 {
  margin-bottom: 10px;
  color: #06285a;
  font-size: 17px;
  font-weight: 800;
}

.career-benefit-card p {
  margin: 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.7;
}


/* ==========================================
   CAREER APPLICATION FORM
========================================== */

.career-application-section {
  padding: 80px 0;
  background: #f5f9fd;
  scroll-margin-top: 90px;
}

.career-form-layout {
  display: grid;
  grid-template-columns: .8fr 1.4fr;
  gap: 30px;
  align-items: start;
}

.career-form-intro {
  min-width: 0;
  position: sticky;
  top: 105px;
  padding: 38px 30px;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, #06285a, #0d4d91);
}

.career-form-intro > span {
  color: #b8e48e;
}

.career-form-intro h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.career-form-intro > p {
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  line-height: 1.8;
}

.career-contact-point {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
}

.career-contact-point > i {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 12px;
  color: #45a61b;
  background: #fff;
}

.career-contact-point strong,
.career-contact-point small {
  display: block;
}

.career-contact-point strong {
  margin-bottom: 5px;
  color: #fff;
  font-size: 14px;
}

.career-contact-point small {
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  line-height: 1.6;
}

.career-form-card {
  min-width: 0;
  padding: 35px;
  border: 1px solid #e1eaf3;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(6, 40, 90, .06);
}

.career-form-heading {
  margin-bottom: 25px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e8eef5;
}

.career-form-heading h2 {
  margin: 0 0 7px;
  color: #06285a;
  font-size: 24px;
  font-weight: 800;
}

.career-form-heading p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.career-form-card label:not(.career-consent) {
  display: block;
  margin-bottom: 7px;
  color: #06285a;
  font-size: 13px;
  font-weight: 700;
}

.career-form-card .form-control,
.career-form-card .form-select {
  min-height: 46px;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  color: #344054;
  font-size: 13px;
  box-shadow: none;
}

.career-form-card textarea.form-control {
  min-height: 110px;
  resize: vertical;
}

.career-form-card .form-control:focus,
.career-form-card .form-select:focus {
  border-color: #45a61b;
  box-shadow: 0 0 0 3px rgba(69, 166, 27, .10);
}

/* Custom Dropdown (Prevents overflow on mobile & DevTools) */
.hara-select-wrap {
  position: relative;
  width: 100%;
}

.hara-native-select {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
}

.hara-select-trigger {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d5e1ed;
  border-radius: 8px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.hara-select-trigger.is-placeholder {
  color: #667085;
}

.hara-select-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hara-select-trigger i {
  font-size: 11px;
  color: #526176;
  flex-shrink: 0;
  transition: transform .2s ease;
}

.hara-select-wrap.is-open .hara-select-trigger {
  border-color: #45a61b;
  box-shadow: 0 0 0 3px rgba(69, 166, 27, .10);
}

.hara-select-wrap.is-open .hara-select-trigger i {
  transform: rotate(180deg);
}

.hara-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  max-height: 230px;
  overflow-y: auto;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border: 1px solid #d5e1ed;
  border-radius: 10px;
  box-shadow: 0 14px 32px rgba(6, 40, 90, .14);
  z-index: 99;
  display: none;
}

.hara-select-wrap.is-open .hara-select-menu {
  display: block;
}

.hara-select-menu li {
  padding: 9px 12px;
  border-radius: 6px;
  font-size: 13px;
  color: #344054;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}

.hara-select-menu li:hover {
  background: #eff8e9;
  color: #06285a;
}

.hara-select-menu li.is-selected {
  background: #45a61b;
  color: #fff;
  font-weight: 600;
}

.career-file-note {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 11px;
}

.career-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #526176;
  font-size: 12px;
  line-height: 1.6;
  cursor: pointer;
}

.career-consent input {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #45a61b;
}

.career-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 49px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #45a61b;
  font-size: 14px;
  font-weight: 800;
  transition: .25s ease;
}

.career-submit-btn:hover {
  background: #368a13;
  transform: translateY(-2px);
}

.career-submit-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}


/* ==========================================
   RESPONSIVE STYLES
========================================== */

@media (max-width: 991px) {
  .careers-hero {
    min-height: auto;
    padding: 45px 0;
    background-position: 60% 20%;
  }

  .careers-hero-content {
    max-width: 480px;
  }

  .career-form-layout {
    grid-template-columns: 1fr;
  }

  .career-form-intro {
    position: static;
    padding: 30px;
  }
}

@media (max-width: 575px) {
  .careers-hero {
    min-height: auto;
    padding: 40px 0;
    background:
      linear-gradient(
        180deg,
        rgba(6, 54, 111, 0.88) 0%,
        rgba(6, 54, 111, 0.82) 100%
      ),
      url("../images/careers-hero.webp");
    background-size: cover;
    background-position: 65% 20%;
    background-repeat: no-repeat;
  }

  .careers-hero h1 {
    font-size: 32px;
  }

  .careers-hero p {
    font-size: 14px;
  }

  .career-benefits,
  .career-application-section {
    padding: 55px 0;
  }

  .career-form-intro,
  .career-form-card {
    padding: 24px 20px;
  }

  .career-form-intro h2 {
    font-size: 25px;
  }

  .career-form-heading h2 {
    font-size: 21px;
  }
}
