/* HMF Careers — listing cards + apply form */
.hmf-careers-jobs{
  background: #f4f7fb;
}

.hmf-career-card{
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid rgba(22, 53, 99, 0.14);
  border-radius: 6px;
  padding: 1.85rem 1.65rem 1.5rem;
  box-shadow: 0 8px 24px rgba(22, 53, 99, 0.06);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

.hmf-career-card::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ED1C24, rgba(237, 28, 36, 0.35));
}

.hmf-career-card:hover{
  border-color: rgba(237, 28, 36, 0.35);
  box-shadow: 0 16px 36px rgba(22, 53, 99, 0.12);
  transform: translateY(-4px);
}

.hmf-career-card__title{
  color: #163563;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 .65rem;
}

.hmf-career-card__meta{
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .5rem;
  margin: 0 0 1rem;
}

.hmf-career-card__chip{
  display: inline-block;
  padding: .28rem .7rem;
  border-radius: 4px;
  background: rgba(22, 53, 99, 0.07);
  color: #163563;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.3;
}

.hmf-career-card__chip--accent{
  background: rgba(237, 28, 36, 0.1);
  color: #c4161d;
}

.hmf-career-card__text{
  color: #5a6570;
  margin: 0 0 1.25rem;
  flex: 1 1 auto;
}

.hmf-career-card__actions{
  margin-top: auto;
  padding-top: .25rem;
}

.hmf-career-card__btn{
  display: inline-flex !important;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.15rem !important;
  background: #ED1C24 !important;
  color: #fff !important;
  border: 1px solid #ED1C24 !important;
  border-radius: 4px;
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: none !important;
}

.hmf-career-card__btn:hover,
.hmf-career-card__btn:focus-visible{
  background: #163563 !important;
  border-color: #163563 !important;
  color: #fff !important;
}

.hmf-career-card__btn span{
  color: #fff !important;
  position: static !important;
  transform: none !important;
}

.hmf-career-card__link{
  color: #ED1C24;
  font-weight: 600;
  text-decoration: none;
}

.hmf-career-card__link:hover,
.hmf-career-card__link:focus-visible{
  color: #163563;
  text-decoration: underline;
}

.hmf-career-open-cta{
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: #fff;
  border: 1px solid rgba(22, 53, 99, 0.12);
  border-radius: 6px;
}

.hmf-career-apply{
  position: sticky;
  top: 110px;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  border: 1px solid rgba(22, 53, 99, 0.1);
  box-shadow: 0 10px 28px rgba(22, 53, 99, 0.06);
}

.hmf-career-apply .form-label{
  font-weight: 600;
  color: #163563;
  margin-bottom: .35rem;
}

.hmf-career-apply .field-set,
.hmf-career-apply #career_form,
.hmf-career-apply #career_form_wrap{
  max-width: 100%;
  min-width: 0;
}

.hmf-career-apply .form-control{
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.hmf-career-apply input[type="file"].form-control,
.hmf-career-apply input[type="file"]{
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.hmf-career-apply .small,
.hmf-career-apply p{
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hmf-career-consent{
  max-width: 100%;
  min-width: 0;
}

.hmf-career-consent > label{
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  max-width: 100%;
  min-width: 0;
}

.hmf-career-consent > label > input{
  flex: 0 0 auto;
  margin-top: .2rem;
}

.hmf-career-consent > label > span{
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}

.hmf-career-consent.error_input{
  outline: 1px solid #ED1C24;
  outline-offset: 4px;
  border-radius: 4px;
}

@media (max-width: 1199.98px){
  .hmf-career-apply.p-40{
    padding: 1.5rem !important;
  }
}

@media (max-width: 991.98px){
  .hmf-career-apply{
    position: static;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce){
  .hmf-career-card{
    transition: none;
  }
  .hmf-career-card:hover{
    transform: none;
  }
}
