/* Footer polish — keep Jilani footer model alignment */
footer .footer_top,
footer .footer_top .wrapper,
footer .footer_top_con {
  --terColor: var(--htks-footer-top);
  background: var(--htks-footer-top) !important;
  background-color: var(--htks-footer-top) !important;
}

footer .footer_btm,
footer .footer_btm .wrapper,
footer .footer_btm_con {
  --gradientColor: var(--htks-footer-btm);
  background: var(--htks-footer-btm) !important;
  background-color: var(--htks-footer-btm) !important;
  background-image: none !important;
}

/* Gold gradient bar behind footer nav */
footer .footer_btm .footer_nav::before {
  background: var(--htks-footer-btm) !important;
  background-image: none !important;
}

footer .footer_btm .footer_nav {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0;
  margin: 0;
}

footer .footer_btm .footer_nav::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 40px;
  background: var(--htks-footer-btm) !important;
  background-image: none !important;
  z-index: 0;
}

footer .footer_btm .footer_nav .menu-footer-menu-container,
footer .footer_btm .footer_nav ul {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0 28px;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

footer .footer_btm .footer_nav ul li {
  display: inline-block;
  width: auto !important;
  margin: 0 !important;
  vertical-align: middle;
}

footer .footer_btm .footer_nav ul li::after {
  display: none !important;
}

footer .footer_btm .footer_nav ul li a {
  display: inline-flex;
  align-items: center;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 40px;
  height: 40px;
  line-height: 40px;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  text-decoration: none !important;
  font-size: 17px;
  color: #fff;
}

footer .footer_btm .footer_nav ul li a:hover,
footer .footer_btm .footer_nav ul li a:active,
footer .footer_btm .footer_nav ul li a:focus,
footer .footer_btm .footer_nav ul li.current-menu-item a,
footer .footer_btm .footer_nav ul li.current_page_item a {
  background: transparent !important;
  text-decoration: none !important;
  color: #fff;
  opacity: 0.9;
}

footer > .copyright,
footer .footer_btm .copyright {
  display: block;
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 18px clamp(16px, 3vw, 40px);
  box-sizing: border-box;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  background: var(--htks-footer-top) !important;
  background-color: var(--htks-footer-top) !important;
  background-image: none !important;
}

footer > .copyright .copyrigh_text,
footer .footer_btm .copyright .copyrigh_text {
  margin: 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
}

footer > .copyright a,
footer .footer_btm .copyright a {
  color: #fff;
  font-size: inherit;
}

footer .footer_logo figure {
  margin: 0;
}

footer .footer_logo img.htks-footer-logo {
  display: block;
  max-width: 230px;
  width: 100%;
  height: auto;
  filter: brightness(0) invert(1);
}

footer .footer_accreditions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 0 !important;
  align-self: center;
}

footer .footer_accreditions figure {
  margin: 0 !important;
}

footer .footer_accreditions figure:last-of-type {
  margin-top: 0 !important;
}

footer .footer_accreditions img {
  display: block;
  min-height: 50px;
  max-height: 122px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

/* PC footer — logo + badges row, vertically centered like Jilani layout */
@media (min-width: 1001px) {
  footer .footer_top_con {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    min-height: 0;
    padding: 70px 0 !important;
  }

  footer .footer_logo {
    flex: 0 0 auto;
    align-self: center;
    margin: 0;
  }

  footer .footer_logo img.htks-footer-logo {
    max-width: 250px;
    filter: none;
    border-radius: 12px;
  }

  footer .footer_accreditions {
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 6px;
  }

  footer .footer_accreditions img {
    min-height: 50px;
    max-height: 128px;
    max-width: 165px;
  }

  footer .footer_separators {
    display: block !important;
    flex: 0 0 1px;
    width: 1px;
    height: 220px;
    margin: 0;
    align-self: center;
    opacity: 0.25;
    background: #fff;
  }

  footer .contact_list {
    flex: 1 1 220px;
    align-self: center;
    min-width: 0;
    margin: 0;
  }

  footer .footer_form {
    flex: 0 1 620px;
    align-self: center;
    max-width: 660px !important;
    min-width: 500px;
    margin: 0;
  }
}

footer .footer_form {
  width: 100%;
  max-width: 620px !important;
  min-width: min(100%, 500px);
}

footer .footer_form form,
footer .footer_form .form_flex,
footer .footer_form .btm_form {
  width: 100%;
  max-width: 100%;
}

footer .footer_form .form_flex {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

footer .footer_form form input,
footer .footer_form form textarea,
footer .footer_form .form_flex input,
footer .footer_form .form_flex textarea {
  width: 100% !important;
  min-width: 0;
  max-width: 100% !important;
  flex: 1 1 100%;
  box-sizing: border-box;
}

footer .footer_form .disclaimer {
  width: 100%;
  max-width: 100%;
}

footer .footer_form .disclaimer p {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  margin: 0;
}

footer .footer_form .disclaimer p b {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin-left: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 400;
}

footer .footer_form .disclaimer input[type="checkbox"],
footer .footer_form .disclaimer .form_chkbox {
  flex: 0 0 19px;
  width: 19px !important;
  height: 19px !important;
  margin: 3px 0 0 !important;
  position: static !important;
  top: auto !important;
}

footer .footer_form .disclaimer a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
}

footer .footer_form .disclaimer a:hover {
  opacity: 0.9;
}

footer .footer_form .form-feedback {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 13px;
  line-height: 1.4;
}

footer .footer_form .form-feedback.success {
  background: rgba(232, 248, 239, 0.95);
  color: #1a7a45;
}

footer .footer_form .form-feedback.error {
  background: rgba(253, 234, 234, 0.95);
  color: #a33;
}

footer .captcha_button_holder {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
}

footer .captcha_button_holder .captcha-box {
  min-height: 1px;
  flex: 1 1 auto;
}

footer .captcha_button_holder .priBtn,
footer .captcha_button_holder .form_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 140px;
  min-height: 44px;
  padding: 10px 28px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  footer .footer_logo img.htks-footer-logo {
    max-width: 200px;
  }

  footer .footer_accreditions img {
    min-height: 50px;
    max-height: 110px;
    max-width: 140px;
  }
}
