/* Forms-owned navigation. Maintained here independently from Public styles. */
:root {
  --fasa-nav-dark-1: #082845;
  --fasa-nav-dark-2: #103f68;
  --fasa-nav-dark-3: #1c6198;
  --fasa-nav-ink: #f6fbff;
  --fasa-nav-ink-soft: rgba(246, 251, 255, 0.78);
  --fasa-nav-panel: #f7fbff;
  --fasa-nav-panel-border: #0f3a61;
  --fasa-nav-item-border: rgba(255, 255, 255, 0.14);
  --fasa-nav-highlight: linear-gradient(160deg, #327fbe 0%, #1a5f97 100%);
  --fasa-nav-shadow: 0 16px 30px rgba(10, 31, 51, 0.24);
  --fasa-nav-width: min(1180px, calc(100% - 1.25rem));
  --fasa-nav-height: 70px;
  --fasa-nav-mobile-height: 62px;
  --fasa-nav-gap: 0.32rem;
}

body.fasa-shell,
body.fasa-site {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--fasa-nav-height);
}

.main-content-wrap {
  width: min(960px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 1.05rem 0 0;
}

.fasa-nav,
nav[aria-label="Primary navigation"] {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1200;
  display: block;
  width: 100%;
  margin-top: 0px;
  margin-right: 0px;
  margin-left: 0px;
  margin-bottom: 0px;
  padding: 0;
  background: linear-gradient(
    160deg,
    var(--fasa-nav-dark-1) 0%,
    var(--fasa-nav-dark-2) 54%,
    var(--fasa-nav-dark-3) 100%
  );
  border-bottom: 1px solid #09233c;
  box-shadow:
    var(--fasa-nav-shadow),
    inset 0 -2px 0 rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.55;
  top: 0px;
}

body.fasa-shell .fasa-nav,
body.fasa-shell .fasa-nav *,
body.fasa-shell .fasa-nav *::before,
body.fasa-shell .fasa-nav *::after,
body.fasa-site .fasa-nav,
body.fasa-site .fasa-nav *,
body.fasa-site .fasa-nav *::before,
body.fasa-site .fasa-nav *::after {
  /* Use border-box so mobile toggles and buttons remain viewport-contained
     (prevents padding/border expanding the element past the screen edge). */
  box-sizing: border-box !important;
}

.fasa-nav > a {
  display: none;
}

.fasa-nav .navbar-toggler {
  display: none;
}

.fasa-nav .navbar-collapse {
  width: var(--fasa-nav-width);
  margin: 0 auto;
}

.fasa-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fasa-nav > ul,
.fasa-nav > div > ul,
.fasa-nav .navbar-collapse > ul {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: var(--fasa-nav-gap);
  width: 100%;
}

.fasa-nav > ul > li,
.fasa-nav > div > ul > li,
.fasa-nav .navbar-collapse > ul > li {
  position: relative;
  display: flex;
}

.fasa-nav a[role="button"] {
  cursor: default;
}

.fasa-nav > ul > li > a,
.fasa-nav > div > ul > li > a,
.fasa-nav .navbar-collapse > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34.8px;
  padding: 0.62rem 1rem;
  border-left: 1px solid var(--fasa-nav-item-border);
  color: var(--fasa-nav-ink);
  font-family: Arial, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  background: transparent;
  transition:
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

.fasa-nav > ul > li > .dropdown-toggle,
.fasa-nav > div > ul > li > .dropdown-toggle,
.fasa-nav .navbar-collapse > ul > li > .dropdown-toggle {
  color: #fff;
}

.fasa-nav > ul > li:first-child > a,
.fasa-nav > div > ul > li:first-child > a,
.fasa-nav .navbar-collapse > ul > li:first-child > a {
  border-left-color: transparent;
}

.fasa-nav a[aria-current="page"],
.fasa-nav a[aria-current="true"],
.fasa-nav li.current > a,
.fasa-nav li:hover > a,
.fasa-nav li:focus-within > a {
  color: #fff;
  background: var(--fasa-nav-highlight);
  border-left-color: transparent;
}

.fasa-nav .dropdown-toggle::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  margin-left: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.88;
}

.fasa-nav li > .dropdown-menu,
.fasa-nav li > ul {
  position: absolute;
  left: 0;
  /* Keep the submenu flush with its parent so the pointer can move from
     the trigger into the menu without crossing a hover-breaking gap. */
  top: 100%;
  display: none;
  min-width: 240px;
  padding: 0.28rem;
  background: var(--fasa-nav-panel);
  border: 1px solid var(--fasa-nav-panel-border);
  border-radius: 0 0 5px 5px;
  box-shadow: 0 14px 28px rgba(10, 31, 51, 0.2);
}

.fasa-nav li:hover > .dropdown-menu,
.fasa-nav li:focus-within > .dropdown-menu,
.fasa-nav li.dropdown.show > .dropdown-menu,
.fasa-nav li:hover > ul,
.fasa-nav li:focus-within > ul,
.fasa-nav li.dropdown.show > ul {
  display: block;
  animation: fasa-nav-blind 220ms ease-out both;
  transform-origin: top center;
}

.fasa-nav li > .dropdown-menu li,
.fasa-nav li > ul li {
  display: block;
}

.fasa-nav li > .dropdown-menu a,
.fasa-nav li > ul a,
.fasa-nav li > .dropdown-menu h6,
.fasa-nav li > ul h6 {
  display: block;
  padding: 0.56rem 0.72rem;
  border-radius: 4px;
  color: #10304d;
  text-decoration: none;
  white-space: normal;
  line-height: 1.35;
}


.fasa-nav li > .dropdown-menu h6,
.fasa-nav li > ul h6 {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #4f667d;
  background: #d7e6f4;
}

@keyframes fasa-nav-drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Desktop nav: expanded at desktop and above. */
@media (min-width: 726px) {
  .fasa-nav {
    min-height: 0;
    max-height: var(--fasa-nav-height);
  }

  .fasa-nav .navbar-toggler {
    display: none;
  }

  .fasa-nav .navbar-collapse {
    display: block !important;
    width: var(--fasa-nav-width);
    margin: 0 auto;
  }

  .fasa-nav .navbar-collapse > ul {
    display: flex;
  }
}

/* Collapsed nav: mobile landscape/tablet and below. */
@media (max-width: 725px), (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  body.fasa-shell,
  body.fasa-site {
    padding-top: 0;
  }

  body.fasa-shell .fasa-nav,
  body.fasa-site .fasa-nav {
    position: sticky;
    top: 0;
    height: auto;
    max-height: none;
  }

  .main-content-wrap {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0.85rem 0 0;
  }

  .fasa-nav {
    min-height: var(--fasa-nav-mobile-height);
  }

  .fasa-nav .navbar-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: min(var(--fasa-nav-width), calc(100% - 1rem));
    max-width: 380px;
    margin: 0.55rem auto 0.45rem;
    padding: 0.48rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    background: linear-gradient(
      160deg,
      rgba(47, 128, 191, 0.92),
      rgba(31, 95, 151, 0.96)
    );
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
  }

  body.fasa-shell .fasa-nav .navbar-toggler,
  body.fasa-site .fasa-nav .navbar-toggler {
    box-sizing: border-box !important;
  }

  .fasa-nav .navbar-collapse {
    display: none;
    width: min(100%, calc(100% - 1rem));
    max-width: 380px;
    margin: 0 auto 0.55rem;
  }

  .fasa-nav .navbar-collapse.show {
    display: block;
    height: auto;
  }

  .fasa-nav .navbar-collapse > ul {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.38rem;
    padding: 0.55rem;
    background: linear-gradient(
      180deg,
      rgba(10, 43, 74, 0.98),
      rgba(21, 63, 102, 0.98)
    );
    border: 1px solid #0c2f4f;
    border-radius: 5px;
  }

  .fasa-nav .navbar-collapse > ul > li {
    display: block;
    width: 100%;
  }

  .fasa-nav .navbar-collapse > ul > li > a {
    display: flex;
    width: 100%;
    justify-content: space-between;
    min-height: 0;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 5px;
    white-space: normal;
  }

  .fasa-nav li > .dropdown-menu,
  .fasa-nav li > ul {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    min-width: 0;
    margin: 0.35rem 0 0;
    padding: 0.3rem;
    border-radius: 5px;
    box-shadow: none;
    z-index: 1300;
  }

  .fasa-nav li.dropdown.show {
    z-index: 1301;
  }

  .fasa-nav li.dropdown:not(.show) > .dropdown-menu,
  .fasa-nav li.dropdown:not(.show) > ul {
    display: none !important;
  }

  .fasa-nav li > .dropdown-menu li,
  .fasa-nav li > ul li,
  .fasa-nav li > .dropdown-menu a,
  .fasa-nav li > ul a {
    width: 100%;
  }

  .fasa-nav li > .dropdown-menu a,
  .fasa-nav li > ul a {
    display: block;
    padding: 0.62rem 0.72rem;
  }
}

/* Narrow portrait refinement. */
@media (max-width: 425px) {
  .fasa-nav .navbar-toggler {
    width: calc(100% - 1rem);
  }

  .fasa-nav .navbar-collapse > ul {
    padding: 0;
  }

  .fasa-nav .navbar-collapse > ul > li > a {
    font-size: 0.82rem;
  }
}

@keyframes fasa-nav-blind {
  from {
    opacity: 0;
    transform: scaleY(0);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Desktop dropdowns: use the same slower blind transition when opening and
   closing, while leaving the mobile click-controlled menus unchanged. */
@media (min-width: 726px) {
  .fasa-nav li > .dropdown-menu,
  .fasa-nav li > ul {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top center;
    pointer-events: none;
    animation: none;
    transition:
      opacity 380ms ease,
      transform 380ms ease,
      visibility 0s linear 380ms;
  }

  .fasa-nav li:hover > .dropdown-menu,
  .fasa-nav li:focus-within > .dropdown-menu,
  .fasa-nav li.dropdown.show > .dropdown-menu,
  .fasa-nav li:hover > ul,
  .fasa-nav li:focus-within > ul,
  .fasa-nav li.dropdown.show > ul {
    visibility: visible;
    opacity: 1;
    transform: scaleY(1);
    pointer-events: auto;
    animation: none !important;
    transition-delay: 0s;
  }
}

/* Shared public navigation surface. */
.fasa-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  margin: 0 auto 0.6rem;
  padding-top: 0;
}

.fasa-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  height: 100%;
  border-radius: 0;
  background: #163f63;
  box-shadow: 0 8px 20px rgba(7, 40, 69, 0.12);
  pointer-events: none;
}

.fasa-nav > * {
  position: relative;
}

.fasa-nav .navbar-collapse > ul {
  padding: 0.35rem 0.6rem;
}

