/* -----------------------------------------------------------
   FHIR Interoperability Solution � Sandbox  |  v6.0 PRODUCTION
   Typography: Roboto (from Figma Dev Mode)
   ----------------------------------------------------------- */
:root {
  /* Figma typography tokens */
  --ff: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  --fs-hero: 32px;
  /* heading-05 */
  --fs-page-title: 32px;
  /* heading-05 */
  --fs-heading-02: 16px;
  /* section headings bold */
  --fs-heading-compact: 14px;
  /* sub-headings semi */
  --fs-body: 14px;
  /* body-compact-02 */
  --fs-body-sm: 14px;
  /* body-compact-01 / table text */
  --fs-nav: 14px;
  /* sidebar nav labels */
  --fs-small: 12px;
  --lh-hero: 40px;
  --lh-heading: 24px;
  /* 150% of 16 */
  --lh-body: 22px;
  /* 137.5% of 16 */
  --lh-sm: 18px;
  /* 128.5% of 14 */
  --fw-regular: 400;
  --fw-semi: 600;
  --fw-bold: 700;

  /* Colors */
  --clr-primary: #2E7D32;
  --clr-primary-dark: #1B5E20;
  --clr-accent: #43A047;
  --clr-accent-bg: #E8F5E9;
  --clr-white: #fff;
  --clr-g50: #FAFAFA;
  --clr-g100: #F5F5F5;
  --clr-g200: #EEE;
  --clr-g300: #E0E0E0;
  --clr-g400: #BDBDBD;
  --clr-g500: #9E9E9E;
  --clr-g600: #000000;
  --clr-g700: #000000;
  --clr-g800: #000000;
  --clr-g900: #212121;
  --clr-black: #000000;
  --clr-error: #D32F2F;
  --clr-link: #0D6EFD;
  --clr-link-hover: #0A58CA;

  /* Layout */
  --sidebar-w: 256px;
  --header-h: 56px;
  --max-w: 1140px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .12);
  --ease: .25s ease;
}

/* --- RESET --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--ff);
  font-weight: var(--fw-regular);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--clr-black);
  background: var(--clr-white);
  min-height: 100vh;
}

a {
  color: var(--clr-link);
  text-decoration: none;
  transition: color var(--ease);
}

a:hover {
  color: var(--clr-link-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-semi);
  line-height: var(--lh-heading);
  color: var(--clr-black);
}

ul,
ol {
  list-style: none;
}

button,
textarea,
input,
select {
  font-family: var(--ff);
}

/* --- UTILITIES --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.text-small {
  font-size: var(--fs-body-sm);
  line-height: var(--lh-sm);
}

.text-muted {
  color: var(--clr-g600);
}

.text-error {
  color: var(--clr-error);
}

.font-semi {
  font-weight: var(--fw-semi);
}

.mb-sm {
  margin-bottom: 8px;
}

.mb-md {
  margin-bottom: 16px;
}

.mb-lg {
  margin-bottom: 15px;
}

.mb-xl {
  margin-bottom: 32px;
}

.mt-sm {
  margin-top: 8px;
}

.mt-md {
  margin-top: 16px;
}

.mt-lg {
  margin-top: 6px;
}

/* --- APP SHELL --- */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* --- SIDEBAR --- */
.sidebar {
  width: var(--sidebar-w);
  background: var(--clr-white);
  border-right: 1px solid var(--clr-g200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  bottom: 0;
  z-index: 200;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
  overflow-x: hidden;
  transition: width var(--ease), transform var(--ease);
}

.sidebar.collapsed {
  width: 0;
  overflow: hidden;
  border-right: none;
}

.sidebar__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--clr-g200);
  min-height: var(--header-h);
  flex-shrink: 0;
  white-space: nowrap;
}

.sidebar__header--in-main {
  padding: 0;
  border-bottom: none;
  min-height: auto;
  margin-right: 12px;
  gap: 8px;
}

.sidebar__logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 148px;
  min-height: 38px;
}

