/* ==========================================================
   HEAD UP CAREERS
   JOB LIST + JOB DETAILS POPUP + APPLICATION POPUP
========================================================== */

#hu-careers,
#hu-careers * {
  box-sizing: border-box;
}

#hu-careers {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  font-family: inherit;
  color: #171717;
}

/* ==========================================================
   TOP TABS
========================================================== */

.hu-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 45px;
}

.hu-tab {
  border: 1px solid #0b3d82;
  background: #fff;
  color: #0b3d82;
  padding: 14px 32px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .25s ease;
}

.hu-tab:hover {
  background: #f2f6fb;
}

.hu-tab.active {
  background: #0b3d82;
  color: #fff;
}

/* ==========================================================
   JOB LAYOUT
========================================================== */

.hu-job-layout {
  display: grid;
  grid-template-columns: 280px minmax(0,1fr);
  gap: 38px;
  align-items: start;
}

/* ==========================================================
   SIDEBAR
========================================================== */

.hu-sidebar {
  position: sticky;
  top: 30px;
}

.hu-sidebar-title {
  background: #0b3d82;
  color: #fff;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
}

.hu-department-list {
  display: flex;
  flex-direction: column;
}

.hu-department {
  width: 100%;
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #222;
  text-align: left;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
  transition: .2s ease;
}

.hu-department:hover {
  background: #f5f7fa;
  color: #0b3d82;
}

.hu-department.active {
  background: #f3f6fa;
  color: #0b3d82;
  border-left-color: #0b3d82;
  font-weight: 600;
}

/* ==========================================================
   JOB CARDS
========================================================== */

.hu-job-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.hu-job-card {
  border: 1px solid #ddd;
  background: #fff;
  padding: 36px 40px;
  transition: .25s ease;
}

.hu-job-card:hover {
  border-color: #b9c8da;
  box-shadow: 0 8px 25px rgba(0,0,0,.05);
  transform: translateY(-2px);
}

.hu-job-title {
  margin: 0 0 7px;
  color: #1a62c5;
  font-size: 29px;
  line-height: 1.25;
  font-weight: 500;
}

.hu-job-type {
  margin: 0 0 9px;
  color: #111;
  font-size: 16px;
  font-weight: 600;
}

.hu-job-location {
  margin: 0 0 15px;
  color: #666;
  font-size: 14px;
}

.hu-job-description {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
}

.hu-tags {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hu-tag {
  background: #f2f6fa;
  color: #0b3d82;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 600;
}

/* BUTTONS */

.hu-job-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 23px;
}

.hu-details-btn,
.hu-apply-btn,
.hu-detail-apply {
  border: 1px solid #0b3d82;
  padding: 12px 22px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: .2s ease;
}

.hu-details-btn {
  background: #fff;
  color: #0b3d82;
}

.hu-details-btn:hover {
  background: #f1f5fa;
}

.hu-apply-btn,
.hu-detail-apply {
  background: #0b3d82;
  color: #fff;
}

.hu-apply-btn:hover,
.hu-detail-apply:hover {
  background: #1a62c5;
  border-color: #1a62c5;
}

.hu-no-jobs {
  display: none;
  border: 1px solid #ddd;
  padding: 40px;
  text-align: center;
  color: #666;
}

/* ==========================================================
   MODALS
========================================================== */

.hu-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 25px;
}

.hu-modal.open {
  display: flex;
}

.hu-modal-bg {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(3px);
}

.hu-modal-panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1050px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  padding: 52px 55px 55px;
  box-shadow: 0 20px 70px rgba(0,0,0,.25);
}

.hu-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: #0b3d82;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.hu-close:hover {
  background: #1a62c5;
}

body.hu-lock {
  overflow: hidden;
}

/* ==========================================================
   JOB DETAILS
========================================================== */

.hu-detail-label {
  margin-bottom: 9px;
  color: #12498b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hu-detail-title {
  margin: 0 60px 15px 0;
  color: #111;
  font-size: 38px;
  line-height: 1.2;
  font-weight: 600;
}

.hu-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 25px;
  margin-bottom: 28px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e5e5e5;
  color: #555;
  font-size: 14px;
}

