:root {
  --red: #e3001b;
  --teal: #0f5f6f;
  --ink: #0c2137;
  --muted: #607681;
  --line: #dce7eb;
  --panel: #ffffff;
  --soft: #f5fafb;
  --blue: #173b59;
  --shadow: 0 16px 44px rgba(12, 33, 55, 0.11);
  --radius: 22px;
  --max: 1180px;
  --ailance-webform-comand-bg: var(--red);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Segoe UI, Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.48;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation & Header --- */
.topbar {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  z-index: 20;
}

.topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
}

.brand img {
  height: 52px;
  max-width: 170px;
}

.brand-title {
  font-weight: 800;
}

.brand-sub {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-weight: 700;
  text-decoration: none;
  color: #24394a;
}

.nav a:hover {
  color: var(--red);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(180deg, #f4fafb, transparent);
  padding: 54px 0;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 38px;
  align-items: center;
}

.eyebrow {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.05;
  margin: 12px 0 16px;
  letter-spacing: -0.04em;
}

.lead {
  font-size: 18px;
  color: #4f6571;
  max-width: 66ch;
}

/* --- Buttons & UI Elements --- */
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 19px;
  text-decoration: none;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 10px 24px rgba(227, 0, 27, 0.2);
}

.btn-secondary {
  background: var(--ink);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--teal);
  border: 1px solid var(--line);
}

.media-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
}

.media-card img {
  display: block;
  width: 100%;
  height: auto;
}

.badge {
  margin: -74px 18px 18px;
  position: relative;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e7eef1;
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 8px 22px rgba(12, 33, 55, 0.08);
}

.badge strong {
  display: block;
}

.badge span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 3px;
}

/* --- Layout Sections & Panels --- */
.section {
  padding: 48px 0;
}

.section h2 {
  font-size: 34px;
  line-height: 1.1;
  margin: 0 0 12px;
}

.section-text {
  color: var(--muted);
  max-width: 74ch;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.panel,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}

.card h3,
.panel h3 {
  margin: 0 0 10px;
}

.card p,
.panel p {
  color: var(--muted);
}

