:root {
  --wd-form-global-header-offset: 86px;
  --wd-form-global-admin-bar-offset: 0px;
  --wd-form-global-header-underlay: 0px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(
    var(--wd-form-global-header-offset) + var(--wd-form-global-admin-bar-offset)
  );
}

body.admin-bar {
  --wd-form-global-admin-bar-offset: 32px;
}

body.wd-form-global-header-enabled {
  overflow-x: clip;
}

body.wd-form-global-header-enabled #brx-content {
  position: relative;
  z-index: 1;
  padding-top: calc(
    var(--wd-form-global-header-offset) + var(--wd-form-global-admin-bar-offset) +
      var(--wd-form-global-header-underlay)
  );
}

.wd-form-global-header-shell {
  --font-sans: "Inter";
  --bg: #07080d;
  --bg-soft: #0d111b;
  --surface: rgba(14, 18, 30, 0.82);
  --surface-strong: #111522;
  --surface-soft: #0d1320;
  --ink: #f5f7ff;
  --ink-soft: #d6daee;
  --muted: #9aa2c0;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #8b5cff;
  --accent-soft: rgba(139, 92, 255, 0.1);
  --accent-2: #ff916c;
  --accent-3: #58d2c4;
  --shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 20px 44px rgba(0, 0, 0, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --content: 1180px;
  position: relative;
  z-index: 110;
  font-family: var(--font-sans);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1.6;
  color: var(--ink);
}

.wd-form-global-header-shell::before,
.wd-form-global-header-shell::after {
  content: "";
  position: fixed;
  pointer-events: none;
}

.wd-form-global-header-shell::before {
  top: var(--wd-form-global-admin-bar-offset);
  left: 0;
  right: 0;
  height: var(--wd-form-global-header-offset);
  z-index: 110;
  background: radial-gradient(
      circle at 18% 10%,
      rgba(139, 92, 255, 0.18),
      transparent 18%
    ),
    radial-gradient(
      circle at 82% 12%,
      rgba(255, 145, 108, 0.14),
      transparent 20%
    ),
    radial-gradient(
      circle at 50% 112%,
      rgba(88, 210, 196, 0.06),
      transparent 20%
    ),
    linear-gradient(180deg, #06070c 0%, #090b13 100%);
}

.wd-form-global-header-shell::after {
  top: calc(var(--wd-form-global-admin-bar-offset) + 6px);
  right: -80px;
  width: 220px;
  height: 140px;
  z-index: 109;
  background: rgba(255, 145, 108, 0.12);
  filter: blur(42px);
}

.wd-form-global-header-shell,
.wd-form-global-header-shell * {
  box-sizing: border-box;
}

.wd-form-global-header-shell a {
  color: inherit;
  text-decoration: none;
}

.wd-form-global-header-shell .container {
  width: min(calc(100% - 40px), var(--content));
  margin: 0 auto;
}

.wd-form-global-header-shell .site-header {
  position: fixed;
  top: var(--wd-form-global-admin-bar-offset);
  left: 0;
  right: 0;
  z-index: 120;
  width: 100%;
  padding: 15px 0;
  backdrop-filter: blur(18px);
  background: rgba(7, 9, 15, 0.68);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wd-form-global-header-shell .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.wd-form-global-header-shell .brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.6;
  text-transform: uppercase;
}

.wd-form-global-header-shell .brand-mark {
  width: 190px;
  height: 55px;
  display: block;
  flex: 0 0 auto;
}

.wd-form-global-header-shell .brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.wd-form-global-header-shell .brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wd-form-global-header-shell .brand-copy span:first-child {
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.wd-form-global-header-shell .brand-copy span:last-child {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  text-transform: none;
  overflow-wrap: anywhere;
}

.wd-form-global-header-shell .nav-links {
  display: flex;
  align-items: center;
  gap: 50px;
  row-gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.wd-form-global-header-shell .nav-links a {
  color: var(--ink-soft);
  font-size: 15.36px;
  line-height: 1.6;
  position: relative;
  transition: color 0.24s ease;
}

.wd-form-global-header-shell .nav-links a[aria-current="true"]:not(.button) {
  color: #ffffff;
}

.wd-form-global-header-shell .nav-resource {
  position: relative;
}

.wd-form-global-header-shell .nav-resource::before {
  content: "";
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  height: 14px;
}

.wd-form-global-header-shell .nav-resource-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 15.36px;
  font-family: var(--font-sans);
  letter-spacing: inherit;
  line-height: 1.6;
  list-style: none;
  cursor: pointer;
  transition: color 0.24s ease;
}

.wd-form-global-header-shell .nav-resource-toggle::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.24s ease;
}

.wd-form-global-header-shell .nav-resource.resource-open .nav-resource-toggle,
.wd-form-global-header-shell .nav-resource:hover .nav-resource-toggle,
.wd-form-global-header-shell .nav-resource:focus-within .nav-resource-toggle,
.wd-form-global-header-shell .nav-resource-toggle:hover {
  color: #ffffff;
}

.wd-form-global-header-shell
  .nav-resource.resource-open
  .nav-resource-toggle::after,
.wd-form-global-header-shell .nav-resource:hover .nav-resource-toggle::after,
.wd-form-global-header-shell
  .nav-resource:focus-within
  .nav-resource-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.wd-form-global-header-shell .nav-submenu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 190px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(9, 11, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);
  transform-origin: top right;
  visibility: hidden;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s ease;
}

.wd-form-global-header-shell .nav-resource.resource-open .nav-submenu,
.wd-form-global-header-shell .nav-resource:hover .nav-submenu,
.wd-form-global-header-shell .nav-resource:focus-within .nav-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.wd-form-global-header-shell .nav-submenu a {
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.wd-form-global-header-shell .nav-submenu a:hover,
.wd-form-global-header-shell .nav-submenu a[aria-current="true"] {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.wd-form-global-header-shell .nav-submenu a[aria-current="true"]::after {
  display: none;
}

.wd-form-global-header-shell .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  margin-left: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  transition:
    transform 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.wd-form-global-header-shell .nav-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(139, 92, 255, 0.24);
}

.wd-form-global-header-shell .nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition:
    transform 0.24s ease,
    opacity 0.24s ease;
}

.wd-form-global-header-shell .nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.wd-form-global-header-shell .nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.wd-form-global-header-shell .nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.wd-form-global-header-shell .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  transition:
    transform 0.24s ease,
    box-shadow 0.24s ease,
    border-color 0.24s ease,
    background 0.24s ease;
}