.hu-detail-intro {
  margin: 0 0 28px;
  color: #444;
  font-size: 16px;
  line-height: 1.8;
}

.hu-detail-section {
  margin-top: 30px;
}

.hu-detail-section h3 {
  margin: 0 0 13px;
  color: #111;
  font-size: 20px;
  font-weight: 600;
}

.hu-detail-section p,
.hu-detail-section li {
  color: #444;
  font-size: 15px;
  line-height: 1.75;
}

.hu-detail-section ul {
  margin: 0;
  padding-left: 21px;
}

.hu-detail-section li {
  margin-bottom: 8px;
}

.hu-detail-bottom {
  margin-top: 38px;
  padding-top: 28px;
  border-top: 1px solid #e5e5e5;
}

/* ==========================================================
   APPLICATION FORM
========================================================== */

.hu-form-eyebrow {
  margin-bottom: 9px;
  color: #12498b;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.hu-form-title {
  margin: 0 0 12px;
  color: #111;
  font-size: 42px;
  line-height: 1.15;
  font-weight: 600;
}

.hu-form-intro {
  max-width: 760px;
  margin: 0 0 36px;
  color: #606060;
  font-size: 15px;
  line-height: 1.7;
}

.hu-form-section {
  padding: 30px 0;
  border-top: 1px solid #e5e5e5;
}

.hu-section-title {
  margin: 0 0 7px;
  font-size: 21px;
  font-weight: 600;
}

.hu-section-desc {
  margin: 0 0 23px;
  color: #777;
  font-size: 14px;
}

.hu-form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 22px 28px;
}

.hu-field.full {
  grid-column: 1 / -1;
}

.hu-field label {
  display: block;
  margin-bottom: 9px;
  font-size: 15px;
  font-weight: 600;
}

.hu-required {
  color: #12498b;
}

.hu-field input,
.hu-field select,
.hu-field textarea {
  width: 100%;
  border: 1px solid #d5dbe3;
  border-radius: 3px;
  background: #fff;
  color: #171717;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}

.hu-field input,
.hu-field select {
  min-height: 52px;
  padding: 0 15px;
}

.hu-field textarea {
  min-height: 130px;
  padding: 15px;
  resize: vertical;
  line-height: 1.6;
}

.hu-field input:focus,
.hu-field select:focus,
.hu-field textarea:focus {
  border-color: #12498b;
  box-shadow: 0 0 0 3px rgba(18,73,139,.08);
}

.hu-phone {
  display: flex;
}

.hu-phone-prefix {
  width: 76px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dbe3;
  border-right: 0;
  background: #f5f7fa;
  font-weight: 600;
}

.hu-phone input {
  border-radius: 0 3px 3px 0;
}

.hu-money {
  position: relative;
}

.hu-money span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 600;
  color: #555;
}

.hu-money input {
  padding-left: 48px;
}

.hu-radio-group {
  display: flex;
  align-items: center;
  gap: 25px;
  min-height: 52px;
  flex-wrap: wrap;
}

.hu-radio {
  display: flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  font-weight: 400 !important;
}

.hu-radio input {
  width: 18px;
  height: 18px;
  min-height: auto;
  accent-color: #12498b;
}

.hu-file-box {
  border: 1px dashed #bfc9d5;
  background: #fafbfc;
  padding: 25px;
  text-align: center;
}

.hu-file-box input {
  min-height: auto;
  border: 0;
  padding: 0;
}

.hu-file-note {
  margin: 10px 0 0;
  color: #777;
  font-size: 13px;
}

.hu-consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: #555;
  font-size: 14px;
  line-height: 1.6;
}

.hu-consent input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex: 0 0 auto;
  accent-color: #12498b;
}

.hu-form-footer {
  padding-top: 30px;
  border-top: 1px solid #e5e5e5;
}

