:root {
  --orange: #fe6903;
  --bodyColor: #fcfcf9;

  --mpce-blue: #005eb8;
  --nhs-main-blue: #005eb8;
  --nhs-second-blue: #0164ce;
  --nhs-light-blue: #98bee5;

  --nhs-green-tick: #009639;
  --nhs-dark-green: #006747;

  --form-invalid: #dc3545;
  --boot-placeholder: #626466;

  --white: #fff;
  --dark1: #2d2d2d;
  --dark2: #505050;
  --dark3: #9c9c9c;
  --dark4: #c2c2c2;
  --dark-light: #d4d4d4;

  --size-base: 1rem;
  --size-300: calc(0.75 * var(--size-base));
  --size-400: var(--size-base);
  --size-500: calc(1.33 * var(--size-base));
  --size-600: calc(1.77 * var(--size-base));
  --size-700: calc(2.36 * var(--size-base));
  --size-800: calc(3.15 * var(--size-base));
  --size-900: calc(4.2 * var(--size-base));
  --size-major: calc(5.6 * var(--size-base));

  --dropshadow: 0 12px 50px rgba(15, 23, 42, 0.12);

  --nav-height: 45px;
  --nav-link-color: #fff;
  --nav-background-color: #005eb8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
.signin-form-fields input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.signin-form-fields p:has(input[type="checkbox"]),
.signin-form-fields .mb-3:has(input[type="checkbox"]),
.signin-form-fields .form-group:has(input[type="checkbox"]),
.signin-form-fields .field-wrapper:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.signin-form-fields p:has(input[type="checkbox"]) label,
.signin-form-fields .mb-3:has(input[type="checkbox"]) label,
.signin-form-fields .form-group:has(input[type="checkbox"]) label,
.signin-form-fields .field-wrapper:has(input[type="checkbox"]) label {
    margin-bottom: 0;
    font-weight: 400;
}
/* Header */
.site-head {
  padding: 0;
  background: white;
}

.navbar-wrapper {
  max-width: 75rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  position: relative;
}

.site-head__inner {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* Topbar */
.site-head__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  min-height: 2.5rem;
  color: #000;

  border-bottom: 1px solid var(--mpce-blue);

  font-size: 0.9rem;
}

.site-head__topbar-section {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;

  min-height: 2.5rem;
  padding: 0.4rem 0;
}

.site-head__topbar a,
.site-head__topbar a:visited {
  color: #000;
  text-decoration: none;
}

.site-head__topbar a:hover,
.site-head__topbar a:focus {
  text-decoration: underline;
}

.site-head__topbar-icon {
  display: block;

  width: 15px;
  height: 15px;

  object-fit: contain;
  flex: 0 0 15px;
}

.site-head__topbar-account {
  justify-content: flex-end;
}

/* Topbar login/logout button */
.site-head__logout-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.site-head__topbar .site-head__account-button,
.site-head__topbar .site-head__account-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  min-height: 28px;
  padding: 0 1rem;

  border: 0;
  border-radius: 1rem;

  background: var(--mpce-blue);
  color: #fff !important;

  font-size: 0.85rem;
  line-height: 1;
  text-decoration: none !important;

  cursor: pointer;
  vertical-align: middle;
}

.site-head__topbar .site-head__account-button:hover,
.site-head__topbar .site-head__account-button:focus {
  background: var(--nhs-second-blue);
  color: #fff !important;
  text-decoration: none !important;
}

.site-head__account-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 1em;
  height: 1em;

  color: currentColor;
  line-height: 1;
  text-decoration: none !important;
}

.site-head__account-text {
  color: currentColor;
  text-decoration: none;
}

.site-head__account-button:hover .site-head__account-text,
.site-head__account-button:focus .site-head__account-text {
  text-decoration: underline;
}

.site-head__account-button:hover .site-head__account-icon,
.site-head__account-button:focus .site-head__account-icon {
  text-decoration: none !important;
}

/* Logo row */
.site-head__logos {
  display: flex;
  align-items: center;
  justify-content: space-between;

  width: 100%;
  height: 77px;
  padding: 0.25rem 0;

  background: #fff;
}

.site-head__logo-link {
  display: flex;
  align-items: center;
  justify-content: center;

  height: 100%;
  text-decoration: none;
}

.site-head__logo-img {
  display: block;

  max-width: 220px;
  max-height: 2.8rem;

  width: auto;
  height: auto;

  object-fit: contain;
}

/* Main nav */
.nav {
  position: relative;
  width: 100%;

  height: var(--nav-height);
  min-height: 0;
  padding: 0;

  display: flex;
  align-items: center;

  font-size: 1rem;

  background: var(--mpce-blue);
  color: var(--nav-link-color);

  overflow: visible;
  z-index: 20;
}

/* Full-width nav background without clipping dropdowns */
.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);

  background: var(--nav-background-color);
  z-index: -1;
}

.nav::after {
  content: none;
}

.nav__list {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;

  width: 100%;
  height: var(--nav-height);

  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item {
  display: flex;
  align-items: center;
}

.nav__link,
.nav__link--button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  height: var(--nav-height);
  padding: 0 0.5rem;

  color: var(--nav-link-color) !important;
  line-height: 1;
  font: inherit;
  text-decoration: none;
}

.nav .nav-link {
  padding-top: 0;
  padding-bottom: 0;
}

.nav .nav__list a.nav__link,
.nav .nav__list a.nav__link:visited,
.nav .nav__list a.nav-link.nav__link,
.nav .nav__list a.nav-link.nav__link:visited,
.nav .nav__list a.nav-link.dropdown-toggle.nav__link,
.nav .nav__list a.nav-link.dropdown-toggle.nav__link:visited {
  color: var(--nav-link-color) !important;
}

.nav__link:hover,
.nav__link:focus,
.nav__link--button:hover,
.nav__link--button:focus {
  color: var(--nav-link-color) !important;
  text-decoration: underline;
}

.nav [aria-current="page"],
.nav [data-state="active"] {
  text-decoration: underline;
}

.nav__icon {
  width: 1em;
  height: 1em;

  display: inline-block;
  flex: 0 0 auto;
}

/* Bootstrap dropdown inside nav */
.nav .dropdown {
  position: relative;
}

.nav .dropdown-menu {
  z-index: 2000;
  margin-top: 0;

  color: #000;
}

.nav .dropdown-header {
  font-size: 0.8rem;
  color: #6c757d;
}

.nav .dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;

  color: #000 !important;
  font-size: 0.95rem;
  line-height: 1.2;
}

.nav .dropdown-item:hover,
.nav .dropdown-item:focus {
  background: #f1f3f5;
  color: #000 !important;
}

.nav__dropdown-icon {
  width: 1rem;
  color: currentColor;
}

.nav__dropdown-form {
  margin: 0;
}

.nav__dropdown-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

/* Mobile */
@media (max-width: 40rem) {
  .site-head__topbar {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;

    padding: 0.35rem 0;
  }

  .site-head__topbar-section {
    justify-content: flex-start;
    min-height: 28px;
  }

  .site-head__topbar-account {
    justify-content: flex-start;
  }

  .site-head__logos {
    height: auto;
    min-height: 77px;
    gap: 1rem;
  }

  .site-head__logo-img {
    max-width: 145px;
    max-height: 2.5rem;
  }

  .nav {
    height: auto;
    min-height: 34px;
    padding: 0.25rem 0;
  }

  .nav__list {
    flex-wrap: wrap;
    justify-content: flex-start;

    height: auto;
    min-height: 34px;
  }

  .nav__link,
  .nav__link--button {
    height: 34px;
  }
}