.sidebar__logo {
  height: 25px;
  width: 125px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.sidebar__logo-link--fallback::before {
  content: 'Acentra';
  font-size: 23px;
  line-height: 1;
  font-weight: 700;
  color: #2E7D32;
  font-family: Arial, sans-serif;
}

.sidebar__logo-link--fallback::after {
  content: 'HEALTH';
  font-size: 9px;
  letter-spacing: 2px;
  color: #6B7280;
  font-weight: 600;
  margin-left: 4px;
  margin-top: 15px;
  font-family: Arial, sans-serif;
}

.sidebar__title {
  font-size: var(--fs-small);
  font-weight: var(--fw-semi);
  color: var(--clr-g700);
  line-height: 1.3;
  flex: 1;
}

.sidebar__close {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--clr-g500);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius);
  line-height: 1;
  flex-shrink: 0;
}

.sidebar__close:hover {
  background: var(--clr-g100);
  color: var(--clr-g800);
}

@media (min-width: 769px) {
  .sidebar__close {
    display: none;
  }
}

@media (max-width: 768px) {
  .sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.sidebar__nav {
  flex: 1;
  padding: 6px 0;
}

.nav-list {
  padding: 0;
  margin: 0;
}

.nav-item {
  margin: 1px 0;
}

.nav-item__link {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 3px 8px;
  height: 38px;
  color: var(--clr-g700);
  font-size: var(--fs-nav);
  font-weight: var(--fw-regular);
  text-decoration: none;
  transition: background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  line-height: var(--lh-sm);
  border-left: 3px solid transparent;
  white-space: nowrap;
}

.nav-item__link:hover {
  background: var(--clr-g50);
  color: var(--clr-g900);
  text-decoration: none;
}

.nav-item--active>.nav-item__link {
  border-left-color: var(--clr-primary);
  color: var(--clr-primary-dark);
  font-weight: var(--fw-semi);
  background: #E5E7EB;
}

/* Nav icons � use Figma SVG exports */
.nav-item__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nav-item__icon img {
  width: 16px;
  height: 16px;
}

.nav-item--active .nav-item__icon {
  opacity: 1;
}

.nav-item__text {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-item__arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform var(--ease);
}

.nav-item__arrow img {
  width: 16px;
  height: 16px;
}

.nav-item--expanded>.nav-item__link .nav-item__arrow {
  transform: rotate(180deg);
}

.nav-sub {
  padding: 0 0 0 42px;
  margin: 0;
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.nav-item--expanded>.nav-sub {
  max-height: 400px;
}

.nav-sub__item {
  margin: 0;
}

.nav-sub__link {
  display: block;
  padding: 6px 14px;
  font-size: var(--fs-nav);
  color: var(--clr-g600);
  text-decoration: none;
  transition: all var(--ease);
  border-left: 2px solid transparent;
}

.nav-sub__link:hover {
  color: var(--clr-primary);
  text-decoration: none;
}

.nav-sub__link--active {
  color: var(--clr-primary-dark);
  font-weight: var(--fw-semi);
  border-left-color: var(--clr-primary);
}

/* --- MAIN CONTENT --- */
.main-content {
  flex: 1;
  margin-left: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-header {
  background: var(--clr-white);
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--clr-g200);
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

.main-header__brand {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-g800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: 25px;
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: var(--clr-g700);
  cursor: pointer;
  padding: 6px;
  margin-right: 12px;
  border-radius: var(--radius);
  line-height: 1;
  display: flex;
  align-items: center;
}

.menu-toggle:hover {
  background: var(--clr-g100);
}

.main-body {
  flex: 1;
  background: var(--clr-white);
}

@media (min-width: 769px) {
  .main-body {
    padding-left: var(--sidebar-w);
    transition: padding-left var(--ease);
  }

  .footer {
    margin-left: var(--sidebar-w);
    transition: margin-left var(--ease);
  }

  .sidebar.collapsed~.main-content .main-body,
  .main-content.expanded .main-body {
    padding-left: 0;
  }

  .sidebar.collapsed~.main-content .footer,
  .main-content.expanded .footer {
    margin-left: 0;
  }
}

/* --- HERO --- */
.hero {
  position: relative;
  padding: 52px 32px;
  text-align: center;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d1b2a;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 40, .85) 0%, rgba(15, 32, 39, .7) 50%, rgba(22, 48, 40, .8) 100%);
}

.hero__content {
  position: relative;
  z-index: 10;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: var(--fw-regular);
  line-height: var(--lh-hero);
  color: var(--clr-white);
  text-shadow: 0 19px 17px rgba(0, 0, 0, .58);
}

/* Page hero (sub-pages) */
.page-hero {
  position: relative;
  padding: 36px 32px;
  overflow: hidden;
  background: #0d1b2a;
  min-height: 100px;
  display: flex;
  align-items: flex-end;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .3;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 22, 40, .85) 0%, rgba(22, 48, 40, .75) 100%);
}