.hu-submit {
  border: 0;
  background: #0b3d82;
  color: #fff;
  padding: 16px 32px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.hu-submit:hover {
  background: #1a62c5;
}

.hu-submit-note {
  margin-top: 13px;
  color: #888;
  font-size: 12px;
}

.hu-success {
  display: none;
  padding: 55px 20px;
  text-align: center;
}

.hu-success h3 {
  margin: 0 0 12px;
  color: #0b3d82;
  font-size: 30px;
}

.hu-success p {
  max-width: 600px;
  margin: auto;
  color: #555;
  line-height: 1.7;
}

/* ==========================================================
   SUBMISSION STATES (only visible while sending / on error)
========================================================== */

.hu-submit[disabled] {
  opacity: .6;
  cursor: wait;
}

.hu-form-error {
  display: none;
  margin-bottom: 18px;
  padding: 13px 16px;
  border-left: 3px solid #c62828;
  background: #fdecea;
  color: #8e1c1c;
  font-size: 14px;
  line-height: 1.6;
}

.hu-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================
   MOBILE
========================================================== */

@media(max-width:767px) {

  .hu-tabs {
    flex-direction: column;
    gap: 9px;
    margin-bottom: 28px;
  }

  .hu-tab {
    width: 100%;
  }

  .hu-job-layout {
    display: block;
  }

  .hu-sidebar {
    position: static;
    margin-bottom: 25px;
  }

  .hu-department-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }

  .hu-department {
    background: #f6f6f6;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 11px;
    font-size: 13px;
  }

  .hu-job-card {
    padding: 25px 22px;
  }

  .hu-job-title {
    font-size: 23px;
  }

  .hu-job-actions {
    flex-direction: column;
  }

  .hu-details-btn,
  .hu-apply-btn {
    width: 100%;
  }

  .hu-modal {
    padding: 10px;
  }

  .hu-modal-panel {
    max-height: 95vh;
    padding: 65px 21px 35px;
  }

  .hu-detail-title {
    font-size: 29px;
  }

  .hu-form-title {
    font-size: 31px;
  }

  .hu-form-grid {
    grid-template-columns: 1fr;
  }

  .hu-field.full {
    grid-column: auto;
  }

  .hu-submit,
  .hu-detail-apply {
    width: 100%;
  }
}

/* ==========================================================
   THEME OVERRIDE GUARD
   Themes style every <button> (colour, radius, hover, focus).
   These ID-scoped rules keep all careers buttons blue.
========================================================== */

#hu-careers .hu-tab,
#hu-careers .hu-department,
#hu-careers .hu-details-btn,
#hu-careers .hu-apply-btn,
#hu-details-modal .hu-detail-apply,
#hu-details-modal .hu-close,
#hu-application-modal .hu-close,
#hu-application-modal .hu-submit {
  border-radius: 0;
  box-shadow: none;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  font-family: inherit;
  line-height: 1.4;
}

#hu-careers .hu-tab:focus-visible,
#hu-careers .hu-department:focus-visible,
#hu-careers .hu-details-btn:focus-visible,
#hu-careers .hu-apply-btn:focus-visible,
#hu-details-modal .hu-detail-apply:focus-visible,
#hu-details-modal .hu-close:focus-visible,
#hu-application-modal .hu-close:focus-visible,
#hu-application-modal .hu-submit:focus-visible {
  outline: 3px solid #9cc0ee;
  outline-offset: 2px;
}

/* Tabs */

#hu-careers .hu-tab,
#hu-careers .hu-tab:focus {
  border: 1px solid #0b3d82;
  background: #fff;
  color: #0b3d82;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 600;
}

#hu-careers .hu-tab:hover {
  background: #f2f6fb;
  color: #0b3d82;
  border-color: #0b3d82;
}

#hu-careers .hu-tab.active,
#hu-careers .hu-tab.active:hover,
#hu-careers .hu-tab.active:focus {
  background: #0b3d82;
  color: #fff;
  border-color: #0b3d82;
}

/* Departments */

#hu-careers .hu-department,
#hu-careers .hu-department:focus {
  border: 0;
  border-left: 3px solid transparent;
  background: transparent;
  color: #222;
  text-align: left;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 400;
}

#hu-careers .hu-department:hover {
  background: #f5f7fa;
  color: #0b3d82;
}

#hu-careers .hu-department.active,
#hu-careers .hu-department.active:hover,
#hu-careers .hu-department.active:focus {
  background: #f3f6fa;
  color: #0b3d82;
  border-left-color: #0b3d82;
  font-weight: 600;
}

