/* Shared footer credit alignment across every page. */
.footer-bottom__inner {
  position: relative;
}

.footer-bottom__credit {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block !important;
  margin: 0 !important;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

body.nh-appointment-open {
  overflow: hidden;
}

.nh-appointment-tab {
  position: fixed;
  top: 52%;
  right: 0;
  z-index: 950;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 12px;
  color: #fff;
  background: linear-gradient(180deg, #ed172b, #c90d1e);
  border: 0;
  border-radius: 0 13px 13px 0;
  box-shadow: 0 12px 28px rgba(160, 5, 22, 0.28);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
  transition: padding 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.nh-appointment-tab:hover,
.nh-appointment-tab:focus-visible {
  padding-inline: 17px;
  background: linear-gradient(180deg, #d90f23, #b20919);
  box-shadow: 0 15px 32px rgba(160, 5, 22, 0.36);
}

.nh-appointment-tab svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  transform: rotate(180deg);
}

.nh-appointment-dialog {
  width: min(calc(100% - 32px), 680px);
  max-width: 680px;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  color: #13263a;
  background: #fff;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 28px 90px rgba(2, 25, 45, 0.34);
}

.nh-appointment-dialog[open] {
  animation: nh-appointment-in 180ms ease-out;
}

.nh-appointment-dialog::backdrop {
  background: rgba(1, 19, 34, 0.7);
  backdrop-filter: blur(5px);
}

@keyframes nh-appointment-in {
  from { opacity: 0; transform: translateY(15px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.nh-appointment-modal {
  position: relative;
  padding: 34px;
  background:
    radial-gradient(circle at 100% 0, rgba(6, 59, 104, 0.065), transparent 17rem),
    #fff;
}

.nh-appointment-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #496273;
  background: #f3f7fa;
  border: 1px solid #dae5ec;
  border-radius: 10px;
  cursor: pointer;
}

.nh-appointment-close:hover,
.nh-appointment-close:focus-visible {
  color: #fff;
  background: #df1325;
  border-color: #df1325;
}

.nh-appointment-close svg { width: 19px; height: 19px; }

.nh-appointment-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 45px;
}

.nh-appointment-heading__icon {
  width: 49px;
  height: 49px;
  flex: 0 0 49px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #df1325;
  border-radius: 14px;
  box-shadow: 0 9px 22px rgba(223, 19, 37, 0.22);
}

.nh-appointment-heading__icon svg { width: 25px; height: 25px; }
.nh-appointment-heading small { display: block; color: #df1325; font-size: 0.63rem; font-weight: 800; letter-spacing: 0.13em; text-transform: uppercase; }
.nh-appointment-heading strong { display: block; margin-top: 4px; color: #032c50; font-size: clamp(1.35rem, 3vw, 1.8rem); line-height: 1.2; letter-spacing: -0.035em; }
.nh-appointment-intro { max-width: 570px; margin-top: 19px; color: #607786; font-size: 0.78rem; line-height: 1.7; }

.nh-appointment-form {
  margin-top: 25px;
  padding-top: 24px;
  border-top: 1px solid #e3ebf0;
}

.nh-appointment-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.nh-appointment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.nh-appointment-grid label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.nh-appointment-grid__full { grid-column: 1 / -1; }
.nh-appointment-grid label > span { color: #304d61; font-size: 0.69rem; font-weight: 800; }
.nh-appointment-grid em { color: #df1325; font-style: normal; }

.nh-appointment-grid input,
.nh-appointment-grid select,
.nh-appointment-grid textarea {
  width: 100%;
  min-width: 0;
  color: #1d3547;
  background-color: #f7fafc;
  border: 1px solid #d5e2ea;
  border-radius: 10px;
  outline: 0;
  font: inherit;
  font-size: 0.74rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nh-appointment-grid input,
.nh-appointment-grid select { height: 47px; padding: 0 13px; }
.nh-appointment-grid textarea { min-height: 92px; padding: 12px 13px; resize: vertical; line-height: 1.55; }
.nh-appointment-grid select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6f8493 50%), linear-gradient(135deg, #6f8493 50%, transparent 50%); background-position: calc(100% - 18px) 20px, calc(100% - 13px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 37px; }
.nh-appointment-grid input:focus,
.nh-appointment-grid select:focus,
.nh-appointment-grid textarea:focus { background-color: #fff; border-color: #467aa0; box-shadow: 0 0 0 3px rgba(6, 59, 104, 0.09); }

.nh-appointment-consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 18px;
  color: #607786;
  cursor: pointer;
  font-size: 0.65rem;
  line-height: 1.55;
}

.nh-appointment-consent input { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 1px; accent-color: #df1325; }

.nh-appointment-submit {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 19px;
  padding: 0 21px;
  color: #fff;
  background: #df1325;
  border: 1px solid #df1325;
  border-radius: 10px;
  box-shadow: 0 9px 22px rgba(223, 19, 37, 0.22);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.nh-appointment-submit:hover,
.nh-appointment-submit:focus-visible { background: #be0e1d; }
.nh-appointment-submit:disabled { cursor: wait; opacity: 0.72; }
.nh-appointment-submit svg { width: 17px; height: 17px; }
.nh-appointment-note { margin-top: 12px; color: #708493; font-size: 0.65rem; line-height: 1.5; }
.nh-appointment-note a { color: #df1325; font-weight: 800; }

@media (max-width: 700px) {
  .site-header {
    position: sticky !important;
    top: 0;
    z-index: 1000;
    border-top: 0 !important;
  }

  .announcement-bar,
  .contact-strip {
    display: none;
  }

  .footer-bottom__back {
    display: none !important;
  }

  .footer-bottom__credit {
    position: static;
    margin-top: 3px !important;
    white-space: normal;
    transform: none;
  }

  .mobile-floating-actions {
    position: fixed;
    right: 16px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 900;
    display: grid;
    gap: 10px;
  }

  .mobile-floating-action {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    padding: 0;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    box-shadow: 0 10px 26px rgba(3, 44, 80, 0.28);
    cursor: pointer;
    text-decoration: none;
  }

  .mobile-floating-action svg {
    width: 21px;
    height: 21px;
  }

  .mobile-floating-action--call {
    background: #df1325;
  }

  .mobile-floating-action--top {
    background: #063b68;
  }

  .nh-appointment-tab {
    top: auto;
    right: auto;
    bottom: calc(18px + env(safe-area-inset-bottom));
    left: 16px;
    min-height: 50px;
    padding: 0 16px;
    border-radius: 25px;
    font-size: 0.69rem;
    writing-mode: horizontal-tb;
    transform: none;
  }

  .nh-appointment-tab:hover,
  .nh-appointment-tab:focus-visible { padding-inline: 16px; }

  .nh-appointment-tab svg { transform: none; }

  .nh-appointment-dialog {
    width: min(calc(100% - 24px), 680px);
    max-height: calc(100dvh - 24px);
    border-radius: 17px;
  }

  .nh-appointment-modal { padding: 25px 19px; }
  .nh-appointment-close { top: 14px; right: 14px; }
  .nh-appointment-heading { padding-right: 39px; }
  .nh-appointment-heading__icon { width: 44px; height: 44px; flex-basis: 44px; }
  .nh-appointment-grid { grid-template-columns: 1fr; gap: 15px; }
  .nh-appointment-grid__full { grid-column: auto; }
  .nh-appointment-submit { width: 100%; }
}

@media (max-width: 520px) {
  :root {
    --nav-height: 92px !important;
  }

  .navbar {
    width: calc(100% - 32px) !important;
    min-height: var(--nav-height) !important;
    gap: 32px !important;
  }

  .brand {
    gap: 7px !important;
  }

  .brand__logo-wrap {
    width: 64px !important;
    height: 64px !important;
    flex-basis: 64px !important;
  }

  .brand__name {
    font-size: 1.24rem !important;
  }

  .brand__pulse {
    display: block !important;
    width: 31px !important;
    height: 28px !important;
  }

  .brand__subtitle {
    font-size: 0.56rem !important;
  }

  .menu-toggle {
    width: 46px !important;
    height: 46px !important;
    flex: 0 0 46px !important;
  }

  .nav-panel {
    left: 16px !important;
    right: 16px !important;
  }
}