.kicker {
  display: inline-block;
  background: #e7f3f5;
  color: var(--teal);
  font-weight: 800;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list {
  padding-left: 20px;
  color: var(--muted);
}

.list li {
  margin: 7px 0;
}

/* --- Stats & Team --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}

.stat b {
  font-size: 28px;
  display: block;
  color: var(--teal);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 26px;
}

.person {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.person img {
  width: 100%;
  height: 190px;
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
  object-fit: cover;
}

.person h3 {
  margin: 14px 0 4px;
}

.role {
  font-weight: 800;
  color: var(--teal);
  font-size: 14px;
}

.email {
  font-size: 13px;
  color: var(--muted);
  word-break: break-word;
}

/* --- Forms & Inputs --- */
.form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field.full {
  grid-column: 1 / -1;
}

.form-grid label {
  font-weight: 750;
}

.form-grid input {
  border: 1px solid #ccd8de;
  border-radius: 12px;
  padding: 12px 13px;
  font: inherit;
  background: #fff;
}

.hint {
  font-size: 13px;
  color: var(--muted);
}

.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.checkbox-line input {
  width: auto;
  margin-top: 5px;
}

.notice {
  background: #fff7f8;
  border-left: 4px solid var(--red);
  padding: 14px 16px;
  border-radius: 12px;
  color: #5d2b32;
}

/* --- Callout Box --- */

.callout {
  background: linear-gradient(135deg, #0f5f6f, #173b59);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
}

.callout p {
  color: #d9eef2;
}

.callout .btn {
  background: #fff;
  color: var(--teal);
}

/* --- Footer Components --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 16px;
}

.footer-bottom-wrapper {
    width: 100%;
    border-top: 1px solid var(--line);
    margin-top: 18px;
}

.footer-bottom {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: var(--max);
    margin-left: auto;
    margin-right: auto;
}

.footer-actions {
  position: absolute;
  right: 0;
  margin: 24px;
}

.footer-actions .settings-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.powered-by {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}

.powered-by img {
  height: 38px;
  width: auto;
  display: inline-block;
}

/* --- Contextual Utilities & Pages --- */
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
  padding-top: 18px;
}

.mini-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.mini-nav a {
  background: #f0f6f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- DSR Page Styles --- */
.dsr-hero .hero-card {
  align-items: start;
}

.dsr-form .required {
  color: var(--red);
  font-weight: 900;
}

.dsr-form input,
.dsr-form select,
.dsr-form textarea,
.admin-form input {
  background: #f3f6f8;
  border-color: #edf2f5;
  border-radius: 0;
}

.dsr-form textarea {
  min-height: 58px;
}

.rights-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.right-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f3f6f8;
  padding: 14px 16px;
  font-weight: 700;
}

.right-box input {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.relationship-copy {
  justify-content: end;
  color: #111;
}

.wide-2 {
  grid-column: span 1;
}

.upload-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #d9e1e5;
  border-radius: 4px 4px 0 0;
  background: #fff;
}

.upload-table div {
  padding: 12px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.upload-drop {
  border: 1px dashed #b8c6cc;
  border-top: 0;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
}

.terms-block {
  margin-top: 10px;
}

.terms-line {
  font-size: 16px;
  color: var(--ink);
  font-weight: 700;
}

.terms-line input {
  width: 22px;
  height: 22px;
}

.certification {
  font-size: 13px;
  line-height: 1.55;
  max-width: 88ch;
  margin: 8px 0 0 34px;
  color: #111;
}

.submit-row {
  margin-top: 20px;
  text-align: center;
}
/* override styles for webforms*/
.b-webform-container{
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-width: 1px;
    background: #fff;
}

.b-webform-section{
    border: 0;
    padding: 0;
}

.b-webform-field-label{
    font-weight: 750;
}

.b-webform-field-input,
.b-webform-language-select,
.b-webform-field-textarea {
    border-radius: 0;
    background: #f3f6f8;
    border-color: #edf2f5;
    padding: 12px 13px;
}

.b-webform-language-selector .b-webform-language-select {
    max-width: 20em;
    min-width: 10em;
}

.b-webform-field-multiselect-list{
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2,minmax(0,1fr));
}

.b-webform-field-multiselect-list > label{
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f3f6f8;
    padding: 14px 16px;
    font-weight: 700;
    margin-bottom: 0;
}

.b-webform-field-multiselect-list input {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.b-webform-field-multiselect input[type=checkbox]{
    margin-right: 0;
}

.b-webform-field-multiselect input[type="checkbox"]:checked {
  accent-color: var(--red);
}

.b-webform-submit-button {
    box-shadow: 0 10px 24px rgba(227,0,27,.2);
    border-radius: 999px;
    padding: 13px 19px;
    font-weight: 800;
}
/* --- Cookie styles --- */
.b-northstar .b-banner.b-banner-bottom,
.b-northstar .b-banner.b-banner-top,
.b-northstar .b-settings .b-item.b-selected{
  background-color: var(--blue);
}

.b-northstar .b-banner .b-button,
.b-northstar .b-settings .b-button{
  background-color: var(--red);
  border-radius: 24px;
  border: 0 !important;
}

.b-northstar .b-settings{
  border-color: var(--line);
  box-shadow: var(--shadow);
  border-radius:24px;
}

.b-northstar .b-settings .b-cookie-name,
.b-northstar .b-banner.b-banner-details .b-label-text a,
.b-northstar .b-settings a,
.b-northstar .b-settings .b-title,
.b-northstar .b-banner.b-banner-details .b-details .b-details-cookies .b-category-title .b-title span,
.b-northstar .b-banner .b-button.b-decline-button {
  color: var(--ink);
}

.b-northstar .b-banner.b-banner-details .b-categories .b-checkbox .b-pipe:first-child svg,
.b-northstar .b-settings .b-checkbox .b-pipe:first-child svg{
  stroke: var(--blue);
}

.b-northstar .b-settings .b-cookie:first-child,
.b-northstar .b-settings .b-cookie,
.b-northstar .b-banner.b-banner-details .b-categories .b-checkbox-input:checked+.b-checkbox .b-pipe:first-child,
.b-northstar .b-settings .b-checkbox-input:checked+.b-checkbox .b-pipe:first-child{
  border-color: var(--line);
}

.b-northstar .b-settings .b-count{
  background: var(--muted);
  color: var(--soft);
}

.b-northstar .b-settings .b-item{
  background: transparent;
}

.b-northstar .b-declaration .b-content{
  width: 100% !important;
  padding: 24px;
}

.b-northstar .b-banner.b-banner-left,
.b-banner.b-banner-right{
  border-color: var(--line);
}

.b-northstar .b-banner .b-button.b-decline-button{
  background-color: var(--panel);
}

/* --- Media Queries --- */
@media (max-width: 900px) {
  .hero-card,
  .grid-2,
  .grid-3,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 38px;
  }

  .nav {
    display: none;
  }

  .stat-row {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .rights-grid {
    grid-template-columns: 1fr;
  }

  .relationship-copy {
    justify-content: start;
  }

  .wide-2 {
    grid-column: 1 / -1;
  }
  .b-webform-field-multiselect-list{
      grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    padding: 0 16px;
  }

  .hero {
    padding: 34px 0;
  }

  .hero h1 {
    font-size: 32px;
  }

  .stat-row,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .topbar-inner {
    height: auto;
    padding: 12px 16px;
    align-items: flex-start;
  }

  .brand img {
    height: 44px;
  }

  .powered-by {
    flex-direction: column;
  }

  .person img {
    height: 220px;
  }
}