.page-hero__title {
  position: relative;
  z-index: 10;
  font-size: var(--fs-page-title);
  font-weight: var(--fw-regular);
  line-height: var(--lh-hero);
  color: var(--clr-white);
  text-shadow: 0 19px 17px rgba(0, 0, 0, .58);
}

/* Page title (non-hero) */
.page-title {
  padding: 28px 32px 20px;
  background: var(--clr-white);
  border-bottom: 3px solid var(--clr-primary);
}

.page-title__heading {
  font-size: var(--fs-page-title);
  font-weight: var(--fw-regular);
  line-height: var(--lh-hero);
  color: var(--clr-black);
}

.page-title__desc {
  margin-top: 12px;
  font-size: var(--fs-body);
  color: var(--clr-g700);
  line-height: var(--lh-body);
  max-width: 780px;
}

/* Long-form copy */
.page-title__desc,
.section__inner :where(p, li):not(.text-center),
.chk-row label,
.info-box,
.modal-body p {
  line-height: var(--lh-body);
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: anywhere;
}

/* ═══ SECTIONS ═══ */
.section--white {
  background: var(--clr-white);
}

.section--white>.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 25px;
}

.section--gray {
  background: var(--clr-white);
}

.section--gray>.section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 25px;
}

/* Content duo */
.content-duo {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.content-duo--reverse {
  grid-template-columns: 260px 1fr;
}

.content-duo--reverse .content-duo__img {
  max-width: 260px;
}

.content-duo__heading {
  font-size: var(--fs-heading-02);
  font-weight: var(--fw-bold);
  color: var(--clr-black);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--clr-accent);
  line-height: var(--lh-heading);
}

.content-duo__text {
  font-size: var(--fs-body);
  color: var(--clr-black);
  line-height: var(--lh-body);
  text-align: justify;
  text-justify: inter-word;
  overflow-wrap: anywhere;
}

.content-duo__text p+p {
  margin-top: 14px;
}

.content-duo__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-duo__img img {
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: contain;
}

/* Tighten the intro section before capability content */
.page-hero + .section--white > .section__inner {
  padding-bottom: 4px;
}

.page-hero + .section--white .content-duo__img img {
  max-height: 220px;
}

.page-hero + .section--white + .section--gray > .section__inner,
.page-hero + .section--white + .section--white > .section__inner {
  padding-top: 6px;
}

/* Tighten spacing between subsequent content sections */
.main-body > [class^="section--"] + [class^="section--"] > .section__inner {
  padding-top: 6px;
}

/* Keep segment blocks compact across docs pages */
.main-body > .section--white > .section__inner,
.main-body > .section--gray > .section__inner {
  padding-top: 10px;
  padding-bottom: 8px;
}

/* Tighten registration form pages */
.page-hero + .section--white > .section__inner > .card {
  margin-top: 12px;
}

.page-hero + .section--white > .section__inner > .card .card__body {
  padding: 20px 24px;
}

.page-hero + .section--white > .section__inner > .card .form-banner {
  margin-bottom: 18px;
  min-height: 260px;
  padding: 20px;
}

.page-hero + .section--white > .section__inner > .card .form-banner__card {
  padding: 24px 28px;
}

.page-hero + .section--white > .section__inner > .card .attest {
  margin-top: 18px;
  padding-top: 18px;
}

.page-hero + .section--white > .section__inner > .card .attest__heading {
  margin-bottom: 16px;
}

.page-hero + .section--white > .section__inner > .card .btn-row {
  padding-top: 16px;
  margin-top: 18px;
}

/* Section headings */
.sec-heading {
  font-size: var(--fs-heading-compact);
  font-weight: var(--fw-semi);
  color: var(--clr-black);
  line-height: var(--lh-sm);
  margin-bottom: 5px;
}

.sec-heading--bar {
  padding-bottom: 5px;
  border-bottom: 1.5px solid var(--clr-accent);
  display: inline-block;
}

.sec-heading--lg {
  font-size: var(--fs-heading-02);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
}

