/* Final, page-level fixes loaded after hkcare-unified.css. */

@media (min-width: 861px) {
  .floating-menu {
    right: 26px !important;
    bottom: 86px !important;
  }

  .floating-menu .float-btn {
    width: 130px !important;
    min-width: 130px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 7px 16px !important;
    gap: 8px !important;
    font-size: 13px !important;
  }

  .floating-menu .float-btn img {
    width: 26px !important;
    height: 26px !important;
  }
}

body:not(.hkNewFormPage) .home-hero .btn1,
body:not(.hkNewFormPage) .home-hero .btn-primary,
body:not(.hkNewFormPage) .home-hero .btn-secondary,
body:not(.hkNewFormPage) .main-hero .btn-primary {
  box-shadow: none !important;
  text-shadow: none !important;
}

@media (max-width: 860px) {
  body:not(.hkNewFormPage) .home-hero {
    width: calc(100% - 44px) !important;
    min-height: 560px !important;
    margin: 14px auto 34px !important;
    border-radius: 22px !important;
  }

  body:not(.hkNewFormPage) .home-hero__slide {
    min-height: 560px !important;
    padding: 74px 18px 54px !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body:not(.hkNewFormPage) .home-hero__content {
    width: 100% !important;
    max-width: 292px !important;
    margin: 0 auto !important;
    text-align: center !important;
  }

  body:not(.hkNewFormPage) .home-hero .home-hero__eyebrow,
  body:not(.hkNewFormPage) .home-hero .hero-eyebrow {
    margin: 0 0 12px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 800 !important;
    word-break: keep-all !important;
  }

  body:not(.hkNewFormPage) .home-hero .hero-title {
    max-width: 292px !important;
    margin: 0 auto 16px !important;
    font-size: 27px !important;
    line-height: 1.22 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  body:not(.hkNewFormPage) .home-hero__slide--illust .hero-title {
    max-width: 278px !important;
    font-size: 25px !important;
    line-height: 1.24 !important;
  }

  body:not(.hkNewFormPage) .home-hero .hero-subtitle {
    max-width: 280px !important;
    margin: 0 auto 22px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }

  body:not(.hkNewFormPage) .home-hero .hero-note {
    max-width: 270px !important;
    margin: 16px auto 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    word-break: keep-all !important;
  }

  body:not(.hkNewFormPage) .home-hero .btn1,
  body:not(.hkNewFormPage) .home-hero .btn-primary,
  body:not(.hkNewFormPage) .home-hero .btn-secondary {
    width: min(100%, 260px) !important;
    min-height: 52px !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}

body.hkNewFormPage .hkf__illust {
  display: none !important;
}

body:not(.hkNewFormPage) .login-box #plannerSection .planner-apply__head {
  min-height: 70px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px !important;
}

body:not(.hkNewFormPage) .login-box #plannerSection .planner-apply__title {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  color: #12345f !important;
  font-size: 15px !important;
  line-height: 1.25 !important;
  font-weight: 900 !important;
  text-align: left !important;
  white-space: nowrap !important;
}

body:not(.hkNewFormPage) .login-box #plannerSection .planner-apply__title .pa-icon,
body:not(.hkNewFormPage) .login-box #plannerSection .planner-apply__badge {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

body:not(.hkNewFormPage) .login-box #plannerSection .planner-apply__toggle {
  flex: 0 0 44px !important;
  margin-left: auto !important;
}

body.hkNewFormPage .hkf__wrap {
  height: 100dvh !important;
  overflow: hidden !important;
}

body.hkNewFormPage .hkf__topbar {
  flex: 0 0 auto !important;
}

body.hkNewFormPage .hkf__form {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding-top: 14px !important;
  padding-bottom: 108px !important;
}

@media (max-width: 480px) {
  body.hkNewFormPage .hkf__roleGrid {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  body.hkNewFormPage .hkf__roleCard {
    width: calc(50% - 5px) !important;
    flex: 0 0 calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
  }

  body.hkNewFormPage .hkf__roleInner {
    height: auto !important;
    min-height: 154px !important;
    padding: 14px 8px 16px !important;
  }

  body.hkNewFormPage .hkf__roleIcon {
    width: 78px !important;
    height: 78px !important;
  }
}