/* Card + detail buttons */

#hu-careers .hu-details-btn,
#hu-careers .hu-apply-btn,
#hu-details-modal .hu-detail-apply {
  border: 1px solid #0b3d82;
  padding: 12px 22px;
  font-size: 14px;
  font-weight: 600;
}

#hu-careers .hu-details-btn,
#hu-careers .hu-details-btn:focus {
  background: #fff;
  color: #0b3d82;
  border-color: #0b3d82;
}

#hu-careers .hu-details-btn:hover {
  background: #f1f5fa;
  color: #0b3d82;
  border-color: #0b3d82;
}

#hu-careers .hu-apply-btn,
#hu-careers .hu-apply-btn:focus,
#hu-details-modal .hu-detail-apply,
#hu-details-modal .hu-detail-apply:focus {
  background: #0b3d82;
  color: #fff;
  border-color: #0b3d82;
}

#hu-careers .hu-apply-btn:hover,
#hu-details-modal .hu-detail-apply:hover {
  background: #1a62c5;
  color: #fff;
  border-color: #1a62c5;
}

/* Modal close + submit */

#hu-details-modal .hu-close,
#hu-application-modal .hu-close,
#hu-details-modal .hu-close:focus,
#hu-application-modal .hu-close:focus {
  border: 0;
  background: #0b3d82;
  color: #fff;
  padding: 0;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

#hu-details-modal .hu-close:hover,
#hu-application-modal .hu-close:hover {
  background: #1a62c5;
  color: #fff;
}

#hu-application-modal .hu-submit,
#hu-application-modal .hu-submit:focus {
  border: 0;
  background: #0b3d82;
  color: #fff;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 600;
}

#hu-application-modal .hu-submit:hover {
  background: #1a62c5;
  color: #fff;
}

@media(max-width:767px) {

  #hu-careers .hu-tab {
    width: 100%;
  }

  #hu-careers .hu-department,
  #hu-careers .hu-department:focus {
    background: #f6f6f6;
    border-left: 0;
    border-bottom: 2px solid transparent;
    padding: 11px;
    font-size: 13px;
  }

  #hu-careers .hu-department:hover {
    background: #eef2f8;
  }

  #hu-careers .hu-department.active,
  #hu-careers .hu-department.active:hover,
  #hu-careers .hu-department.active:focus {
    background: #f3f6fa;
    border-bottom-color: #0b3d82;
  }

  #hu-careers .hu-details-btn,
  #hu-careers .hu-apply-btn,
  #hu-details-modal .hu-detail-apply,
  #hu-application-modal .hu-submit {
    width: 100%;
  }
}

/* ==========================================================
   THEME OVERRIDE GUARD — FORM FIELDS
   Themes also restyle inputs (padding, border, focus colour),
   which pushed typed amounts underneath the "RM" label.
========================================================== */

#hu-application-form .hu-field input,
#hu-application-form .hu-field select,
#hu-application-form .hu-field textarea {
  width: 100%;
  border: 1px solid #d5dbe3;
  border-radius: 3px;
  background-color: #fff;
  color: #171717;
  font-family: inherit;
  font-size: 15px;
  box-shadow: none;
  outline: none;
}

#hu-application-form .hu-field input,
#hu-application-form .hu-field select {
  min-height: 52px;
  padding: 0 15px;
}

#hu-application-form .hu-field textarea {
  min-height: 130px;
  padding: 15px;
  line-height: 1.6;
}

#hu-application-form .hu-field input:focus,
#hu-application-form .hu-field select:focus,
#hu-application-form .hu-field textarea:focus {
  border-color: #12498b;
  box-shadow: 0 0 0 3px rgba(18,73,139,.08);
  outline: none;
}

#hu-application-form .hu-money input {
  padding-left: 52px;
}

#hu-application-form .hu-phone input {
  border-radius: 0 3px 3px 0;
}

#hu-application-form .hu-radio input,
#hu-application-form .hu-consent input {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  accent-color: #12498b;
}

#hu-application-form .hu-file-box input {
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  background-color: transparent;
  box-shadow: none;
}