/* Normalize section heading spacing across content blocks */
.section__inner>.sec-heading {
  margin-bottom: 10px !important;
}

/* ═══ TABLES ═══ border-radius: var(--radius); */
.tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-sm);
  background: var(--clr-g100);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--clr-g300);
}

.tbl thead th {
  background: var(--clr-g300);
  font-weight: var(--fw-bold);
  color: var(--clr-black);
  padding: 11px 16px;
  text-align: left;
  border: 1px solid var(--clr-g300);
}

.tbl thead th+th {
  border-left: 1px solid var(--clr-g400);
}

.tbl tbody td {
  padding: 10px 16px;
  border: 1px solid var(--clr-g300);
  color: var(--clr-black);
  vertical-align: top;
  background: var(--clr-g100);
}

.tbl tbody tr:last-child td {
  border-bottom: 1px solid var(--clr-g300);
}

.tbl tbody tr {
  transition: background var(--ease);
}

.tbl tbody tr:hover td {
  background: var(--clr-white);
}

.tbl a {
  color: var(--clr-link);
  font-weight: var(--fw-regular);
}

.tbl a:hover {
  color: var(--clr-link-hover);
}

.tbl--dark thead th {
  background: var(--clr-g800);
  color: var(--clr-white);
}

.tbl--striped tbody tr:nth-child(even) {
  background: var(--clr-g50);
}

/* --- CARD --- */
.card {
  background: var(--clr-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.card__head {
  background: var(--clr-g800);
  color: var(--clr-white);
  padding: 14px 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease);
}

.card__head:hover {
  background: var(--clr-g900);
  text-decoration: none;
  color: var(--clr-white);
}

.card__head h5 {
  color: inherit;
  font-size: inherit;
  margin: 0;
  font-weight: inherit;
}

.card__body {
  padding: 24px 28px;
}

/* --- CAPABILITY LINKS --- */
.cap-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--clr-g50);
  border: 1px solid var(--clr-g200);
  border-left: 3px solid var(--clr-primary);
  border-radius: var(--radius);
  margin-bottom: 8px;
  transition: background var(--ease), box-shadow var(--ease);
}

.cap-link:hover {
  background: var(--clr-accent-bg);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.cap-link__icon {
  width: 28px;
  height: 28px;
  background: var(--clr-accent-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.cap-link__url {
  font-size: var(--fs-body-sm);
  color: var(--clr-link);
  word-break: break-all;
  line-height: var(--lh-sm);
}

/* Metadata action rows (download + view) */
.metadata-actions {
  display: grid;
  gap: 0;
  border: 1px solid var(--clr-g300);
  border-radius: 2px;
  overflow: hidden;
  background: var(--clr-g100);
}

.metadata-action {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 9px 12px;
  border-bottom: 1px solid #D9DDE4;
  text-decoration: none;
  color: var(--clr-link);
  background: var(--clr-g100);
  transition: background var(--ease);
}

.metadata-action:last-child {
  border-bottom: none;
}

.metadata-action:hover {
  text-decoration: none;
  background: var(--clr-white);
}

.metadata-action:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.metadata-action__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  flex-shrink: 0;
}

.metadata-action__icon img {
  width: 16px;
  height: 16px;
  display: block;
}

.metadata-action__url-text {
  font-size: var(--fs-body-sm);
  color: var(--clr-link);
  line-height: 1.35;
  word-break: break-all;
}

.metadata-action:hover .metadata-action__url-text {
  text-decoration: underline;
}

/* --- CONTACT CARD --- */
.contact-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--clr-g50);
  border: 1px solid var(--clr-g200);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.contact-card__avatar {
  width: 52px;
  height: 52px;
  background: var(--clr-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--clr-white);
}

.contact-card__people {
  display: flex;
  gap: 32px;
  flex: 1;
  flex-wrap: wrap;
}

.contact-person {
  min-width: 180px;
}

.contact-person__name {
  font-weight: var(--fw-semi);
  font-size: var(--fs-body-sm);
  color: var(--clr-black);
}

.contact-person__email {
  font-size: var(--fs-body-sm);
  color: var(--clr-link);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 2px;
}

.contact-card__note {
  font-size: var(--fs-body-sm);
  color: var(--clr-g600);
}

.info-box {
  background: var(--clr-g50);
  border: 1px solid var(--clr-g200);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: var(--fs-body-sm);
  color: var(--clr-g700);
}

.info-box strong {
  color: var(--clr-black);
}

/* Support card */
.support-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  background: var(--clr-g50);
  border: 1px solid var(--clr-g200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.support-card__lead {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--clr-g700);
  font-size: var(--fs-body-sm);
}

.support-card__avatar {
  width: 48px;
  height: 48px;
  background: var(--clr-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--clr-g200);
  color: var(--clr-g700);
}

.support-card__avatar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.support-card__label {
  font-weight: var(--fw-semi);
}

.support-card__main {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 1fr;
  column-gap: 18px;
  align-items: center;
}

.support-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  background: var(--clr-white);
  border: 1px solid var(--clr-g200);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  width: 100%;
}

