/* ============================================================
   Brand Tokens
   ============================================================ */
:root {
  /* Colors */
  --color-blue:       #214B93;
  --color-dark-blue:  #233464;
  --color-black:      #171717;
  --color-grey:       #F4F4F4;
  --color-orange:     #F26F44;
  --color-white:      #FFFFFF;
  --color-error:      #c0392b;

  /* Typography */
  --font-family: 'Montserrat', sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-bold:    700;

  /* Fluid type scale */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.125rem;   /* 18px */
  --text-lg:   1.25rem;    /* 20px */
  --text-xl:   1.5rem;     /* 24px */
  --text-2xl:  2rem;       /* 32px */
  --text-3xl:  2.5rem;     /* 40px */
  --text-4xl:  3rem;       /* 48px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: var(--space-6);

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(23, 23, 23, 0.08);
  --shadow-md:  0 4px 12px rgba(23, 23, 23, 0.12);

  /* Nav height */
  --nav-height: 72px;
}

/* ============================================================
   Reset / Normalize
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: var(--font-weight-regular);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

ul,
ol {
  list-style: none;
}

a {
  color: var(--color-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  text-decoration: underline;
}

address {
  font-style: normal;
}

/* ============================================================
   Accessibility
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: 9999;
  padding: var(--space-3) var(--space-6);
  background: var(--color-blue);
  color: var(--color-white);
  font-weight: var(--font-weight-medium);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

*:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 2px;
}

/* ============================================================
   Layout
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  padding: var(--space-3) var(--space-8);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base),
    transform var(--transition-fast);
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background-color: var(--color-blue);
  border-color: var(--color-blue);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-orange);
  border-color: var(--color-orange);
  color: var(--color-white);
}

.btn--secondary {
  background-color: transparent;
  border-color: var(--color-blue);
  color: var(--color-blue);
}

.btn--secondary:hover {
  background-color: var(--color-blue);
  color: var(--color-white);
}


/* ============================================================
   Navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: var(--space-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo:hover {
  text-decoration: none;
  opacity: 0.85;
}

.nav__logo-img {
  display: block;
  height: 45px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.nav__link {
  display: block;
  padding: var(--space-2) var(--space-4);
  color: var(--color-black);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.nav__link:hover {
  color: var(--color-blue);
  background-color: var(--color-grey);
  text-decoration: none;
}

.nav__link--active {
  color: var(--color-blue);
}

.nav__lang {
  margin-left: var(--space-4);
  padding-left: var(--space-4);
  border-left: 1px solid var(--color-grey);
}

.nav__lang-toggle {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--color-black);
  font-weight: var(--font-weight-bold);
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  text-decoration: none;
}

.nav__lang-toggle:hover {
  color: var(--color-blue);
  background-color: var(--color-grey);
  text-decoration: none;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: var(--space-2);
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.nav__toggle:hover {
  background-color: var(--color-grey);
}

.nav__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-black);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

/* Open state */
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  background-color: var(--color-blue);
  color: var(--color-white);
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-block: var(--space-24);
}