.fasa-nav .navbar-collapse > ul > li > a {
  min-height: 2.35rem;
  padding-inline: 0.75rem;
  border-radius: 0;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.fasa-nav .navbar-collapse > ul > li > a:hover,
.fasa-nav .navbar-collapse > ul > li > a:focus-visible,
.fasa-nav .navbar-collapse > ul > li.open > a,
.fasa-nav .navbar-collapse > ul > li.dropdown:hover > a {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: none;
}

.fasa-nav li > .dropdown-menu,
.fasa-nav li > ul {
  border-radius: 0;
  border: 1px solid #3f78a4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 246, 252, 0.99));
  box-shadow: 0 14px 28px rgba(8, 34, 59, 0.28);
}

.fasa-nav li > .dropdown-menu a,
.fasa-nav li > ul a {
  border-radius: 0;
  transition: background-color 240ms ease, color 240ms ease;
}

.fasa-nav li > .dropdown-menu a:hover,
.fasa-nav li > .dropdown-menu a:focus-visible,
.fasa-nav li > ul a:hover,
.fasa-nav li > ul a:focus-visible {
  background: #163f63;
  color: #ffffff;
}

/* FASA Forms shared authority */

:root {
  --crm-bg: #d7e3ef;
  --crm-bg-strong: #c4d4e6;
  --crm-surface: #eef4fa;
  --crm-card: #ffffff;
  --crm-border: #789abc;
  --crm-border-strong: #5f83a8;
  --crm-text: #0c2743;
  --crm-text-muted: #445f7a;
  --crm-primary: #1a5d96;
  --crm-primary-dark: #123f67;
  --crm-shadow: 0 10px 20px rgba(12, 33, 53, 0.08);
  --crm-shadow-lg: 0 18px 34px rgba(12, 33, 53, 0.12);
  --crm-radius-xl: 6px;
  --crm-radius-lg: 6px;
  --crm-radius-md: 6px;
  --crm-radius-sm: 6px;
  --crm-max-width: 825px;
  --crm-label-bg: #c8dbef;
  --crm-section-band: #bed2e8;
  --crm-section-surface: #dce9f5;
  --crm-section-surface-strong: #cedfef;
  --crm-section-header: #9fbdd9;
  --crm-font: Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body.crm-body,
.page {
  min-height: 100vh;
  padding: 18px 12px 28px;
  font-family: var(--crm-font);
  color: var(--crm-text);
  background:
    var(--forms-decoration, radial-gradient(circle at top, rgba(255, 255, 255, 0.58), transparent 34%)),
    var(--forms-decoration, linear-gradient(180deg, #dde6ef 0%, #ccd7e3 28%, #c0ccd8 100%));
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
  background-size:
    100% 24rem,
    100% 100%;
}

body.fasa-shell {
  min-height: 100vh;
  font-family: var(--crm-font);
  color: var(--crm-text);
  background: #d9e6f2;
}

.main-content-wrap > .crm-shell,
.main-content-wrap > .crm-body,
.main-content-wrap > .page {
  margin-top: 14px;
}

body.crm-body a,
.page a,
.crm-shell a {
  color: var(--crm-primary);
  text-decoration: none;
}

body.crm-body a:hover,
.page a:hover,
.crm-shell a:hover {
  text-decoration: underline;
}

.crm-shell,
.page .shell {
  max-width: var(--crm-max-width);
  min-width: 0;
  margin: 0 auto;
  border: 1px solid rgba(24, 73, 116, 0.88);
  border-radius: var(--crm-radius-lg);
  background:
    var(--forms-decoration, linear-gradient(
      135deg,
      rgba(27, 82, 132, 0.14),
      rgba(255, 255, 255, 0) 42%
    )),
    var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #edf4fb 100%));
  box-shadow: var(--forms-shadow, 0 20px 36px rgba(12, 33, 53, 0.13));
  overflow: hidden;
}

.crm-header,
.page .header {
  padding: 18px 20px 0;
  background: var(--forms-decoration, linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(237, 244, 251, 0.96) 100%
  ));
}

.crm-header__top,
.page .header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 18px;
  padding-bottom: 12px;
}

.crm-header__top > :first-child,
.page .header-top > :first-child {
  flex: 1 1 100%;
  width: 100%;
}

.crm-kicker,
.page .kicker {
  margin: 0 0 4px;
  color: var(--crm-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.crm-header h1,
.page h1,
.crm-title {
  margin: 0 0 8px;
  color: var(--crm-text);
  font-size: clamp(1.7rem, 2.8vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  text-align: center;
}

.crm-subtitle,
.page .subtitle,
.crm-title + .crm-note {
  max-width: 720px;
  margin: 0 auto;
  color: var(--crm-text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.crm-header__links,
.page .links,
.crm-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

.crm-header__links,
.page .links {
  width: 100%;
}

.crm-header__links a,
.page .links a,
.crm-links a,
.page .btn,
.crm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--crm-border-strong);
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%));
  color: var(--crm-text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.crm-header__links a:hover,
.page .links a:hover,
.crm-links a:hover,
.page .btn:hover,
.crm-button:hover,
.crm-header__links a:focus-visible,
.page .links a:focus-visible,
.crm-links a:focus-visible,
.page .btn:focus-visible,
.crm-button:focus-visible {
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #edf4fb 100%));
  text-decoration: none;
}

.page .btn.primary,
.crm-button--primary {
  border-color: var(--crm-primary-dark);
  background: var(--forms-decoration, linear-gradient(
    180deg,
    var(--crm-primary),
    var(--crm-primary-dark)
  ));
  color: #ffffff;
  box-shadow: var(--forms-shadow, 0 6px 14px rgba(26, 76, 122, 0.25));
}

.page .btn.primary:hover,
.crm-button--primary:hover {
  background: var(--forms-decoration, linear-gradient(180deg, #2269a7, #18486f));
}

.page .btn.primary:disabled,
.crm-button--primary:disabled,
.crm-submit--pending {
  background: #7b8794;
  border-color: #667381;
  box-shadow: var(--forms-shadow, none);
  color: #ffffff;
  cursor: wait;
  opacity: 0.78;
}

.page .btn.primary:disabled:hover,
.crm-button--primary:disabled:hover,
.crm-submit--pending:hover {
  background: #7b8794;
}

/* Visible focus ring for keyboard users on primary buttons */
.crm-button--primary:focus-visible {
  box-shadow: var(--forms-shadow, 0 0 0 3px rgba(27, 82, 132, 0.14));
  outline: none;
}

.crm-progress,
.page .progress {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--crm-border);
  background: var(--forms-decoration, linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55),
    rgba(213, 224, 238, 0.55)
  ));
}

.crm-progress__summary,
.page .progress-meta,
.actions-meta,
.crm-actions__meta {
  margin-bottom: 8px;
  color: var(--crm-text);
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.crm-progress__steps,
.page .progress-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 12px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
  color: var(--crm-text-muted);
  font-size: 0.86rem;
}

.crm-progress__steps li,
.page .progress-steps li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.crm-progress__steps span,
.page .progress-steps span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--crm-border-strong);
  border-radius: 999px;
  background: #ffffff;
}

.crm-progress__steps .is-active,
.page .progress-steps .active {
  color: var(--crm-text);
}

.crm-progress__steps .is-active span,
.page .progress-steps .active span {
  border-color: var(--crm-primary);
  background: var(--crm-primary);
  color: #ffffff;
}

.crm-progress__bar,
.page .progressbar {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: #dce7f2;
  overflow: hidden;
}

.crm-progress__fill,
.page .progressbar > i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--forms-decoration, linear-gradient(90deg, var(--crm-primary), #68a5e3));
}

.crm-form,
.page .form-wrap {
  padding: 18px 20px 0;
}

.crm-card,
.page .card {
  margin: 0 0 16px;
  border: 1px solid rgba(88, 117, 147, 0.74);
  border-radius: var(--crm-radius-lg);
  background: var(--forms-decoration, linear-gradient(180deg, #eaf2fb 0%, #dfeaf6 100%));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 14px 24px rgba(12, 33, 53, 0.115));
  overflow: hidden;
}

.crm-card:last-child,
.page .card:last-child {
  margin-bottom: 10px;
}

.crm-card__header,
.page .card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 15px;
  border-bottom: 1px solid rgba(24, 73, 116, 0.34);
  background: var(--forms-decoration, linear-gradient(180deg, #a9c4de 0%, #96b6d3 100%));
}

.crm-card__header h2,
.page .card-head h2,
.page .subsection-title,
.crm-section-title {
  margin: 0;
  color: #133f66;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-align: center;
}

.crm-card__toggle,
.page .card-toggle {
  border: 0;
  background: transparent;
  color: #6d88a3;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  display: none;
}

.crm-card__body,
.page .card-body {
  min-width: 0;
  padding: 15px 17px 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.52);
  background: var(--forms-decoration, linear-gradient(
    180deg,
    #e4eef8 0%,
    #d8e6f3 100%
  ));
}

.crm-form-card {
  padding: 18px 18px 18px;
  background: var(--forms-decoration, linear-gradient(180deg, #dde9f5 0%, #d1e0ef 100%));
}

.crm-form-card .crm-section-title {
  margin-bottom: 12px;
}

.home-group-list {
  max-width: 840px;
  margin: 0 auto;
  padding-left: 0;
  list-style: none;
}

.home-group-list li + li {
  margin-top: 8px;
}

.home-group-list__item-center {
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-group-list--pairs li {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 10px 14px;
  align-items: center;
  justify-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(110, 144, 178, 0.46);
  border-radius: var(--crm-radius-md);
  background: var(--forms-decoration, linear-gradient(180deg, rgba(232, 241, 250, 0.98), #e3edf8));
  box-shadow: var(--forms-shadow, 0 10px 18px rgba(12, 33, 53, 0.09));
  transition: all 0.2s ease;
}
.home-group-list--pairs li:hover {
  transform: translateY(-2px);
  box-shadow: var(--forms-shadow, 0 12px 20px rgba(12, 33, 53, 0.08));
}

.home-group-list--pairs li + li {
  margin-top: 10px;
}

.home-group-list--pairs strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.home-group-list--pairs .crm-link-pair {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 640px) {
  .home-group-list--pairs li {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-group-list--pairs .crm-link-pair {
    justify-content: flex-start;
  }

  .crm-shell--index {
    padding: 8px;
    gap: 8px;
  }

  .crm-shell--index > .crm-card:first-child {
    padding: 13px 11px 11px;
  }

  .crm-shell--index .crm-form-card {
    padding: 10px;
  }

  .crm-shell--index .home-group-list--pairs li {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .crm-shell--index .home-group-list--pairs .crm-link-pair,
  .crm-shell--index .home-group-list__item-center .crm-link-pair {
    justify-content: stretch;
  }
}

.crm-grid,
.page .grid,
.page .inline-fields {
  display: grid;
  gap: 10px;
}

.crm-grid--2,
.page .grid-2,
.page .inline-2,
.crm-choice-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-grid--3,
.page .grid-3,
.page .inline-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.crm-grid-span-2 {
  grid-column: 1 / -1;
}

.crm-choice-grid {
  display: grid;
  gap: 10px;
}

.crm-choice-card,
.choice-row,
.page .choice-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 36px;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
}

.crm-choice-card input,
.choice-row input,
.page .choice-row input,
.crm-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--crm-primary);
}

.crm-fieldset,
.page fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.crm-field {
  display: grid;
  grid-template-columns: minmax(120px, 160px) minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
}

.page .field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.page
  .field
  input:not([type="file"]):not([type="radio"]):not([type="checkbox"]),
.page .field select,
.page .field textarea {
  min-height: 29px;
  height: 29px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.crm-field label,
.crm-field legend,
.page label,
.page legend {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.3;
  color: #26435f;
}

.crm-field label,
.crm-field legend {
  padding: 2px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.crm-inline-choices,
.crm-checkbox {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-height: 30px;
  padding: 0;
  font-size: 0.88rem;
}

.crm-inline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.crm-inline-controls > input,
.crm-inline-controls > select,
.crm-inline-controls > textarea {
  flex: 1 1 auto;
  min-width: 0;
}

.crm-help--inline {
  grid-column: 2 / -1;
}

.crm-inline-choices label,
.crm-checkbox {
  font-weight: 600;
}

.crm-inline-choices label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="search"],
input[type="password"],
select,
textarea,
.page input[type="text"],
.page input[type="email"],
.page input[type="tel"],
.page input[type="number"],
.page input[type="date"],
.page input[type="search"],
.page input[type="password"],
.page select,
.page textarea {
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--crm-border-strong);
  border-radius: var(--crm-radius-sm);
  background: #fcfdff;
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(19, 63, 102, 0.08),
    0 1px 0 rgba(255, 255, 255, 0.55));
  color: var(--crm-text);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.4;
}

input:hover,
select:hover,
textarea:hover,
.page input:hover,
.page select:hover,
.page textarea:hover {
  border-color: #5f83a8;
}

textarea,
.page textarea {
  resize: vertical;
  min-height: 88px;
}

input[type="file"],
.page input[type="file"] {
  padding: 7px 9px;
}

select {
  appearance: auto;
}

input[readonly],
.page input[readonly] {
  background: #f6f9fc;
}

input:focus,
select:focus,
textarea:focus,
.page input:focus,
.page select:focus,
.page textarea:focus {
  outline: none;
  border-color: var(--crm-primary);
  box-shadow: var(--forms-shadow, 0 0 0 3px rgba(31, 95, 151, 0.16));
}


.crm-help,
.crm-note,
.page .note {
  margin: 0;
  color: var(--crm-text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.crm-prefix-availability {
  color: #2c5f3d;
  font-weight: 600;
}

.crm-prefix-availability--unavailable {
  color: #9b2c2c;
}


.crm-checkbox-label {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  white-space: normal;
}

.crm-checkbox-label input {
  flex: 0 0 auto;
}

.crm-address-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.crm-prefix-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

@media (max-width: 760px) {
  .crm-prefix-choice-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

.crm-note,
.page .note {
  padding: 12px 14px;
  border: 1px solid #a6c0da;
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, #e8f1fa 0%, #dde9f5 100%));
  overflow-wrap: anywhere;
}

.crm-label {
  display: block;
  margin-bottom: 6px;
  color: var(--crm-text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-payment-summary {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 0.6rem;
  margin-bottom: 10px;
}

.crm-payment-summary,
.crm-payment-summary > * {
  min-width: 0;
}

.crm-payment-summary__amount {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #c4d7ea;
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%));
  overflow-wrap: anywhere;
}

.crm-payment-summary__amount strong {
  display: block;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
}

.crm-bank-grid {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 8px;
  margin: 0;
  font-size: 0.86rem;
}

.crm-bank-grid dt {
  font-weight: 700;
  color: #36516d;
}

.crm-bank-grid dd {
  margin: 0;
}

.crm-payment-reference-text {
  color: #b42318;
  font-weight: 800;
}

.table-wrap {
  overflow-x: auto;
}

.challenges {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.challenges th,
.challenges td {
  padding: 6px;
  border: 1px solid #d4deea;
  vertical-align: top;
}

.challenges th {
  background: #f3f7fc;
  text-align: left;
}

.crm-actions,
.page .actions {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--crm-border);
  background: var(--forms-decoration, linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(244, 248, 252, 0.98) 100%
  ));
  box-shadow: var(--forms-shadow, 0 -8px 18px rgba(12, 33, 53, 0.055));
  backdrop-filter: blur(6px);
}

.crm-actions__buttons,
.page .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.fasa-honeypot,
.honeypot,
.sr-only {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

input.fasa-honeypot,
input.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  min-width: 1px !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  padding: 0 !important;
  margin: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.hidden,
[hidden] {
  display: none !important;
}

.crm-gap-top {
  margin-top: 8px;
}

.crm-title {
  margin-bottom: 12px;
}

.crm-title + .crm-note {
  max-width: 700px;
  margin: 0 auto 14px;
}

.crm-links {
  margin-top: 4px;
}

.crm-shell > .crm-card:first-child {
  margin-top: 0;
  background:
    var(--forms-decoration, linear-gradient(135deg, rgba(31, 95, 151, 0.1), rgba(255, 255, 255, 0) 48%)),
    var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #f7fbff 100%));
}

.crm-shell > .crm-card:first-child .crm-title,
.crm-shell > .crm-card:first-child .crm-section-title {
  text-align: center;
}

.crm-form-card .crm-note {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.home-group-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid #d3deea;
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #f5f8fc 100%));
  font-weight: 700;
  text-decoration: none;
}

.home-group-list a::after {
  content: "Open";
  flex: 0 0 auto;
  padding: 2px 7px;
  border: 1px solid #c2d4e6;
  border-radius: 999px;
  background: #eef5fd;
  color: #36516d;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.home-group-list a:hover,
.home-group-list a:focus-visible {
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #edf4fb 100%));
  border-color: var(--crm-border-strong);
}

.crm-shell > .crm-card:first-child .crm-links {
  margin-top: 10px;
}

.crm-help--top14 {
  margin-top: 14px;
}

.field--mt16 {
  margin-top: 16px;
}

.crm-progress__fill--20,
.progress-fill-20 {
  width: 20%;
}

.crm-progress__fill--25,
.progress-fill-25 {
  width: 25%;
}

/* Mobile landscape/tablet form layout. */
@media (max-width: 780px) {
  body.crm-body,
  .page {
    padding: 8px 0 16px;
    margin-left: 0;
    margin-right: 0;
  }

  .crm-header,
  .page .header {
    padding: 10px 10px 0;
  }

  .crm-header__top,
  .page .header-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .crm-progress,
  .page .progress {
    padding: 10px;
  }

  .crm-form,
  .page .form-wrap {
    padding: 10px 10px 0;
  }

  .crm-card,
  .page .card {
    margin-bottom: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .crm-card__header,
  .crm-card__body,
  .page .card-head,
  .page .card-body,
  .crm-form-card {
    padding: 10px 11px;
  }

  .crm-grid--2,
  .crm-grid--3,
  .page .grid-2,
  .page .grid-3,
  .page .inline-2,
  .page .inline-3,
  .crm-choice-grid--2,
  .crm-payment-summary,
  .crm-bank-grid {
    grid-template-columns: 1fr;
  }

  .crm-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .crm-help--inline {
    grid-column: 1 / -1;
  }

  .crm-field label,
  .crm-field legend {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .crm-actions,
  .page .actions {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }

  .main-content-wrap > .crm-shell,
  .main-content-wrap > .crm-body,
  .main-content-wrap > .page {
    margin-top: 10px;
    margin-left: 0;
    margin-right: 0;
  }

  .crm-actions__buttons,
  .page .buttons,
  .crm-links,
  .crm-header__links,
  .page .links {
    width: 100%;
  }

  .crm-header__links a,
  .page .links a,
  .crm-links a,
  .page .btn,
  .crm-button {
    flex: 1 1 auto;
  }

  .home-group-list a {
    align-items: flex-start;
    padding: 10px;
  }

  .crm-link-pair {
    flex-direction: column;
    align-items: stretch;
  }

  .crm-link-pair a {
    width: 100%;
  }

  .home-group-list a::after {
    font-size: 0.68rem;
  }

  .crm-header h1,
  .page h1,
  .crm-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 425px) {
  body.crm-body,
  .page,
  .crm-shell,
  .page .shell,
  .crm-card,
  .page .card,
  .crm-form-card,
  .crm-header,
  .page .header,
  .crm-card__header,
  .crm-card__body,
  .page .card-head,
  .page .card-body,
  .crm-form,
  .page .form-wrap,
  .crm-progress,
  .page .progress,
  .crm-actions,
  .page .actions {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
}

.crm-declaration-grid {
  margin-top: 10px;
}

.crm-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.crm-warning {
  background: #fff8ec;
  border-color: #ecd5a7;
}

.crm-summary {
  padding: 10px 12px;
  border: 1px solid #d9e5f1;
  border-radius: var(--crm-radius-sm);
  background: #f7fafc;
}

.crm-table-wrap {
  overflow-x: auto;
}

.crm-table {
  width: 100%;
  min-width: 470px;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.crm-table th,
.crm-table td {
  padding: 5px;
  border: 1px solid var(--crm-border);
  vertical-align: top;
}

.crm-table th {
  background: #f3f7fc;
  text-align: left;
}

.crm-mini-table input,
.crm-mini-table select {
  padding: 4px 6px;
}

/* Litter Registration: give the active kitten rows a clear, compact working layout. */
.crm-litter-kitten-table {
  min-width: 0;
  table-layout: fixed;
}

.crm-litter-kitten-table th:first-child,
.crm-litter-kitten-table td:first-child {
  width: 4.25rem;
  text-align: center;
}

.crm-litter-kitten-table th:nth-child(2),
.crm-litter-kitten-table td:nth-child(2) {
  width: 10.5rem;
}

.crm-litter-kitten-table td:first-child {
  color: #0b5f9e;
  font-weight: 700;
  vertical-align: middle;
}

.crm-litter-kitten-table td:nth-child(2) {
  vertical-align: middle;
}

.crm-litter-kitten-table input,
.crm-litter-kitten-table select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.crm-litter-parent-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.crm-litter-parent-section {
  border-top: 0;
  padding-top: 0;
}

.crm-litter-parent-section h3 {
  color: #0b5f9e;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
}

.crm-litter-parent-section .grid {
  gap: 0.5rem 0.65rem;
}

.crm-litter-date-grid {
  grid-column: 1 / -1;
}

@media (max-width: 34rem) {
  .crm-litter-parent-grid {
    grid-template-columns: 1fr;
  }

  .crm-litter-kitten-table th:nth-child(2),
  .crm-litter-kitten-table td:nth-child(2) {
    width: 8.5rem;
  }
}

.crm-subsection-title {
  margin: 10px 0 4px;
  color: #1a3f63;
  font-size: 0.92rem;
  line-height: 1.2;
  font-weight: 700;
}

.crm-subsection-title--first {
  margin-top: 12px;
  font-size: 0.97rem;
}

.crm-shell--compact {
  max-width: 825px;
}

.crm-shell--membership-wide {
  max-width: 825px;
}

.crm-address-inline-row {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.crm-address-inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr) minmax(7rem, 1fr);
  gap: 8px;
  align-items: end;
  grid-column: 1;
}

.crm-address-inline-controls .crm-field {
  grid-template-columns: minmax(0, 1fr);
}

.crm-address-inline-controls .crm-field label {
  min-height: 0;
  padding: 0;
}

.crm-shell--compact .crm-header {
  padding: 10px 12px 0;
}

.crm-shell--compact .crm-header__top {
  gap: 8px;
  padding-bottom: 8px;
}

.crm-shell--compact .crm-kicker {
  font-size: 10px;
}

.crm-shell--compact .crm-header h1 {
  margin-bottom: 4px;
  font-size: clamp(1.48rem, 2.1vw, 2rem);
}

.crm-shell--compact .crm-subtitle {
  font-size: 0.84rem;
  line-height: 1.35;
}

.crm-shell--compact .crm-header__links {
  gap: 8px;
  font-size: 0.82rem;
}


.main-content-wrap > .crm-shell.crm-shell--index {
  margin-top: 14px;
}

.crm-shell--index > .crm-card {
  margin: 0;
}

.crm-shell--index > .crm-card:first-child {
  padding: 16px 18px 14px;
  background:
    var(--forms-decoration, linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(239, 245, 252, 0.94) 100%));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 32px rgba(12, 33, 53, 0.14));
}

.crm-shell--index > .crm-card:first-child .crm-title {
  margin-bottom: 10px;
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  letter-spacing: -0.04em;
}

.crm-shell--index > .crm-card:first-child .crm-note {
  max-width: 640px;
  padding: 10px 14px;
  background: var(--forms-decoration, linear-gradient(180deg, #edf5fd 0%, #dfeaf6 100%));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.72));
}

.crm-shell--index > .crm-card:first-child .crm-links {
  gap: 8px;
  margin-top: 10px;
}

.crm-shell--index > .crm-card:first-child .crm-links a {
  min-height: 34px;
  padding: 0 13px;
  font-size: 0.88rem;
}

.crm-shell--index .crm-form-card {
  padding: 11px 13px 13px;
  background:
    var(--forms-decoration, linear-gradient(180deg, rgba(235, 244, 252, 0.96) 0%, rgba(212, 227, 242, 0.98) 100%));
}

.crm-shell--index .crm-section-title {
  margin-bottom: 8px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.crm-shell--index .crm-form-card > .crm-note {
  max-width: 560px;
  margin: 0 auto 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
}

.crm-shell--index .home-group-list {
  max-width: none;
}

.crm-shell--index .home-group-list--pairs li {
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: 8px 12px;
  padding: 9px 11px;
  border-color: rgba(120, 150, 180, 0.48);
  background:
    var(--forms-decoration, linear-gradient(180deg, rgba(247, 250, 254, 0.98) 0%, rgba(228, 238, 249, 0.96) 100%));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.84),
    0 10px 18px rgba(12, 33, 53, 0.08));
}

.crm-shell--index .home-group-list--pairs strong {
  display: block;
  color: #183653;
  font-size: 0.94rem;
}

.crm-shell--index .home-group-list--pairs .crm-link-pair {
  gap: 0.3rem;
}

.crm-shell--index .home-group-list__item-center {
  min-width: min(100%, 280px);
}

.crm-shell--index .home-group-list__item-center .crm-link-pair {
  justify-content: center;
}

.crm-shell--index .home-group-list:not(.home-group-list--pairs) {
  display: grid;
  gap: 6px;
}

.crm-shell--index .home-group-list:not(.home-group-list--pairs) li + li {
  margin-top: 0;
}

.crm-shell--index .home-group-list a {
  min-height: 40px;
  padding: 8px 11px;
  font-size: 0.88rem;
}

.crm-link-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
  margin-top: 0.2rem;
}

.crm-link-pair--center-fit {
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.crm-link-pair a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0.18rem 0.7rem;
  border: 1px solid rgba(127, 159, 190, 0.72);
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #f4f8fc 100%));
  color: var(--crm-text);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.crm-link-pair a:hover,
.crm-link-pair a:focus-visible {
  background: var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #edf4fb 100%));
  text-decoration: none;
}

.crm-shell--index .forms-hub-hero,
.crm-shell--index .forms-hub-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: var(--forms-shadow, none);
}

.crm-shell--index .forms-hub-section__header .crm-section-title::before {
  content: "";
  display: inline-block;
  width: 0.28rem;
  height: 0.85rem;
  margin: 0 0.42rem 0 0;
  background: var(--crm-primary);
  vertical-align: -0.08rem;
}

.crm-shell--index .forms-hub-section__header p {
  margin: 0;
  color: var(--crm-text-muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.crm-shell--index .forms-hub-list,
.crm-shell--index .forms-hub-support-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.crm-shell--index .forms-hub-row:first-child {
  border-top-color: rgba(28, 70, 109, 0.38);
}

.crm-shell--index .forms-hub-row__copy {
  min-width: 0;
}

.crm-shell--index .forms-hub-row__copy strong {
  display: block;
  color: var(--crm-text);
  font-size: 0.95rem;
  line-height: 1.15;
}

.crm-shell--index .forms-hub-row__copy span {
  display: block;
  margin-top: 0.08rem;
  color: var(--crm-text-muted);
  font-size: 0.75rem;
  line-height: 1.2;
}

.crm-shell--index .forms-hub-row:hover {
  border-top-color: rgba(28, 70, 109, 0.5);
  background: rgba(255, 255, 255, 0.62);
}

.crm-shell--index .forms-hub-row--portal {
  margin-top: 0.28rem;
  border: 1px solid rgba(28, 70, 109, 0.46);
  background: var(--forms-decoration, linear-gradient(90deg, rgba(214, 231, 246, 0.78), rgba(245, 249, 253, 0.8)));
}

.crm-shell--index .forms-hub-row--portal:hover {
  background: var(--forms-decoration, linear-gradient(90deg, rgba(205, 225, 243, 0.94), rgba(255, 255, 255, 0.92)));
}

.crm-shell--index .forms-hub-action,
.crm-shell--index .forms-hub-support-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.26rem 0.72rem;
  border: 1px solid rgba(92, 128, 164, 0.72);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--crm-text);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.12;
  text-decoration: none;
  white-space: nowrap;
}

.crm-shell--index .forms-hub-action--primary {
  border-color: var(--crm-primary-dark);
  background: #ffffff;
  color: var(--crm-primary-dark);
}

.crm-shell--index .forms-hub-action--secondary {
  background: rgba(245, 249, 253, 0.78);
}

.crm-shell--index .forms-hub-action:hover,
.crm-shell--index .forms-hub-action:focus-visible,
.crm-shell--index .forms-hub-support-link:hover,
.crm-shell--index .forms-hub-support-link:focus-visible {
  border-color: var(--crm-primary);
  background: #ffffff;
  color: var(--crm-primary-dark);
  text-decoration: none;
}

.crm-shell--index .forms-hub-action:focus-visible,
.crm-shell--index .forms-hub-support-link:focus-visible {
  outline: 3px solid rgba(26, 93, 150, 0.22);
  outline-offset: 2px;
}


.crm-shell--index .forms-hub-section--support .forms-hub-section__header {
  grid-template-columns: 1fr;
  margin-bottom: 0.28rem;
}

.crm-shell--index .forms-hub-support-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
  border-top: 1px solid rgba(108, 137, 166, 0.28);
  padding-top: 0.42rem;
}

.crm-shell--index .forms-hub-support-link {
  width: 100%;
  min-height: 1.9rem;
}

.crm-shell--index .home-group-list a::after {
  content: none;
  display: none;
}

/* Forms Index redesign: make the desktop page feel like a clear forms list while
   collapsing to the same clear reading order on smaller screens. */
.crm-shell--index {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(290px, 1fr);
  column-gap: 1rem;
  row-gap: 1rem;
  max-width: 1060px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: var(--forms-shadow, none);
  overflow: visible;
}

.crm-shell--index .forms-hub-hero,
.crm-shell--index .forms-hub-section--support {
  grid-column: 1 / -1;
}

.crm-shell--index .forms-hub-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "kicker actions"
    "title actions"
    "intro actions";
  gap: 0.25rem 1.5rem;
  align-items: center;
  padding: 1.35rem 1.55rem;
  border: 1px solid rgba(92, 128, 164, 0.38);
  background: var(--forms-decoration, linear-gradient(135deg, rgba(245, 249, 253, 0.96), rgba(226, 237, 248, 0.82)));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.72));
  text-align: left;
}

.crm-shell--index .forms-hub-hero .crm-kicker,
.crm-shell--index .forms-hub-hero .crm-title,
.crm-shell--index .forms-hub-intro {
  grid-column: 1;
}

.crm-shell--index .forms-hub-hero .crm-kicker {
  grid-area: kicker;
  margin-bottom: 0.1rem;
}

.crm-shell--index .forms-hub-hero .crm-title {
  grid-area: title;
  margin: 0;
  font-size: clamp(1.72rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.crm-shell--index .forms-hub-intro {
  grid-area: intro;
  margin: 0.1rem 0 0;
  max-width: 600px;
  color: var(--crm-text-muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.crm-shell--index .forms-hub-quick-links {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr;
  flex-wrap: wrap;
  gap: 0.38rem;
  justify-content: center;
  min-width: 190px;
  margin: 0;
}

.crm-shell--index .forms-hub-section {
  padding: 0.85rem 0.7rem 0;
  border: 1px solid rgba(92, 128, 164, 0.38);
  background: rgba(235, 243, 250, 0.46);
}

.crm-shell--index .forms-hub-section__header {
  display: grid;
  grid-template-columns: minmax(10rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  margin-bottom: 0.62rem;
  padding: 0 0.1rem 0.58rem;
  border-bottom: 1px solid rgba(92, 128, 164, 0.42);
}

.crm-shell--index .forms-hub-section__header .crm-section-title {
  margin: 0;
  color: var(--crm-primary-dark);
  font-size: 1.08rem;
  line-height: 1.1;
  text-align: left;
}

.crm-shell--index .forms-hub-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(15rem, auto);
  gap: 0.7rem;
  align-items: center;
  min-height: 3.35rem;
  padding: 0.64rem 0.42rem;
  border-top: 1px solid rgba(108, 137, 166, 0.34);
  background: rgba(255, 255, 255, 0.54);
  transition: background-color 140ms ease, border-color 140ms ease;
}

.crm-shell--index .forms-hub-row__actions {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(6.4rem, auto);
  gap: 0.34rem;
  justify-content: end;
  align-items: center;
}

.crm-shell--index .forms-hub-section:nth-of-type(3) .forms-hub-row__copy strong {
  font-size: 0.86rem;
  line-height: 1.12;
}

.crm-shell--index .forms-hub-section--support {
  padding-bottom: 0.72rem;
}

@media (max-width: 760px) {
  .crm-shell--index {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .crm-shell--index .forms-hub-section__header {
    grid-template-columns: 1fr;
    gap: 0.14rem;
  }

  .crm-shell--index .forms-hub-row {
    grid-template-columns: 1fr;
    gap: 0.36rem;
    min-height: 0;
    padding: 0.62rem 0.42rem;
  }

  .crm-shell--index .forms-hub-row__actions {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: initial;
    justify-content: stretch;
  }

  .crm-shell--index .forms-hub-row--portal {
    margin-top: 0.35rem;
  }

  .crm-shell--index .forms-hub-row__actions .forms-hub-action:only-child {
    grid-column: 1 / -1;
  }

  .crm-shell--index .forms-hub-action,
  .crm-shell--index .forms-hub-support-link {
    width: 100%;
    min-height: 2.35rem;
    white-space: normal;
  }

  .crm-shell--index .forms-hub-support-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-shell--index .forms-hub-hero,
  .crm-shell--index .forms-hub-section--support {
    grid-column: auto;
  }

  .crm-shell--index .forms-hub-hero {
    display: block;
    padding: 1rem 0.72rem 0.9rem;
    text-align: center;
  }

  .crm-shell--index .forms-hub-hero .crm-kicker {
    margin-bottom: 0.1rem;
  }

  .crm-shell--index .forms-hub-hero .crm-title {
    margin: 0;
  }

  .crm-shell--index .forms-hub-intro {
    margin: 0.35rem auto 0;
  }

  .crm-shell--index .forms-hub-quick-links {
    display: grid;
    min-width: 0;
    margin-top: 0.7rem;
  }

  .crm-shell--index .forms-hub-section {
    padding: 0.7rem 0.35rem 0;
  }
}

@media (max-width: 440px) {
  .crm-shell--index .forms-hub-row__actions,
  .crm-shell--index .forms-hub-support-list {
    grid-template-columns: 1fr;
  }

  .crm-shell--index .forms-hub-quick-links {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.crm-shell--compact .crm-form {
  padding: 8px 10px 14px;
}

.crm-shell--compact .crm-card {
  margin-bottom: 8px;
}

.crm-shell--compact .crm-card__header,
.crm-shell--compact .crm-card__body {
  padding: 9px 11px;
}

.crm-shell--compact .crm-card__header h2 {
  font-size: 0.94rem;
}

.crm-card__header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  min-width: 0;
}

.crm-card__header-actions > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.crm-card__header-actions > input[type="file"]:focus + .crm-card__header-status,
.crm-card__header-actions > input[type="file"]:focus-visible + .crm-card__header-status {
  outline: 2px solid rgba(26, 93, 150, 0.5);
  outline-offset: 2px;
}

.crm-challenge-upload {
  min-height: 1.8rem;
  padding: 0.2rem 0.52rem;
  font-size: 0.76rem;
  white-space: nowrap;
}

.crm-card__header-status {
  color: #26435f;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.1;
  text-align: right;
}

.crm-ai-certificate-notice {
  margin: 0.2rem 0 0.45rem;
  color: #4d5f72;
  font-size: 0.76rem;
  line-height: 1.3;
}

.crm-pedigree-reader {
  padding: 0.55rem 0.65rem;
  border: 1px solid #a7c7db;
  background: #f4f9fc;
}

.crm-pedigree-reader input[type="file"] {
  display: block;
  margin-top: 0.2rem;
  min-height: var(--forms-control-height, auto);
}

.crm-litter-pedigree-reader {
  margin-bottom: 0.75rem;
}

.crm-litter-pedigree-reader input[type="file"] {
  min-height: var(--forms-control-height, auto);
}

.crm-litter-parent-fields {
  gap: 0.55rem 0.65rem;
}

.crm-litter-parent-fields .field--full {
  grid-column: 1 / -1;
}

.challenges td:first-child {
  white-space: nowrap;
}

.challenge-row-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.challenge-row-upload {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  margin-left: 0.35rem;
  padding: 0 0.55rem;
  border: 1px solid #5f8fba;
  border-radius: 0.25rem;
  background: #1a5d96;
  color: #ffffff;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
}

.challenge-row-upload::before {
  content: "\2191";
  margin-right: 0.3rem;
  font-size: 1rem;
}

.challenge-row-upload[data-file-selected="true"] {
  border-color: #237346;
  background: #237346;
  color: #ffffff;
}

.challenge-row-upload-input:focus + .challenge-row-upload,
.challenge-row-upload:hover {
  outline: 2px solid rgba(26, 93, 150, 0.28);
  outline-offset: 1px;
}

@media (max-width: 520px) {
  .challenge-row-upload {
    min-height: 2.5rem;
    min-width: 5.5rem;
    font-size: 0.82rem;
  }
}

.crm-shell--compact .crm-grid {
  gap: 6px;
}

.crm-shell--compact .crm-field {
  grid-template-columns: minmax(102px, 136px) minmax(0, 1fr);
  gap: 2px 6px;
  align-items: center;
}

.crm-shell--compact .crm-field label,
.crm-shell--compact .crm-field legend {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: var(--forms-copy-size, 0.78rem);
  line-height: var(--forms-copy-leading, 1.2);
}

.crm-shell--compact .crm-field input,
.crm-shell--compact .crm-field select,
.crm-shell--compact .crm-field textarea,
.crm-shell--compact .crm-field .crm-inline-choices,
.crm-shell--compact .crm-field .crm-choice-grid {
  grid-column: 2;
}

.crm-shell--compact .crm-field input,
.crm-shell--compact .crm-field select,
.crm-shell--compact .crm-field textarea {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 0.82rem;
}

.crm-shell--compact .crm-field textarea {
  resize: vertical;
}

.crm-shell--compact .crm-inline-choices {
  gap: 6px 10px;
  min-height: 24px;
  font-size: 0.82rem;
}

.crm-shell--compact .crm-note {
  padding: 8px;
  font-size: 0.8rem;
  line-height: 1.32;
}

.crm-shell--compact .crm-payment-summary {
  gap: 6px;
  margin-bottom: 6px;
  grid-template-columns: minmax(150px, 210px) 1fr;
}

.crm-shell--compact .crm-label {
  font-size: 0.74rem;
}

.crm-shell--compact .crm-payment-summary__amount strong {
  font-size: 1.24rem;
}

.crm-shell--compact .crm-payment-summary__amount {
  align-self: stretch;
  min-height: 54px;
  padding: 8px 10px;
  border: 1px solid rgba(120, 150, 180, 0.48);
  border-radius: var(--crm-radius-sm);
  background: var(--forms-decoration, linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(231, 240, 249, 0.96) 100%));
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.78));
}

.crm-shell--compact .crm-bank-grid {
  grid-template-columns: 84px 1fr;
  font-size: 0.82rem;
}

.crm-shell--compact .challenges {
  font-size: 0.8rem;
}

.crm-shell--compact .challenges th,
.crm-shell--compact .challenges td {
  padding: 4px;
}

.crm-shell--compact .challenges td input,
.crm-shell--compact .challenges td select {
  min-height: 28px;
  padding: 3px 5px;
  font-size: 0.78rem;
}

.crm-shell--compact .crm-actions {
  gap: 8px;
  padding: 6px 8px;
}

.crm-shell--compact .crm-actions__meta {
  font-size: 0.78rem;
}

.crm-shell--compact .crm-actions__buttons {
  gap: 6px;
}

.crm-shell--compact .crm-button {
  min-height: 30px;
  padding: 0 10px;
  font-size: 0.8rem;
}

/* Compact-shell refinements at the shared mobile/tablet breakpoint. */
@media (max-width: 780px) {
  .crm-grid--4 {
    grid-template-columns: 1fr;
  }

  .crm-shell--compact .crm-header {
    padding: 6px 7px 0;
  }

  .crm-shell--compact .crm-header__top {
    flex-direction: column;
  }

  .crm-shell--compact .crm-form {
    padding: 6px 7px 16px;
  }

  .crm-shell--compact .crm-card__header,
  .crm-shell--compact .crm-card__body {
    padding: 6px 7px;
  }

  .crm-shell--compact .crm-grid--2,
  .crm-shell--compact .crm-grid--3,
  .crm-shell--compact .crm-payment-summary {
    grid-template-columns: 1fr;
  }

  .crm-shell--compact .crm-field {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .crm-shell--compact .crm-field input,
  .crm-shell--compact .crm-field select,
  .crm-shell--compact .crm-field textarea,
  .crm-shell--compact .crm-field .crm-inline-choices,
  .crm-shell--compact .crm-field .crm-choice-grid {
    grid-column: auto;
  }

  .crm-shell--compact .crm-actions {
    flex-direction: column;
    align-items: stretch;
    padding: 6px 7px;
  }

  .crm-shell--compact .crm-actions__buttons {
    width: 100%;
  }

.crm-shell--compact .crm-button {
  flex: 1 1 auto;
}

/* Shared public-form control treatment: field controls and actions use
   square corners across Membership, Honours, Individual, Litter and Prefix. */
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .crm-button),
.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .crm-button),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .btn) {
  border-radius: 0;
}

  .crm-address-inline-row {
    grid-template-columns: 1fr;
  }

  .crm-address-inline-controls {
    grid-template-columns: 1fr;
    grid-column: auto;
  }
}

/* Mobile density polish for long public forms. */
@media (max-width: 520px) {
  .crm-shell--compact .crm-header,
  .crm-shell--membership-wide .crm-header {
    padding: 0.45rem 0.65rem 0;
  }

  .crm-shell--compact .crm-header h1,
  .crm-shell--membership-wide .crm-header h1 {
    font-size: clamp(1.05rem, 7vw, 1.8rem);
    line-height: 1.04;
    letter-spacing: -0.04em;
  }

  .crm-shell--compact .crm-subtitle,
  .crm-shell--membership-wide .crm-subtitle {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .crm-shell--compact .crm-header__links,
  .crm-shell--membership-wide .crm-header__links {
    gap: 0.45rem;
  }

  .crm-shell--compact .crm-header__links a,
  .crm-shell--membership-wide .crm-header__links a,
  .crm-shell--compact .crm-button,
  .crm-shell--membership-wide .crm-button {
    min-height: 2.55rem;
    padding: 0.35rem 0.8rem;
    font-size: 0.8rem;
  }

  .crm-progress,
  .page .progress {
    padding: 0.75rem 0.8rem 0.8rem;
  }

  .crm-progress__summary,
  .crm-actions__meta {
    font-size: 0.9rem;
  }

  .crm-progress__steps,
  .page .progress-steps {
    gap: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .crm-progress__steps span,
  .page .progress-steps span {
    width: 1.95rem;
    height: 1.95rem;
    font-size: 0.92rem;
  }

  .crm-shell--compact .crm-form {
    padding: 0.45rem 0.65rem 1rem;
  }

  .crm-shell--membership-wide .crm-form {
    padding: 0.5rem 0.65rem 1rem;
  }

  .crm-shell--compact .crm-card {
    margin-bottom: 0.7rem;
  }

  .crm-shell--membership-wide .crm-card {
    margin-bottom: 0.72rem;
  }

  .crm-shell--compact .crm-card__header,
  .crm-shell--compact .crm-card__body {
    padding: 0.7rem 0.8rem;
  }

  .crm-shell--membership-wide .crm-card__header,
  .crm-shell--membership-wide .crm-card__body {
    padding: 0.72rem 0.8rem;
  }

  .crm-shell--compact .crm-card__header h2 {
    font-size: 0.88rem;
  }

  .crm-shell--membership-wide .crm-card__header h2 {
    font-size: 0.9rem;
  }

  .crm-shell--compact .crm-field {
    gap: 0.22rem;
  }

  .crm-shell--membership-wide .crm-grid,
  .crm-shell--membership-wide .crm-grid--2,
  .crm-shell--membership-wide .crm-grid--3,
  .crm-shell--membership-wide .crm-choice-grid--2,
  .crm-shell--membership-wide .crm-payment-summary,
  .crm-shell--membership-wide .crm-bank-grid,
  .crm-shell--membership-wide .crm-address-inline-row,
  .crm-shell--membership-wide .crm-address-inline-controls {
    grid-template-columns: 1fr;
  }

  .crm-shell--membership-wide .crm-field {
    grid-template-columns: 1fr;
    gap: 0.24rem;
  }

  .crm-shell--compact .crm-field label,
  .crm-shell--compact .crm-field legend {
    font-size: 0.73rem;
  }

  .crm-shell--membership-wide .crm-field label,
  .crm-shell--membership-wide .crm-field legend {
    font-size: 0.77rem;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .crm-shell--compact .crm-field input,
  .crm-shell--compact .crm-field select,
  .crm-shell--compact .crm-field textarea {
    min-height: 2.55rem;
    padding: 0.45rem 0.62rem;
    font-size: 0.78rem;
  }

  .crm-shell--membership-wide .crm-field input,
  .crm-shell--membership-wide .crm-field select,
  .crm-shell--membership-wide .crm-field textarea,
  .crm-shell--membership-wide .crm-field .crm-inline-choices,
  .crm-shell--membership-wide .crm-field .crm-choice-grid {
    grid-column: auto;
  }

  .crm-shell--membership-wide .crm-field input,
  .crm-shell--membership-wide .crm-field select,
  .crm-shell--membership-wide .crm-field textarea {
    min-height: 2.55rem;
    padding: 0.45rem 0.62rem;
    font-size: 0.82rem;
  }

  .crm-shell--compact .crm-inline-choices,
  .crm-shell--compact .crm-choice-grid {
    gap: 0.45rem;
    font-size: 0.77rem;
  }

  .crm-shell--membership-wide .crm-inline-choices,
  .crm-shell--membership-wide .crm-choice-grid {
    gap: 0.5rem;
    font-size: 0.8rem;
  }

  

  .crm-shell--compact .crm-note {
    padding: 0.68rem 0.72rem;
    font-size: 0.76rem;
  }

  .crm-shell--membership-wide .crm-note {
    padding: 0.7rem 0.75rem;
    font-size: 0.8rem;
  }

  .crm-shell--compact .crm-payment-summary__amount {
    min-height: 0;
    padding: 0.7rem 0.78rem;
  }

  .crm-shell--membership-wide .crm-payment-summary__amount {
    min-height: 0;
    padding: 0.75rem 0.8rem;
  }

  .crm-shell--compact .crm-payment-summary__amount strong {
    font-size: 1.08rem;
  }

  .crm-shell--membership-wide .crm-payment-summary__amount strong {
    font-size: 1.12rem;
  }

  .crm-shell--compact .crm-bank-grid {
    gap: 0.22rem 0.55rem;
    font-size: 0.78rem;
  }

  .crm-shell--membership-wide .crm-bank-grid {
    gap: 0.24rem 0.55rem;
    font-size: 0.8rem;
  }

  .crm-shell--compact .crm-actions {
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .crm-shell--membership-wide .crm-actions {
    gap: 0.72rem;
    padding: 0.8rem;
  }

  .crm-shell--compact .crm-actions__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .crm-shell--membership-wide .crm-actions__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    width: 100%;
  }

  .crm-shell--compact .crm-button {
    width: 100%;
  }

  .crm-shell--membership-wide .crm-button {
    width: 100%;
  }
}

/* Main-form sections use the index's silver surface; the outer shell remains plain. */
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-card,
body.fasa-shell .page .shell .card {
  border: 1px solid #8fb9d4 !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-card__body,
body.fasa-shell .page .shell .card-body {
  background: var(--forms-decoration, url("../../../images/silver-card-soft-satin.png")) center / cover no-repeat !important;
}

/* Litter parent details: scan paired identity and owner fields in two columns. */
body.fasa-shell .page .shell .crm-litter-parent-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.65rem 0.9rem;
}

body.fasa-shell .page .shell .crm-litter-parent-fields .field {
  grid-column: auto !important;
}

body.fasa-shell .page .shell .crm-litter-parent-fields .field--full {
  grid-column: 1 / -1 !important;
}

body.fasa-shell .page .shell .crm-litter-owner-heading {
  margin-top: 0.2rem;
  padding-top: 0.55rem;
  border-top: 1px solid #b8cfdf;
}

body.fasa-shell .page .shell .crm-litter-owner-heading h3 {
  margin: 0;
  color: #0b5f9e;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  body.fasa-shell .page .shell .crm-litter-parent-fields {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* 2026-08-16 compact principal-form sections and scan-line fields. */

.crm-shell--membership-wide .crm-card__body,
.crm-shell--compact .crm-card__body,
.page .shell .card-body {
  padding: 0.45rem 0.55rem 0.52rem !important;
  border: 1px solid rgba(126, 154, 180, 0.28);
  background: #edf2f7 !important;
}

.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page .shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.35rem;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}


.crm-shell--membership-wide .crm-choice-card,
.crm-shell--compact .crm-choice-card,
.page .shell .choice-row {
  min-height: 2rem;
  padding-top: 0.28rem;
  padding-bottom: 0.28rem;
}

.crm-shell--membership-wide .crm-note,
.crm-shell--compact .crm-note,
.page .shell .note {
  padding: 0.45rem 0.55rem;
}


.crm-field-group-heading {
  margin: 0.75rem 0 -0.1rem;
  padding: 0.65rem 0.35rem 0.18rem;
  border-top: 1px solid rgba(93, 128, 159, 0.24);
  border-top-color: #b8cad8;
  background: rgba(255, 255, 255, 0.42);
}

.crm-field-group-heading:first-child {
  border-top: 0;
}

.crm-field-group-heading .crm-subheading {
  margin: 0;
  color: #1c4f78;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.crm-conditional-panel,
.crm-field--conditional,
.page .shell .field--conditional {
  border: 1px dashed rgba(93, 128, 159, 0.42);
  background: rgba(255, 255, 255, 0.55);
}

.crm-field--conditional,
.page .shell .field--conditional {
  padding: 0.28rem 0.35rem;
}

.crm-conditional-panel {
  padding: 0.35rem;
}

.crm-field--conditional > label,
.page .shell .field--conditional > label {
  color: #436681;
}

.crm-field--upload,
.page .shell .field--upload {
  align-items: center;
  background: rgba(255, 255, 255, 0.35);
}

.page .shell .field--full,
.page .shell .crm-address-grid,
.page .shell .crm-prefix-choice-grid {
  grid-column: 1 / -1;
}

.page .shell .grid-2 > .field--full {
  grid-column: 1 / -1;
}

.crm-shell--membership-wide .crm-grid--scan-groups,
.crm-shell--compact .crm-grid--scan-groups,
.page .shell .grid-2 {
  align-items: start;
}

.page .shell .grid-2 > .field {
  min-width: 0;
}

.crm-actions__secondary,
.page .shell .actions__secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.crm-actions__primary,
.page .shell .actions__primary {
  display: flex;
  justify-content: flex-end;
}


@media (max-width: 760px) {
  .crm-actions__secondary,
  .crm-actions__primary,
  .page .shell .actions__secondary,
  .page .shell .actions__primary {
    justify-content: stretch;
  }

  .crm-actions__secondary > *,
  .crm-actions__primary > *,
  .page .shell .actions__secondary > *,
  .page .shell .actions__primary > * {
    width: 100%;
  }

  

  
}

@media (max-width: 420px) {
  

  

  

  .page .shell .grid-2,
  .page .shell .crm-address-grid,
  .page .shell .crm-prefix-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-field-group-heading {
    padding-left: 0;
    padding-right: 0;
    background: transparent;
  }
}

/* Keep the principal-form design pass authoritative after legacy blocks. */

.crm-shell--membership-wide .crm-grid,
.crm-shell--compact .crm-grid,
.page .shell .grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.65rem 0.9rem;
}


.crm-shell--membership-wide :is(.crm-grid--2, .crm-grid--3, .crm-address-inline-row),
.crm-shell--compact :is(.crm-grid--2, .crm-grid--3),
.page .shell :is(.grid-2, .grid-3, .crm-address-grid, .crm-prefix-choice-grid, .crm-litter-parent-grid) {
  grid-template-columns: minmax(0, 1fr) !important;
}


@media (max-width: 760px) {
  

  
}

/* Principal forms: calm, legible shared completion experience. */

.crm-shell--membership-wide .crm-header,
.crm-shell--compact .crm-header,
.page .shell .header {
  margin-bottom: 0.75rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid #8baac4;
  border-top: 4px solid #174f7b;
  background: #ffffff;
}


.crm-shell--membership-wide .crm-header h1,
.crm-shell--compact .crm-header h1,
.page .shell .header h1 {
  color: #0d3557;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.15;
}

.crm-shell--membership-wide .crm-subtitle,
.crm-shell--compact .crm-subtitle,
.page .shell .subtitle {
  max-width: 46rem;
  color: #405c72;
  font-size: 1rem;
  line-height: 1.55;
}

.crm-form-stage-note {
  margin-bottom: 0.55rem !important;
  padding: 0.6rem 0.75rem !important;
  border-left: 4px solid #5b86aa !important;
  background: #eef5fa !important;
  color: #284b66;
}

.crm-shell--membership-wide .crm-card__header,
.crm-shell--compact .crm-card__header,
.page .shell .card-head {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem !important;
  border-bottom: 1px solid #a8bed0;
  background: #dce9f3;
}

.crm-shell--membership-wide .crm-card__header h2,
.crm-shell--compact .crm-card__header h2,
.page .shell .card-head h2 {
  color: #123f63;
  font-size: 1rem;
  line-height: 1.3;
}

.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.7rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #789bb8 !important;
  border-radius: 4px !important;
  color: #17364f;
}

.crm-shell--membership-wide :is(input, select, textarea):focus,
.crm-shell--compact :is(input, select, textarea):focus,
.page :is(input, select, textarea):focus {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
  border-color: #145b91 !important;
  box-shadow: var(--forms-shadow, 0 0 0 4px rgba(20, 91, 145, 0.24)) !important;
}


.crm-choice-card,
.crm-fieldset,
.crm-conditional-panel,
.choice-row {
  border-color: #b5c8d8;
  background: #f7fafc;
}

.crm-shell--membership-wide .crm-note,
.crm-shell--compact .crm-note,
.page .shell .crm-note {
  border-color: #b0c5d6;
  border-radius: 4px;
  background: #f2f7fb !important;
}


.crm-shell--membership-wide .crm-button,
.crm-shell--compact .crm-button,
.page .shell .btn {
  min-height: 2.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 4px !important;
}

.crm-shell--membership-wide .crm-button--primary,
.crm-shell--compact .crm-button--primary,
.page .shell .btn.primary {
  min-width: 13rem;
  border-color: #0c456f;
  background: #0f5688;
  box-shadow: var(--forms-shadow, 0 3px 0 #082f4d);
}

@media (max-width: 760px) {
  

  .crm-shell--membership-wide .crm-header h1,
  .crm-shell--compact .crm-header h1,
  .page .shell .header h1 {
    font-size: 1.6rem;
  }

  .crm-shell--membership-wide .crm-button--primary,
  .crm-shell--compact .crm-button--primary,
  .page .shell .btn.primary {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 760px) {
  .crm-shell--membership-wide .crm-grid--2,
  .crm-shell--membership-wide .crm-grid--3,
  .crm-shell--compact .crm-grid--2,
  .crm-shell--compact .crm-grid--3,
  .page .shell .grid-2,
  .page .shell .grid-3 {
    grid-template-columns: 1fr;
  }

  

  
}

@media (max-width: 420px) {
  .crm-shell--membership-wide .crm-form,
  .crm-shell--compact .crm-form,
  .page .shell .form-wrap {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  .crm-shell--membership-wide .crm-field > label,
  .crm-shell--compact .crm-field > label,
  .page .shell .field > label {
    min-width: 0;
    text-align: center;
  }

  
}

/* 2026-08-16 all principal forms alignment cleanup, final cascade authority. */


@media (max-width: 760px) {
  

  

  
}

/* 2026-08-16 all principal forms alignment cleanup. */


@media (max-width: 760px) {
  

  

  
}

/* 2026-08-16 Membership alignment cleanup, final cascade authority. */


@media (max-width: 760px) {
  

  

  

  

  
}

/* 2026-08-16 Membership alignment cleanup. */


.crm-shell--membership-wide .crm-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
}

.crm-shell--membership-wide .crm-choice-card {
  min-height: 2.15rem;
  padding: 0.36rem 0.5rem;
}


.crm-shell--membership-wide .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.crm-shell--membership-wide .crm-field > .crm-help--inline {
  grid-column: 2;
  width: 100%;
  min-width: 0;
}

.crm-shell--membership-wide .crm-field--phone-standalone,
.crm-shell--membership-wide .crm-field:has(> label[for="breeds_owned"]) {
  grid-column: 1 / -1;
  grid-template-columns: 6.5rem minmax(0, 1fr) !important;
}

.crm-shell--membership-wide .crm-field--wrap-label > label,
.crm-shell--membership-wide .crm-field > label[for="breeds_owned"],
.crm-shell--membership-wide #breederFields .crm-field > label {
  justify-content: flex-start;
  max-width: none;
  min-height: 0;
  text-align: left;
  white-space: normal;
}

.crm-shell--membership-wide fieldset.crm-field {
  grid-template-columns: minmax(0, 1fr);
  padding: 0.45rem 0.55rem;
}

.crm-shell--membership-wide fieldset.crm-field > legend,
.crm-shell--membership-wide fieldset.crm-field > .crm-inline-choices,
.crm-shell--membership-wide fieldset.crm-field > .crm-help {
  grid-column: 1;
}

.crm-shell--membership-wide fieldset.crm-field > .crm-inline-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
}

@media (max-width: 760px) {
  .crm-shell--membership-wide .crm-card__body {
    padding: 0.65rem !important;
  }

  .crm-shell--membership-wide .crm-choice-grid,
  .crm-shell--membership-wide .crm-split-controls,
  .crm-shell--membership-wide .crm-address-inline-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-shell--membership-wide .crm-field,
  .crm-shell--membership-wide .crm-field--phone-standalone,
  .crm-shell--membership-wide .crm-field:has(> label[for="breeds_owned"]),
  .crm-shell--membership-wide .crm-address-inline-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .crm-shell--membership-wide .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-help--inline),
  .crm-shell--membership-wide .crm-split-controls,
  .crm-shell--membership-wide .crm-address-inline-controls,
  .crm-shell--membership-wide .crm-field--phone-standalone > input,
  .crm-shell--membership-wide .crm-field > #breeds_owned {
    grid-column: 1 !important;
    width: 100% !important;
  }
}

/* 2026-08-16 open-tab forms layout authority. */

.crm-shell--membership-wide .crm-page-header,
.crm-shell--compact .crm-page-header,
.page .shell .page-header {
  padding: 1rem 1.15rem 0.85rem !important;
  border-bottom: 1px solid #aac1d7;
  background: #ffffff !important;
}


.crm-shell--membership-wide .crm-page-header :is(h1, p, .crm-kicker),
.crm-shell--compact .crm-page-header :is(h1, p, .crm-kicker),
.page .shell .page-header :is(h1, p, .kicker) {
  color: #173954 !important;
}

.crm-shell--membership-wide .crm-page-header h1,
.crm-shell--compact .crm-page-header h1,
.page .shell .page-header h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  letter-spacing: 0;
}


.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .actions,
.page .shell .form-actions {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem !important;
  border-top: 1px solid #aac1d7;
  border-radius: 6px !important;
  background: #ffffff;
}


@media (max-width: 760px) {
  

  

  .crm-shell--membership-wide .crm-page-header,
  .crm-shell--compact .crm-page-header,
  .page .shell .page-header {
    padding: 0.75rem 0.8rem !important;
  }

  

  

  

  .crm-shell--membership-wide .crm-actions,
  .crm-shell--compact .crm-actions,
  .page .shell .actions,
  .page .shell .form-actions {
    padding: 0.65rem !important;
  }
}

@media (max-width: 420px) {
  .crm-shell--membership-wide .crm-page-header h1,
  .crm-shell--compact .crm-page-header h1,
  .page .shell .page-header h1 {
    font-size: clamp(1.35rem, 7vw, 1.6rem);
  }

  
}

/* 2026-08-16 open-tab forms design revision. */
.main-content-wrap > .crm-body,
.main-content-wrap > .page {
  width: min(100%, 980px);
  margin: 1.35rem auto 0;
}

.crm-shell--membership-wide,
.crm-shell--compact,
.page .shell {
  width: min(100%, 980px);
  max-width: 980px;
  border: 1px solid #6f91ad;
  border-top: 5px solid #174f7b;
  background: #f8fbfe;
}

.crm-shell--membership-wide .crm-header,
.crm-shell--compact .crm-header,
.page .shell .header {
  padding: 1rem 1.15rem 0.85rem;
  border-bottom: 1px solid #aac1d7;
  background: #ffffff;
}

.crm-shell--membership-wide .crm-header__top,
.crm-shell--compact .crm-header__top,
.page .shell .header-top {
  gap: 0.7rem;
  padding-bottom: 0;
}

.crm-shell--membership-wide .crm-kicker,
.crm-shell--compact .crm-kicker,
.page .shell .kicker {
  margin-bottom: 0.25rem;
  color: #315b7c;
}

.crm-shell--membership-wide .crm-header h1,
.crm-shell--compact .crm-header h1,
.page .shell h1 {
  margin-bottom: 0.45rem;
  font-size: clamp(1.7rem, 2.5vw, 2.15rem);
  letter-spacing: 0;
}

.crm-shell--membership-wide .crm-subtitle,
.crm-shell--compact .crm-subtitle,
.page .shell .subtitle {
  max-width: 58rem;
  font-size: 0.96rem;
}

.crm-shell--membership-wide .crm-form,
.crm-shell--compact .crm-form,
.page .shell .form-wrap {
  padding: 0.9rem 1rem 0;
  background: #eef5fb;
}

.crm-shell--membership-wide .crm-note.crm-form-stage-note,
.crm-shell--compact .crm-note.crm-form-stage-note,
.page .shell .crm-form-stage-note {
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid #2f6f9f;
  background: #f8fbff;
}


.crm-shell--membership-wide .crm-card__header h2,
.crm-shell--compact .crm-card__header h2,
.page .shell .card-head h2 {
  color: #07375f;
  font-size: 1rem;
  text-align: left;
}


.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page .shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.25rem;
  padding: 0.42rem 0.55rem !important;
  border-color: #7ca4c6 !important;
  background: #ffffff !important;
}

.crm-choice-card,
.choice-row label,
.page .choice-row label {
  min-height: 2.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #b7cadc;
  background: #f8fbff;
}

.crm-choice-card:hover,
.choice-row label:hover,
.page .choice-row label:hover {
  border-color: #7ca4c6;
  background: #f1f7fd;
}

.crm-conditional-panel,
.crm-shell--membership-wide :is(.crm-field--conditional, .crm-field--upload),
.crm-shell--compact :is(.crm-field--conditional, .crm-field--upload),
.page .shell :is(.field--conditional, .field--upload) {
  border-color: #c4d5e4;
  background: #f8fbff;
}

.crm-payment-summary__amount,
.crm-note {
  background: #f8fbff;
}

.crm-actions--final,
.page .shell .actions--final {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.8rem;
  padding: 0.9rem 1rem !important;
  border-top: 1px solid #aac1d7;
  border-color: rgba(93, 128, 159, 0.42) !important;
  background: #f8fbfe !important;
}

.crm-final-review {
  display: grid;
  gap: 0.12rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #b0c5d6;
  border-left: 4px solid #174f7b;
  border-radius: 4px;
  background: #f2f7fb !important;
  color: #173f5f;
  font-size: 0.9rem;
  line-height: 1.35;
}

.crm-final-review strong {
  color: #0d3d63;
  font-size: 0.9rem;
  text-transform: uppercase;
}

.crm-actions__buttons--split,
.page .shell .buttons--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #c2d1dc;
}

.crm-actions__primary .crm-button--primary,
.page .shell .actions__primary .primary {
  min-width: 14rem;
}


.crm-shell--membership-wide .crm-field--phone-standalone > input,
.crm-shell--membership-wide .crm-field > #breeds_owned {
  width: min(100%, 23rem) !important;
}

@media (max-width: 760px) {
  .main-content-wrap > .crm-body,
  .main-content-wrap > .page {
    width: 100%;
    margin-top: 0.85rem;
  }

  .crm-shell--membership-wide,
  .crm-shell--compact,
  .page .shell {
    width: 100%;
    border-left: 0;
    border-right: 0;
  }

  .crm-shell--membership-wide .crm-header,
  .crm-shell--compact .crm-header,
  .page .shell .header {
    padding: 0.75rem 0.8rem;
  }

  .crm-shell--membership-wide .crm-form,
  .crm-shell--compact .crm-form,
  .page .shell .form-wrap {
    padding: 0.65rem 0.65rem 0;
  }

  

  .crm-shell--membership-wide .crm-card__header,
  .crm-shell--compact .crm-card__header,
  .page .shell .card-head {
    padding: 0.55rem 0.65rem !important;
  }

  .crm-actions__buttons--split,
  .page .shell .buttons--split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
  }

  .crm-actions--final,
  .page .shell .actions--final {
    padding: 0.65rem !important;
  }
}

@media (max-width: 420px) {
  .crm-shell--membership-wide .crm-header h1,
  .crm-shell--compact .crm-header h1,
  .page .shell h1 {
    font-size: clamp(1.35rem, 7vw, 1.6rem);
  }

  .crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  .crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
  .page .shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
    min-height: 2.15rem;
  }

  .crm-actions__primary .crm-button--primary,
  .page .shell .actions__primary .primary {
    width: 100%;
    min-width: 0;
  }
}

/* Final principal-form authority after legacy refinements. */

.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .actions {
  margin-top: 1rem;
  padding: 0.9rem 1rem !important;
  border: 1px solid #8eaac1;
  border-top: 4px solid #174f7b;
  border-radius: 6px !important;
  background: #ffffff;
}


@media (max-width: 760px) {
  .crm-shell--membership-wide .crm-card__body,
  .crm-shell--compact .crm-card__body,
  .page .shell .card-body {
    padding: 0.8rem 0.75rem 0.9rem !important;
  }

  
}

/* Forms Index composition: keep the task groups full-width, use denser lists,
   and let this page exceed the standard 860px public-content wrapper. */
.main-content-wrap > .forms-hub-page {
  position: relative;
  left: 50%;
  width: min(1060px, calc(100vw - 2rem));
  transform: translateX(-50%);
}

.forms-hub-page .crm-shell--index {
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 1060px;
  gap: 0.85rem;
}

.forms-hub-page .forms-hub-hero,
.forms-hub-page .forms-hub-section,
.forms-hub-page .forms-hub-section--support {
  grid-column: 1;
}


.forms-hub-page .forms-hub-list--online,
.forms-hub-page .forms-hub-list--pdfs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.forms-hub-page .forms-hub-pdf-group + .forms-hub-pdf-group {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(28, 70, 109, 0.28);
}

.forms-hub-page .forms-hub-subsection-title {
  margin: 0 0 0.55rem;
  color: var(--crm-primary-dark);
  font-size: 0.92rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
}

.forms-hub-page .forms-hub-pdf-group--honours .forms-hub-subsection-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.forms-hub-page .forms-hub-pdf-group--honours .forms-hub-subsection-title::before {
  content: "";
  width: 0.3rem;
  height: 1rem;
  background: var(--crm-primary);
}

.forms-hub-page .forms-hub-row:first-child {
  border-top-color: rgba(108, 137, 166, 0.42);
}

.forms-hub-page .forms-hub-row--portal {
  margin-top: 0;
  border-color: rgba(28, 70, 109, 0.5);
}

.forms-hub-page .forms-hub-row__copy span {
  margin-top: 0.18rem;
  font-size: 0.86rem;
  line-height: 1.35;
}

.forms-hub-page .forms-hub-row__actions {
  grid-auto-columns: minmax(7.25rem, auto);
}

.forms-hub-page .forms-hub-action,
.forms-hub-page .forms-hub-support-link {
  min-height: 2.75rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 700;
}

.forms-hub-page .forms-hub-action--primary {
  border-color: var(--crm-primary-dark);
  background: var(--crm-primary-dark);
  color: #ffffff;
}

.forms-hub-page .forms-hub-action--primary:hover,
.forms-hub-page .forms-hub-action--primary:focus-visible {
  border-color: var(--crm-primary);
  background: var(--crm-primary);
  color: #ffffff;
}

.forms-hub-page .forms-hub-action--pdf {
  border-color: var(--crm-border-strong);
  background: #f7fbff;
  color: var(--crm-primary-dark);
}

.forms-hub-page .forms-hub-support-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 760px) {
  .main-content-wrap > .forms-hub-page {
    width: min(100%, calc(100vw - 0.9rem));
  }

  

  .forms-hub-page .forms-hub-list--online,
  .forms-hub-page .forms-hub-list--pdfs {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }

  .forms-hub-page .forms-hub-pdf-group + .forms-hub-pdf-group {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
  }

  .forms-hub-page .forms-hub-row__actions {
    display: block;
  }

  .forms-hub-page .forms-hub-row__actions .forms-hub-action:only-child {
    width: auto;
    min-width: 7.25rem;
  }

  .forms-hub-page .forms-hub-support-list {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
}

@media (max-width: 360px) {
  .forms-hub-page .forms-hub-row {
    grid-template-columns: 1fr;
  }

  .forms-hub-page .forms-hub-row__actions .forms-hub-action:only-child {
    width: 100%;
  }
}

/* Final shared override so later layout variants cannot reintroduce rounding. */
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .crm-button),
.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .crm-button),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea, button, .btn) {
  border-radius: 0 !important;
}