.support-badge__icon {
  display: none;
}

.support-badge__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.support-badge__title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-black);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-badge__title::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: url('../images/icon-customer.svg') no-repeat center / contain;
}

.support-badge__email {
  font-size: var(--fs-body-sm);
  color: var(--clr-link);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.support-badge__email-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.support-badge__email-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.support-card__note {
  font-size: var(--fs-body-sm);
  color: var(--clr-g700);
}

.auth-link {
  display: inline-block;
  font-size: var(--fs-body-sm);
  color: var(--clr-black);
  word-break: break-all;
}

/* --- FORM BANNER --- */
.form-banner {
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.form-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.form-banner__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 50, 60, .55);
}

.form-banner__card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, .96);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  width: 100%;
  max-width: 680px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .15);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.form-group {
  margin-bottom: 12px;
}

.form-group label {
  display: block;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-black);
  margin-bottom: 5px;
  line-height: var(--lh-sm);
}

.required {
  color: var(--clr-error);
  margin-left: 2px;
}

.provider-reg-section {
  margin-top: 8px;
}

.provider-reg-section--hidden {
  display: none;
}

.provider-reg-single-row {
  grid-template-columns: 1fr;
}

.provider-api-list {
  display: grid;
  gap: 6px;
}

.provider-api-item {
  border: 1px solid var(--clr-g200);
  border-radius: var(--radius);
  padding: 8px 12px;
  background: var(--clr-white);
}

.provider-api-item__header {
  margin-bottom: 0;
}

.provider-api-item .chk-row {
  margin-bottom: 0;
  align-items: center;
}

.provider-api-item .chk-row input[type="checkbox"] {
  margin-top: 0;
  align-self: center;
}

.provider-api-item .chk-row label {
  margin-bottom: 0;
}

.provider-api-item__scopes {
  margin: 8px 0 2px 30px;
}

.provider-form__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--clr-g600);
}

.provider-scope-label {
  display: block;
  font-size: var(--fs-small);
  color: var(--clr-g700);
  margin-bottom: 6px;
}

.provider-signing-row {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 17px;
}

.provider-signing-row .chk-row {
  margin-bottom: 0;
  gap: 8px;
  align-items: center;
}

.provider-signing-row input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--clr-primary);
  margin: 0;
  flex-shrink: 0;
}

.provider-signing-row .chk-row label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0;
  line-height: 1;
}

.payer-security-row {
  grid-template-columns: 230px minmax(0, 1fr);
  column-gap: 8px;
}

#payerTlsCertTypeAnchor {
  gap: 12px;
}

#payerTlsCertTypeAnchor .chk-row label {
  white-space: nowrap;
}

#payerJwksJsonGroup {
  grid-column: 1 / -1;
}
#payerJwksUrlGroup {
    grid-column: 1 / -1;
}
.field-note-icon {
  font-size: 16px;
  vertical-align: middle;
  color: var(--clr-g600);
  margin-left: 4px;
  cursor: help;
}

.provider-lookup-button--hidden {
  display: none !important;
}

.form-control {
  width: 100%;
  padding: 10px 14px;
  font-size: var(--fs-body-sm);
  color: var(--clr-black);
  background: var(--clr-white);
  border: 1px solid var(--clr-g300);
  border-radius: var(--radius);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
}

.form-control:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

.form-control::placeholder {
  color: var(--clr-g400);
}

textarea.form-control {
  resize: vertical;
  min-height: 80px;
}

.form-group--section-title {
  margin-bottom: 0;
}