.hero__inner {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.hero__heading {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.hero__sub {
  font-size: var(--text-md);
  font-weight: var(--font-weight-regular);
  line-height: 1.7;
  margin-bottom: var(--space-10);
  opacity: 0.92;
}

/* ============================================================
   Page Hero (inner pages)
   ============================================================ */
.page-hero {
  padding-block: var(--space-16);
}

.page-hero--blue {
  background-color: var(--color-blue);
  color: var(--color-white);
}

.page-hero--dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.page-hero__heading {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
}

/* ============================================================
   Sections
   ============================================================ */
.section {
  padding-block: var(--space-20);
}

.section--white {
  background-color: var(--color-white);
}

.section--grey {
  background-color: var(--color-grey);
}

.section--dark {
  background-color: var(--color-dark-blue);
  color: var(--color-white);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-blue);
  margin-bottom: var(--space-10);
}

.section--dark .section__title {
  color: var(--color-white);
}

.section--narrow {
  max-width: 640px;
}

/* ============================================================
   Placeholder Content (visual skeleton)
   ============================================================ */
.placeholder-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.placeholder-block {
  height: 1.25rem;
  background-color: rgba(33, 75, 147, 0.1);
  border-radius: var(--radius-sm);
  max-width: 60%;
}

.placeholder-block--wide {
  max-width: 85%;
}

.placeholder-content--cards {
  flex-direction: row;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.placeholder-card {
  flex: 1;
  min-width: 200px;
  height: 220px;
  background-color: rgba(33, 75, 147, 0.07);
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(33, 75, 147, 0.2);
}

/* ============================================================
   Coming Soon
   ============================================================ */
.coming-soon {
  font-size: var(--text-md);
  color: var(--color-black);
  opacity: 0.6;
  padding-block: var(--space-12);
  font-style: italic;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background-color: var(--color-dark-blue);
  color: rgba(255, 255, 255, 0.8);
  padding-block: var(--space-10) var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-6);
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  margin-bottom: var(--space-4);
  transition: opacity var(--transition-fast);
}

.footer__logo:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer__logo-img {
  display: block;
  height: 60px;
  width: auto;
  /* Invert blue logo to white for dark footer */
  filter: brightness(0) invert(1);
}

.footer__contact {
  margin-top: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.footer__email {
  display: inline-block;
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: var(--font-weight-medium);
}

.footer__email:hover {
  color: var(--color-white);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}

.footer__nav-link {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav-link:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer__nav .footer__linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
  margin-top: var(--space-2);
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer__nav .footer__linkedin:hover {
  color: var(--color-white);
  text-decoration: none;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
}

.footer__copy {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
}

.footer__legal {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   News — index grid
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border-radius: 0.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.news-card__image-link {
  display: block;
  flex-shrink: 0;
}

.news-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--space-6);
  gap: var(--space-2);
}

.news-card__date {
  font-size: var(--text-sm);
  color: var(--color-orange);
  font-weight: 500;
  margin: 0;
}

.news-card__title {
  font-size: var(--text-lg);
  font-weight: 700;
  margin: 0;
  flex-grow: 1;
}

.news-card__title a {
  color: var(--color-dark-blue);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.news-card__title a:hover {
  color: var(--color-blue);
}

.news-card__link {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: var(--space-2);
  transition: color var(--transition-fast);
}

.news-card__link:hover {
  color: var(--color-orange);
}

.news-footer {
  margin-top: var(--space-10);
  text-align: center;
}

/* ============================================================
   News — post layout
   ============================================================ */
.news-post__date {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-base);
  margin-top: var(--space-2);
  margin-bottom: 0;
}

.news-post__back {
  display: inline-block;
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color var(--transition-fast);
}

.news-post__back:hover {
  color: var(--color-orange);
}

/* ============================================================
   Responsive — 480px
   ============================================================ */
@media (min-width: 480px) {
  .hero__heading {
    font-size: var(--text-3xl);
  }
}

/* ============================================================
   Responsive — 768px
   ============================================================ */
@media (min-width: 768px) {
  :root {
    --container-pad: var(--space-8);
  }

  .hero__heading {
    font-size: var(--text-4xl);
  }

  .hero__sub {
    font-size: var(--text-lg);
  }

  .page-hero__heading {
    font-size: var(--text-3xl);
  }

  .section__title {
    font-size: var(--text-2xl);
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__grid {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .placeholder-block {
    height: 1.5rem;
  }
}

/* ============================================================
   Responsive — 1024px
   ============================================================ */
@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav__toggle {
    display: none;
  }

  .nav__menu {
    display: flex !important; /* override JS-hidden state at desktop */
  }

  .section {
    padding-block: var(--space-24);
  }
}

/* ============================================================
   Responsive — 1200px
   ============================================================ */
@media (min-width: 1200px) {
  :root {
    --container-pad: var(--space-10);
  }

  .hero__heading {
    font-size: 3.5rem;
  }

  .section__title {
    font-size: var(--text-3xl);
  }
}

/* ============================================================
   Mobile nav (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: var(--color-white);
    padding: var(--space-4) var(--space-6) var(--space-6);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav__menu.is-open {
    display: flex;
  }

  .nav__link {
    padding: var(--space-4);
    font-size: var(--text-base);
    border-bottom: 1px solid var(--color-grey);
  }

  .nav__lang {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    padding-top: var(--space-4);
  }

  .nav__lang-toggle {
    padding: var(--space-4);
    font-size: var(--text-base);
  }
}

/* ============================================================
   Prose (legal pages)
   ============================================================ */
.prose {
  max-width: 720px;
  font-size: var(--text-base);
  line-height: 1.8;
}

.prose p {
  margin-bottom: var(--space-4);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-blue);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.prose h1 { font-size: var(--text-2xl); }
.prose h2 { font-size: var(--text-xl); }
.prose h3 { font-size: var(--text-lg); }
.prose h4 { font-size: var(--text-md); }

.prose strong {
  font-weight: var(--font-weight-bold);
}

.prose ul,
.prose ol {
  list-style: revert;
  padding-left: var(--space-8);
  margin-bottom: var(--space-4);
}

.prose ul li,
.prose ol li {
  margin-bottom: var(--space-2);
}

.prose a {
  color: var(--color-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--color-orange);
}

.prose address {
  font-style: normal;
}

.prose blockquote {
  border-left: 3px solid var(--color-blue);
  padding-left: var(--space-6);
  margin-left: 0;
  margin-bottom: var(--space-4);
  color: rgba(23, 23, 23, 0.75);
}

.prose hr {
  border: none;
  border-top: 1px solid rgba(23, 23, 23, 0.12);
  margin-block: var(--space-8);
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-label {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-sm);
  color: var(--color-black);
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-family);
  font-size: var(--text-base);
  color: var(--color-black);
  background-color: var(--color-white);
  border: 1.5px solid rgba(23, 23, 23, 0.2);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-orange);
  box-shadow: 0 0 0 3px rgba(242, 111, 68, 0.15);
}

.form-textarea {
  min-height: 160px;
  resize: vertical;
}

.form-error {
  font-size: var(--text-sm);
  color: var(--color-error);
  display: none;
}

.form-error--global {
  text-align: center;
}

.form-success {
  font-size: var(--text-base);
  color: var(--color-blue);
  font-weight: var(--font-weight-medium);
  display: none;
  padding: var(--space-4);
  background-color: rgba(33, 75, 147, 0.07);
  border-radius: var(--radius-md);
}

/* ============================================================
   Product Content Sections
   ============================================================ */

/* Eyebrow label (orange, small-caps) */
.section-eyebrow {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* Paired heading (used under an eyebrow) */
.section__heading {
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-blue);
  line-height: 1.2;
  margin-bottom: var(--space-6);
}

/* Body copy block */
.section__body {
  font-size: var(--text-md);
  line-height: 1.7;
  color: var(--color-black);
  max-width: 520px;
  margin-bottom: var(--space-6);
}

/* ---- Split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Reversed: image visually left, text right (text first in DOM) */
.split--reversed .split__image {
  order: -1;
}

.split__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.split__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ---- Stat row ---- */
.stat-row {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.stat-item {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.stat-item__value {
  font-size: var(--text-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-blue);
  line-height: 1;
}

.stat-item__label {
  font-size: var(--text-sm);
  color: rgba(23, 23, 23, 0.65);
  line-height: 1.4;
  max-width: 220px;
}

/* ---- Feature bullet list ---- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--color-black);
}

.feature-list li::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  background-color: var(--color-orange);
  border-radius: 50%;
  margin-top: 0.55em;
}

/* ---- Product image frame ---- */
.product-frame {}

.product-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---- Step sequence (How It Works) ---- */
.step-sequence__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
  background-color: var(--color-white);
  margin-bottom: var(--space-8);
}

.step-sequence__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding-top: var(--space-2);
  border-top: 1px solid rgba(33, 75, 147, 0.12);
}

.step__number {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-orange);
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.step__label {
  display: block;
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-dark-blue);
  line-height: 1.3;
  margin-bottom: var(--space-2);
}