/* Honours challenge rows are entry fields, not recessed table cells. */
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  background: #ffffff;
  box-shadow: var(--forms-shadow, none);
}

.crm-shell--compact .challenges :is(input, select) {
  border: 1px solid var(--crm-border-strong);
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--forms-shadow, none);
}

/* Honours and Individual use the compact shell: keep their working surfaces
   flat, while retaining the blue section headers for navigation. */
.crm-shell--compact .crm-card__body,
.crm-shell--compact .crm-note,
.crm-shell--compact .crm-payment-summary__amount {
  border-radius: 0;
  background: #ffffff;
  box-shadow: var(--forms-shadow, none);
}

/* One quiet field outline across the public-form family. */
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border: 1px solid #5f8fba !important;
  background: #ffffff !important;
}

/* Keep form cards quietly distinct from the pure-white entry fields. */
.crm-shell--compact .crm-card,
.crm-shell--compact .crm-card__body,
.crm-shell--membership-wide .crm-card,
.crm-shell--membership-wide .crm-card__body,
.page .shell .card,
.page .shell .card-body {
  background: #e8edf2;
  box-shadow: var(--forms-shadow, none);
}

@media (max-width: 520px) {
  .forms-hub-page .forms-hub-row__actions,
  .forms-hub-page .forms-hub-row__actions .forms-hub-action:only-child {
    width: 100%;
  }

  .main-content-wrap > .crm-shell.crm-shell--index {
    width: min(100% - 0.6rem, var(--crm-max-width));
    margin-left: auto;
    margin-right: auto;
  }

  .crm-shell--index .forms-hub-hero,
  .crm-shell--index .forms-hub-section {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

/* 2026-08-15 visual refresh: forms surfaces except online entries. */


.crm-body {
  color: #20384f;
}

.main-content-wrap > .crm-body.forms-hub-page,
.crm-shell--membership-wide,
.crm-shell--compact,
.page .shell {
  width: min(1140px, calc(100% - 1.5rem));
  margin-left: auto;
  margin-right: auto;
}

.forms-hub-page .forms-hub-hero,
.forms-hub-page .forms-hub-section,
.crm-shell--membership-wide .crm-card,
.crm-shell--compact .crm-card,
.page .shell .card {
  border-radius: 24px !important;
  border: 1px solid rgba(102, 137, 167, 0.18) !important;
  box-shadow: var(--forms-shadow, 0 22px 42px rgba(13, 44, 74, 0.08)) !important;
}

.forms-hub-page .forms-hub-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(1.45rem, 2.7vw, 2rem) !important;
  background:
    var(--forms-decoration, radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 30%)),
    var(--forms-decoration, linear-gradient(135deg, rgba(13, 65, 107, 0.97), rgba(39, 107, 158, 0.9))) !important;
}