.form-section-title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semi);
  color: var(--clr-black);
  margin: 16px 0 12px;
}

.mandatory-note {
  font-size: var(--fs-body-sm);
  color: var(--clr-error);
  text-align: right;
  margin-bottom: 12px;
}

.requested-scopes-native {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.scope-multiselect {
  position: relative;
}

.scope-multiselect__trigger {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--clr-g300);
  border-radius: var(--radius);
  background: var(--clr-white);
  color: var(--clr-black);
  font-size: var(--fs-body-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  cursor: pointer;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.scope-multiselect__trigger:hover {
  border-color: var(--clr-g400);
}

.scope-multiselect__trigger:focus {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
  outline: none;
}

.scope-multiselect.is-open .scope-multiselect__trigger {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 3px rgba(46, 125, 50, .12);
}

.scope-multiselect__trigger-text {
  text-align: left;
}

.scope-multiselect__trigger-icon {
  color: var(--clr-g600);
  margin-left: 8px;
}

.scope-multiselect__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  background: var(--clr-white);
  border: 1px solid var(--clr-g300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  z-index: 20;
  padding: 8px;
  display: none;
}

.scope-multiselect.is-open .scope-multiselect__menu {
  display: block;
}

.form-group .scope-multiselect__option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: var(--fs-body-sm);
  line-height: 1.2;
  margin-bottom: 0;
  font-weight: var(--fw-semi);
}

.scope-multiselect__option:hover {
  background: var(--clr-g50);
}

.scope-multiselect__option input {
  width: 16px;
  height: 16px;
  margin: 0 2px 0 0;
  accent-color: var(--clr-primary);
  flex-shrink: 0;
}

.scope-multiselect__option-text {
  flex: 1;
  min-width: 0;
  word-break: normal;
  overflow-wrap: normal;
  white-space: normal;
  display: block;
}

.scope-multiselect__option--locked {
  background: var(--clr-g50);
}

.scope-multiselect__lock {
  margin-left: auto;
  font-size: 16px;
  line-height: 1;
  color: var(--clr-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.scope-multiselect.is-invalid .scope-multiselect__trigger {
  border-color: var(--clr-error);
  box-shadow: none;
}

.scope-multiselect__hint {
  font-size: 11px;
  line-height: 1.35;
  color: var(--clr-g600);
}

/* --- ATTESTATION --- */
.attest {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--clr-g200);
}

.attest__heading {
  font-size: var(--fs-body);
  font-weight: var(--fw-semi);
  color: var(--clr-black);
  margin-bottom: 20px;
  line-height: var(--lh-body);
}

.chk-row {
  margin-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.chk-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--clr-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.chk-row label {
  font-size: var(--fs-body-sm);
  color: var(--clr-black);
  line-height: var(--lh-sm);
  cursor: pointer;
}

.chk-row label a {
  font-weight: var(--fw-semi);
}

.attest.attest--invalid {
  border: 1px solid var(--clr-error);
  border-radius: 8px;
  background: rgba(208, 2, 27, 0.04);
  padding: 18px;
}

.attest.attest--invalid .chk-row input[type="checkbox"] {
  accent-color: var(--clr-error);
}

.chk-sublist {
  padding: 8px 0 0 16px;
  margin: 0;
}

.chk-sublist li {
  padding: 4px 0;
  font-size: var(--fs-body-sm);
  color: var(--clr-black);
  position: relative;
  padding-left: 16px;
  line-height: var(--lh-sm);
}

.chk-sublist li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--clr-link);
  font-weight: bold;
}

#providerRegForm .provider-inline-error {
  display: block;
  width: 100%;
  margin-top: 6px;
  font-size: 80%;
  color: var(--clr-error);
}

#providerRegForm .provider-inline-error--checkbox {
  margin-top: -10px;
  margin-left: 30px;
}

#providerRegForm .provider-inline-error--group {
  margin-top: 6px;
}

#appRegForm .attest .attest__heading + em.invalid-feedback.attestation-group-error,
#payerRegForm .attest .attest__heading + em.invalid-feedback.attestation-group-error,
#providerRegForm .attest .attest__heading + em.provider-inline-error {
  display: block;
  margin-top: 8px;
  margin-left: 0;
  margin-bottom: 10px;
}