.wd-form-global-header-shell .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.wd-form-global-header-shell .button-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.wd-form-global-header-shell .nav-links .button-secondary {
  background: rgba(255, 255, 255, 0.94);
  color: #11131a;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(255, 255, 255, 0.06);
}

@media (max-width: 1240px) {
  .wd-form-global-header-shell .container {
    width: min(calc(100% - 36px), var(--content));
  }

  .wd-form-global-header-shell .nav-links {
    gap: 14px;
  }

  .wd-form-global-header-shell .nav-links a {
    font-size: 15px;
  }

  .wd-form-global-header-shell .button {
    padding: 13px 20px;
  }
}

@media (max-width: 960px) {
  :root {
    --wd-form-global-header-offset: 120px;
  }

  .wd-form-global-header-shell .container {
    width: min(calc(100% - 32px), var(--content));
  }

  .wd-form-global-header-shell .site-header {
    padding: 15px 0;
  }

  .wd-form-global-header-shell .nav {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .wd-form-global-header-shell .nav-links {
    width: 100%;
    justify-content: flex-start;
    gap: 12px 14px;
  }

  .wd-form-global-header-shell .nav-links a {
    font-size: 14px;
  }

  .wd-form-global-header-shell .nav-resource-toggle {
    font-size: 14px;
  }

  .wd-form-global-header-shell .button {
    padding: 13px 18px;
    font-size: 14px;
  }
}

@media (max-width: 782px) {
  body.admin-bar {
    --wd-form-global-admin-bar-offset: 46px;
  }
}

@media (max-width: 960px) {
  :root {
    --wd-form-global-header-offset: 86px;
  }

  .wd-form-global-header-shell .container {
    width: min(calc(100% - 24px), var(--content));
  }

  .wd-form-global-header-shell .site-header {
    padding: 15px 0;
  }

  .wd-form-global-header-shell .nav {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
  }

  .wd-form-global-header-shell .nav-toggle {
    display: inline-flex;
  }

  .wd-form-global-header-shell .nav-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(9, 11, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
    z-index: 2;
  }

  .wd-form-global-header-shell .nav-open .nav-links {
    display: flex;
  }

  .wd-form-global-header-shell .nav-links a {
    width: 100%;
  }

  .wd-form-global-header-shell .nav-resource {
    width: 100%;
  }

  .wd-form-global-header-shell .nav-resource-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .wd-form-global-header-shell .nav-submenu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 10px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    visibility: visible;
  }

  .wd-form-global-header-shell .nav-resource.resource-open .nav-submenu {
    display: flex;
  }

  .wd-form-global-header-shell .nav-links .button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  :root {
    --wd-form-global-header-offset: 86px;
  }

  .wd-form-global-header-shell .container {
    width: min(calc(100% - 20px), var(--content));
  }

  .wd-form-global-header-shell .site-header {
    padding: 15px 0;
  }

  .wd-form-global-header-shell .brand {
    gap: 10px;
  }

  .wd-form-global-header-shell .brand-mark {
    width: 158px;
    height: 42px;
  }

  .wd-form-global-header-shell .brand-copy span:first-child {
    font-size: 14px;
  }

  .wd-form-global-header-shell .brand-copy span:last-child {
    font-size: 10px;
  }

  .wd-form-global-header-shell .nav-links {
    top: calc(100% + 10px);
    padding: 16px;
    gap: 10px;
  }

  .wd-form-global-header-shell .nav-links a {
    font-size: 13px;
  }

  .wd-form-global-header-shell .nav-resource-toggle {
    font-size: 13px;
  }

  .wd-form-global-header-shell .nav-links .button-secondary {
    padding: 10px 14px;
  }

  .wd-form-global-header-shell .nav-toggle {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .wd-form-global-header-shell .button {
    font-size: 13px;
  }
}