.forms-hub-page .forms-hub-hero .crm-title,
.forms-hub-page .forms-hub-hero .forms-hub-intro {
  position: relative;
  color: #f8fbff !important;
}

.forms-hub-page .forms-hub-section {
  padding: clamp(1rem, 2.5vw, 1.5rem) !important;
  background: var(--forms-decoration, linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 252, 0.98))) !important;
}

.forms-hub-page .forms-hub-section__header {
  margin-bottom: 1rem;
}

.forms-hub-page .forms-hub-row {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 4.35rem;
  padding: 0.72rem 0.78rem;
  border-radius: 18px;
  border: 1px solid rgba(112, 146, 175, 0.16);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--forms-shadow, 0 16px 30px rgba(13, 44, 74, 0.06));
}

.forms-hub-page .forms-hub-row__copy strong {
  color: #103e66;
  font-size: 1rem;
  line-height: 1.2;
}

.forms-hub-page .forms-hub-row__copy span,
.forms-hub-page .forms-hub-pdf-group p,
.forms-hub-page .forms-hub-support-list li {
  color: #425b71;
  line-height: 1.65;
}

.forms-hub-page .forms-hub-support-list li {
  border-radius: 16px;
  border: 1px solid rgba(112, 146, 175, 0.14);
  background: rgba(248, 251, 255, 0.92);
}

.crm-shell--membership-wide .crm-page-header,
.crm-shell--compact .crm-page-header,
.page .shell .page-header {
  padding: clamp(1.25rem, 2.5vw, 1.7rem);
  border-radius: 26px;
  border: 1px solid rgba(73, 115, 151, 0.2);
  background:
    var(--forms-decoration, radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 28%)),
    var(--forms-decoration, linear-gradient(135deg, rgba(12, 61, 100, 0.98), rgba(33, 97, 147, 0.9)));
  box-shadow: var(--forms-shadow, 0 26px 48px rgba(13, 44, 74, 0.14));
}

.crm-shell--membership-wide .crm-page-header :is(h1, p, .crm-kicker),
.crm-shell--compact .crm-page-header :is(h1, p, .crm-kicker),
.page .shell .page-header :is(h1, p, .crm-kicker) {
  color: #f8fbff;
}

.crm-shell--membership-wide .crm-progress,
.crm-shell--compact .crm-progress,
.page .shell .progress-indicator {
  padding: 0.9rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(116, 152, 183, 0.16);
  background: rgba(247, 250, 253, 0.94);
  box-shadow: var(--forms-shadow, 0 18px 34px rgba(13, 44, 74, 0.07));
}

.crm-shell--membership-wide .crm-card,
.crm-shell--compact .crm-card,
.page .shell .card,
.crm-shell--membership-wide .crm-note,
.crm-shell--compact .crm-note {
  background: var(--forms-decoration, linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(241, 247, 252, 0.98))) !important;
}

.crm-shell--membership-wide .crm-card__header,
.crm-shell--compact .crm-card__header,
.page .shell .card-header {
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(116, 152, 183, 0.2);
}

.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.85rem;
  border-color: #7eabc9 !important;
  background: #ffffff !important;
  box-shadow: var(--forms-shadow, inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 1px 2px rgba(13, 44, 74, 0.03));
}

.crm-shell--membership-wide :is(input, select, textarea):focus,
.crm-shell--compact :is(input, select, textarea):focus,
.page :is(input, select, textarea):focus {
  border-color: #2e76b0 !important;
  box-shadow: var(--forms-shadow, 0 0 0 3px rgba(46, 118, 176, 0.16)) !important;
}

.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .form-actions {
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(104, 142, 175, 0.18);
  background: rgba(248, 251, 254, 0.96);
  box-shadow: var(--forms-shadow, 0 18px 34px rgba(13, 44, 74, 0.08));
}

@media (max-width: 760px) {
  

  .forms-hub-page .forms-hub-hero,
  .forms-hub-page .forms-hub-section,
  .crm-shell--membership-wide .crm-card,
  .crm-shell--compact .crm-card,
  .page .shell .card,
  .crm-shell--membership-wide .crm-page-header,
  .crm-shell--compact .crm-page-header,
  .page .shell .page-header {
    border-radius: 18px !important;
  }
}

/* 2026-08-15 stripped-back correction. */

.forms-hub-page .forms-hub-hero,
.forms-hub-page .forms-hub-section,
.crm-shell--membership-wide .crm-card,
.crm-shell--compact .crm-card,
.page .shell .card,
.crm-shell--membership-wide .crm-page-header,
.crm-shell--compact .crm-page-header,
.page .shell .page-header,
.crm-shell--membership-wide .crm-progress,
.crm-shell--compact .crm-progress,
.page .shell .progress-indicator,
.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .form-actions,
.forms-hub-page .forms-hub-row,
.forms-hub-page .forms-hub-support-list li {
  border-radius: 0 !important;
  box-shadow: var(--forms-shadow, none) !important;
}

.forms-hub-page .forms-hub-hero,
.crm-shell--membership-wide .crm-page-header,
.crm-shell--compact .crm-page-header,
.page .shell .page-header {
  padding: 0.9rem 1rem !important;
  background: #2f628f !important;
}

.forms-hub-page .forms-hub-hero .crm-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
}

.forms-hub-page .forms-hub-hero .crm-kicker {
  margin-bottom: 0.2rem;
}

.forms-hub-page .forms-hub-quick-links .forms-hub-action--secondary,
.forms-hub-page .forms-hub-action--primary,
.forms-hub-page .forms-hub-action--secondary {
  border-radius: 0;
  font-weight: 700;
  box-shadow: var(--forms-shadow, none);
}

.forms-hub-page .forms-hub-section,
.crm-shell--membership-wide .crm-card,
.crm-shell--compact .crm-card,
.page .shell .card,
.crm-shell--membership-wide .crm-progress,
.crm-shell--compact .crm-progress,
.page .shell .progress-indicator,
.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .form-actions {
  padding: 0.75rem 0.9rem !important;
}

.forms-hub-page .forms-hub-row__copy span,
.forms-hub-page .forms-hub-pdf-group p,
.forms-hub-page .forms-hub-support-list li,
.crm-body,
.crm-shell--membership-wide :is(p, li, label),
.crm-shell--compact :is(p, li, label),
.page .shell :is(p, li, label) {
  line-height: 1.4;
}

.crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.crm-shell--compact :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea),
.page :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  min-height: 2.45rem;
  border-radius: 0 !important;
  box-shadow: var(--forms-shadow, none);
}

/* 2026-08-16 screenshot-led mobile density refinement. */
@media (max-width: 760px) {
  .main-content-wrap > .crm-body.forms-hub-page,
  .crm-shell--membership-wide,
  .crm-shell--compact,
  .page .shell {
    width: 100%;
  }

  .forms-hub-page .forms-hub-hero {
    padding: 0.7rem 0.8rem !important;
  }

  .forms-hub-page .forms-hub-hero .crm-title {
    font-size: clamp(1.5rem, 7vw, 1.85rem);
  }

  .forms-hub-page .forms-hub-quick-links {
    display: flex;
    justify-content: center;
  }

  .forms-hub-page .forms-hub-quick-links .forms-hub-action--secondary {
    width: auto !important;
    min-height: 2.2rem;
    padding: 0.35rem 0.65rem;
  }

  .forms-hub-page .forms-hub-section {
    padding: 0.65rem 0.7rem !important;
  }

  .forms-hub-page .forms-hub-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.55rem;
    min-height: 0;
    padding: 0.55rem 0.6rem;
  }

  .forms-hub-page .forms-hub-action {
    min-height: 2.2rem;
    padding: 0.35rem 0.6rem;
  }
}

@media (max-width: 520px) {
  .forms-hub-page .forms-hub-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-shell--membership-wide .crm-page-header,
  .crm-shell--compact .crm-page-header,
  .page .shell .page-header {
    padding: 0.65rem 0.75rem !important;
  }

  .crm-shell--membership-wide .crm-page-header h1,
  .crm-shell--compact .crm-page-header h1,
  .page .shell .page-header h1 {
    font-size: clamp(1.35rem, 7vw, 1.65rem);
    line-height: 1.15;
  }

  .crm-shell--membership-wide .crm-progress,
  .crm-shell--compact .crm-progress,
  .page .shell .progress-indicator {
    padding: 0.55rem 0.65rem !important;
  }

  .crm-progress__steps {
    gap: 0.35rem 0.5rem;
  }

  .crm-progress__steps span {
    width: 1.7rem;
    height: 1.7rem;
    font-size: 0.75rem;
  }

  .crm-shell--membership-wide .crm-card,
  .crm-shell--compact .crm-card,
  .page .shell .card {
    padding: 0.6rem 0.7rem !important;
  }

  .crm-choice-card {
    padding: 0.5rem 0.6rem;
  }

  .crm-shell--membership-wide .crm-actions,
  .crm-shell--compact .crm-actions,
  .page .shell .form-actions {
    padding: 0.55rem 0.65rem !important;
  }
}

/* Keep compact principal-form spacing authoritative after legacy refinements. */
.crm-shell--membership-wide .crm-card,
.crm-shell--compact .crm-card,
.page .shell .card {
  margin-bottom: 0.8rem;
  padding: 0 !important;
  border-color: #9fb7ca !important;
  border-radius: 6px !important;
  background: #ffffff !important;
}

.crm-shell--membership-wide .crm-card__header,
.crm-shell--compact .crm-card__header,
.page .shell .card-head {
  min-height: 2.75rem;
  padding: 0.65rem 0.85rem !important;
  background: #dce9f3;
}

.crm-shell--membership-wide .crm-card__body,
.crm-shell--compact .crm-card__body,
.page .shell .card-body {
  padding: 0.9rem 1rem 1rem !important;
  border: 0;
  background: #ffffff;
}

.crm-shell--membership-wide .crm-actions,
.crm-shell--compact .crm-actions,
.page .shell .actions {
  margin-top: 1rem;
  padding: 0.9rem 1rem !important;
  border-top: 4px solid #174f7b;
  border-radius: 6px !important;
  background: #ffffff;
}

.crm-shell--membership-wide .crm-grid,
.crm-shell--compact .crm-grid,
.page .shell .grid {
  gap: 0.65rem 0.9rem;
}

.crm-shell--membership-wide .crm-gap-top,
.crm-shell--compact .crm-gap-top {
  margin-top: 0.35rem;
}

.page .shell .field--mt16 {
  margin-top: 0.45rem;
}

.crm-shell--membership-wide .crm-field,
.crm-shell--compact .crm-field,
.page .shell .field {
  display: grid;
  grid-template-columns: fit-content(9rem) minmax(0, 1fr);
  align-items: center;
  gap: 0.3rem 0.75rem;
  min-width: 0;
}

.crm-shell--membership-wide .crm-field > label,
.crm-shell--compact .crm-field > label,
.page .shell .field > label {
  width: max-content;
  min-width: 0;
  max-width: 9rem;
  padding: 0;
  color: #203f58;
  font-size: 0.84rem;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
}

.crm-shell--membership-wide :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload),
.crm-shell--compact :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload),
.page .shell :is(.field--conditional, .field--upload),
.crm-shell--compact .crm-field:has(> label:is(
  [for="registration_designation"],
  [for="cat_name"],
  [for="registration_no"],
  [for="breeder_phone"],
  [for="previous_owner"],
  [for="sire_registration_no"],
  [for="dam_registration_no"],
  [for="registration_pedigree_file"],
  [for="transfer_certificate_file"],
  [for="date_of_birth_approximate"],
  [for="challenges_sighted_by"]
)),
.page .shell .field:has(> label:is(
  [for="membership_no"],
  [for="daco_breeder_registration_number"],
  [for="daco_registration_number"],
  [for="queen_registration_no"],
  [for="queen_microchip"],
  [for="queen_council"],
  [for="queen_owner_address"],
  [for="queen_owner_email"],
  [for="queen_owner_phone"],
  [for="stud_registration_no"],
  [for="stud_microchip"],
  [for="stud_council"],
  [for="stud_owner_address"],
  [for="stud_owner_email"],
  [for="stud_owner_phone"],
  [for="kittens_count"],
  [for="sire_pedigree_file"],
  [for="dam_pedigree_file"],
  [for="existing_prefix_details"],
  [for="supporting_documents_file"],
  [for="payment_receipt"]
)) {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
}

.crm-shell--membership-wide :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload) > label,
.crm-shell--compact :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload) > label,
.page .shell :is(.field--conditional, .field--upload) > label,
.crm-shell--compact .crm-field:has(> label:is(
  [for="registration_designation"],
  [for="cat_name"],
  [for="registration_no"],
  [for="breeder_phone"],
  [for="previous_owner"],
  [for="sire_registration_no"],
  [for="dam_registration_no"],
  [for="registration_pedigree_file"],
  [for="transfer_certificate_file"],
  [for="date_of_birth_approximate"],
  [for="challenges_sighted_by"]
)) > label,
.page .shell .field:has(> label:is(
  [for="membership_no"],
  [for="daco_breeder_registration_number"],
  [for="daco_registration_number"],
  [for="queen_registration_no"],
  [for="queen_microchip"],
  [for="queen_council"],
  [for="queen_owner_address"],
  [for="queen_owner_email"],
  [for="queen_owner_phone"],
  [for="stud_registration_no"],
  [for="stud_microchip"],
  [for="stud_council"],
  [for="stud_owner_address"],
  [for="stud_owner_email"],
  [for="stud_owner_phone"],
  [for="kittens_count"],
  [for="sire_pedigree_file"],
  [for="dam_pedigree_file"],
  [for="existing_prefix_details"],
  [for="supporting_documents_file"],
  [for="payment_receipt"]
)) > label {
  grid-column: 1;
  width: auto;
  max-width: none;
}

.crm-shell--membership-wide :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.crm-shell--compact :is(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.page .shell :is(.field--conditional, .field--upload) > :is(input, select, textarea),
.crm-shell--compact .crm-field:has(> label:is(
  [for="registration_designation"],
  [for="cat_name"],
  [for="registration_no"],
  [for="breeder_phone"],
  [for="previous_owner"],
  [for="sire_registration_no"],
  [for="dam_registration_no"],
  [for="registration_pedigree_file"],
  [for="transfer_certificate_file"],
  [for="date_of_birth_approximate"],
  [for="challenges_sighted_by"]
)) > :is(input, select, textarea),
.page .shell .field:has(> label:is(
  [for="membership_no"],
  [for="daco_breeder_registration_number"],
  [for="daco_registration_number"],
  [for="queen_registration_no"],
  [for="queen_microchip"],
  [for="queen_council"],
  [for="queen_owner_address"],
  [for="queen_owner_email"],
  [for="queen_owner_phone"],
  [for="stud_registration_no"],
  [for="stud_microchip"],
  [for="stud_council"],
  [for="stud_owner_address"],
  [for="stud_owner_email"],
  [for="stud_owner_phone"],
  [for="kittens_count"],
  [for="sire_pedigree_file"],
  [for="dam_pedigree_file"],
  [for="existing_prefix_details"],
  [for="supporting_documents_file"],
  [for="payment_receipt"]
)) > :is(input, select, textarea) {
  grid-column: 1 !important;
  width: 100%;
}

.crm-shell--membership-wide .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.crm-shell--compact .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.page .shell .field > :is(input, select, textarea) {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  max-width: none;
}

.crm-shell--membership-wide .crm-field > .crm-help--inline,
.crm-shell--compact .crm-field > .crm-help--inline {
  grid-column: 2;
}

.crm-shell--membership-wide fieldset.crm-field > .crm-help {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin-top: 0.25rem;
  line-height: 1.35;
}

.crm-shell--membership-wide .crm-card {
  margin: 0;
}

.crm-shell--membership-wide .crm-card__body {
  padding: 2px !important;
}

.crm-shell--membership-wide .crm-grid {
  gap: 2px;
}

.crm-shell--membership-wide .crm-field {
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 2px;
  margin: 0;
}

.crm-shell--membership-wide .crm-field > label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 6.5rem;
  min-height: 2.25rem;
  margin: 0;
  padding: 2px;
  text-align: center;
}

.crm-shell--membership-wide .crm-field:not(.crm-field--wrap-label, .crm-field--conditional, .crm-field--upload) > label {
  width: 100%;
  max-width: 6.5rem;
}

.crm-shell--membership-wide .crm-field > :is(input, select, textarea),
.crm-shell--membership-wide .crm-inline-controls > :is(input, select, textarea) {
  margin: 0;
  padding: 2px 6px !important;
}

.crm-shell--membership-wide .crm-address-inline-controls .crm-field {
  display: block;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}

.crm-shell--membership-wide .crm-address-inline-row {
  grid-template-columns: 6.5rem minmax(0, 1fr) !important;
  column-gap: 2px;
}

.crm-shell--membership-wide .crm-address-inline-controls {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr) minmax(7rem, 1fr);
  grid-column: 2;
  gap: 0.5rem;
  width: 100%;
  min-width: 0;
}

.crm-shell--membership-wide .crm-address-inline-controls .crm-field > :is(input, select) {
  grid-column: 1;
  width: 100%;
}

.crm-shell--membership-wide .crm-split-controls {
  display: grid;
  grid-column: 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.crm-shell--membership-wide .crm-split-controls > input {
  width: 100%;
  min-width: 0;
}

.crm-shell--membership-wide .crm-field--phone-standalone {
  grid-column: 1;
}

.crm-shell--membership-wide .crm-field--phone-standalone > input {
  grid-column: 2 !important;
  width: min(100%, 23rem) !important;
}

.crm-shell--membership-wide .crm-field:has(> label[for="breeds_owned"]) {
  grid-template-columns: 6.5rem minmax(0, 1fr) !important;
}

.crm-shell--membership-wide .crm-field > label[for="breeds_owned"] {
  grid-column: 1;
  width: 100%;
  max-width: 6.5rem;
  text-align: center;
}

.crm-shell--membership-wide .crm-field > #breeds_owned {
  grid-column: 2 !important;
  width: min(100%, 23rem) !important;
}

.crm-shell--membership-wide .crm-field--wrap-label > label,
.crm-shell--membership-wide #breederFields .crm-field > label {
  min-width: 0;
  text-align: left;
  white-space: normal;
  line-height: 1.2;
}

.crm-shell--membership-wide #breederFields .crm-field {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.crm-shell--membership-wide #breederFields .crm-field > :is(input, select, textarea) {
  grid-column: 1;
}

@media (max-width: 760px) {
  .crm-shell--membership-wide .crm-address-inline-row {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .crm-shell--membership-wide .crm-address-inline-controls {
    grid-template-columns: minmax(0, 1fr);
    grid-column: 1;
  }

  .crm-shell--membership-wide .crm-field,
  .crm-shell--compact .crm-field,
  .page .shell .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.18rem;
  }

  .crm-shell--membership-wide .crm-field > label,
  .crm-shell--compact .crm-field > label,
  .page .shell .field > label {
    min-width: 0;
    font-size: 0.82rem;
    text-align: left;
  }

  .crm-shell--membership-wide .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-help--inline),
  .crm-shell--compact .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-help--inline),
  .page .shell .field > :is(input, select, textarea) {
    grid-column: 1;
  }

  .crm-shell--membership-wide .crm-split-controls {
    grid-column: 1;
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-shell--membership-wide .crm-field--phone-standalone {
    grid-column: 1 / -1;
  }

  .crm-shell--membership-wide .crm-field--phone-standalone > input,
  .crm-shell--membership-wide .crm-field > #breeds_owned {
    width: 100% !important;
  }

  .crm-shell--membership-wide .crm-field:has(> label[for="breeds_owned"]) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .crm-shell--membership-wide .crm-field > #breeds_owned {
    grid-column: 1 !important;
  }

  .crm-shell--membership-wide .crm-field > label,
  .crm-shell--membership-wide .crm-field > label[for="breeds_owned"] {
    justify-content: flex-start;
    width: auto;
    max-width: none;
    min-height: 0;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .crm-shell--membership-wide .crm-field,
  .crm-shell--compact .crm-field,
  .page .shell .field {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.18rem;
  }

  .crm-shell--membership-wide .crm-field > label,
  .crm-shell--compact .crm-field > label,
  .page .shell .field > label {
    min-width: 0;
  }

  .crm-shell--membership-wide .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-help--inline),
  .crm-shell--compact .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-help--inline),
  .page .shell .field > :is(input, select, textarea) {
    grid-column: 1;
  }
}

/* 2026-08-16 all principal forms alignment cleanup, final cascade authority. */
.crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading),
.page .shell .field:not(.field--conditional, .field--upload, .field--full) {
  display: grid;
  grid-template-columns: 12.5rem minmax(0, 1fr) !important;
  align-items: center;
  gap: 0.32rem 0.65rem;
}

.crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > label,
.page .shell .field:not(.field--conditional, .field--upload, .field--full) > label {
  grid-column: 1;
  width: 100%;
  max-width: 12.5rem;
  min-height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
  line-height: 1.2;
}

.crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
.page .shell .field:not(.field--conditional, .field--upload, .field--full) > :is(input, select, textarea) {
  grid-column: 2 !important;
  width: 100%;
  min-width: 0;
}

.crm-shell--compact .crm-inline-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.crm-shell--compact .crm-inline-controls > :is(input, select, textarea) {
  flex: 1 1 auto;
  min-width: 0;
}

.crm-shell--compact .crm-inline-controls > .crm-button {
  flex: 0 0 auto;
}

.crm-shell--compact .crm-address-grid,
.page .shell .crm-address-grid,
.page .shell .crm-prefix-choice-grid,
.page .shell .crm-litter-parent-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem;
}

.page .shell .crm-prefix-choice-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

.crm-shell--compact .crm-address-grid > .crm-field,
.page .shell .crm-address-grid > .field,
.page .shell .crm-prefix-choice-grid > .field,
.page .shell .crm-litter-parent-grid > .field {
  display: block !important;
}

.crm-shell--compact .crm-address-grid > .crm-field > label,
.page .shell .crm-address-grid > .field > label,
.page .shell .crm-prefix-choice-grid > .field > label,
.page .shell .crm-litter-parent-grid > .field > label {
  width: auto;
  max-width: none;
  min-height: 0;
  display: block;
  text-align: left;
}

.crm-shell--compact .crm-address-grid > .crm-field > :is(input, select, textarea),
.page .shell .crm-address-grid > .field > :is(input, select, textarea),
.page .shell .crm-prefix-choice-grid > .field > :is(input, select, textarea),
.page .shell .crm-litter-parent-grid > .field > :is(input, select, textarea) {
  width: 100%;
}

@media (max-width: 760px) {
  .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading),
  .page .shell .field:not(.field--conditional, .field--upload, .field--full),
  .crm-shell--compact .crm-address-grid,
  .page .shell .crm-address-grid,
  .page .shell .crm-prefix-choice-grid,
  .page .shell .crm-litter-parent-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > label,
  .page .shell .field:not(.field--conditional, .field--upload, .field--full) > label {
    justify-content: flex-start;
    width: auto;
    max-width: none;
    min-height: 0;
    text-align: left;
  }

  .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
  .page .shell .field:not(.field--conditional, .field--upload, .field--full) > :is(input, select, textarea) {
    grid-column: 1 !important;
  }
}

body.fasa-shell .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading),
body.fasa-shell .page .shell .field:not(.field--conditional, .field--upload, .field--full) {
  grid-template-columns: 12.5rem minmax(0, 1fr) !important;
}

body.fasa-shell .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
body.fasa-shell .page .shell .field:not(.field--conditional, .field--upload, .field--full) > :is(input, select, textarea) {
  grid-column: 2 !important;
  width: 100% !important;
  min-width: 0;
}

body.fasa-shell .crm-shell--compact .crm-address-grid > .crm-field,
body.fasa-shell .page .shell .crm-address-grid > .field,
body.fasa-shell .page .shell .crm-prefix-choice-grid > .field,
body.fasa-shell .page .shell .crm-litter-parent-grid > .field {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.fasa-shell .crm-shell--compact .crm-address-grid > .crm-field > :is(input, select, textarea),
body.fasa-shell .page .shell .crm-address-grid > .field > :is(input, select, textarea),
body.fasa-shell .page .shell .crm-prefix-choice-grid > .field > :is(input, select, textarea),
body.fasa-shell .page .shell .crm-litter-parent-grid > .field > :is(input, select, textarea) {
  grid-column: 1 !important;
  width: 100% !important;
}

@media (max-width: 760px) {
  body.fasa-shell .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading),
  body.fasa-shell .page .shell .field:not(.field--conditional, .field--upload, .field--full) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.fasa-shell .crm-shell--compact .crm-field:not(.crm-field--conditional, .crm-field--upload, .crm-field--wrap-label, .crm-field-group-heading) > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid),
  body.fasa-shell .page .shell .field:not(.field--conditional, .field--upload, .field--full) > :is(input, select, textarea) {
    grid-column: 1 !important;
  }
}