.step__desc {
  font-size: var(--text-sm);
  color: rgba(23, 23, 23, 0.65);
  line-height: 1.55;
}

/* ---- Responsive — product sections ---- */
@media (max-width: 767px) {
  .split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  /* On mobile, reset reversed order so DOM order (text, image) is preserved */
  .split--reversed .split__image {
    order: 0;
  }

  .step-sequence__steps {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }

  .section__body {
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .section__heading {
    font-size: var(--text-3xl);
  }
}

/* ============================================================
   Adaptive Contact Form
   ============================================================ */

/* Reset fieldset defaults */
.user-type-group,
fieldset.form-group {
  border: none;
  padding: 0;
  margin: 0;
}

/* White card on grey section background */
.form-card {
  background: var(--color-white);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(23, 23, 23, 0.08);
  padding: var(--space-6) var(--space-8);
  max-width: 510px;
  margin: 0 auto;
}

.adaptive-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

/* Two-column row for first/last name */
.form-row--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

/* ── Radio cards ─────────────────────────────────────────── */
.user-type-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.user-type-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1.5px solid rgba(23, 23, 23, 0.15);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.user-type-card:hover {
  border-color: rgba(33, 75, 147, 0.45);
}

.user-type-card.is-selected {
  border-color: var(--color-blue);
  background-color: rgba(33, 75, 147, 0.04);
}

/* Hide native radio visually but keep it accessible */
.user-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Custom radio dot */
.user-type-card__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(23, 23, 23, 0.25);
  background-color: var(--color-white);
  position: relative;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.user-type-card.is-selected .user-type-card__check {
  border-color: var(--color-blue);
  background-color: var(--color-blue);
}

.user-type-card.is-selected .user-type-card__check::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-white);
}