#payerRegForm #payerSigningAlgAnchor + em.invalid-feedback,
#payerRegForm #payerTlsCertTypeAnchor + em.invalid-feedback {
  display: block;
  margin-top: 6px;
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 26px;
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semi);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--ease);
  text-decoration: none;
  line-height: var(--lh-sm);
}

.btn:active {
  transform: scale(.97);
}

.btn--primary {
  background: var(--clr-primary);
  color: var(--clr-white);
}

.btn--primary:hover {
  background: var(--clr-primary-dark);
  color: var(--clr-white);
  text-decoration: none;
}

.btn--outline {
  background: var(--clr-white);
  color: var(--clr-g700);
  border: 1px solid var(--clr-g300);
}

.btn--outline:hover {
  background: var(--clr-g100);
  text-decoration: none;
}

.btn-row {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 20px;
  border-top: 1px solid var(--clr-g200);
  margin-top: 24px;
}

/* --- CONTACT FORM --- */
.contact-wrap {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.contact-wrap__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.contact-wrap__overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .88);
}

.contact-wrap__inner {
  position: relative;
  z-index: 1;
  padding: 32px 40px;
}

/* ═══ FOOTER ═══ */
.footer {
  background: #E5E7EB;
  color: var(--clr-black);
  padding: 18px 28px;
  font-size: var(--fs-body-sm);
  line-height: var(--lh-sm);
  margin-top: auto;
  flex-shrink: 0;
}

.footer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 10px;
}

.footer a {
  color: var(--clr-link);
  text-decoration-line: underline;
  text-decoration-color: rgba(255, 255, 255, .25);
}

.footer a:hover {
  color: var(--clr-link-hover);
}

.footer__copy {
  text-align: center;
}

/* Modal */
.modal {
  display: none;
}

.modal.show {
  display: block;
}

.modal-backdrop {
  display: none;
}

.modal-backdrop.show {
  display: block;
  opacity: 0.5;
}

.modal-content {
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid var(--clr-g200);
  padding: 14px 20px;
}

.modal-body {
  padding: 20px;
  font-size: var(--fs-body);
  color: var(--clr-g700);
}

.modal-footer {
  border-top: 1px solid var(--clr-g200);
  padding: 12px 20px;
}

/* Preloader */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--clr-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity .35s ease;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.preloader__spin {
  width: 36px;
  height: 36px;
  border: 3px solid var(--clr-g200);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin .65s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.tbd-content {
  background: #FFF8E1;
  border: 1px dashed #FFB300;
  border-radius: var(--radius);
  padding: 20px;
  font-size: var(--fs-body-sm);
  color: #E65100;
  text-align: center;
}

/* Animations */
.main-body .section--white,
.main-body .section--gray,
.main-body .hero,
.main-body .page-hero,
.main-body .page-title {
  animation: fadeSlideUp .4s ease both;
}

.main-body> :nth-child(2) {
  animation-delay: .05s;
}

.main-body> :nth-child(3) {
  animation-delay: .1s;
}

.main-body> :nth-child(4) {
  animation-delay: .15s;
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {

  .content-duo,
  .content-duo--reverse {
    grid-template-columns: 1fr;
  }

  .content-duo__img {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
    width: var(--sidebar-w) !important;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: var(--shadow-lg);
  }

  .sidebar.collapsed {
    transform: translateX(-100%);
  }

  .main-content {
    margin-left: 0 !important;
  }

  .hero,
  .page-hero {
    padding: 40px 20px;
    min-height: 150px;
  }

  .hero__title,
  .page-hero__title {
    font-size: 24px;
  }

  .section--white>.section__inner,
  .section--gray>.section__inner {
    padding: 28px 16px;
  }

  .page-title {
    padding: 20px 16px 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .payer-security-row {
    grid-template-columns: 1fr;
  }

  .form-banner__card {
    padding: 20px 16px;
  }

  .card__body {
    padding: 16px;
  }

  .contact-wrap__inner {
    padding: 20px 16px;
  }

  .footer__row {
    flex-direction: column;
    text-align: center;
  }

  .support-card {
    grid-template-columns: 1fr;
  }

  .support-badge {
    width: 100%;
  }
}

@media print {

  .sidebar,
  .footer,
  .menu-toggle,
  .preloader {
    display: none;
  }

  .main-content {
    margin-left: 0 !important;
  }
}

:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}