/* Litter parent panels keep grouped columns, but inner parent fields stack cleanly. */
body.fasa-shell .page .shell .crm-litter-parent-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  align-items: start;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .crm-litter-parent-section {
  min-width: 0;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .crm-litter-parent-section .grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.55rem 0.65rem;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .field {
  display: block !important;
  min-width: 0;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .field > label {
  display: block;
  width: auto;
  max-width: none;
  min-height: 0;
  margin-bottom: 0.14rem;
  text-align: left;
  line-height: 1.2;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .field > :is(input, select, textarea) {
  grid-column: 1 !important;
  width: 100% !important;
  min-width: 0;
}

body.fasa-shell .page .shell .crm-litter-parent-grid .field:has(#queen_owner_address),
body.fasa-shell .page .shell .crm-litter-parent-grid .field:has(#stud_owner_address) {
  grid-column: 1 / -1;
}

@media (max-width: 960px) {
  body.fasa-shell .page .shell .crm-litter-parent-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 520px) {
  body.fasa-shell .page .shell .crm-litter-parent-grid .crm-litter-parent-section .grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* Principal forms: top-label control alignment. */
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-field:not(.crm-field-group-heading),
body.fasa-shell .page .shell .field:not(.field--full) {
  display: block !important;
  min-width: 0;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-field > :is(label, legend),
body.fasa-shell .page .shell .field > :is(label, legend) {
  display: block !important;
  width: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 0 0.16rem !important;
  text-align: left !important;
  line-height: 1.2;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-field > :is(input, select, textarea, .crm-inline-controls, .crm-inline-choices, .crm-choice-grid, .crm-name-grid, .crm-address-grid),
body.fasa-shell .page .shell .field > :is(input, select, textarea) {
  grid-column: 1 !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-field > :is(input[type="checkbox"], input[type="radio"]),
body.fasa-shell .page .shell .field > :is(input[type="checkbox"], input[type="radio"]) {
  width: auto !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-name-grid,
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-address-grid,
body.fasa-shell .page .shell .crm-address-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.45rem;
}

body.fasa-shell .crm-shell--membership-wide .crm-name-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-name-grid > .crm-field,
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-address-grid > .crm-field,
body.fasa-shell .page .shell .crm-address-grid > .field,
body.fasa-shell .page .shell .crm-prefix-choice-grid > .field,
body.fasa-shell .page .shell .crm-litter-parent-grid .field {
  display: block !important;
}

body.fasa-shell .page .shell .crm-prefix-choice-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem;
}

body.fasa-shell .page .shell .crm-litter-date-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 0.5rem;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid--2,
body.fasa-shell .page .shell .grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid--3,
body.fasa-shell .page .shell .grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid-span-2,
body.fasa-shell .page .shell .field--full {
  grid-column: 1 / -1 !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid:has(#payment_reference):has(#payment_receipt),
body.fasa-shell .page .shell .grid:has(#payment_reference):has(#payment_receipt) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid:has(#payment_reference):has(#payment_receipt) > .crm-field,
body.fasa-shell .page .shell .grid:has(#payment_reference):has(#payment_receipt) > .field {
  grid-column: auto !important;
}

body.fasa-shell .crm-shell--compact .crm-inline-controls {
  display: flex !important;
  align-items: stretch;
  gap: 0.45rem;
}

body.fasa-shell .crm-shell--compact .crm-inline-controls > :is(input, select, textarea) {
  flex: 1 1 auto;
  width: auto !important;
}

body.fasa-shell .crm-shell--compact .crm-inline-controls > .crm-button {
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body.fasa-shell .crm-shell--membership-wide .crm-name-grid,
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-address-grid,
  body.fasa-shell .page .shell .crm-address-grid,
  body.fasa-shell .page .shell .crm-prefix-choice-grid,
  body.fasa-shell .page .shell .crm-litter-date-grid,
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid--2,
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid--3,
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-grid:has(#payment_reference):has(#payment_receipt),
  body.fasa-shell .page .shell .grid:has(#payment_reference):has(#payment_receipt),
  body.fasa-shell .page .shell .grid-2,
  body.fasa-shell .page .shell .grid-3 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.fasa-shell .crm-shell--compact .crm-inline-controls {
    flex-wrap: wrap;
  }

  body.fasa-shell .crm-shell--compact .crm-inline-controls > :is(input, select, textarea, .crm-button) {
    flex: 1 1 100%;
  }
}

/* Membership spacing now follows the same principal-form rhythm as the other forms. */
body.fasa-shell .crm-shell--membership-wide .crm-form {
  padding: 0.9rem 1rem 0 !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-card {
  margin-bottom: 0.8rem !important;
  padding: 0 !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-card__header {
  padding: 0.65rem 0.85rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-card__body {
  padding: 0.9rem 1rem 1rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-grid,
body.fasa-shell .crm-shell--membership-wide .crm-choice-grid,
body.fasa-shell .crm-shell--membership-wide .crm-payment-summary,
body.fasa-shell .crm-shell--membership-wide .crm-address-inline-controls {
  gap: 0.65rem 0.9rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-field,
body.fasa-shell .crm-shell--membership-wide fieldset.crm-field {
  gap: 0.3rem 0.75rem !important;
  margin: 0 !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-field > :is(label, legend) {
  margin: 0 0 0.16rem !important;
  padding: 0 !important;
}

body.fasa-shell .crm-shell--membership-wide :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  padding: 0.42rem 0.55rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-choice-card,
body.fasa-shell .crm-shell--membership-wide :is(.crm-note, .crm-field--conditional, .crm-field--upload),
body.fasa-shell .crm-shell--membership-wide fieldset.crm-field {
  padding: 0.65rem 0.75rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-gap-top,
body.fasa-shell .crm-shell--membership-wide .crm-form-stage-note {
  margin-top: 0.65rem !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-actions {
  margin-top: 1rem !important;
  padding: 0.9rem 1rem !important;
}

body.fasa-shell #desexingAgreementField[hidden],
body.fasa-shell .crm-shell--membership-wide [hidden],
body.fasa-shell .crm-shell--compact [hidden],
body.fasa-shell .page .shell [hidden] {
  display: none !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-address-inline-row {
  display: block !important;
}

body.fasa-shell .crm-shell--membership-wide .crm-address-inline-controls {
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 2fr) minmax(7rem, 1fr) minmax(7rem, 1fr) !important;
  width: 100% !important;
}

body.fasa-shell .crm-shell--membership-wide #breederFields > .crm-field > label {
  display: flex !important;
  min-height: 2.35em !important;
  align-items: flex-end;
}

/* 2026-08-17 canonical public-form surface system. Keep hierarchy in the
   section header; avoid stacked padded wrappers and competing border styles. */
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-card,
body.fasa-shell .page .shell .card,
body.fasa-shell .forms-hub-page :is(.forms-hub-hero, .forms-hub-section) {
  border: 1px solid var(--crm-border) !important;
  border-radius: var(--crm-radius-md) !important;
  box-shadow: var(--forms-shadow, none) !important;
  overflow: hidden;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-card__body,
body.fasa-shell .page .shell .card-body {
  border: 0 !important;
  border-radius: 0 !important;
  background: #f7fafd !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) :is(.crm-note, .crm-payment-summary__amount),
body.fasa-shell .page .shell :is(.note, .payment-summary__amount) {
  border: 0 !important;
  border-left: 4px solid var(--crm-primary) !important;
  border-radius: 0 !important;
  background: #eef4fa !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) :is(.crm-conditional-panel, .crm-field--conditional, .crm-field--upload),
body.fasa-shell .page .shell :is(.field--conditional, .field--upload) {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) fieldset.crm-field,
body.fasa-shell .page .shell fieldset.field {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell .forms-hub-page :is(.forms-hub-row, .forms-hub-support-list li) {
  border: 0 !important;
  border-top: 1px solid #c2d1df !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: var(--forms-shadow, none) !important;
}

body.fasa-shell :is(.crm-card__toggle, .card-toggle) {
  display: inline-grid;
  width: 2.25rem;
  min-height: 2.25rem;
  place-items: center;
  border: 1px solid var(--crm-border-strong);
  border-radius: var(--crm-radius-sm) !important;
  background: #ffffff;
  color: var(--crm-primary-dark);
  cursor: pointer;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-actions,
body.fasa-shell .page .shell .form-actions {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: var(--forms-shadow, none) !important;
}

/* Keep the standalone Prefix Application controls visually uniform. */
body.fasa-shell .page .shell #mainForm .field > :is(
  input:not([type="file"]):not([type="radio"]):not([type="checkbox"]),
  select,
  textarea
) {
  height: 2.7rem !important;
  min-height: 2.7rem !important;
  box-sizing: border-box;
}

body.fasa-shell .page .shell #mainForm .crm-prefix-applicant-grid > .field--full,
body.fasa-shell .page .shell #mainForm .crm-prefix-applicant-grid > .crm-address-grid {
  grid-column: 1 / -1;
}

/* The address row is a full-width field, so its control must use the full row too. */
body.fasa-shell .page .shell #mainForm .crm-prefix-applicant-grid > .field.field--full {
  display: block !important;
}

body.fasa-shell .page .shell #mainForm .crm-prefix-applicant-grid > .field.field--full > label,
body.fasa-shell .page .shell #mainForm .crm-prefix-applicant-grid > .field.field--full > :is(input, select, textarea) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  grid-column: 1 / -1 !important;
}

@media (max-width: 760px) {
  body.fasa-shell .crm-shell--membership-wide .crm-form {
    padding: 0.65rem 0.65rem 0 !important;
  }

  body.fasa-shell .crm-shell--membership-wide .crm-card__header,
  body.fasa-shell .crm-shell--membership-wide .crm-actions {
    padding: 0.65rem !important;
  }

  body.fasa-shell .crm-shell--membership-wide .crm-grid,
  body.fasa-shell .crm-shell--membership-wide .crm-choice-grid,
  body.fasa-shell .crm-shell--membership-wide .crm-payment-summary,
  body.fasa-shell .crm-shell--membership-wide .crm-address-inline-controls {
    gap: 0.55rem !important;
  }

  body.fasa-shell .crm-shell--membership-wide .crm-address-inline-controls {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.fasa-shell .crm-shell--membership-wide #breederFields > .crm-field > label {
    min-height: 0 !important;
  }
}

/* Prefix Application compact rhythm. Preserve the existing single-page flow. */
@media (max-width: 725px) {
  body.fasa-shell .prefix-application-page .header {
    padding: 0.75rem 0.8rem !important;
  }

  body.fasa-shell .prefix-application-page .header-top,
  body.fasa-shell .prefix-application-page .links {
    gap: 0.45rem !important;
  }

  body.fasa-shell .prefix-application-page .subtitle {
    margin-block: 0.3rem 0 !important;
  }

  body.fasa-shell .prefix-application-page .form-wrap {
    padding: 0.55rem !important;
  }

  body.fasa-shell .prefix-application-page #mainForm > .crm-note {
    margin-bottom: 0.55rem !important;
    padding: 0.65rem 0.75rem !important;
  }

  body.fasa-shell .prefix-application-page #mainForm > .crm-note ul {
    margin: 0.4rem 0;
    padding-left: 1.2rem;
  }

  body.fasa-shell .prefix-application-page #mainForm > .crm-note li + li {
    margin-top: 0.2rem;
  }

  body.fasa-shell .prefix-application-page #mainForm .card {
    margin-bottom: 0.55rem;
  }

  body.fasa-shell .prefix-application-page #mainForm .card-head {
    min-height: 0;
    padding: 0.5rem 0.7rem !important;
  }

  body.fasa-shell .prefix-application-page #mainForm .card-body {
    padding: 0.65rem 0.7rem 0.7rem !important;
  }

  body.fasa-shell .prefix-application-page #mainForm :is(.grid, .crm-payment-summary) {
    gap: 0.5rem 0.65rem !important;
  }

  body.fasa-shell .prefix-application-page #mainForm .field {
    gap: 0.2rem 0.5rem;
  }

  body.fasa-shell .prefix-application-page .actions--final {
    margin-top: 0.55rem;
    padding: 0.65rem 0.7rem !important;
  }
}

@media (min-width: 560px) and (max-width: 725px) {
  body.fasa-shell .prefix-application-page #mainForm .crm-prefix-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Shared authoritative payment and declaration states. */
.crm-declaration-date {
  display: block;
  width: min(100%, 27rem);
  min-height: 2.65rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--crm-border-strong);
  border-radius: 3px;
  background: #eef5fa;
  color: #173f60;
  font-weight: 700;
}

.crm-copy-reference {
  margin-left: 0.65rem;
  padding: 0.28rem 0.55rem;
  border: 1px solid #5d809f;
  background: #ffffff;
  color: #174f7b;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.crm-copy-reference:focus-visible {
  outline: 3px solid #f0b429;
  outline-offset: 2px;
}

.crm-payment-summary[data-fee-error]::after {
  content: attr(data-fee-error);
  grid-column: 1 / -1;
  padding: 0.65rem 0.75rem;
  border-left: 4px solid #b42318;
  background: #fff2f0;
  color: #8a1c13;
  font-weight: 700;
}

/* Compact Help and Rules link groups shared by all public application forms. */
.crm-help-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  margin-bottom: 0.25rem;
}

.crm-help-links a {
  font-weight: 700;
}

.crm-help-qualification {
  margin-bottom: 0;
  font-style: italic;
}

@media (max-width: 559px) {
  .crm-help-links {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Public-form guidance and horizontal data regions. */
.crm-form-stage-note > strong {
  display: block;
  margin-bottom: 0.25rem;
}

.crm-form-stage-note ul {
  margin: 0.25rem 0 0.4rem;
  padding-left: 1.2rem;
}

.crm-form-stage-note li {
  line-height: 1.35;
}

.crm-form-stage-note li + li {
  margin-top: 0.2rem;
}

.crm-table-scroll-hint {
  display: none;
}

@media (max-width: 700px) {
  .crm-table-scroll-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0.45rem 0 0.35rem;
    padding: 0.45rem 0.55rem;
    color: #284e6d;
    background: #e6eef6;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.3;
  }

  .crm-table-scroll-hint span {
    flex: 0 0 auto;
    color: #174f7b;
    font-size: 1.35rem;
    line-height: 1;
  }

  .table-wrap {
    overscroll-behavior-inline: contain;
    scrollbar-color: #5f8fba #e6eef6;
    scrollbar-width: auto;
  }

  .table-wrap:focus-visible {
    outline: 3px solid #174f7b;
    outline-offset: 3px;
  }
}

/* 2026-08-21 main form intro and action consistency pass. */
body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form-stage-note,
body.fasa-shell .page .shell .crm-form-stage-note {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding: 0.85rem 0.95rem 0.9rem;
  border: 1px solid #9fbad2 !important;
  border-left: 4px solid var(--crm-primary) !important;
  background: #eef5fb !important;
}

body.fasa-shell .crm-form-stage-note > strong {
  margin: 0;
  color: #0b3c63;
  font-size: 0.96rem;
}

body.fasa-shell .crm-intro-copy {
  margin: 0;
  color: #254b68;
  font-size: 0.9rem;
  line-height: 1.42;
}

body.fasa-shell .crm-form-stage-note ul {
  margin: 0;
  padding-left: 1.15rem;
}

body.fasa-shell .crm-form-stage-note li {
  line-height: 1.42;
}

body.fasa-shell .crm-help-links {
  gap: 0.45rem;
  margin: 0;
}

body.fasa-shell .crm-help-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.25rem 0.55rem;
  border: 1px solid #8dadc8;
  background: #ffffff;
  color: #0b4775;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}

body.fasa-shell .crm-help-qualification {
  margin: 0;
  color: #42617a;
  font-size: 0.84rem;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-actions--final,
body.fasa-shell .page .shell .actions--final {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
  padding: 0.9rem 1rem 1rem !important;
  border: 1px solid #8eaac1 !important;
  border-top: 4px solid #174f7b !important;
  border-radius: 6px !important;
  background: #f8fbfe !important;
}

body.fasa-shell :is(.crm-actions__buttons--split, .page .shell .buttons--split) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0;
  padding-top: 0.8rem;
  border-top: 1px solid #c2d1dc;
}

body.fasa-shell :is(.crm-actions__secondary, .page .shell .actions__secondary) {
  justify-self: start;
}

body.fasa-shell :is(.crm-actions__primary, .page .shell .actions__primary) {
  justify-self: end;
}

body.fasa-shell :is(.crm-actions__primary .crm-button--primary, .page .shell .actions__primary .primary) {
  min-width: 14rem;
}

#honours-challenge-certificates .crm-card__header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem 0.9rem;
}

#honours-challenge-certificates .crm-card__header-actions {
  display: grid;
  grid-template-columns: auto minmax(8rem, auto) 2.25rem;
  align-items: center;
  justify-content: end;
  gap: 0.45rem;
}

#honours-challenge-certificates .crm-card__header-status {
  color: #31536f;
  font-size: 0.82rem;
}

#honours-challenge-certificates .crm-challenge-upload {
  min-width: 9rem;
}

/* Keep the certificate action visible before the header becomes cramped. */
@media (max-width: 44rem) {
  #honours-challenge-certificates .crm-card__header {
    display: block;
  }

  #honours-challenge-certificates .crm-card__header h2 {
    margin-bottom: 0.5rem;
    text-align: left;
  }

  #honours-challenge-certificates .crm-card__header-actions {
    grid-template-columns: minmax(0, 1fr) 2.25rem;
    width: 100%;
  }

  #honours-challenge-certificates .crm-challenge-upload {
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
  }

  #honours-challenge-certificates .crm-card__toggle {
    grid-column: 2;
    grid-row: 1;
  }

  #honours-challenge-certificates .crm-card__header-status {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 0.35rem;
    text-align: left;
  }
}

@media (min-width: 761px) {
  body.fasa-shell .crm-form-stage-note {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  body.fasa-shell .crm-form-stage-note > strong,
  body.fasa-shell .crm-form-stage-note .crm-intro-copy,
  body.fasa-shell .crm-form-stage-note ul,
  body.fasa-shell .crm-form-stage-note .crm-help-qualification {
    grid-column: 1;
  }

  body.fasa-shell .crm-form-stage-note .crm-help-links {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-content: start;
    display: grid;
    min-width: 12rem;
  }
}

@media (max-width: 760px) {
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form,
  body.fasa-shell .page .shell .form-wrap {
    padding-bottom: 0.65rem !important;
  }

  body.fasa-shell .crm-help-links a {
    width: 100%;
  }

  body.fasa-shell :is(.crm-actions__buttons--split, .page .shell .buttons--split) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.fasa-shell :is(.crm-actions__secondary, .crm-actions__primary, .page .shell .actions__secondary, .page .shell .actions__primary) {
    justify-self: stretch;
  }

  body.fasa-shell :is(.crm-actions__secondary > *, .crm-actions__primary > *, .page .shell .actions__secondary > *, .page .shell .actions__primary > *) {
    width: 100%;
  }
}

/* 2026-08-21 visual revision: warmer application dossier surface. */
body.fasa-shell {
  background:
    var(--forms-decoration, linear-gradient(180deg, rgba(247, 250, 253, 0.92), rgba(222, 233, 243, 0.86) 26%, rgba(213, 225, 236, 0.96))),
    var(--forms-decoration, repeating-linear-gradient(135deg, rgba(23, 79, 123, 0.05) 0 1px, transparent 1px 18px)),
    #d9e6f2;
}

body.fasa-shell .main-content-wrap > :is(.crm-body, .crm-shell, .page) {
  margin-top: 1.55rem;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell) {
  position: relative;
  border-color: #6e94b5 !important;
  background:
    var(--forms-decoration, linear-gradient(180deg, #ffffff 0, #ffffff 5.35rem, #edf5fb 5.36rem, #f5f9fd 100%)) !important;
  box-shadow: var(--forms-shadow, 0 1.25rem 2.25rem rgba(17, 50, 78, 0.16));
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell)::before {
  content: "";
  display: block;
  height: 0.42rem;
  background: var(--forms-decoration, linear-gradient(90deg, #11476f 0 28%, #b08d3c 28% 44%, #2f7d7a 44% 62%, #11476f 62% 100%));
}

body.fasa-shell :is(.crm-header, .page .shell .header) {
  padding: 1.2rem 1.25rem 1.05rem !important;
  border-bottom: 1px solid #bfd2e3;
  background:
    var(--forms-decoration, linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 243, 251, 0.96))),
    var(--forms-decoration, linear-gradient(90deg, rgba(176, 141, 60, 0.16), transparent 34%));
}

body.fasa-shell :is(.crm-header__top, .page .shell .header-top) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 0.8rem;
  padding-bottom: 0 !important;
}

body.fasa-shell :is(.crm-kicker, .page .shell .kicker) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.55rem;
  margin-bottom: 0.45rem;
  padding: 0.12rem 0.65rem;
  border: 1px solid rgba(176, 141, 60, 0.45);
  background: #fffaf0;
  color: #765c1c;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

body.fasa-shell :is(.crm-header h1, .page .shell h1, .crm-title) {
  margin-bottom: 0.55rem;
  color: #082f51;
  font-size: clamp(1.85rem, 3vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: 0;
}

body.fasa-shell :is(.crm-subtitle, .page .shell .subtitle) {
  max-width: 46rem;
  color: #274d6c;
  font-size: 0.98rem;
}

body.fasa-shell :is(.crm-header__links, .page .shell .links) {
  gap: 0.55rem;
  padding-top: 0;
}

body.fasa-shell :is(.crm-header__links a, .page .shell .links a, .crm-button, .page .shell .btn) {
  min-height: var(--forms-action-height, 2.45rem);
  border-color: #6f91ae;
  background: #ffffff;
  color: #0d3c62;
}

body.fasa-shell :is(.crm-header__links a, .page .shell .links a):hover,
body.fasa-shell :is(.crm-header__links a, .page .shell .links a):focus-visible {
  border-color: #9f7c2f;
  background: #fff8e8;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form,
body.fasa-shell .page .shell .form-wrap {
  padding-top: 1rem !important;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form-stage-note,
body.fasa-shell .page .shell .crm-form-stage-note {
  position: relative;
  padding: 1rem 1rem 1rem 1.05rem;
  border: 1px solid #91b1cc !important;
  border-left: 0 !important;
  background:
    var(--forms-decoration, linear-gradient(90deg, #174f7b 0 0.42rem, transparent 0.42rem)),
    var(--forms-decoration, linear-gradient(135deg, #f6fbff 0%, #edf6f8 58%, #fff8e9 100%)) !important;
}

body.fasa-shell .crm-form-stage-note > strong {
  color: #07375f;
  font-size: 1.05rem;
}

body.fasa-shell .crm-form-stage-note > strong::after {
  content: "";
  display: block;
  width: 3.3rem;
  height: 0.18rem;
  margin-top: 0.35rem;
  background: #b08d3c;
}

body.fasa-shell .crm-help-links a {
  border-color: #86a8c5;
  background: rgba(255, 255, 255, 0.88);
}

body.fasa-shell .crm-help-links a:first-child {
  border-color: #9f7c2f;
  background: #fff8e8;
  color: #61490f;
}

body.fasa-shell :is(.crm-card, .page .shell .card) {
  border-color: #7fa2bf !important;
  background: #ffffff;
}

body.fasa-shell :is(.crm-card__header, .page .shell .card-head) {
  min-height: 3.1rem;
  border-bottom: 1px solid #a9c0d4;
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(176, 141, 60, 0.2), transparent 16rem)),
    var(--forms-decoration, linear-gradient(180deg, #dceaf5, #ccdeed)) !important;
}

body.fasa-shell :is(.crm-card__header h2, .page .shell .card-head h2) {
  color: #062d4d;
  font-size: 1.04rem;
}

body.fasa-shell :is(.crm-card__body, .page .shell .card-body) {
  background:
    var(--forms-decoration, linear-gradient(180deg, #fbfdff, #f4f8fc)) !important;
}

body.fasa-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border-color: #83a8c6 !important;
  background: #ffffff !important;
}

body.fasa-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus,
body.fasa-shell :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus-visible {
  border-color: #9f7c2f !important;
  box-shadow: var(--forms-shadow, 0 0 0 3px rgba(176, 141, 60, 0.18));
  outline: none;
}

body.fasa-shell :is(.crm-choice-card, .choice-row label, .page .choice-row label) {
  border-color: #afc5d8;
  padding: var(--forms-choice-padding);
  font-size: var(--forms-choice-size);
  background: #ffffff;
}

body.fasa-shell :is(.crm-choice-card:has(input:checked), .choice-row label:has(input:checked), .page .choice-row label:has(input:checked)) {
  border-color: #9f7c2f;
  background: #fff8e8;
  box-shadow: var(--forms-shadow, inset 0.28rem 0 0 #b08d3c);
}

body.fasa-shell :is(.crm-payment-summary, .payment-summary) {
  gap: 0.75rem;
}

body.fasa-shell :is(.crm-payment-summary__amount, .payment-summary__amount),
body.fasa-shell :is(.crm-payment-summary__instructions, .payment-summary__instructions) {
  border-color: #b7ccdd !important;
  border-left: 4px solid #2f7d7a !important;
  background: #f4faf9 !important;
}

body.fasa-shell :is(.crm-actions--final, .page .shell .actions--final) {
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(176, 141, 60, 0.12), transparent 48%)),
    #fbfdff !important;
}

body.fasa-shell .crm-final-review {
  border-color: #a8bfd2;
  border-left-color: #2f7d7a;
  background: #f6fbfa !important;
}

body.fasa-shell :is(.crm-button--primary, .page .shell .primary) {
  border-color: #0f4c72 !important;
  background: var(--forms-decoration, linear-gradient(180deg, #3c8ab0, #155d87)) !important;
  color: #ffffff !important;
}

body.fasa-shell :is(.crm-button--primary, .page .shell .primary):hover,
body.fasa-shell :is(.crm-button--primary, .page .shell .primary):focus-visible {
  background: var(--forms-decoration, linear-gradient(180deg, #4499be, #174f7b)) !important;
}

@media (min-width: 761px) {
  body.fasa-shell :is(.crm-header__links, .page .shell .links) {
    display: flex;
  }
}

@media (max-width: 760px) {
  body.fasa-shell {
    background:
      var(--forms-decoration, linear-gradient(180deg, #eaf2f9 0%, #d9e6f2 38%, #d0deeb 100%));
  }

  body.fasa-shell .main-content-wrap > :is(.crm-body, .crm-shell, .page) {
    margin-top: 0.9rem;
  }

  body.fasa-shell :is(.crm-header, .page .shell .header) {
    padding: 0.95rem 0.85rem 0.85rem !important;
  }

  body.fasa-shell :is(.crm-header h1, .page .shell h1, .crm-title) {
    font-size: clamp(1.55rem, 7vw, 1.9rem);
  }

  body.fasa-shell :is(.crm-card__header, .page .shell .card-head) {
    min-height: 2.85rem;
  }
}

/* 2026-08-21 Forms layout rebuild: style and rewritten-content support. */
body.fasa-shell {
  background-color: #d9e6f2;
  background-image:
    var(--forms-decoration, url("../../../images/cat-shadows-blue-silver-bottom.png?v=20260821-background-light")),
    var(--forms-decoration, radial-gradient(circle at 12% 8%, rgba(176, 141, 60, 0.16), transparent 16rem)),
    var(--forms-decoration, radial-gradient(circle at 88% 12%, rgba(47, 125, 122, 0.14), transparent 18rem)),
    var(--forms-decoration, linear-gradient(180deg, #eef5fa 0%, #dbe8f2 38%, #cbdbe8 100%));
  background-position: center top, center top, center top, center top;
  background-repeat: no-repeat, no-repeat, no-repeat, no-repeat;
  background-attachment: fixed, fixed, fixed, fixed;
  background-size: cover, auto, auto, auto;
}

@media (max-width: 760px) {
  body.fasa-shell {
    background-attachment: scroll, scroll, scroll, scroll;
  }
}

body.fasa-shell .main-content-wrap {
  padding-bottom: 2.4rem;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell, .crm-shell--index) {
  overflow: hidden;
  border: 1px solid #557d9d !important;
  background:
    var(--forms-paper, var(--forms-decoration, linear-gradient(180deg, #fbfdff 0, #fbfdff 4.7rem, #edf5fb 4.72rem, #f7fafc 100%))) !important;
  box-shadow: var(--forms-shadow, none);
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell, .crm-shell--index)::before {
  height: var(--forms-ribbon-height, 0.55rem);
  background:
    var(--forms-decoration, linear-gradient(90deg, #0b3558 0 22%, #b08d3c 22% 36%, #2f7d7a 36% 54%, #d5e5f0 54% 56%, #0b3558 56% 100%));
}

body.fasa-shell :is(.crm-header, .page .shell .header) {
  background:
    var(--forms-decoration, linear-gradient(135deg, rgba(7, 42, 72, 0.96), rgba(19, 82, 124, 0.94) 60%, rgba(47, 125, 122, 0.92))),
    #0f4269 !important;
  color: #ffffff;
  text-align: left;
}

body.fasa-shell :is(.crm-header__top, .page .shell .header-top) {
  justify-items: stretch;
}

body.fasa-shell :is(.crm-kicker, .page .shell .kicker) {
  border-color: rgba(241, 209, 132, 0.72);
  background: rgba(255, 248, 232, 0.98);
  color: #5f470f;
}

body.fasa-shell :is(.crm-header h1, .page .shell h1) {
  max-width: 48rem;
  color: #ffffff;
  text-wrap: balance;
}

body.fasa-shell :is(.crm-subtitle, .page .shell .subtitle) {
  color: #e7f3fb;
  text-wrap: pretty;
}

body.fasa-shell :is(.crm-header__links a, .page .shell .links a) {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

body.fasa-shell :is(.crm-header__links a, .page .shell .links a):hover,
body.fasa-shell :is(.crm-header__links a, .page .shell .links a):focus-visible {
  border-color: #f1d184;
  background: #fff8e8;
  color: #0b3558;
}

body.fasa-shell :is(.crm-form-stage-note, .page .shell .crm-form-stage-note) {
  border: 0 !important;
  background:
    var(--forms-note-fill, var(--forms-decoration, linear-gradient(180deg, #fff8e8 0%, #f5fbfb 100%))) !important;
  box-shadow: var(--forms-shadow, inset 0.42rem 0 0 #b08d3c,
    0 0.65rem 1.2rem rgba(20, 70, 105, 0.11));
}

body.fasa-shell .crm-form-stage-note > strong {
  display: block;
  font-size: 1.18rem;
}

body.fasa-shell .crm-form-stage-note .crm-intro-copy {
  color: #173f61;
  font-size: 0.98rem;
}

body.fasa-shell .crm-form-stage-note li {
  margin-bottom: 0.45rem;
}

body.fasa-shell .crm-form-stage-note li::marker {
  color: #2f7d7a;
}

body.fasa-shell :is(.crm-card, .page .shell .card) {
  border: 0 !important;
  box-shadow: var(--forms-shadow, 0 0.7rem 1.35rem rgba(18, 58, 88, 0.12),
    0 0 0 1px #8fb0ca);
}

body.fasa-shell :is(.crm-card__header, .page .shell .card-head) {
  border-bottom: 0;
  background:
    var(--forms-section-fill, var(--forms-decoration, linear-gradient(90deg, #0f4269, #185f88 72%, #2f7d7a))) !important;
}

body.fasa-shell :is(.crm-card__header h2, .page .shell .card-head h2) {
  color: #ffffff;
}

body.fasa-shell :is(.crm-card__toggle, .page .shell .card-toggle) {
  border-color: rgba(255, 255, 255, 0.52);
  color: #ffffff;
}

body.fasa-shell :is(.crm-card__body, .page .shell .card-body) {
  background:
    var(--forms-paper, var(--forms-decoration, linear-gradient(180deg, #ffffff 0%, #f7fbfd 100%))) !important;
}

body.fasa-shell :is(.crm-final-review) {
  border: 0;
  box-shadow: var(--forms-shadow, inset 0.42rem 0 0 #2f7d7a,
    0 0 0 1px #94b1c8);
}

body.fasa-shell .crm-final-review strong {
  color: #0b3558;
  font-size: 1.02rem;
  text-transform: uppercase;
}

body.fasa-shell :is(.crm-button--primary, .page .shell .primary) {
  background: var(--forms-primary-fill, var(--forms-decoration, linear-gradient(180deg, #2f7d7a, #124e73))) !important;
}

body.fasa-shell :is(.crm-button--primary, .page .shell .primary):hover,
body.fasa-shell :is(.crm-button--primary, .page .shell .primary):focus-visible {
  background: var(--forms-primary-hover, var(--forms-decoration, linear-gradient(180deg, #36918d, #0f4269))) !important;
}

body.fasa-shell .forms-hub-page .crm-shell--index {
  display: grid;
  grid-template-columns: minmax(23rem, 0.9fr) minmax(0, 1.5fr);
  gap: 1rem;
  max-width: 80rem;
  padding: 1rem;
}

body.fasa-shell .forms-hub-hero {
  position: sticky;
  display: block !important;
  top: 0.85rem;
  align-self: start;
  min-height: 32rem;
  padding: 1.35rem;
  border: 0;
  background:
    var(--forms-decoration, linear-gradient(160deg, #0b3558 0%, #174f7b 54%, #2f7d7a 100%));
  color: #ffffff;
}

body.fasa-shell .forms-hub-hero .crm-title {
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
}

body.fasa-shell .forms-hub-intro {
  max-width: 100%;
  color: #e7f3fb;
  font-size: 1rem;
}

body.fasa-shell .forms-hub-quick-links {
  position: static !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  width: 100% !important;
  max-width: none;
  margin: 1rem 0 0;
}

body.fasa-shell .forms-hub-quick-links .forms-hub-action {
  width: 100% !important;
  max-width: none;
}

body.fasa-shell .forms-hub-summary-list {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: none;
  margin: 1.15rem 0;
  padding: 0;
  list-style: none;
}

body.fasa-shell .forms-hub-summary-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.68rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
}

body.fasa-shell .forms-hub-summary-list strong {
  color: #f1d184;
  text-transform: uppercase;
}

body.fasa-shell .forms-hub-summary-list span {
  color: #ffffff;
}

body.fasa-shell .forms-hub-page .forms-hub-section {
  grid-column: 2;
  border: 0;
  box-shadow: var(--forms-shadow, 0 0.7rem 1.45rem rgba(12, 48, 76, 0.12),
    0 0 0 1px #8fb0ca);
}

body.fasa-shell .forms-hub-list--online {
  grid-template-columns: minmax(0, 1fr);
}

body.fasa-shell .forms-hub-section__header {
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(176, 141, 60, 0.17), transparent 48%)),
    #f8fbfd;
}

body.fasa-shell .forms-hub-row {
  gap: 1rem;
  background:
    var(--forms-decoration, linear-gradient(90deg, #ffffff, #f7fbfd));
}

body.fasa-shell .forms-hub-row__copy strong {
  color: #0b3558;
  font-size: 1.02rem;
}

body.fasa-shell .forms-hub-row__copy span {
  color: #31536f;
}

body.fasa-shell .forms-hub-action--primary {
  border-color: #0f4269;
  background: #0f4269;
}

body.fasa-shell .forms-hub-action--secondary {
  border-color: #7ea2bf;
}

body.fasa-shell :is(.crm-field, .field):has(input[type="file"]) {
  grid-column: 1 / -1;
  max-width: 100%;
}

body.fasa-shell :is(.crm-field, .field):has(input[type="file"]) input[type="file"] {
  width: 100%;
}

/* The Individual pedigree is part of Cat Identity, not a full-width document row. */
body.fasa-shell .crm-shell--compact #individual-registration-request .crm-field:has(#registration_pedigree_file) {
  grid-column: auto;
  max-width: none;
}

@media (min-width: 980px) {
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form,
  body.fasa-shell .page .shell #mainForm {
    display: block;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note {
    float: left;
    clear: left;
    width: min(21rem, 36%);
    margin: 0 1rem 0.95rem 0;
    position: sticky;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note {
    display: block;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note .crm-help-links,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note .crm-help-links {
    display: grid;
    min-width: 0;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note {
    top: 0.85rem;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > :is(.crm-card, .crm-actions--final),
  body.fasa-shell .page .shell #mainForm > .card {
    margin-left: calc(min(21rem, 36%) + 1rem);
  }

  body.fasa-shell .crm-shell--membership-wide .crm-form > .crm-form-stage-note {
    min-height: 19rem;
  }

  body.fasa-shell .page .shell .actions--final {
    margin-left: calc(min(21rem, 36%) + 1rem);
  }
}

@media (max-width: 979px) {
  body.fasa-shell .forms-hub-page .crm-shell--index {
    display: block;
    max-width: 58rem;
    padding: 0;
  }

  body.fasa-shell .forms-hub-hero {
    position: static;
    min-height: 0;
  }

  body.fasa-shell .forms-hub-page .forms-hub-section {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body.fasa-shell :is(.crm-header, .page .shell .header) {
    text-align: center;
  }

  body.fasa-shell .forms-hub-summary-list li {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* User correction: keep Forms as plain stacked forms. */
body.fasa-shell .forms-hub-page .crm-shell--index {
  display: block;
  max-width: 64rem;
}

body.fasa-shell .forms-hub-hero {
  position: static;
  min-height: 0;
}

body.fasa-shell .forms-hub-page .forms-hub-section {
  grid-column: auto;
}

@media (min-width: 980px) {
  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form,
  body.fasa-shell .page .shell #mainForm {
    display: block;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note {
    float: none;
    clear: none;
    width: auto;
    margin: 0 0 0.95rem;
    position: static;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > :is(.crm-card, .crm-actions--final),
  body.fasa-shell .page .shell #mainForm > .card,
  body.fasa-shell .page .shell .actions--final {
    margin-left: 0;
  }

  body.fasa-shell .crm-shell--membership-wide .crm-form > .crm-form-stage-note {
    min-height: 0;
  }
}

/* User correction: compact buttons and merge the bottom form review area visually. */
body.fasa-shell .crm-help-links {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

body.fasa-shell .crm-help-links a,
body.fasa-shell .forms-hub-quick-links .forms-hub-action,
body.fasa-shell :is(.crm-actions__secondary > *, .crm-actions__primary > *, .page .shell .actions__secondary > *, .page .shell .actions__primary > *) {
  width: auto !important;
  min-width: 9.5rem;
  max-width: 100%;
  justify-self: start;
}

body.fasa-shell .forms-hub-quick-links {
  display: flex !important;
  justify-content: flex-start;
}

body.fasa-shell .forms-hub-page .forms-hub-support-list {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-start;
}

body.fasa-shell .forms-hub-page .forms-hub-support-list li {
  flex: 0 0 auto !important;
  width: auto !important;
}

body.fasa-shell .forms-hub-page .forms-hub-support-link {
  width: auto !important;
  min-width: 9.5rem;
  padding: 0.48rem 0.8rem;
}

body.fasa-shell .crm-help-links a {
  min-height: 2rem;
  padding: 0.38rem 0.75rem;
}

body.fasa-shell :is(input[type="file"], .crm-field input[type="file"], .field input[type="file"]) {
  width: auto !important;
  max-width: 100%;
}

body.fasa-shell :is(
  #membership-fees-payment,
  #honours-fees-payment,
  #individual-fees-payment,
  #litter-fees-payment,
  #prefix-fees-payment
) {
  margin-bottom: 0;
}

body.fasa-shell :is(
  #membership-declaration,
  #honours-declaration,
  #individual-declaration,
  #litter-declaration,
  #prefix-declaration
) {
  margin-top: -0.12rem;
  border-top: 0 !important;
}

body.fasa-shell :is(
  #membership-declaration,
  #honours-declaration,
  #individual-declaration,
  #litter-declaration,
  #prefix-declaration
) :is(.crm-card__header, .card-head) {
  min-height: 2.45rem;
  background: var(--forms-warm-section, var(--forms-section-fill, var(--forms-decoration, linear-gradient(90deg, #0f4269, #185f88 72%, #2f7d7a)))) !important;
}

body.fasa-shell :is(
  #membership-declaration,
  #honours-declaration,
  #individual-declaration,
  #litter-declaration,
  #prefix-declaration
) :is(.crm-card__header h2, .card-head h2) {
  color: var(--forms-heading-ink, #ffffff);
  font-size: 0.98rem;
}

body.fasa-shell :is(
  #membership-fees-payment,
  #honours-fees-payment,
  #individual-fees-payment,
  #litter-fees-payment,
  #prefix-fees-payment,
  #membership-declaration,
  #honours-declaration,
  #individual-declaration,
  #litter-declaration,
  #prefix-declaration
) :is(.crm-card__body, .card-body) {
  padding: 0.85rem 1rem !important;
}

body.fasa-shell :is(
  #membership-declaration,
  #honours-declaration,
  #individual-declaration,
  #litter-declaration,
  #prefix-declaration
) :is(.crm-declaration-grid, .declaration-grid, .crm-field:has(#declaration_date_display), .field:has(#declaration_date_display)) {
  display: none !important;
}

body.fasa-shell :is(.crm-payment-summary, .payment-summary) {
  gap: 0.65rem;
}

body.fasa-shell :is(.crm-payment-summary__amount, .payment-summary__amount, .crm-payment-summary__instructions, .payment-summary__instructions) {
  padding: 0.62rem 0.75rem !important;
}

body.fasa-shell :is(.crm-payment-summary, .payment-summary) {
  align-items: stretch;
}

body.fasa-shell :is(.crm-payment-summary__amount, .payment-summary__amount) {
  display: grid;
  align-content: center;
  min-height: 0;
}

body.fasa-shell :is(.crm-payment-summary__amount, .payment-summary__amount) p:not(#form_fee_basis),
body.fasa-shell :is(.crm-payment-steps, .crm-payment-summary ol, .payment-summary ol),
body.fasa-shell :is(#autoReferenceRules, .crm-payment-summary + .crm-grid .crm-help, .payment-summary + .grid .help, .payment-summary + .field .help) {
  display: none !important;
}

body.fasa-shell :is(
  #membership-fees-payment,
  #honours-fees-payment,
  #individual-fees-payment,
  #litter-fees-payment,
  #prefix-fees-payment
) :is(.crm-help, .help):not(#form_fee_basis) {
  display: none !important;
}

body.fasa-shell :is(.crm-payment-summary, .payment-summary) > .crm-note,
body.fasa-shell :is(.crm-payment-summary, .payment-summary) > .note {
  margin: 0;
  padding: 0.62rem 0.75rem !important;
  border-left: 0;
  background: #eef5fb !important;
  box-shadow: var(--forms-shadow, inset 0.25rem 0 0 #2f7d7a);
}

body.fasa-shell :is(.crm-payment-summary, .payment-summary) > .crm-note > strong,
body.fasa-shell :is(.crm-payment-summary, .payment-summary) > .note > strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  line-height: 1.2;
}

body.fasa-shell :is(.crm-bank-grid, .bank-grid) {
  gap: 0.18rem 0.65rem;
  margin: 0;
}

body.fasa-shell :is(.crm-bank-grid, .bank-grid) dt,
body.fasa-shell :is(.crm-bank-grid, .bank-grid) dd {
  line-height: 1.25;
}

body.fasa-shell .crm-payment-reference-text {
  display: inline-block;
  padding: 0.08rem 0.28rem;
  border: 1px solid rgba(176, 141, 60, 0.45);
  background: #fffaf0;
}

body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-card__body, .card-body) {
  padding-bottom: 0.7rem !important;
}

body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-grid, .grid) {
  margin-top: 0.55rem;
}

body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-field, .field):has(input[type="file"]) {
  padding: 0.55rem 0.65rem;
  border: 1px solid #b8ccdc;
  background: #f8fbfe;
}

body.fasa-shell :is(.crm-actions__buttons--split, .page .shell .buttons--split) {
  align-items: center;
}

/* Keep declaration actions within the declaration card, not in a separate final panel. */
body.fasa-shell .crm-declaration-actions {
  margin-top: 0.9rem;
}

body.fasa-shell .crm-declaration-actions :is(.crm-actions__buttons--split, .buttons--split) {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* On desktop, keep the compact number and date columns fixed so Show,
   Affiliation, and Judge and Affiliate share all remaining certificate space. */
@media (min-width: 721px) {
  body.fasa-shell .challenges {
    table-layout: fixed;
  }

  body.fasa-shell .challenges :is(th, td):nth-child(1) {
    width: 6.75rem;
  }

  body.fasa-shell .challenges :is(th, td):nth-child(2) {
    width: 9rem;
  }
}

/* Payment receipt and optional transfer reference share one desktop row. */
@media (min-width: 641px) {
  body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-grid, .grid) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-field, .field):has(#payment_receipt) {
    grid-column: auto !important;
  }

  body.fasa-shell :is(#membership-fees-payment, #honours-fees-payment, #individual-fees-payment, #litter-fees-payment, #prefix-fees-payment) :is(.crm-field, .field):has(#payment_reference_no) {
    padding: 0.55rem 0.65rem;
    border: 1px solid #b8ccdc;
    background: #f8fbfe;
  }
}

body.fasa-shell :is(.crm-actions__primary, .page .shell .actions__primary) {
  justify-self: end;
}

@media (max-width: 760px) {
  body.fasa-shell .crm-help-links,
  body.fasa-shell .forms-hub-quick-links,
  body.fasa-shell .forms-hub-page .forms-hub-support-list {
    justify-content: center;
  }

  body.fasa-shell .crm-help-links a,
  body.fasa-shell .forms-hub-quick-links .forms-hub-action,
  body.fasa-shell .forms-hub-page .forms-hub-support-link,
  body.fasa-shell :is(.crm-actions__secondary > *, .crm-actions__primary > *, .page .shell .actions__secondary > *, .page .shell .actions__primary > *) {
    min-width: 8.5rem;
  }
}

/* HTML help guides for active Forms. */
body.fasa-shell .forms-help-page .forms-help-shell {
  max-width: 62rem;
}

body.fasa-shell .forms-help-page .crm-header {
  margin-bottom: 0.9rem;
}

body.fasa-shell .forms-help-panel,
body.fasa-shell .forms-help-card {
  border: 1px solid #b9ccda;
  border-radius: 6px;
  background: #fbfdff;
  color: #07355b;
}

body.fasa-shell .forms-help-panel {
  padding: 1rem;
  margin-bottom: 0.85rem;
}

body.fasa-shell .forms-help-panel--lead {
  border-left: 5px solid #b08d3c;
  background: #fffaf0;
}

body.fasa-shell .forms-help-panel h2,
body.fasa-shell .forms-help-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  line-height: 1.25;
}

body.fasa-shell .forms-help-panel p,
body.fasa-shell .forms-help-card p,
body.fasa-shell .forms-help-panel li {
  font-size: 0.95rem;
  line-height: 1.45;
}

body.fasa-shell .forms-help-panel ul {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
}

body.fasa-shell .forms-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

body.fasa-shell .forms-help-card {
  padding: 0.9rem;
}

body.fasa-shell .forms-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

body.fasa-shell .forms-help-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  min-width: 9.5rem;
  padding: 0.42rem 0.8rem;
  border: 1px solid #7fa4c1;
  background: #f7fbff;
  color: #003b66;
  font-weight: 700;
  text-decoration: none;
}

body.fasa-shell .forms-help-actions a:first-child {
  background: #0f4a73;
  color: #fff;
}

body.fasa-shell .forms-help-note {
  margin: 0.75rem 0 0;
  font-style: italic;
}

/* Mobile header cleanup: keep the menu, lose the oversized form masthead. */
@media (max-width: 760px) {
  body.fasa-shell .fasa-nav {
    padding: 0.45rem 0.75rem;
  }

  body.fasa-shell .fasa-nav .navbar-toggler {
    min-height: 2.35rem;
    padding: 0.42rem 0.75rem;
    font-size: 0.95rem;
  }

  body.fasa-shell .main-content-wrap > :is(.crm-body, .crm-shell, .page) {
    margin-top: 0.35rem;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell, .crm-shell--index) {
    border-radius: 6px;
    background: #f8fbfd !important;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact, .page .shell, .crm-shell--index)::before {
    height: 0.24rem;
  }

  body.fasa-shell :is(.crm-header, .page .shell .header),
  body.fasa-shell .forms-hub-hero {
    padding: 0.42rem 0.6rem 0.46rem !important;
    text-align: left;
  }

  body.fasa-shell :is(.crm-header__top, .page .shell .header-top) {
    gap: 0.28rem;
  }

  body.fasa-shell :is(.crm-kicker, .page .shell .kicker),
  body.fasa-shell .forms-hub-hero .crm-kicker {
    min-height: 0;
    margin: 0 0 0.22rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1d184;
    font-size: 0.68rem;
    line-height: 1.1;
  }

  body.fasa-shell :is(.crm-header h1, .page .shell h1, .crm-title),
  body.fasa-shell .forms-hub-hero .crm-title {
    margin: 0;
    font-size: 1.16rem;
    line-height: 1.05;
  }

  body.fasa-shell :is(.crm-subtitle, .page .shell .subtitle),
  body.fasa-shell .forms-hub-intro {
    display: none;
  }

  body.fasa-shell :is(.crm-header__links, .page .shell .links),
  body.fasa-shell .forms-hub-quick-links {
    justify-content: flex-start;
    gap: 0.35rem;
  }

  body.fasa-shell :is(.crm-header__links a, .page .shell .links a),
  body.fasa-shell .forms-hub-quick-links .forms-hub-action {
    min-height: 1.55rem;
    min-width: 0;
    padding: 0.15rem 0.45rem;
    font-size: 0.72rem;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note {
    padding: 0.58rem 0.68rem !important;
  }

  body.fasa-shell .crm-form-stage-note > strong {
    font-size: 0.9rem;
  }

  body.fasa-shell .crm-form-stage-note .crm-intro-copy,
  body.fasa-shell .crm-form-stage-note li {
    font-size: 0.8rem;
    line-height: 1.22;
  }

  body.fasa-shell .crm-form-stage-note .crm-intro-copy {
    margin: 0.22rem 0;
  }

  body.fasa-shell .crm-form-stage-note ul {
    display: none;
  }

  body.fasa-shell .crm-form-stage-note .crm-help-links {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    gap: 0.3rem;
    padding-bottom: 0.1rem;
  }

  body.fasa-shell .crm-form-stage-note .crm-help-links a {
    flex: 0 0 auto;
    min-height: 1.75rem;
    min-width: 0;
    padding: 0.22rem 0.48rem;
    font-size: 0.76rem;
    white-space: nowrap;
  }

body.fasa-shell .crm-form-stage-note .crm-help-qualification {
  display: none;
}

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form {
    padding-top: 0.45rem;
  }

  body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form > .crm-form-stage-note,
  body.fasa-shell .page .shell #mainForm > .crm-form-stage-note {
    margin-bottom: 0.65rem;
  }

  body.fasa-shell .forms-help-page .forms-help-panel {
    padding: 0.78rem;
    margin-bottom: 0.65rem;
  }

  body.fasa-shell .forms-help-page .forms-help-card {
    padding: 0.75rem;
  }
}

@media (max-width: 760px) {
  body.fasa-shell .forms-help-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  body.fasa-shell .forms-help-actions {
    justify-content: center;
  }

  body.fasa-shell .forms-help-actions a,
  body.fasa-shell .forms-hub-page .forms-hub-row__actions .forms-hub-action,
  body.fasa-shell :is(.crm-actions__secondary > *, .crm-actions__primary > *, .page .shell .actions__secondary > *, .page .shell .actions__primary > *) {
    width: auto !important;
    min-width: 8.5rem;
  }

  body.fasa-shell .forms-hub-page .forms-hub-row__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
  }

  body.fasa-shell :is(.crm-actions__secondary, .crm-actions__primary, .page .shell .actions__secondary, .page .shell .actions__primary) {
    justify-self: center;
  }
}

/* Membership form: shallow South Australia and cats header. */
body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header {
  position: relative;
  min-height: 7rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.9rem 0.65rem !important;
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(3, 24, 55, 0.5), rgba(5, 34, 70, 0.68) 42%, rgba(5, 34, 70, 0.68) 58%, rgba(3, 24, 55, 0.5))),
    var(--forms-decoration, url("../membership-sa-cats-header.webp")) center 52% / cover no-repeat !important;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header__top {
  gap: 0.3rem;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-kicker {
  position: absolute;
  top: 0.45rem;
  left: 0.7rem;
  min-height: 1.2rem;
  margin: 0;
  padding: 0.05rem 0.45rem;
  font-size: 0.62rem;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-subtitle {
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.22;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header__links {
  gap: 0.4rem;
}

body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header__links a {
  min-height: 1.8rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.76rem;
}

/* Principal-form header actions and concise start notes. */
body.fasa-shell :is(.crm-header__links, .page .shell .links) {
  max-width: 58rem;
}

body.fasa-shell :is(.crm-shell--membership-wide, .crm-shell--compact) .crm-form-stage-note--compact,
body.fasa-shell .page .shell .crm-form-stage-note--compact {
  gap: 0.2rem;
  margin-bottom: 0.55rem;
  padding: var(--forms-note-padding, 0.55rem 0.7rem);
}

body.fasa-shell .crm-form-stage-note--compact > strong {
  font-size: var(--forms-copy-size, 0.84rem);
  line-height: var(--forms-copy-leading, 1.1);
}

body.fasa-shell .crm-form-stage-note--compact > strong::after {
  width: 2.2rem;
  height: 0.12rem;
  margin-top: 0.18rem;
}

body.fasa-shell .crm-form-stage-note--compact .crm-intro-copy,
body.fasa-shell .crm-form-stage-note--compact li {
  font-size: var(--forms-copy-size, 0.78rem);
  line-height: var(--forms-copy-leading, 1.2);
}

body.fasa-shell .crm-form-stage-note--compact .crm-intro-copy {
  margin: 0;
}

body.fasa-shell .crm-form-stage-note--compact ul {
  display: grid;
  gap: 0.08rem;
  margin: 0;
  padding-left: 1rem;
}

@media (max-width: 520px) {
  body.fasa-shell .crm-body .crm-shell--membership-wide .crm-header {
    min-height: 0;
    padding: 0.45rem 0.6rem 0.5rem !important;
    background-position: center;
  }
}

/* Compact Forms index: active online forms only. */
body.fasa-shell .forms-hub-page .forms-hub-summary-list,
body.fasa-shell .forms-hub-page .forms-hub-quick-links,
body.fasa-shell .forms-hub-page .forms-hub-row--portal {
  display: none !important;
}

body.fasa-shell .forms-hub-page .forms-hub-hero {
  padding-bottom: 0.8rem;
}

body.fasa-shell .forms-hub-page .forms-hub-section--online {
  margin-top: 0;
}

/* Fillable PDFs are simple reference lines rather than application cards. */
body.fasa-shell .forms-hub-pdf-summary {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

body.fasa-shell .forms-hub-pdf-summary li,
body.fasa-shell .forms-hub-pdf-summary-line {
  margin: 0;
  color: #425b71;
  line-height: 1.45;
}

body.fasa-shell .forms-hub-pdf-summary a {
  color: #0f4c72;
  font-weight: 700;
}

body.fasa-shell .forms-hub-page .forms-hub-section__header {
  margin-bottom: 0.35rem;
}

body.fasa-shell .forms-hub-page .forms-hub-section__header > p {
  display: none;
}

/* Honours form: compact, unique awards-themed header. */
body.fasa-shell .crm-shell--compact .crm-header.crm-header--honours {
  position: relative;
  min-height: 7rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.9rem 0.65rem !important;
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(4, 20, 43, 0.46), rgba(4, 28, 59, 0.72) 42%, rgba(4, 28, 59, 0.72) 58%, rgba(4, 20, 43, 0.46))),
    var(--forms-decoration, url("../honours-awards-cats-header.webp")) center 54% / cover no-repeat !important;
}

body.fasa-shell .crm-shell--compact .crm-header--honours .crm-header__top {
  gap: 0.3rem;
}

body.fasa-shell .crm-shell--compact .crm-header--honours .crm-kicker {
  position: absolute;
  top: 0.45rem;
  left: 0.7rem;
  min-height: 1.2rem;
  margin: 0;
  padding: 0.05rem 0.45rem;
  font-size: 0.62rem;
}

body.fasa-shell .crm-shell--compact .crm-header--honours h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1;
}

body.fasa-shell .crm-shell--compact .crm-header--honours .crm-subtitle {
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.22;
}

body.fasa-shell .crm-shell--compact .crm-header--honours .crm-header__links {
  gap: 0.4rem;
}

body.fasa-shell .crm-shell--compact .crm-header--honours .crm-header__links a {
  min-height: 1.8rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.76rem;
}

@media (max-width: 520px) {
  body.fasa-shell .crm-shell--compact .crm-header.crm-header--honours {
    min-height: 0;
    padding: 0.45rem 0.6rem 0.5rem !important;
    background-position: center;
  }
}

/* Individual, litter, and prefix forms: unique half-height themed headers. */
body.fasa-shell .crm-shell--compact .crm-header.crm-header--individual,
body.fasa-shell .page .shell .header.header--litter,
body.fasa-shell .page .shell .header.header--prefix {
  position: relative;
  min-height: 7rem;
  margin-bottom: 0.55rem;
  padding: 0.55rem 0.9rem 0.65rem !important;
}

body.fasa-shell .crm-shell--compact .crm-header.crm-header--individual {
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(3, 20, 44, 0.48), rgba(4, 27, 57, 0.74) 42%, rgba(4, 27, 57, 0.74) 58%, rgba(3, 20, 44, 0.48))),
    var(--forms-decoration, url("../individual-registration-cats-header.webp")) center 52% / cover no-repeat !important;
}

body.fasa-shell .page .shell .header.header--litter {
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(3, 20, 44, 0.46), rgba(4, 27, 57, 0.72) 42%, rgba(4, 27, 57, 0.72) 58%, rgba(3, 20, 44, 0.46))),
    var(--forms-decoration, url("../litter-registration-cats-header.webp")) center 48% / cover no-repeat !important;
}

body.fasa-shell .page .shell .header.header--prefix {
  background:
    var(--forms-decoration, linear-gradient(90deg, rgba(3, 20, 44, 0.44), rgba(4, 27, 57, 0.72) 42%, rgba(4, 27, 57, 0.72) 58%, rgba(3, 20, 44, 0.44))),
    var(--forms-decoration, url("../prefix-application-cats-header.webp")) center 45% / cover no-repeat !important;
}

body.fasa-shell .crm-shell--compact .crm-header--individual .crm-header__top,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) .header-top {
  gap: 0.3rem;
}

body.fasa-shell .crm-shell--compact .crm-header--individual .crm-kicker,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) .kicker {
  position: absolute;
  top: 0.45rem;
  left: 0.7rem;
  min-height: 1.2rem;
  margin: 0;
  padding: 0.05rem 0.45rem;
  font-size: 0.62rem;
}

body.fasa-shell .crm-shell--compact .crm-header--individual h1,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) h1 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  line-height: 1;
}

body.fasa-shell .crm-shell--compact .crm-header--individual .crm-subtitle,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) .subtitle {
  max-width: 42rem;
  font-size: 0.78rem;
  line-height: 1.22;
}

body.fasa-shell .crm-shell--compact .crm-header--individual .crm-header__links,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) .links {
  gap: 0.4rem;
}

body.fasa-shell .crm-shell--compact .crm-header--individual .crm-header__links a,
body.fasa-shell .page .shell :is(.header--litter, .header--prefix) .links a {
  min-height: 1.8rem;
  padding: 0.2rem 0.7rem;
  font-size: 0.76rem;
}

@media (max-width: 520px) {
  body.fasa-shell .crm-shell--compact .crm-header.crm-header--individual,
  body.fasa-shell .page .shell .header.header--litter,
  body.fasa-shell .page .shell .header.header--prefix {
    min-height: 0;
    padding: 0.45rem 0.6rem 0.5rem !important;
    background-position: center;
  }
}

/* Invalid controls after leaving a field or attempting submission. */
body.fasa-shell form:is(#mainForm, .crm-form) .crm-required-empty {
  border-color: #c62828 !important;
}

body.fasa-shell form:is(#mainForm, .crm-form) .crm-required-empty:is([type="radio"], [type="checkbox"]) {
  outline: 1px solid #c62828;
  outline-offset: 2px;
}

/* Landscape mobile uses the shared half-width navigation drawer. */
.fasa-nav .navbar-reveal {
  display: none;
}

@media (max-width: 950px) and (max-height: 500px) and (orientation: landscape) {
  .main-content-wrap {
    padding-top: 0;
  }

  .fasa-nav,
  nav[aria-label="Primary navigation"].fasa-nav {
    position: fixed;
    inset: 0 auto auto 0;
    right: auto;
    width: min(50vw, 16.25rem) !important;
    transition: transform 220ms ease-in-out;
  }

  .fasa-nav .navbar-toggler,
  .fasa-nav .navbar-collapse {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .fasa-nav .navbar-toggler {
    border-radius: 0;
  }

  body.fasa-shell .fasa-nav,
  body.fasa-site .fasa-nav {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .fasa-nav .navbar-collapse > ul > li > a {
    justify-content: center;
    text-align: center;
    white-space: nowrap;
  }

  .fasa-nav .navbar-collapse > ul > li > .dropdown-toggle::after {
    position: absolute;
    right: 0.85rem;
  }

  .fasa-nav.fasa-nav-landscape-dropdown-open li.dropdown.show > .dropdown-menu,
  .fasa-nav.fasa-nav-landscape-dropdown-open li.dropdown.show > ul {
    position: fixed;
    top: var(--fasa-landscape-submenu-top);
    left: var(--fasa-landscape-submenu-left);
    width: min(18rem, calc(100vw - 16.75rem));
    min-width: 14rem;
    margin: 0;
  }

  .fasa-nav.fasa-nav-landscape-hidden,
  .fasa-nav.fasa-nav-landscape-closing {
    transform: translateX(-100%);
  }

  body.fasa-shell .fasa-nav.fasa-nav-landscape-hidden,
  body.fasa-site .fasa-nav.fasa-nav-landscape-hidden {
    overflow: visible;
  }

  .fasa-nav.fasa-nav-landscape-hidden .navbar-toggler,
  .fasa-nav.fasa-nav-landscape-hidden .navbar-collapse {
    visibility: hidden;
  }

  .fasa-nav.fasa-nav-landscape-hidden .navbar-reveal {
    position: absolute;
    top: 0;
    right: -3.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.1rem;
    height: 1.8rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-top: 0;
    border-radius: 0 0 1.8rem 1.8rem;
    background: linear-gradient(160deg, rgba(47, 128, 191, 0.96), rgba(31, 95, 151, 0.98));
    box-shadow: 5px 6px 14px rgba(7, 40, 69, 0.3);
    cursor: pointer;
  }

  .fasa-nav.fasa-nav-landscape-hidden .navbar-reveal::after {
    content: "Menu";
    color: #ffffff;
    font: 700 0.68rem/1 Arial, sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .fasa-nav.fasa-nav-landscape-hidden .navbar-reveal:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
  }
}

/* Clean application/catalogue/outcome variant. Help pages retain existing fallback tokens. */
body.forms-clean :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #986800 !important;
  outline-offset: 3px;
}

body.forms-clean {
  --forms-content-width: 1040px;
  --forms-decoration: none;
  --forms-shadow: none;
  --forms-banner-background: #eaf1f7;
  --forms-heading-color: #103859;
  --forms-banner-height: 0px;
  --forms-banner-border: 4px solid #164a75;
  --forms-control-height: 44px;
  --forms-guidance-columns: minmax(0,1fr);
  --forms-guide-padding: 14px 22px;
  --forms-guide-border: 0;
  --forms-ribbon-height: 0;
  background: #dce6ef url('../../../images/cat-shadows-blue-silver-bottom.png') center bottom / cover fixed no-repeat !important;
  color: #103859;
  font-family: Arial, Helvetica, sans-serif;
}
body.forms-clean .honours-field-guide { border-top: 1px solid #c8dceb; background: var(--forms-warm-paper, #f4f8fc); }
body.forms-clean :is(.forms-design-banner, .honours-banner, .fc-header) { border-top: 4px solid #164a75 !important; }
body.forms-clean :is(.forms-design-banner, .honours-banner) {
  --forms-banner-background: linear-gradient(90deg, rgba(8,40,69,.96), rgba(8,40,69,.75) 60%, rgba(8,40,69,.12)), url('../membership-sa-cats-header.webp') center / cover no-repeat;
  --forms-heading-color: #fff;
  --forms-banner-height: 132px;
}
body.forms-clean .fc-header { background: var(--forms-warm-paper, #eaf1f7); }
body.forms-clean .fc-form { border-color: #a8bed0; border-top-color: var(--forms-warm-accent, #a8bed0); }
body.forms-clean .fc-form:hover { border-color: #164a75; }
body.forms-clean .honours-field-guide h3 { margin-bottom: 6px; }
body.forms-clean .honours-field-guide p { margin-bottom: 8px; }
body.forms-clean .crm-outcome { max-width: 1040px; box-shadow: none; }
body.forms-clean .page:has(> .crm-outcome) { width: min(1040px, calc(100% - 32px)); max-width: none; margin-inline: auto; }
body.forms-clean :is(.crm-outcome .crm-note, .fc-aside .home-panel) { background: #fff; box-shadow: none; }
body.forms-clean .crm-outcome .crm-note { border: 0; padding: 0; line-height: 1.6; }
body.forms-clean .crm-outcome .crm-links a { display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 760px) {
  body.forms-clean { --forms-guide-padding: 14px; }
  body.forms-clean .crm-outcome { margin: 16px 10px; padding: 22px 18px; }
}

/* Owner-selected warm presentation for applications, guides and catalogue only. */
body.forms-warm {
  --forms-action-height: 44px;
  --forms-warm-paper: #fffaf0;
  --forms-note-fill: #fffaf0;
  --forms-note-padding: 18px 20px;
  --forms-warm-accent: #ad8036;
  --forms-warm-section: #f5f8fa;
  --forms-warm-rule: 2px solid #ad8036;
  --forms-surface-shadow: 0 8px 28px rgba(16,56,89,.12);
  --forms-choice-padding: 14px 16px;
  --forms-choice-size: 16px;
  --forms-choice-gap: 10px;
  --forms-selected-fill: #fff6df;
  --forms-selected-border: #164a75;
  --forms-selected-shadow: inset 0 0 0 1px #164a75;
  --forms-primary-fill: #164a75;
  --forms-primary-hover: #103859;
  --forms-copy-size: 16px;
  --forms-section-title-size: 22px;
  --forms-copy-leading: 1.65;
  --forms-shadow: none;
  font-family: Arial, Helvetica, sans-serif;
  color: #103859;
  background: #dce6ef url('../../../images/cat-shadows-blue-silver-bottom.png') center bottom / cover fixed no-repeat !important;
}
body.forms-warm form {
  --forms-warm-section: #164a75;
  --forms-section-ink: #fff;
  --forms-heading-ink: #fff;
  --forms-body-fill: #e8edf1;
}
body.forms-warm :is(.forms-design-banner, .honours-banner) {
  --forms-banner-background: linear-gradient(90deg, rgba(8,40,69,.94), rgba(8,40,69,.84) 62%, rgba(8,40,69,.04)), url('../membership-sa-cats-header.webp') center / cover no-repeat;
  --forms-heading-color: #fff;
  --forms-banner-height: 150px;
}
body.forms-warm :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #986800 !important; outline-offset: 3px; }
@media (max-width: 760px) {
  body.forms-warm :is(.forms-design-banner, .honours-banner) { --forms-banner-background: linear-gradient(90deg, rgba(8,40,69,.94), rgba(8,40,69,.72)), url('../membership-sa-cats-header.webp') right center / cover no-repeat; }
}
body.forms-warm :is(.crm-button, .btn, .forms-help-actions a) { min-height: 44px; }
body.fasa-shell.forms-warm .page .choice-row label { padding: var(--forms-choice-padding); font-size: var(--forms-choice-size); }
body.forms-warm :is(.crm-button, .btn):not(:disabled) { cursor: pointer; }
body.forms-warm :is(.crm-button, .btn):disabled { cursor: not-allowed; }
body.forms-warm :is(.crm-choice-card, .choice-row label, .honours-certificate-choices label):has(input:not(:disabled)):hover { border-color: #164a75; }
body.forms-warm :is(.crm-choice-card, .choice-row label, .honours-certificate-choices label):has(input:focus-visible) { outline: 3px solid #986800; outline-offset: 3px; }
body.forms-warm :is(.crm-choice-card, .choice-row label, .honours-certificate-choices label):has(input:checked) { border-color: var(--forms-selected-border); background: var(--forms-selected-fill); box-shadow: var(--forms-selected-shadow); }

/* One outcome page for complete, partial and unsuccessful submissions. */
.crm-outcome { max-width: 48rem; margin: 2rem auto; padding: clamp(1.5rem, 4vw, 3rem); background: #fff; border: 1px solid #a8c3da; border-top: 5px solid #164a75; box-shadow: var(--forms-shadow, 0 12px 32px #10385912); }
.crm-outcome-value:empty, .crm-outcome-steps:empty { display: none; }
.crm-outcome-steps { padding-left: 1.4rem; line-height: 1.7; }
.crm-outcome .crm-title { overflow-wrap: anywhere; }
.crm-outcome .crm-links { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Forms catalogue uses the public site template; application pages remain independent. */
.fc-main { width: min(1040px, calc(100% - 1.6rem)); margin: 0 auto; padding: 1.05rem 0 2rem; }
.fc-main a { text-underline-offset: .2em; }
.fc-main :is(a, summary):focus-visible, .fc-skip:focus-visible { outline: 3px solid #ad7a29; outline-offset: 4px; }
.fc-skip { position: absolute; top: -5rem; left: 1rem; z-index: 1400; padding: .75rem 1rem; color: #17354b; background: white; }
.fc-skip:focus { top: .5rem; }
.fc-main, .fc-section { scroll-margin-top: 90px; }
.fc-header { display: grid; grid-template-columns: 64px minmax(0,1fr); align-items: center; gap: 12px 20px; padding: 24px; margin-bottom: 24px; border: 1px solid #c8dceb; border-radius: 6px; color: #103859; background: #fff; }
.fc-brand { grid-row: 1 / 3; padding: .65rem; border-radius: 6px; background: #d9e6f2; }
.fc-brand img { display: block; width: 100%; height: auto; }
.fc-header-copy h1 { margin: .15rem 0 .35rem; color: #103859; font: 700 1.8rem/1.2 "Trebuchet MS", "Gill Sans", sans-serif; }
.fc-header-copy p { margin: 0; color: #466078; font-size: .95rem; line-height: 1.5; }
.fc-header-copy .fc-association { font-size: .9rem; font-weight: 600; }
.fc-page-nav { grid-column: 2; display: flex; flex-wrap: wrap; gap: 1rem; }
.fc-header .fc-page-nav a { display: inline-flex; align-items: center; min-height: 44px; color: #164a75; font-weight: 600; }
.fc-layout, .fc-directory { min-width: 0; }
.fc-section-heading { margin: 1.5rem 0 1rem; text-align: left; }
.fc-section-heading h2 { margin: 0 0 .25rem; font-size: 1.4rem; }
.fc-section-heading p { margin: 0; }
.fc-form-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 0; }
.fc-main .fc-form { display: flex; flex-direction: column; grid-column: auto; gap: 0; padding: 8px; margin: 0; min-width: 0; overflow: hidden; background: #fff; border: 1px solid #a8c3da; border-radius: 6px; border-top: 3px solid var(--forms-warm-accent, #a8c3da); box-shadow: var(--forms-shadow, none); }
.fc-form:last-child { grid-column: 1 / -1; }
.fc-form-image { display: block; width: 100%; height: 125px; object-fit: cover; object-position: left center; border-radius: 0; }
.fc-form:nth-child(-n+2) .fc-form-image { height: 150px; }
.fc-form-copy { min-width: 0; padding: 1rem 1.1rem .65rem; }
.fc-form-copy h3 { margin: 0 0 .35rem; font-size: 1.25rem; line-height: 1.3; }
.fc-form-copy p { margin: 0; font-size: 16px; line-height: 1.65; }
.fc-form-actions { display: flex; flex-wrap: wrap; gap: .35rem .9rem; align-items: center; margin-top: auto; padding: .25rem 1.1rem 1rem; }
.fc-main .fc-action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem .8rem; border-radius: 4px; font-size: .93rem; font-weight: 600; text-align: center; }
.fc-main .fc-action--primary { background: var(--forms-primary-fill, #173f60); color: white; text-decoration: none; }
.fc-main .fc-action--primary:hover { background: var(--forms-primary-hover, #245777); }
.fc-main .fc-action--guide { padding-inline: 0; }
.fc-aside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin-top: 1rem; }
.fc-main .fc-aside > * { padding: 1rem; margin: 0; }
.fc-aside h2 { margin: 0 0 .6rem; font-size: 1.2rem; line-height: 1.3; }
.fc-aside p { margin: .5rem 0; font-size: .93rem; }
.fc-note a, .fc-references a { display: inline-block; padding-block: .4rem; }
.fc-references a { display: block; }
.fc-pdfs { margin-top: 1.35rem; }
.fc-pdf-group { margin-top: .7rem; border: 1px solid #8eaecb; border-radius: 6px; background: #fff; }
.fc-pdf-group summary { padding: .85rem 1rem; cursor: pointer; font-size: 1rem; font-weight: 650; }
.fc-pdf-group summary span { float: right; margin-left: .5rem; font-size: .9rem; font-weight: 400; }
.fc-pdf-group[open] summary { border-bottom: 1px solid #8eaecb; }
.fc-pdf-list { list-style: none; padding: 0 1rem; margin: 0; }
.fc-pdf-list li { padding: .8rem 0; }
.fc-pdf-list li + li { border-top: 1px solid #8eaecb; }
.fc-pdf-list a { font-weight: 600; }
.fc-pdf-list span { display: block; margin-top: .35rem; font-size: .93rem; }
.fc-pdf-notes { padding: 1rem 1rem 0; font-size: .93rem; }
.fc-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #8eaecb; margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; }
@media (max-width: 680px) {
  .fc-form-list, .fc-aside { grid-template-columns: minmax(0, 1fr); }
  .fc-main .fc-form { grid-column: 1; }
  .fc-main .fc-form-image { height: 145px; }
  .fc-header { grid-template-columns: 80px minmax(0, 1fr); gap: .7rem; padding: .85rem; }
  .fc-header-copy h1 { font-size: 1.45rem; }
  .fc-header-copy .fc-association { font-size: .8rem; }
  .fc-page-nav { grid-column: 1 / -1; justify-content: center; }
  .fc-brand { grid-row: 1; padding: .4rem; }
}
@media (max-width: 380px) {
  .fc-pdf-group summary span { float: none; display: block; margin-left: 1rem; }
}
@media print {
  .forms-catalogue .fasa-nav, .fc-skip, .fc-page-nav, .fc-brand, .fc-form-image, .fc-footer { display: none; }
  .fc-main { width: 100%; padding: 0; }
  .fc-header { display: block; background: white; color: black; }
  .fc-header-copy :is(h1, p) { color: black; }
  .fc-form-list, .fc-aside { display: block; }
  .fc-main .fc-form { display: block; break-inside: avoid; margin-bottom: 1rem; }
}

/* Honours application and help: guidance alongside the existing continuous form. */
body.fasa-shell.honours-page {
  --honours-ink: #103859;
  --honours-blue: #145486;
  --honours-pale: #edf6fc;
  --honours-line: #c8dceb;
  --honours-paper: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--honours-ink);
}
.honours-page *, .honours-page *::before, .honours-page *::after { box-sizing: border-box; }
body.honours-page .main-content-wrap { width: min(var(--forms-content-width, 1120px), calc(100% - 32px)); max-width: none; margin: 24px auto 0; padding: 0 0 40px; }
.honours-shell { width: 100%; min-width: 0; }
.forms-skip { position: fixed; top: -100px; left: 16px; z-index: 1300; padding: 12px; background: white; }
.forms-skip:focus { top: 8px; }
body:is(.honours-page, .forms-aligned) .fasa-nav > .honours-nav-brand { display: flex; align-items: center; gap: 9px; position: absolute; left: 16px; top: 4px; min-height: 40px; padding: 0; color: white; font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.honours-nav-brand img { width: 38px; height: 38px; object-fit: contain; background: white; }
body:is(.honours-page, .forms-aligned) .fasa-nav .navbar-collapse { margin-left: 215px; width: calc(100% - 230px); }
body:is(.honours-page, .forms-aligned) .fasa-nav .navbar-collapse > ul { justify-content: center; gap: 0; }
body:is(.honours-page, .forms-aligned) .fasa-nav .navbar-collapse > ul > li > a { padding-inline: 12px; }
.honours-banner { min-height: var(--forms-banner-height, 132px); padding: 30px 32px; margin-bottom: 12px; border: 1px solid #749dbd; border-radius: 4px; color: var(--forms-heading-color, white); background: var(--forms-banner-background, var(--forms-decoration, linear-gradient(90deg, rgba(8,40,69,.96), rgba(8,40,69,.75) 60%, rgba(8,40,69,.12))), var(--forms-decoration, url('../membership-sa-cats-header.webp')) center / cover no-repeat); }
.honours-banner h1 { margin: 0 0 10px; max-width: 780px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.15; color: var(--forms-heading-color, white); }
.honours-banner p { max-width: 660px; margin: 0; font-size: 15px; line-height: 1.5; color: var(--forms-heading-color, white); }
.honours-surface { border: 1px solid var(--honours-line); border-radius: 6px; background: var(--honours-paper); box-shadow: var(--forms-surface-shadow, none); }
.honours-jumps { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 20px; padding: 16px 24px; border-bottom: 1px solid var(--honours-line); background: #f7fbfe; }
.honours-jumps a { display: inline-block; padding: 8px 0; color: #074c85; font-size: 13px; line-height: 1.4; text-underline-offset: 3px; }
.honours-jumps a[aria-current] { font-weight: 700; text-decoration-thickness: 2px; }
.honours-jumps .honours-help-link { margin-left: auto; font-weight: 700; }
body.honours-page #honours-form { display: block; padding: 18px 24px 24px; margin: 0; min-width: 0; font-size: 15px; }
.honours-required-note { font-size: 13px; margin: 0 0 10px; color: #466078; }
.honours-required { color: #9d2525; }
.honours-page #formStatus:empty { display: none; }
.honours-page #formStatus:not(:empty) { padding: 12px; border-left: 4px solid var(--honours-blue); background: var(--honours-pale); }
.honours-page #honours-form[data-fees-state="failed"] #formStatus { border-left-color: #9d2525; background: #fff3f1; }
body.fasa-shell.honours-page #honours-form > .crm-form-stage-note { float: none; position: static; width: auto; min-height: 0; margin: 0 0 20px; padding: 14px 18px; border: 1px solid #e6d8af !important; border-left: var(--forms-warm-rule, 5px solid #c5a54b) !important; border-radius: 3px; background: var(--forms-warm-paper, #fffbf1) !important; box-shadow: var(--forms-shadow, none); }
body.honours-page #honours-form .crm-form-stage-note > strong { font-size: 17px; }
body.honours-page #honours-form .crm-form-stage-note > strong::after { display: none; }
body.honours-page #honours-form .crm-form-stage-note :is(.crm-intro-copy,li) { font-size: var(--forms-copy-size, 14px); line-height: var(--forms-copy-leading, 1.5); margin: 0; }
.honours-page #honours-form .crm-form-stage-note ul { margin: 5px 0 0; padding-left: 20px; }
body.fasa-shell.honours-page #honours-form > .crm-card { margin: 0 0 18px; overflow: hidden; border: 1px solid var(--honours-line) !important; border-radius: 4px; box-shadow: var(--forms-shadow, none); background: white; scroll-margin-top: 80px; }
body.fasa-shell.honours-page #honours-form .crm-card__header { min-height: 0; padding: 14px 20px !important; border-left: var(--forms-warm-rule, 5px solid var(--honours-blue)); background: var(--forms-warm-section, var(--honours-pale)) !important; }
body.honours-page #honours-form .crm-card__header h2 { margin: 0; color: var(--forms-section-ink, var(--honours-ink)); font-size: var(--forms-section-title-size, 21px); line-height: 1.3; }
body.fasa-shell.honours-page #honours-form .crm-card__body { display: grid; grid-template-columns: var(--forms-guidance-columns, minmax(0,1fr) 220px); gap: 0; padding: 0 !important; background: var(--forms-body-fill, white) !important; }
.honours-fields { min-width: 0; padding: 22px; }
.honours-field-guide { min-width: 0; padding: var(--forms-guide-padding, 22px 20px); border-left: var(--forms-guide-border, 1px solid var(--honours-line)); background: var(--forms-warm-paper, #f2f8fd); font-size: var(--forms-copy-size, 14px); line-height: var(--forms-copy-leading, 1.6); }
.honours-field-guide h3 { font-size: 17px; line-height: 1.3; margin: 0 0 12px; }
.honours-field-guide p { margin: 0 0 16px; }
.honours-field-guide a { color: #074c85; text-underline-offset: 3px; }
body.honours-page #honours-form .crm-grid { display: grid; gap: 18px; }
body.honours-page #honours-form .crm-grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
body.honours-page #honours-form .crm-grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
body.honours-page #honours-selection .crm-grid--2 { grid-template-columns: minmax(0,1fr); }
body.honours-page #honours-form .crm-grid-span-2 { grid-column: 1 / -1; }
body.honours-page #honours-form .crm-field { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; margin: 0; padding: 0; }
body.honours-page #honours-form .crm-field > label { display: block; width: auto; max-width: none; margin: 0; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.5; }
body.honours-page #honours-form .crm-field > :is(input, select, textarea) { width: 100% !important; max-width: 100%; min-width: 0; min-height: var(--forms-control-height, 42px) !important; padding: 9px 11px; border: 1px solid #8da9bf; border-radius: 3px; background-color: white; color: var(--honours-ink); font-size: 16px; }
body.honours-page #honours-form input[type="hidden"] { display: none; }
body.honours-page #honours-form .crm-subheading { margin: 0; color: var(--honours-ink); font-size: 16px; text-transform: none; letter-spacing: normal; }
body.honours-page #honours-form .crm-field-group-heading { grid-column: 1 / -1; }
body.honours-page #honours-form .crm-gap-top { margin-top: 18px; }
body.honours-page #honours-form .crm-help { font-size: 14px; line-height: 1.5; }
.honours-certificate-options { min-width: 0; margin: 0; padding: 0; border: 0; }
.honours-certificate-options legend { margin-bottom: 9px; font-size: 14px; font-weight: 700; }
.honours-certificate-choices { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.honours-certificate-choices label { display: grid; grid-template-columns: 20px minmax(0,1fr); align-content: start; gap: 6px 9px; padding: var(--forms-choice-padding, 12px 10px); min-width: 0; border: 1px solid var(--honours-line); border-radius: 3px; color: var(--honours-ink); background: white; cursor: pointer; font-size: var(--forms-choice-size, 13px); line-height: 1.5; }
.honours-certificate-choices label:has(input:checked) { border-color: var(--forms-selected-border, var(--honours-blue)); background: var(--forms-selected-fill, var(--honours-pale)); box-shadow: var(--forms-selected-shadow, inset 0 0 0 1px var(--honours-blue)); }
.honours-certificate-choices input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--honours-blue); }
.honours-choice-fee { grid-column: 2; color: #466078; }
body.honours-page #honoursLevelRules { margin-top: 16px; padding: 12px; border: 0; border-left: 3px solid #6f9cbb; background: #f2f8fd; font-size: 14px; line-height: 1.5; box-shadow: var(--forms-shadow, none); }
body.fasa-shell.honours-page #honours-challenge-certificates .crm-card__body { grid-template-columns: minmax(0,1fr); }
#honours-challenge-certificates .honours-field-guide { border-left: 0; border-top: 1px solid var(--honours-line); padding: 14px 22px; }
#honours-challenge-certificates .honours-field-guide p { margin-bottom: 8px; }
.honours-page .table-wrap { max-width: 100%; overflow-x: auto; }
.honours-page .challenges { width: 100%; min-width: 700px; }
.honours-page .challenges th { font-size: 13px; }
.honours-page .challenges input { min-height: 40px; font-size: 14px; }
body.honours-page #honours-form [hidden] { display: none !important; }
body.honours-page #honours-form .crm-inline-choices { font-size: 15px; line-height: 1.6; }
body.honours-page #honours-form .crm-inline-choices label { align-items: flex-start; }
body.honours-page #honours-form .crm-payment-summary { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; margin-bottom: 20px; }
body.honours-page #honours-form .crm-payment-steps, body.honours-page #honours-fees-payment .crm-help { display: block !important; }
body.honours-page #honours-form .crm-declaration-actions { margin: 16px 0 0; }
.honours-page .crm-actions__buttons { flex-wrap: wrap; gap: 16px; }
.honours-page .crm-actions__secondary { flex-wrap: wrap; }
.honours-help-content { padding: 24px; }
.honours-help-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 18px; margin-bottom: 18px; border: 1px solid #e6d8af; border-radius: 3px; background: var(--forms-warm-paper, #fffbf1); }
.honours-help-intro p { margin: 0; max-width: 68ch; font-size: var(--forms-copy-size, 14px); line-height: var(--forms-copy-leading, 1.6); }
.honours-help-intro .crm-button { flex-shrink: 0; }
:is(.honours-question, .forms-guide-question) { margin: 0 0 16px; border: 1px solid var(--honours-line); border-radius: 4px; background: white; scroll-margin-top: 80px; overflow: hidden; }
:is(.honours-question, .forms-guide-question) summary { padding: 16px 20px; border-left: var(--forms-warm-rule, 5px solid var(--honours-blue)); background: var(--forms-warm-section, var(--honours-pale)); color: var(--honours-ink); cursor: pointer; font-size: 19px; font-weight: 700; line-height: 1.4; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
:is(.honours-question, .forms-guide-question) summary::-webkit-details-marker { display: none; }
:is(.honours-question, .forms-guide-question) summary::after { content: '+'; flex: 0 0 auto; font-size: 23px; font-weight: 400; }
:is(.honours-question, .forms-guide-question)[open] summary::after { content: '\2212'; }
:is(.honours-question, .forms-guide-question) summary:hover { background: #dfeef9; }
.honours-answer { padding: 18px 24px; max-width: 86ch; font-size: var(--forms-copy-size, 15px); line-height: 1.65; }
.honours-answer p { margin: 0 0 12px; }
.honours-answer p:last-child { margin-bottom: 0; }
.honours-answer ul { margin: 0 0 14px; padding-left: 22px; }
.honours-answer blockquote { margin: 12px 0; padding-left: 16px; border-left: 3px solid var(--honours-line); }
.honours-help-references { margin-top: 24px; padding: 20px 24px; background: var(--honours-pale); border: 1px solid var(--honours-line); border-radius: 4px; font-size: 15px; line-height: 1.6; }
.honours-help-references h2 { font-size: 20px; margin: 0 0 6px; }
.honours-help-references p { margin: 0 0 12px; }
.honours-reference-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.honours-reference-links a, .honours-answer a { color: #074c85; text-underline-offset: 3px; }
.honours-help-references .honours-guide-note { margin: 16px 0 0; font-size: 13px; }
.honours-page :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid #246c9d; outline-offset: 3px; }
:is(.honours-question, .forms-guide-question) summary:focus-visible { outline-offset: -4px; }
@media (max-width: 1100px) {
  body:is(.honours-page, .forms-aligned) .fasa-nav > .honours-nav-brand { display: none; }
  body:is(.honours-page, .forms-aligned) .fasa-nav .navbar-collapse { margin-inline: auto; width: var(--fasa-nav-width); }
}
@media (max-width: 760px) {
  body.honours-page .main-content-wrap { width: calc(100% - 20px); margin-top: 12px; }
  .honours-banner { padding: 22px 18px; min-height: 0; }
  .honours-banner h1 { font-size: 26px; }
  .honours-banner p { font-size: 14px; }
  .honours-jumps { padding: 10px 14px; gap: 0 16px; }
  .honours-jumps a { font-size: 13px; padding-block: 10px; }
  .honours-jumps .honours-help-link { margin-left: 0; }
  body.honours-page #honours-form, .honours-help-content { padding: 14px; }
  body.fasa-shell.honours-page #honours-form .crm-card__body { grid-template-columns: minmax(0,1fr); }
  body.fasa-shell.honours-page #honours-form .crm-card__header { padding: 12px 14px !important; }
  body.honours-page #honours-form .crm-card__header h2 { font-size: 19px; }
  .honours-fields { padding: 16px 14px; }
  .honours-field-guide { border-left: 0; border-top: 1px solid var(--honours-line); padding: 14px; }
  .honours-field-guide h3 { margin-bottom: 6px; font-size: 16px; }
  .honours-field-guide p { margin-bottom: 8px; }
  body.honours-page #honours-form .crm-grid--2, body.honours-page #honours-form .crm-grid--3 { grid-template-columns: minmax(0,1fr) !important; }
  .honours-certificate-choices { grid-template-columns: minmax(0,1fr); }
  .honours-certificate-choices label { grid-template-columns: 20px minmax(0,1fr) auto; font-size: 14px; }
  .honours-choice-fee { grid-column: 3; }
  .honours-help-intro { align-items: stretch; flex-direction: column; gap: 12px; }
  .honours-help-intro .crm-button { align-self: flex-start; }
  :is(.honours-question, .forms-guide-question) summary { padding: 13px 14px; font-size: 17px; }
  .honours-answer { padding: 16px; }
  .honours-help-references { padding: 18px; }
}

/* Membership application: site-template section guide and readable form. */
body.fasa-shell.membership-page { font-family: Arial, Helvetica, sans-serif; color: #103859; }
.membership-skip { position: fixed; top: -5rem; left: 1rem; z-index: 1000; padding: .75rem; background: white; }
.membership-skip:focus { top: .5rem; }
body.membership-page .main-content-wrap { width: 100%; max-width: none; padding: 0 16px 40px !important; }
body.membership-page .main-content-wrap > .crm-body { width: 100%; max-width: 960px; margin: 20px auto 0 !important; padding: 0; }
body.fasa-shell.membership-page .crm-shell--membership-wide { width: 100%; max-width: none; margin: 0; padding: 0; overflow: visible; border: 0 !important; background: transparent !important; box-shadow: var(--forms-shadow, none); }
body.membership-page #membership-shell::before { display: none; }
.membership-brand { display: grid; grid-template-columns: 124px minmax(0,1fr); gap: 24px; align-items: center; padding: 18px 24px; margin-bottom: 12px; border: 1px solid #749dbd; border-radius: 4px; color: white; background: #123e64 var(--forms-decoration, url('../membership-sa-cats-header.webp')) center / cover no-repeat; }
.membership-brand > a { display: block; padding: 8px; border-radius: 4px; background: #dbe9f3; }
.membership-brand img { display: block; width: 100%; height: auto; }
.membership-brand p { margin: 0 0 8px; font-size: 14px; line-height: 1.4; color: white; }
.membership-brand .membership-association { font-size: 27px; line-height: 1.15; font-weight: 700; }
.membership-brand a { color: white; }
.membership-brand-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 14px; }
.membership-layout { display: grid; grid-template-columns: 190px minmax(0,1fr); border: 1px solid #a8c3da; border-radius: 4px; background: #fff; }
.membership-guide { padding: 24px 12px; border-right: 1px solid #d4e2ef; background: #edf5fb; font-size: 14px; }
.membership-guide nav { position: sticky; top: 64px; display: grid; gap: 2px; }
.membership-guide nav a { padding: 10px 12px; text-decoration: none; color: #103859; font-weight: 700; border-radius: 2px; }
.membership-guide nav a[aria-current], .membership-guide nav a:hover { background: #bedff6; }
.membership-guide-help { display: grid; gap: 14px; margin: 24px 6px 0; padding-top: 24px; border-top: 1px solid #cbdde9; }
.membership-guide-help a { color: #074c85; line-height: 1.4; }
body.fasa-shell.membership-page #membership-form { display: block; min-width: 0; padding: 20px 24px !important; margin: 0; background: #fff; font-size: 14px; }
.membership-intro h1 { margin: 0 0 6px; color: #0b3056; font-size: 29px; line-height: 1.15; letter-spacing: -.6px; }
.membership-intro p { margin: 0 0 12px; font-size: 15px; line-height: 1.4; }
body.fasa-shell.membership-page #membership-form > .crm-form-stage-note { float: none; position: static; width: auto; min-height: 0; margin: 0 0 14px; padding: 10px 14px; border: 1px solid #ead8a8 !important; border-radius: 3px; background: var(--forms-warm-paper, #fffbef) !important; box-shadow: var(--forms-shadow, none); }
body.membership-page #membership-form .crm-form-stage-note > strong { font-size: 16px; }
body.membership-page #membership-form .crm-form-stage-note > strong::after { display: none; }
body.membership-page #membership-form .crm-form-stage-note :is(.crm-intro-copy,li) { font-size: var(--forms-copy-size, 13px); line-height: var(--forms-copy-leading, 1.4); margin: 0; }
body.membership-page #membership-form .crm-form-stage-note ul { margin: 3px 0 0; padding-left: 18px; }
body.fasa-shell.membership-page #membership-form > .crm-card { margin: 0 0 12px; border: 1px solid #cfdfed !important; border-radius: 3px; background: white; box-shadow: var(--forms-shadow, none); scroll-margin-top: 65px; }
body.fasa-shell.membership-page #membership-form .crm-card__header { min-height: 0; padding: 13px 16px !important; background: var(--forms-warm-section, var(--forms-section-fill, #164a75)) !important; }
body.membership-page #membership-form .crm-card__header h2 { margin: 0; font-size: var(--forms-section-title-size, 18px); line-height: 1.3; }
body.fasa-shell.membership-page #membership-form .crm-card__body { padding: 16px !important; background: var(--forms-body-fill, white) !important; }
body.membership-page #membership-form .crm-choice-grid { gap: var(--forms-choice-gap, 4px) !important; }
body.membership-page #membership-type .crm-choice-grid { grid-template-columns: minmax(0,1fr); }
body.membership-page #membership-form .crm-choice-card { display: flex; align-items: center; gap: 12px; padding: var(--forms-choice-padding, 6px 10px) !important; min-height: 34px; border: 1px solid #c5d7e7; background: #fff; font-size: var(--forms-choice-size, 13px); line-height: 1.3; }
body.membership-page #membership-form .crm-choice-card:has(input:checked) { border-color: var(--forms-selected-border, #3476a4); background: var(--forms-selected-fill, #edf6fd); box-shadow: var(--forms-selected-shadow, none); }
.membership-page .crm-choice-card small { display: block; margin-top: 3px; font-size: 12px; font-weight: normal; }
.membership-fee { margin-left: auto; white-space: nowrap; font-weight: 700; }
body.membership-page #membership-form .crm-choice-card input { flex: 0 0 auto; width: 18px; height: 18px; }
body.membership-page #membership-form .crm-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; }
body.membership-page #membership-form .crm-field > :is(label,legend) { width: auto; max-width: none; text-align: left; font-size: 14px; line-height: 1.4; }
body.membership-page #membership-form .crm-field > :is(input,select,textarea) { width: 100% !important; max-width: none !important; min-width: 0; min-height: 36px; font-size: 15px; padding: 7px 9px; }
body.membership-page #membership-form .crm-field input[type="hidden"] { display: none; }
body.membership-page #membership-form .crm-grid { gap: 12px; }
body.membership-page #membership-form .crm-grid h3 { margin: 8px 0 0; font-size: 16px; }
body.membership-page #membership-form .crm-address-inline-controls { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; }
body.membership-page #membership-form .crm-help { font-size: 13px; line-height: 1.4; margin: 0 0 4px; }
body.membership-page :is(#membershipNumberField,#breederFields)[hidden] { display: none !important; }
body.membership-page #membership-breeding-rules .crm-card__body { font-size: var(--forms-copy-size, 15px); line-height: var(--forms-copy-leading, 1.6); }
body.membership-page #membership-breeding-rules h3 { font-size: 17px; margin: 20px 0 6px; }
body.membership-page #membership-breeding-rules li { margin-bottom: 10px; }
body.membership-page #membership-declaration .crm-inline-choices { display: grid; gap: 16px; font-size: 15px; line-height: 1.5; }
body.membership-page #membership-declaration .crm-inline-choices label { align-items: start; }
body.membership-page #membership-form .crm-declaration-actions { margin: 16px 0 0; }
body.membership-page :is(a,button,input,select,textarea):focus-visible { outline: 3px solid #2671a5; outline-offset: 3px; }
@media (max-width: 760px) {
  body.membership-page .main-content-wrap { padding: 0 10px 24px !important; }
  body.membership-page .main-content-wrap > .crm-body { margin-top: 12px; }
  .membership-brand { grid-template-columns: 74px minmax(0,1fr); gap: 12px; padding: 14px; }
  .membership-brand .membership-association { font-size: 20px; }
  .membership-brand p { font-size: 12px; }
  .membership-brand-links { font-size: 12px; gap: 10px; }
  .membership-layout { grid-template-columns: minmax(0,1fr); }
  .membership-guide { border-right: 0; border-bottom: 1px solid #cfdfed; padding: 10px; }
  .membership-guide nav { position: static; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 4px; }
  .membership-guide nav a { padding: 9px 6px; font-size: 12px; }
  .membership-guide-help { display: flex; flex-wrap: wrap; gap: 10px 14px; margin: 10px 0 0; padding-top: 10px; font-size: 12px; }
  .membership-guide-help strong { width: 100%; }
  body.fasa-shell.membership-page #membership-form { padding: 18px 12px !important; }
  .membership-intro h1 { font-size: 25px; }
  body.membership-page #membership-form .crm-choice-grid--2 { grid-template-columns: minmax(0,1fr); }
  body.membership-page #membership-form .crm-address-inline-controls { grid-template-columns: 1fr 1fr; }
  body.membership-page #membership-form .crm-address-inline-controls > :first-child { grid-column: 1 / -1; }
  body.membership-page #membership-form .crm-actions__buttons { flex-wrap: wrap; gap: 12px; }
}

/* Selected Honours design, shared by the other applications and guides. */
body.fasa-shell.forms-aligned { --forms-section-fill: #edf6fc; --forms-heading-ink: #103859; --honours-ink: #103859; --honours-blue: #145486; --honours-pale: #edf6fc; --honours-line: #c8dceb; color: #103859; font-family: Arial, Helvetica, sans-serif; }
body.forms-aligned .main-content-wrap { width: min(var(--forms-content-width, 1120px), calc(100% - 32px)); max-width: none; margin: 24px auto 0; padding: 0 0 40px !important; }
body.forms-aligned .main-content-wrap > :is(.crm-body, .page) { width: 100%; max-width: none; margin: 0 !important; padding: 0 !important; }
body.fasa-shell.forms-aligned :is(.crm-shell, .page .shell) { width: 100%; max-width: none; margin: 0; padding: 0; border: 1px solid #c8dceb !important; border-radius: 6px; background: #fff !important; box-shadow: var(--forms-surface-shadow, var(--forms-shadow, none)); }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell)::before { display: none !important; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner { display: block; min-height: var(--forms-banner-height, 132px); margin: 0; padding: 28px 32px !important; border: 0; border-top: var(--forms-banner-border, 0); border-radius: 4px 4px 0 0; text-align: left; color: var(--forms-heading-color, #fff); background: var(--forms-banner-background, var(--forms-decoration, linear-gradient(90deg, rgba(8,40,69,.96), rgba(8,40,69,.75) 60%, rgba(8,40,69,.12))), var(--forms-decoration, url('../membership-sa-cats-header.webp')) center / cover no-repeat) !important; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner::before, body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner::after { display: none; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner :is(.crm-header__top, .header-top) { display: block; text-align: left; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner h1 { max-width: 820px; margin: 0 0 10px !important; color: var(--forms-heading-color, #fff); font-size: clamp(26px, 2.6vw, 34px) !important; line-height: 1.15; text-align: left; text-wrap: balance; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner :is(p, .crm-subtitle, .subtitle) { display: block !important; max-width: 720px; margin: 0; color: var(--forms-heading-color, #fff); font-size: var(--forms-copy-size, 15px) !important; line-height: 1.5; text-align: left; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner :is(.crm-header__links, .links) { display: flex; justify-content: flex-start; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner :is(.crm-header__links, .links) a { min-height: var(--forms-control-height, 36px); padding: 6px 0; border: 0; background: none; color: var(--forms-heading-color, #fff); text-decoration: underline; text-underline-offset: 4px; box-shadow: var(--forms-shadow, none); }
body.fasa-shell.forms-aligned :is(.crm-card, .page .shell .card) { overflow: hidden; margin-bottom: 18px; border: 1px solid #c8dceb !important; border-radius: 4px; background: #fff; box-shadow: var(--forms-shadow, none); }
body.fasa-shell.forms-aligned :is(.crm-card__header, .page .shell .card-head) { min-height: 0; padding: 14px 20px !important; border-left: var(--forms-warm-rule, 5px solid #145486); background: var(--forms-warm-section, #edf6fc) !important; }
body.fasa-shell.forms-aligned :is(.crm-card__header h2, .page .shell .card-head h2) { margin: 0; color: var(--forms-section-ink, #103859); font-size: var(--forms-section-title-size, 21px); line-height: 1.3; }
body.fasa-shell.forms-aligned :is(.crm-card__toggle, .card-toggle) { color: var(--forms-section-ink, #103859); border-color: #8da9bf; }
body.fasa-shell.forms-aligned :is(.crm-card__body, .page .shell .card-body) { background: var(--forms-body-fill, #fff) !important; font-size: var(--forms-copy-size, inherit); line-height: var(--forms-copy-leading, inherit); }
body.forms-aligned .forms-help-grid { grid-template-columns: minmax(0,1fr); gap: 0; }
.forms-guide-question summary h2 { display: inline; margin: 0; font-size: inherit; line-height: inherit; }
.forms-guide-question .honours-answer { font-size: 16px; line-height: 1.65; }
.forms-guide-question .honours-answer p { max-width: 78ch; }
body.forms-aligned .membership-layout { display: block; border: 0; }
body.forms-aligned .membership-guide { padding: 0; border: 0; }
body.forms-aligned .membership-guide nav { position: static; display: flex; gap: 4px 20px; padding: 14px 20px; }
body.forms-aligned .membership-guide nav a { padding: 8px 0; border-radius: 0; text-decoration: underline; }
body.forms-aligned .membership-guide-help { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 12px 20px; border-top: 0; border-bottom: 1px solid #c8dceb; background: #fff; }
body.forms-aligned .membership-guide-help strong { width: 100%; }
body.forms-aligned footer.membership-brand { margin: 0; border: 0; border-top: 1px solid #c8dceb; border-radius: 0; background: #edf6fc; color: #103859; }
body.forms-aligned footer.membership-brand :is(p, a) { color: #103859; }
body.forms-aligned footer.membership-brand .membership-association { font-size: 20px; }
@media (max-width: 760px) {
  body.forms-aligned .main-content-wrap { width: calc(100% - 20px); margin-top: 12px; }
  body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner { padding: 22px 18px !important; }
  body.fasa-shell.forms-aligned .main-content-wrap :is(.crm-shell, .shell) .forms-design-banner h1 { font-size: 26px !important; }
  body.fasa-shell.forms-aligned :is(.crm-card__header, .page .shell .card-head) { padding: 12px 14px !important; }
  body.fasa-shell.forms-aligned :is(.crm-card__header h2, .page .shell .card-head h2) { font-size: 19px; }
}

/* Shared entry rhythm for the five public applications. Keep hidden state authoritative. */
body.fasa-shell.forms-refresh .main-content-wrap :is(#membership-form, #honours-form, #mainForm) :is(.crm-field, .field):not([hidden]):not(fieldset) {
  display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0;
}
body.fasa-shell.forms-refresh .main-content-wrap :is(#membership-form, #honours-form, #mainForm) :is(.crm-field, .field) > label {
  display: block; width: auto; max-width: none; margin: 0; text-align: left; font-size: 14px; font-weight: 700; line-height: 1.5;
}
body.fasa-shell.forms-refresh .main-content-wrap :is(#membership-form, #honours-form, #mainForm) :is(.crm-field, .field) > :is(input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]), select, textarea) {
  width: 100% !important; max-width: 100%; min-width: 0; min-height: var(--forms-control-height, 42px) !important; padding: 9px 11px; font-family: inherit; font-size: 16px; line-height: 1.4; border-radius: 3px;
}
body.fasa-shell.forms-refresh .main-content-wrap :is(#membership-form, #honours-form, #mainForm) :is(.crm-help, .field-help) { font-size: 14px; line-height: 1.5; }
body.fasa-shell.forms-aligned .main-content-wrap :is(#membership-form, #mainForm) :is(.crm-card__body, .card-body) { padding: 22px !important; }
body.fasa-shell.forms-refresh .main-content-wrap :is(#membership-form, #honours-form, #mainForm) :is(.crm-grid, .grid) { gap: 18px; }
@media (max-width: 760px) {
  body.fasa-shell.forms-aligned .main-content-wrap :is(#membership-form, #mainForm) :is(.crm-card__body, .card-body) { padding: 16px 14px !important; }
}

/* Forms refresh: shared opt-in presentation and in-page navigation. */
.forms-refresh {
  --forms-section-fill: #164a75;
  --forms-paper: #fff;
  --forms-note-fill: #f4f8fc;
  --forms-ribbon-height: 0;
  --forms-focus: #986800;
}
.forms-refresh :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--forms-focus);
  outline-offset: 3px;
}
.forms-refresh :is(section[id], h2[id], main[id], details[id]) { scroll-margin-top: 85px; }
.forms-section-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 14px 20px;
  border-bottom: 1px solid #c8dceb;
  background: #f4f8fc;
}
.forms-section-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #164a75;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.forms-section-nav a:hover { color: #082845; text-decoration-thickness: 2px; }
.forms-guide-refresh .forms-section-nav { margin-bottom: 20px; }
body.fasa-shell .forms-guide-refresh .forms-help-shell { padding-bottom: 12px; }
body.fasa-shell .forms-guide-refresh .forms-help-panel,
body.fasa-shell .forms-guide-refresh .forms-help-grid { margin: 20px; }
body.fasa-shell .forms-guide-refresh .forms-help-panel,
body.fasa-shell .forms-guide-refresh .forms-help-card { padding: 24px; background: #fff; }
body.fasa-shell .forms-guide-refresh .forms-help-panel--lead { background: var(--forms-warm-paper, #f4f8fc); border-left-color: var(--forms-warm-accent, #164a75); }
body.fasa-shell .forms-guide-refresh :is(.forms-help-card, .forms-help-panel) h2 { font-size: 20px; line-height: 1.3; }
body.fasa-shell .forms-guide-refresh :is(.forms-help-card, .forms-help-panel) :is(p, li) { font-size: 16px; line-height: 1.65; }
body.fasa-shell .forms-guide-refresh .forms-help-card { display: flex; flex-direction: column; }
body.fasa-shell .forms-guide-refresh .forms-help-card p:last-child { margin-bottom: 0; }
.forms-topic-link { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 44px; margin-top: auto; color: #164a75; font-size: 15px; font-weight: 700; text-underline-offset: 4px; }
.honours-answer .forms-topic-link { margin-top: 8px; }
.forms-topic-link:hover { text-decoration-thickness: 2px; }
.forms-refresh .prefix-application-page #prefix-breeding-rules .card-body { font-size: 16px; line-height: 1.65; }
.forms-refresh .prefix-application-page #prefix-breeding-rules li { margin-bottom: 10px; }
.forms-outcome-brand { display: block; width: 86px; margin: 0 auto 24px; }
.forms-outcome-brand img { display: block; width: 100%; height: auto; }
@media (max-width: 760px) {
  .forms-section-nav { gap: 2px 16px; padding: 10px 14px; }
  body.fasa-shell .forms-guide-refresh .forms-help-panel,
  body.fasa-shell .forms-guide-refresh .forms-help-grid { margin: 12px; }
  body.fasa-shell .forms-guide-refresh .forms-help-panel,
  body.fasa-shell .forms-guide-refresh .forms-help-card { padding: 18px; }
}
@media print { .forms-section-nav { display: none; } }