.user-type-card__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.user-type-card__label {
  font-weight: var(--font-weight-medium);
  font-size: var(--text-base);
  color: var(--color-dark-blue);
  line-height: 1.3;
}

.user-type-card__subtitle {
  font-size: var(--text-sm);
  color: rgba(23, 23, 23, 0.55);
  line-height: 1.4;
}

/* ── Conditional field sections — CSS grid height animation ── */
.form-conditional {
  display: grid;
  grid-template-rows: 0fr;
  /* Negative margin cancels the flex gap above collapsed sections,
     preventing double/triple spacing before the consent row. */
  margin-top: calc(-1 * var(--space-4));
  transition: grid-template-rows 280ms ease, margin-top 280ms ease;
}

.form-conditional.is-open {
  grid-template-rows: 1fr;
  margin-top: 0;
}

.form-conditional__inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding-top: 0;
  transition: padding-top 280ms ease;
}

.form-conditional.is-open .form-conditional__inner {
  padding-top: var(--space-4);
}

/* ── Consent checkboxes ──────────────────────────────────── */
.form-checkboxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
}

.form-consents {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-checkbox__box {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(23, 23, 23, 0.25);
  border-radius: 4px;
  background-color: var(--color-white);
  position: relative;
  margin-top: 1px;
  transition:
    border-color var(--transition-fast),
    background-color var(--transition-fast);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__box {
  border-color: var(--color-blue);
  background-color: var(--color-blue);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox__box::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 5px;
  width: 6px;
  height: 10px;
  border: 2px solid var(--color-white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.form-checkbox__label {
  font-size: var(--text-sm);
  color: rgba(23, 23, 23, 0.75);
  line-height: 1.5;
}

/* ── Orange submit button ────────────────────────────────── */
.btn--orange {
  width: 100%;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-family);
  font-size: var(--text-base);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  background-color: var(--color-orange);
  border: none;
  border-radius: 32px;
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    transform var(--transition-fast);
}

.btn--orange:hover:not(:disabled) {
  background-color: #e05a2f;
  transform: translateY(-1px);
}

.btn--orange:active:not(:disabled) {
  transform: translateY(0);
}

.btn--orange:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 579px) {
  .form-card {
    padding: var(--space-4) var(--space-4);
    border-radius: 8px;
  }

  .form-row--2col {
    grid-template-columns: 1fr;
  }
}
