/* ==========================================================================
   SWISS Virtual Design System
   ITCSS-inspired architecture: Settings > Generic > Elements > Layout > Utilities
   ========================================================================== */

/* ==========================================================================
   0. FONTS - @font-face declarations
   ========================================================================== */

@font-face {
  font-family: 'CH Sans';
  src: url('/fonts/chsans-light-webfont-webfont.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CH Sans';
  src: url('/fonts/chsans-regular-webfont-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'CH Sans';
  src: url('/fonts/chsans-bold-webfont-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   1. SETTINGS - Design tokens (CSS Custom Properties)
   ========================================================================== */

:root {
  /* --------------------------------------------------------------------------
     Colors - Light mode (default)
     -------------------------------------------------------------------------- */
  --color-primary: #cc0000;          /* SWISS red (corrected) */
  --color-primary-hover: #b30000;    /* Darker red for hover states */
  --color-background: #ffffff;
  --color-surface: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;

  /* --------------------------------------------------------------------------
     Spacing scale (0.25rem base = 4px)
     -------------------------------------------------------------------------- */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 2rem;      /* 32px */
  --space-xl: 4rem;      /* 64px */
  --space-2xl: 6rem;     /* 96px */

  /* --------------------------------------------------------------------------
     Typography
     -------------------------------------------------------------------------- */
  --font-sans: 'CH Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;

  /* Fluid typography scale using clamp() */
  --font-size-sm: clamp(0.875rem, 0.85rem + 0.125vw, 0.9375rem);
  --font-size-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --font-size-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --font-size-xl: clamp(1.25rem, 1rem + 1vw, 1.5rem);
  --font-size-2xl: clamp(1.5rem, 1.25rem + 1.25vw, 2rem);
  --font-size-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
  --font-size-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);

  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.7;

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

  /* --------------------------------------------------------------------------
     Shadows
     -------------------------------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);

  /* --------------------------------------------------------------------------
     Border radius (sharp corners per design decision)
     -------------------------------------------------------------------------- */
  --radius-sm: 2px;
  --radius-md: 4px;
}

/* ==========================================================================
   2. DARK MODE - System preference and user override
   ========================================================================== */

/* OS dark mode preference (only when user hasn't set explicit preference) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-background: #000000;
    --color-surface: #111111;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;

    /* Shadows need higher opacity for visibility on dark backgrounds */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
  }
}

/* User-selected dark mode (overrides OS preference) */
:root[data-theme="dark"] {
  --color-background: #000000;
  --color-surface: #111111;
  --color-text: #ffffff;
  --color-text-muted: #a0a0a0;
  --color-border: #333333;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.5);
}

/* User-selected light mode (overrides OS preference) */
:root[data-theme="light"] {
  --color-background: #ffffff;
  --color-surface: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-border: #e5e5e5;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
}

/* Smooth transition when toggling themes */
html {
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Dark mode specific overrides for dropdowns (applies to both OS and user-selected) */
:root[data-theme="dark"] .nav-dropdown-menu,
:root[data-theme="dark"] .lang-selector__dropdown {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   3. GENERIC - Reset (Josh Comeau's Modern CSS Reset, adapted)
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

/* Scroll margin for fixed header offset on anchor targets */
[id] {
  scroll-margin-top: 80px;
}

body {
  line-height: var(--line-height-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* ==========================================================================
   4. ELEMENTS - Base HTML styling
   ========================================================================== */

html {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
}

/* Headings - fluid typography with semibold weight */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
}

h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-lg);
}

h2 {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

h4 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-sm);
}

h5 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-sm);
}

h6 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

/* Paragraphs */
p {
  margin-bottom: var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Links - no underline, color differentiation per design decision */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Lists */
ul,
ol {
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

li {
  margin-bottom: var(--space-xs);
}

/* Blockquotes */
blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

/* Code */
code {
  font-family: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background-color: var(--color-surface);
  padding: 0.125rem 0.25rem;
  border-radius: var(--radius-sm);
}

pre {
  background-color: var(--color-surface);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  margin-bottom: var(--space-md);
}

pre code {
  background-color: transparent;
  padding: 0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-lg) 0;
}

/* ==========================================================================
   5. LAYOUT - Page structure
   ========================================================================== */

/* Container - narrow content width (800-900px) per design decision */
.container {
  width: 100%;
  max-width: 850px;
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

/* Wide container for full-width sections */
.container-wide {
  max-width: 1200px;
}

/* ==========================================================================
   6. UTILITIES - Helper classes
   ========================================================================== */

/* Screen reader only - visually hidden but accessible */
.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 alignment */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* Text color */
.text-muted {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Page Header - Standardized header for content pages
   -------------------------------------------------------------------------- */

.page-header {
  margin-bottom: var(--space-xl);
}

.page-header h1 {
  /* Uses global h1 sizing: --font-size-4xl */
  margin-bottom: var(--space-md);
}

.page-header-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 700px;
}

/* ==========================================================================
   7. REDUCED MOTION - Respect user preferences
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   8. COMPONENTS - Header, Navigation, Footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Site Header
   -------------------------------------------------------------------------- */
.site-header {
  display: flex;
  flex-direction: column;
  background-color: transparent;
  position: relative;
}

.utility-bar {
  display: none; /* Hidden on mobile/tablet, shown on desktop */
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-lg);
}

/* --------------------------------------------------------------------------
   Site Logo
   -------------------------------------------------------------------------- */
.site-logo {
  display: block;
  flex-shrink: 0;
}

.site-logo img {
  height: 40px;
  width: auto;
}

/* --------------------------------------------------------------------------
   Site Navigation
   -------------------------------------------------------------------------- */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--color-text);
  font-weight: var(--font-weight-medium);
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: color var(--transition-fast);
  padding: var(--space-xs) 0;
}

.site-nav a:hover {
  color: var(--color-primary);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    background: none;
    border: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: var(--space-sm) 0;
    font-weight: var(--font-weight-medium);
}

.nav-dropdown-toggle:hover {
    color: var(--color-primary);
}

.dropdown-chevron {
    transition: transform 0.2s ease;
}

.nav-dropdown-toggle[aria-expanded="true"] .dropdown-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.15s ease;
}

.nav-dropdown-menu a:hover {
    background: var(--color-surface);
    color: var(--color-primary);
}

.nav-dropdown-menu a:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.nav-dropdown-menu a:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

/* --------------------------------------------------------------------------
   Header Utilities (Intranet Login, Language, Theme)
   -------------------------------------------------------------------------- */

/* Intranet login link */
.header-login {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-sm);
  transition: color var(--transition-fast);
}

.header-login:hover {
  color: var(--color-primary);
}

.header-login:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
}

/* Language selector */
.lang-selector {
  position: relative;
}

.lang-selector__button {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  background: none;
  border: none;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  cursor: pointer;
  padding: var(--space-xs);
  transition: color var(--transition-fast);
}

.lang-selector__button:hover {
  color: var(--color-primary);
}

.lang-selector__button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.lang-selector__dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 60px;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 100;
  list-style: none;
  padding: 0;
  margin: var(--space-xs) 0 0 0;
}

.lang-selector__button[aria-expanded="true"] + .lang-selector__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-selector__dropdown li {
  margin: 0;
}

.lang-selector__option {
  display: block;
  padding: var(--space-sm) var(--space-md);
  color: var(--color-text);
  text-align: center;
  font-size: var(--font-size-sm);
}

.lang-selector__option--active {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
}

.lang-selector__option--disabled {
  color: var(--color-text-muted);
  cursor: not-allowed;
}

/* Three-position theme switcher (segmented control) */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--color-background);
  border: 1.5px solid var(--color-text);
  border-radius: 100vw;
  padding: 2px;
}

.theme-switcher__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  border: none;
  border-radius: 100vw;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-switcher__btn svg {
  display: block;
  width: 14px;
  height: 14px;
}

.theme-switcher__btn--auto {
  font-size: 9px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: 0.02em;
  line-height: 1;
  padding: 0 5px;
}

.theme-switcher__btn[aria-checked="true"] {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
}

.theme-switcher__btn:hover {
  color: var(--color-text);
}

.theme-switcher__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Navigation Drawer (tablet overlay)
   -------------------------------------------------------------------------- */
.nav-drawer {
  display: none; /* Hidden by default; showModal() + [open] reveals it */
  border: none;
  padding: 0;
  max-width: none;
  max-height: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: min(320px, 80vw);
  height: 100vh;
  height: 100dvh;
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  overflow-y: auto;
}

.nav-drawer::backdrop {
  background: rgba(0, 0, 0, 0.5);
}

.nav-drawer[open] {
  display: block;
  animation: drawer-slide-in 250ms ease-out forwards;
}

.nav-drawer[open]::backdrop {
  animation: backdrop-fade-in 250ms ease-out forwards;
}

@keyframes drawer-slide-in {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

@keyframes backdrop-fade-in {
  from { background: rgba(0, 0, 0, 0); }
  to   { background: rgba(0, 0, 0, 0.5); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-drawer[open],
  .nav-drawer[open]::backdrop {
    animation: none;
  }
}

.nav-drawer__content {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  min-height: 100%;
}

.nav-drawer__close {
  align-self: flex-end;
  background: none;
  border: none;
  color: var(--color-text);
  cursor: pointer;
  padding: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.nav-drawer__close:hover {
  color: var(--color-primary);
}

.nav-drawer__close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nav-drawer__nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  padding: var(--space-sm) 0;
  transition: color var(--transition-fast);
}

.nav-drawer__nav a:hover {
  color: var(--color-primary);
}

.nav-drawer__nav .nav-cta {
  display: inline-block;
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  margin-top: var(--space-sm);
  transition: background-color var(--transition-fast);
}

.nav-drawer__nav .nav-cta:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
}

.nav-drawer__nav .nav-dropdown {
  width: 100%;
}

.nav-drawer__nav .nav-dropdown-toggle {
  width: 100%;
  justify-content: flex-start;
  padding: var(--space-sm) 0;
  font-size: var(--font-size-lg);
}

.nav-drawer__nav .nav-dropdown-menu {
  position: static;
  opacity: 1;
  visibility: visible;
  transform: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: transparent;
}

.nav-drawer__nav .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
  max-height: 300px;
}

.nav-drawer__nav .nav-dropdown-menu a {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-base);
}

.nav-drawer__utils {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  margin-top: auto;
}

.nav-drawer__utils .header-login {
  font-size: var(--font-size-base);
}

.nav-drawer__utils .theme-switcher__label {
  display: none;
}

/* Mobile utility section inside slide-down menu */
.nav-utils-mobile {
  display: none; /* Shown via mobile media query */
}

/* CTA button in navigation */
.site-nav .nav-cta {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: var(--font-weight-semibold);
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.site-nav .nav-cta:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  padding: var(--space-xl) 0;
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.site-footer p {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

.footer-disclaimer {
  max-width: 800px;
  font-size: var(--font-size-sm);
}

.footer-copyright {
  white-space: nowrap;
}

.footer-attribution {
  font-size: var(--font-size-xs, 0.75rem);
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.footer-attribution a {
  color: var(--color-text-muted);
  text-decoration: underline;
}

/* Footer navigation */
.footer-nav {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  text-decoration: none;
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.footer-nav a:hover {
  color: var(--color-text);
}

/* Footer social icons */
.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer-social a:hover {
  color: var(--color-primary);
}

.footer-social .icon {
  display: block;
}

/* ==========================================================================
   9. RESPONSIVE - Mobile-first adjustments
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hamburger Menu Toggle
   -------------------------------------------------------------------------- */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  position: relative;
  transition: background-color var(--transition-fast);
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: transform var(--transition-base);
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

/* Hamburger to X animation when open */
.nav-toggle[aria-expanded="true"] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded="true"] .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] .hamburger::after {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile: Hamburger menu */
@media (max-width: 767px) {
  .nav-row {
    padding: var(--space-md);
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: var(--space-sm);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-md);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: var(--space-sm) 0;
    text-align: center;
  }

  .site-nav .nav-cta {
    margin-top: var(--space-sm);
  }

  /* Mobile dropdown */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    padding: var(--space-sm) 0;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: transparent;
  }

  .nav-dropdown-toggle[aria-expanded="true"] + .nav-dropdown-menu {
    max-height: 300px;
  }

  .nav-dropdown-menu a {
    padding: var(--space-xs) var(--space-md);
    text-align: center;
    font-size: var(--font-size-sm);
  }

  .nav-utils-mobile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding-top: var(--space-lg);
    width: 100%;
  }

  .nav-utils-mobile .header-login {
    font-size: var(--font-size-base);
  }

  .nav-utils-mobile .theme-switcher__label {
    display: none;
  }

  .footer-main {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
    gap: var(--space-md);
  }

  .site-footer .container {
    align-items: center;
    text-align: center;
  }

  .footer-disclaimer {
    text-align: center;
  }
}

/* Tablet+: Utility bar visible top-right, wider padding */
@media (min-width: 768px) {
  .utility-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-xs) var(--space-xl);
    font-size: var(--font-size-sm);
  }

  .nav-row {
    padding: var(--space-lg) var(--space-xl);
  }

  .nav-utils-mobile {
    display: none;
  }

  .nav-drawer__utils {
    display: none;
  }
}

/* Tablet: show hamburger, hide inline nav (uses drawer) */
@media (min-width: 768px) and (max-width: 1023px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
  }
}

/* Desktop: full inline nav */
@media (min-width: 1024px) {
  .nav-row {
    padding: var(--space-md) var(--space-xl);
  }

  .nav-toggle {
    display: none;
  }
}

/* Dark mode dropdown */
@media (prefers-color-scheme: dark) {
  .nav-dropdown-menu {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* ==========================================================================
   10. HERO SECTION - Landing page hero component
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero Container
   70-80vh height to hint at content below (not full viewport)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh; /* Modern viewport units with fallback */
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Hero Overlay
   Semi-transparent gradient for text contrast over images
   -------------------------------------------------------------------------- */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 1;
}

/* --------------------------------------------------------------------------
   Hero Video Background
   Absolute positioned video covering hero area with object-fit cover
   -------------------------------------------------------------------------- */
.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 0;
}

/* Dark gradient fallback visible while video loads */
.hero-video {
  background: linear-gradient(to bottom, #000000 0%, #1a1a1a 100%);
}

/* Enhanced overlay gradient for video backgrounds */
.hero-video .hero-overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

/* --------------------------------------------------------------------------
   Hero Content
   Centered container with proper z-index above overlay
   -------------------------------------------------------------------------- */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: var(--space-lg);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   Hero Typography
   Larger headings with fluid sizing, white text for contrast
   -------------------------------------------------------------------------- */
.hero-title {
  font-size: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-md);
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Hero Actions (CTA Buttons)
   Flexbox container for button alignment
   -------------------------------------------------------------------------- */
.hero-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Button Base Styles
   Shared button foundation for all button variants
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Primary Button
   SWISS red background, white text, hover lift effect
   -------------------------------------------------------------------------- */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   Secondary Button
   Outline style, transparent background
   Theme-aware: dark text on light backgrounds, white text on dark backgrounds
   -------------------------------------------------------------------------- */
.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border-color: currentColor;
}

.btn-secondary:hover {
  background-color: rgba(0, 0, 0, 0.05);
  color: var(--color-text);
  transform: translateY(-2px);
}

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

/* Secondary button on dark backgrounds (hero sections) */
.hero .btn-secondary {
  color: #ffffff;
  border-color: #ffffff;
}

.hero .btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Dark mode: light text for general btn-secondary */
@media (prefers-color-scheme: dark) {
  .btn-secondary {
    color: #ffffff;
    border-color: #ffffff;
  }

  .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
  }
}

/* --------------------------------------------------------------------------
   Hero Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero {
    min-height: 60vh;
    min-height: 60dvh;
  }

  .hero-content {
    padding: var(--space-md);
  }

  .hero-title {
    font-size: clamp(2rem, 1.5rem + 2.5vw, 3rem);
  }

  .hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (min-width: 768px) {
  .hero {
    min-height: 75vh;
    min-height: 75dvh;
  }
}

/* ==========================================================================
   11. HOMEPAGE SECTIONS - About, Fleet, CTA components
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Base Styles
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-2xl) 0;
}

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

.section-title {
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.section-about .about-content {
  max-width: 700px;
  margin-inline: auto;
}

.section-about .about-description {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

/* Stats styling - data-stat elements */
[data-stat] {
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  font-size: 1.1em;
}

.section-about .about-link-wrapper {
  margin-top: var(--space-lg);
}

.section-about .about-link {
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Fleet Section
   -------------------------------------------------------------------------- */
.fleet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.fleet-link-wrapper {
  margin-top: var(--space-xl);
}

.fleet-link {
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
}

/* --------------------------------------------------------------------------
   Fleet Card Component
   -------------------------------------------------------------------------- */
.fleet-card {
  background-color: var(--color-background);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.fleet-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.fleet-card:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fleet-card-featured {
  /* Featured card styling - can be enhanced */
}

.fleet-card-image {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #ffffff; /* White bg for transparent aircraft images */
}

.fleet-card-badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background-color: var(--color-primary);
  color: #ffffff;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fleet-card-badge--senses {
  background-color: #1a365d;  /* Navy/premium feel */
  top: calc(var(--space-sm) + 1.75rem);  /* Stack below Flagship badge */
}

.fleet-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--transition-base);
}

/* Photo-style images (e.g., A350) should fill and crop */
.fleet-card-image--cover img {
  object-fit: cover;
}

.fleet-card:hover .fleet-card-image img {
  transform: scale(1.02);
}

.fleet-card-content {
  padding: var(--space-md);
}

.fleet-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.fleet-card-spec {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  margin: 0;
}

/* --------------------------------------------------------------------------
   CTA Section
   -------------------------------------------------------------------------- */
.section-cta {
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
}

.section-cta .cta-content {
  max-width: 600px;
  margin-inline: auto;
}

.section-cta .cta-title {
  font-size: var(--font-size-3xl);
  margin-bottom: var(--space-md);
}

.section-cta .cta-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

.section-cta .cta-actions {
  margin-top: var(--space-lg);
}

/* Large button variant */
.btn-lg {
  padding: var(--space-md) var(--space-xl);
  font-size: var(--font-size-lg);
}

/* --------------------------------------------------------------------------
   Homepage Sections Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .section {
    padding: var(--space-xl) 0;
  }

  .fleet-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .section-cta .cta-title {
    font-size: var(--font-size-2xl);
  }
}

/* ==========================================================================
   12. TEAM PAGE - Profile cards, avatars, and modal
   ========================================================================== */

/* --------------------------------------------------------------------------
   Team Page Layout
   -------------------------------------------------------------------------- */
.team-page {
  padding: var(--space-xl) 0;
}

.team-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

.team-department {
  margin-bottom: var(--space-2xl);
}

.team-department:last-child {
  margin-bottom: 0;
}

.department-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Team Grid - Responsive with auto-fit
   -------------------------------------------------------------------------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Team Card - Horizontal layout (photo left, content right)
   -------------------------------------------------------------------------- */
.team-card {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.team-card:hover,
.team-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
  outline: none;
}

.team-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.team-card-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.team-card-role {
  color: var(--color-text-muted);
  font-size: var(--font-size-base);
  margin: 0;
}

/* --------------------------------------------------------------------------
   Avatar Component
   -------------------------------------------------------------------------- */
.avatar {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  background-color: var(--color-text);
}

.avatar-sm { width: 48px; height: 48px; }
.avatar-md { width: 80px; height: 80px; }
.avatar-lg { width: 120px; height: 120px; }

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background-color: var(--color-text);
  color: var(--color-background);
  font-weight: var(--font-weight-semibold);
}

.avatar-sm .avatar-initials { font-size: 1rem; }
.avatar-md .avatar-initials { font-size: 1.5rem; }
.avatar-lg .avatar-initials { font-size: 2rem; }

/* --------------------------------------------------------------------------
   Team Modal - Native dialog styling
   -------------------------------------------------------------------------- */
.team-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 600px;
  width: calc(100% - var(--space-lg) * 2);
  max-height: calc(100vh - var(--space-lg) * 2);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  background-color: var(--color-background);
  color: var(--color-text);
  /* Animation: start hidden */
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-base),
              transform var(--transition-base),
              overlay var(--transition-base) allow-discrete,
              display var(--transition-base) allow-discrete;
}

.team-modal[open] {
  opacity: 1;
  transform: scale(1);
}

/* Starting style for open animation (modern browsers) */
@starting-style {
  .team-modal[open] {
    opacity: 0;
    transform: scale(0.95);
  }
  .team-modal[open]::backdrop {
    opacity: 0;
  }
}

.team-modal::backdrop {
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-base),
              overlay var(--transition-base) allow-discrete,
              display var(--transition-base) allow-discrete;
}

.team-modal[open]::backdrop {
  opacity: 1;
}

.modal-dialog {
  padding: var(--space-lg);
  overflow-y: auto;
  max-height: inherit;
}

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: var(--space-xs);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.modal-close:hover {
  color: var(--color-text);
  background-color: var(--color-surface);
}

.modal-close:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.modal-header {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.modal-name {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.modal-role {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin: 0;
}

.modal-bio {
  margin-bottom: var(--space-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.modal-bio p {
  margin-bottom: var(--space-md);
  color: inherit;
}

.modal-bio p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Stats Grid in Modal
   -------------------------------------------------------------------------- */
.modal-stats {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.modal-stats:empty {
  display: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
}

.stat {
  text-align: center;
}

.stat dt {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.stat dd {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-primary);
  margin: 0;
}

.loading {
  text-align: center;
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Team Page Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-modal {
    max-width: none;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }

  .modal-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* ==========================================================================
   Org Chart (Team Page) - Two-Section Layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section Layout
   -------------------------------------------------------------------------- */

.org-section {
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.org-section:last-child {
  margin-bottom: 0;
}

.org-section-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Org Node - Landscape Card
   -------------------------------------------------------------------------- */

.org-node {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.org-node:hover,
.org-node:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
  outline: none;
}

.org-node:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Leader card (full width, no indent) */
.org-node-leader {
  margin-bottom: var(--space-md);
}

/* Info container (name + title stacked vertically) */
.org-node-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.org-node-name {
  font-weight: var(--font-weight-semibold);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.org-node-title {
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Subordinates Container with Vertical Line
   -------------------------------------------------------------------------- */

.org-subordinates {
  position: relative;
  padding-left: 35px;
  margin-left: 15px;
}

/* Vertical line on the left */
.org-subordinates::before {
  content: '';
  position: absolute;
  left: 0;
  top: calc(-1 * var(--space-md));
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

/* Individual subordinate with horizontal connector */
.org-subordinate {
  position: relative;
  padding: var(--space-sm) 0;
}

/* Horizontal connector from vertical line to card */
.org-subordinate::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 50%;
  width: 35px;
  height: 1px;
  background: var(--color-border);
}

/* Last subordinate: extend vertical line only to middle */
.org-subordinate-last::after {
  content: '';
  position: absolute;
  left: -35px;
  top: 50%;
  bottom: 0;
  width: 1px;
  background: var(--color-background);
}

/* --------------------------------------------------------------------------
   Mobile Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  .org-section {
    max-width: 100%;
    padding: 0 var(--space-md);
  }

  .org-node {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  /* Reduce indent on mobile */
  .org-subordinates {
    padding-left: 25px;
    margin-left: 10px;
  }

  .org-subordinate::before {
    left: -25px;
    width: 25px;
  }

  .org-subordinate-last::after {
    left: -25px;
  }
}

/* --------------------------------------------------------------------------
   Modal Enhancements for Responsibilities and Contact
   -------------------------------------------------------------------------- */

.modal-responsibilities {
  margin-top: var(--space-md);
}

.modal-responsibilities h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.modal-responsibilities ul {
  list-style: disc;
  padding-left: var(--space-lg);
  color: var(--color-text-muted);
}

.modal-responsibilities li {
  margin-bottom: var(--space-xs);
}

.modal-contact {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

.modal-contact h3 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.modal-email {
  color: var(--color-primary);
  text-decoration: none;
}

.modal-email:hover {
  text-decoration: underline;
}

.modal-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.modal-social a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  background: var(--color-surface);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

.modal-social a:hover {
  color: var(--color-primary);
  background: var(--color-border);
}

/* ==========================================================================
   13. FAQ PAGE - Accordion, search, and category navigation
   ========================================================================== */

/* --------------------------------------------------------------------------
   FAQ Layout
   -------------------------------------------------------------------------- */

.faq-page {
  padding: var(--space-xl) 0;
}

.faq-header {
  margin-bottom: var(--space-xl);
}

/* FAQ h1 override removed - uses global h1 sizing (--font-size-4xl) for consistency */

.faq-intro {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  max-width: 700px;
  margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   FAQ Search
   -------------------------------------------------------------------------- */

.faq-search {
  max-width: 500px;
  margin-bottom: var(--space-lg);
}

.faq-search input {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--font-size-base);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-background);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-search input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.faq-search input::placeholder {
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Category Navigation
   -------------------------------------------------------------------------- */

.faq-categories {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.faq-category-link {
  padding: var(--space-xs) var(--space-md);
  font-size: var(--font-size-base);
  color: var(--color-text-muted);
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.faq-category-link:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
  background: rgba(204, 0, 0, 0.05);
}

/* --------------------------------------------------------------------------
   FAQ Category Sections
   -------------------------------------------------------------------------- */

.faq-category {
  margin-bottom: var(--space-xl);
  scroll-margin-top: 100px; /* Account for sticky header */
}

.faq-category-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

/* --------------------------------------------------------------------------
   FAQ Item (Accordion)
   -------------------------------------------------------------------------- */

.faq-item {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  cursor: pointer;
  list-style: none; /* Remove default marker */
  transition: background var(--transition-fast);
}

.faq-question::-webkit-details-marker {
  display: none; /* Remove default marker in WebKit */
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.03);
}

@media (prefers-color-scheme: dark) {
  .faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
  }
}

.faq-question-text {
  flex: 1;
  padding-right: var(--space-md);
}

/* Chevron indicator */
.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  position: relative;
  transition: transform 300ms ease-out;
}

.faq-chevron::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translate(-75%, -50%) rotate(-45deg);
  transition: transform 300ms ease-out;
}

.faq-item[open] .faq-chevron::before {
  transform: translate(-50%, -75%) rotate(45deg);
}

/* --------------------------------------------------------------------------
   FAQ Answer (CSS Grid Animation)
   -------------------------------------------------------------------------- */

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease-out;
}

.faq-item[open] .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer-content {
  overflow: hidden;
  padding: 0 var(--space-lg);
}

.faq-item[open] .faq-answer-content {
  padding-bottom: var(--space-lg);
}

.faq-answer-content p {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-answer-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.faq-answer-content a:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   No Results State
   -------------------------------------------------------------------------- */

.faq-no-results {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
}

.faq-no-results p:first-child {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.faq-empty {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   FAQ Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
  .faq-header h1 {
    font-size: var(--font-size-2xl);
  }

  .faq-question {
    padding: var(--space-md);
    font-size: var(--font-size-base);
  }

  .faq-answer-content {
    padding: 0 var(--space-md);
  }

  .faq-item[open] .faq-answer-content {
    padding-bottom: var(--space-md);
  }

  .faq-categories {
    gap: var(--space-xs);
  }

  .faq-category-link {
    font-size: 0.875rem;
    padding: var(--space-xs) var(--space-sm);
  }
}

/* ==========================================================================
   14. PARTNERS PAGE - Logo grid and partner cards
   ========================================================================== */

/* --------------------------------------------------------------------------
   Partners Page Layout
   -------------------------------------------------------------------------- */
.partners-page {
  padding: var(--space-xl) 0;
}

.partners-intro {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2xl);
  max-width: 65ch;
}

.partners-category {
  margin-bottom: var(--space-2xl);
}

.partners-category:last-child {
  margin-bottom: 0;
}

.category-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.partners-empty {
  color: var(--color-text-muted);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   Partner Card Component
   -------------------------------------------------------------------------- */
.partner-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

/* Stretch link to cover entire card for clickability */
.partner-card-name a::after {
  content: '';
  position: absolute;
  inset: 0;
}

.partner-card-logo {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  background-color: #ffffff; /* Force white for logo visibility in all color schemes */
  border-bottom: 1px solid var(--color-border);
}

.partner-card-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

.partner-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
}

.partner-card-name {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.partner-card-name a {
  color: var(--color-text);
  text-decoration: none;
}

.partner-card-name a:hover {
  color: var(--color-primary);
}

.partner-card-description {
  flex: 1;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.partner-card-description p {
  margin: 0;
}

/* ==========================================================================
   15. LEGAL PAGES - Document layout, TOC, back-to-top, print styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   Legal Page Layout - Two column with sticky sidebar
   -------------------------------------------------------------------------- */
.legal-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 1200px;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-md);
}

@media (min-width: 1024px) {
  .legal-layout {
    grid-template-columns: 280px 1fr;
  }
}

.legal-sidebar {
  position: relative;
}

@media (min-width: 1024px) {
  .legal-sidebar {
    position: sticky;
    top: var(--space-xl);
    align-self: start;
    max-height: calc(100vh - var(--space-2xl));
    overflow-y: auto;
  }
}

/* --------------------------------------------------------------------------
   Legal Document Layout
   -------------------------------------------------------------------------- */
.legal-document {
  max-width: 65ch; /* Optimal line length for reading */
}

.legal-header {
  margin-bottom: var(--space-xl);
  border-bottom: 2px solid var(--color-border);
  padding-bottom: var(--space-lg);
}

.legal-header h1 {
  margin-bottom: var(--space-sm);
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Table of Contents - inside sidebar
   -------------------------------------------------------------------------- */
.legal-toc {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.legal-toc h2 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-md);
}

.legal-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc > ol > li {
  margin-bottom: var(--space-sm);
}

.legal-toc a {
  color: var(--color-text);
  text-decoration: none;
  padding: var(--space-xs) var(--space-sm);
  display: block;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.legal-toc a:hover {
  background: var(--color-background);
}

.legal-toc a.active {
  color: var(--color-primary);
  font-weight: var(--font-weight-medium);
  background: var(--color-background);
}

.legal-toc a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Nested TOC items */
.legal-toc ol ol {
  margin-left: var(--space-md);
  margin-top: var(--space-xs);
}

.legal-toc ol ol a {
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Hide heading permalink anchors (used for scroll targeting only)
   -------------------------------------------------------------------------- */
.heading-permalink {
  display: none;
}

/* --------------------------------------------------------------------------
   Document Sections
   -------------------------------------------------------------------------- */
.legal-document > section {
  margin-bottom: var(--space-xl);
}

.legal-document section section {
  margin-bottom: var(--space-lg);
  margin-left: var(--space-md);
}

.legal-document h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
  margin-top: var(--space-2xl);
  scroll-margin-top: 2rem; /* Offset for anchor navigation */
}

.legal-document h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-md);
  margin-top: var(--space-xl);
  scroll-margin-top: 2rem;
}

.legal-document p {
  line-height: var(--line-height-relaxed); /* 1.7 for legal text readability */
  margin-bottom: var(--space-md);
}

.legal-document ul,
.legal-document ol {
  line-height: var(--line-height-relaxed);
  margin-bottom: var(--space-md);
}

.legal-document li {
  margin-bottom: var(--space-xs);
}

/* --------------------------------------------------------------------------
   Back to Top Button
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  z-index: 100;
  min-width: 44px; /* WCAG touch target minimum */
  min-height: 44px;
}

.back-to-top:hover {
  transform: translateY(-2px);
  background: var(--color-primary-hover);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.back-to-top[hidden] {
  display: none;
}

/* --------------------------------------------------------------------------
   Smooth Scrolling with Motion Safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .back-to-top {
    transition: none;
  }
}

/* --------------------------------------------------------------------------
   Print Styles
   -------------------------------------------------------------------------- */
@media print {
  /* Hide navigation and interactive elements */
  .site-header,
  .site-footer,
  .legal-toc,
  .back-to-top {
    display: none;
  }

  /* Optimize layout for print */
  .legal-document {
    max-width: none;
    padding: 0;
  }

  /* Optimize typography for print */
  body {
    font-size: 12pt;
    line-height: 1.5;
    color: #000;
    background: #fff;
  }

  h1 {
    font-size: 18pt;
  }

  h2 {
    font-size: 16pt;
    page-break-after: avoid;
  }

  h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  /* Prevent orphans and widows */
  p {
    orphans: 3;
    widows: 3;
  }

  /* Keep sections together when possible */
  section {
    page-break-inside: avoid;
  }

  /* Page margins for professional look */
  @page {
    margin: 2cm;
  }
}

/* ==========================================================================
   16. JOIN PAGE - Conversion page with pilot/member sections
   ========================================================================== */

/* --------------------------------------------------------------------------
   Join Hero Section
   -------------------------------------------------------------------------- */
.join-hero {
  padding: var(--space-2xl) 0 var(--space-xl);
  text-align: center;
  background-color: var(--color-surface);
}

.join-hero h1 {
  margin-bottom: var(--space-md);
}

.join-hero-subtitle {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   Sticky Sentinel (for sticky CTA trigger - Plan 02)
   -------------------------------------------------------------------------- */
.sticky-sentinel {
  height: 1px;
  visibility: hidden;
}

/* --------------------------------------------------------------------------
   Join Sections
   -------------------------------------------------------------------------- */
.join-section {
  padding: var(--space-2xl) 0;
}

.join-section-intro {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 65ch;
  margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Pricing Badge
   -------------------------------------------------------------------------- */
.pricing-badge {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-text-inverse);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-lg);
}

.pricing-badge--free {
  background-color: var(--color-surface);
  color: var(--color-text);
  border: 2px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   Join Page Notice
   -------------------------------------------------------------------------- */
.join-notice {
  background: var(--color-surface);
  border-left: 4px solid var(--color-primary);
  padding: var(--space-md) var(--space-lg);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
  border-radius: var(--radius-sm);
}

.join-notice p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Side-by-side sections wrapper
   -------------------------------------------------------------------------- */
.join-sections-wrapper {
  display: flex;
  flex-direction: column;
}

/* Divider between sections */
.join-divider {
  height: 1px;
  background-color: var(--color-border);
  margin: var(--space-lg) var(--space-md);
}

@media (min-width: 1280px) {
  .join-sections-wrapper {
    flex-direction: row;
    max-width: 1400px;
    margin-inline: auto;
    padding-inline: var(--space-md);
  }

  .join-sections-wrapper .join-section {
    flex: 1;
    padding: var(--space-2xl);
  }

  /* Remove inner container max-width constraint */
  .join-sections-wrapper .container {
    max-width: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Push CTA to bottom of section */
  .join-sections-wrapper .join-cta-wrapper {
    margin-top: auto;
  }

  /* Force 2x2 grid for feature cards in join sections */
  .join-sections-wrapper .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Vertical divider between sections */
  .join-divider {
    width: 1px;
    height: auto;
    margin: 0;
  }

  /* Equal width buttons */
  .join-sections-wrapper .join-cta-wrapper .btn {
    min-width: 200px;
  }
}

/* --------------------------------------------------------------------------
   Feature Cards Grid
   -------------------------------------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Feature Card Component
   -------------------------------------------------------------------------- */
.feature-card {
  background-color: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-icon {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.feature-card-icon svg {
  width: 48px;
  height: 48px;
}

.feature-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

.feature-card-description {
  color: var(--color-text-muted);
  margin: 0;
  line-height: var(--line-height-relaxed);
}

/* ==========================================================================
   ABOUT PAGES - CARD LAYOUT
   ========================================================================== */

/* Neutral color scoping for About section */
.about-page {
  padding-top: var(--space-xl);
  /* Scope neutral colors - no red accents */
}

.about-page a:not(.btn):not(.nav-cta) {
  color: var(--color-text);
  text-decoration: underline;
}

.about-page a:not(.btn):not(.nav-cta):hover {
  color: var(--color-text-muted);
}

/* Cards section */
.about-cards-section {
  padding: var(--space-2xl) 0;
}

/* Cards grid - responsive 2 columns */
.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

/* Individual card */
.about-card {
  background-color: var(--color-background);
  box-shadow: var(--shadow-md);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Card icon */
.about-card-icon {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.about-card-icon svg {
  width: 32px;
  height: 32px;
}

/* Card title */
.about-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-sm);
}

/* Card body */
.about-card-body {
  color: var(--color-text-muted);
  line-height: var(--line-height-relaxed);
}

.about-card-body p {
  margin: 0 0 var(--space-sm);
}

.about-card-body p:last-child {
  margin-bottom: 0;
}

.about-card-body ul,
.about-card-body ol {
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-lg);
}

.about-card-body li {
  margin-bottom: var(--space-xs);
}

/* Related pages section */
.about-related {
  background-color: var(--color-surface);
  padding: var(--space-2xl) 0;
}

.about-related-title {
  font-size: var(--font-size-2xl);
  text-align: center;
  margin-bottom: var(--space-lg);
}

.about-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  max-width: 800px;
  margin-inline: auto;
}

.about-related-card {
  display: block;
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-decoration: none;
  color: var(--color-text);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.about-related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  color: var(--color-text);
}

/* Override .about-page link underline for related cards */
/* Specificity 0-3-1 ties .about-page a:not(.btn):not(.nav-cta), wins by source order */
.about-page a.about-related-card:not(.btn),
.about-page a.about-related-card:not(.btn):hover,
.about-page a.about-related-card:not(.btn):focus {
  text-decoration: none;
}

.about-related-card-title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-xs);
}

.about-related-card-description {
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-relaxed);
}

.about-related-arrow {
  color: var(--color-text-muted);
  font-size: var(--font-size-lg);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .about-cards-section {
    padding: var(--space-xl) 0;
  }

  .about-card {
    padding: var(--space-md);
  }

  .about-related {
    padding: var(--space-xl) 0;
  }
}

/* --------------------------------------------------------------------------
   Screenshot Figure
   -------------------------------------------------------------------------- */
.join-screenshot {
  margin: var(--space-xl) auto;
  max-width: 800px;
  text-align: center;
}

.join-screenshot img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.join-screenshot figcaption {
  margin-top: var(--space-md);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Join CTA Wrapper
   -------------------------------------------------------------------------- */
.join-cta-wrapper {
  text-align: center;
  margin-top: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Pricing Card
   -------------------------------------------------------------------------- */
.pricing-card {
  background-color: var(--color-background);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 500px;
  margin: 0 auto;
  text-align: center;
}

.pricing-card-title {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-lg);
}

.pricing-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-xl);
  text-align: left;
}

.pricing-benefits li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-md);
  line-height: var(--line-height-relaxed);
}

.pricing-benefits li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background-color: var(--color-primary);
  border-radius: 50%;
}

.pricing-amount {
  margin-bottom: var(--space-lg);
}

.pricing-currency {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  vertical-align: top;
  margin-right: var(--space-xs);
}

.pricing-value {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
}

.pricing-period {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-left: var(--space-xs);
}

.pricing-cta {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Join Page Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .join-hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .join-hero-subtitle {
    font-size: var(--font-size-lg);
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .pricing-card {
    padding: var(--space-lg);
  }
}

/* --------------------------------------------------------------------------
   Sticky CTA Bar
   -------------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;  /* Above map elements (1000) */
  background-color: var(--color-primary);
  color: #ffffff;
  padding: var(--space-md);
  box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.1);
  /* Safe area for notched devices */
  padding-bottom: max(var(--space-md), env(safe-area-inset-bottom));
  /* Hidden by default, shown by JS */
  transform: translateY(100%);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.sticky-cta.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.sticky-cta-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  max-width: 850px;
  margin-inline: auto;
}

.sticky-cta-text {
  font-weight: var(--font-weight-medium);
}

.sticky-cta .btn {
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
}

.sticky-cta .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.sticky-cta-dismiss {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: var(--space-xs);
  font-size: var(--font-size-lg);
  line-height: 1;
  opacity: 0.8;
}

.sticky-cta-dismiss:hover {
  opacity: 1;
}

/* Flicker prevention - hide CTA entirely if dismissed */
.sticky-cta-dismissed .sticky-cta {
  display: none !important;
}

/* Sticky CTA mobile responsive */
@media (max-width: 767px) {
  .sticky-cta-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-sm);
  }

  .sticky-cta-text {
    font-size: var(--font-size-sm);
  }
}

/* ==========================================================================
   EDITORIAL LAYOUT - Magazine-style prose with interlaced cards
   ========================================================================== */

/* --------------------------------------------------------------------------
   Editorial Page Structure
   -------------------------------------------------------------------------- */
.editorial {
    padding-top: var(--space-xl);
}

.editorial-prose {
    max-width: 75ch;
    margin-inline: auto;
    padding-inline: var(--space-lg);
}

.editorial-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

.editorial-lead {
    margin-bottom: var(--space-2xl);
}

.editorial-lead p {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--color-text);
}

.editorial-body {
    line-height: var(--line-height-relaxed);
}

.editorial-body p {
    margin-bottom: var(--space-md);
}

/* --------------------------------------------------------------------------
   Editorial Sections - flow-root for float containment
   -------------------------------------------------------------------------- */
.editorial-section {
    display: flow-root;
    margin-bottom: var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Editorial Cards - Float-based highlight cards
   -------------------------------------------------------------------------- */
.editorial-card {
    background-color: var(--color-background);
    box-shadow: var(--shadow-md);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    width: 260px;
    margin-bottom: var(--space-md);
}

.editorial-card--left {
    float: left;
    margin-right: var(--space-lg);
}

.editorial-card--right {
    float: right;
    margin-left: var(--space-lg);
}

.editorial-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.editorial-card-icon {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.editorial-card-title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-xs);
}

.editorial-card-body {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    line-height: var(--line-height-relaxed);
}

.editorial-card-body p {
    margin: 0 0 var(--space-xs);
}

.editorial-card-body p:last-child {
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Editorial Mobile - Cards stack full-width below 768px
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .editorial-prose {
        padding-inline: var(--space-md);
    }

    .editorial-card--left,
    .editorial-card--right {
        float: none;
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: var(--space-lg);
    }
}

/* --------------------------------------------------------------------------
   Editorial Video Card - Matches live map card treatment
   -------------------------------------------------------------------------- */
.editorial-video {
    margin-bottom: var(--space-2xl);
}

.video-card {
    border-radius: var(--radius-lg, 12px);
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.video-card-player {
    display: block;
    width: 100%;
    height: auto;
}

.video-card-caption {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-md);
}

/* Dark mode: increase shadow for visibility on dark backgrounds */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme]) .video-card {
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    }
}

:root[data-theme="dark"] .video-card {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   17. FLEET PAGE - Aircraft showcase with tabs and modal
   ========================================================================== */

/* --------------------------------------------------------------------------
   Fleet Page Layout
   -------------------------------------------------------------------------- */
.fleet-page {
    padding-top: var(--space-xl);
    padding-bottom: var(--space-2xl);
}

.fleet-header {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.fleet-header h1 {
    margin-bottom: var(--space-sm);
}

.fleet-intro {
    max-width: 600px;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Fleet Category Sections - Stacked layout matching team/partners
   -------------------------------------------------------------------------- */
.fleet-category {
    margin-bottom: var(--space-2xl);
}

.fleet-category:last-child {
    margin-bottom: 0;
}

.fleet-category .category-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Fleet Grid - Responsive Card Layout (Fleet Page specific)
   -------------------------------------------------------------------------- */
.fleet-page .fleet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Fleet Card (Fleet Page specific - adds clickable behavior)
   -------------------------------------------------------------------------- */
.fleet-page .fleet-card {
    display: flex;
    flex-direction: column;
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    cursor: pointer;
}

.fleet-page .fleet-card:focus-visible {
    outline: 2px solid var(--color-text-muted);
    outline-offset: 2px;
}

.fleet-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--color-text-muted);
}

.fleet-card-type {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
}

.fleet-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.fleet-card-specs .fleet-card-spec {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.fleet-card-specs .fleet-card-spec svg {
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Fleet Modal
   -------------------------------------------------------------------------- */
.fleet-modal {
    margin: auto;
    width: min(90vw, 800px);
    max-height: 90vh;
    border: none;
    border-radius: var(--radius-md);
    padding: 0;
    background-color: var(--color-background);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
}

/* Ensure dialog is visible when open (Safari compatibility)
   Safari has issues with the [open] attribute selector on dialogs,
   so we use an .is-open class added via JavaScript as a workaround.
   The backdrop click handler uses e.target === modal to avoid
   closing on programmatic clicks (e.g., specsTab.click()). */
.fleet-modal[open],
.fleet-modal.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(90vw, 800px);
    max-height: 90vh;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background-color: var(--color-background);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
}

.fleet-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.6);
}

.fleet-modal .modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    background: none;
    border: none;
    padding: var(--space-xs);
    cursor: pointer;
    color: var(--color-text-muted);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background-color var(--transition-fast);
    z-index: 10;
}

.fleet-modal .modal-close:hover {
    color: var(--color-text);
    background-color: var(--color-surface);
}

.fleet-modal .modal-header {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-lg);
    background-color: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.fleet-modal .modal-aircraft-image {
    width: 120px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.fleet-modal .modal-name {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-2xs);
}

.fleet-modal .modal-type {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Modal Internal Tabs
   -------------------------------------------------------------------------- */
.modal-tabs {
    padding: var(--space-lg);
    overflow-y: auto;
    max-height: calc(90vh - 150px);
}

.modal-tabs [role="tablist"] {
    display: flex;
    gap: var(--space-xs);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
}

.modal-tabs [role="tab"] {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-muted);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

.modal-tabs [role="tab"]:hover {
    color: var(--color-text);
}

.modal-tabs [role="tab"][aria-selected="true"] {
    color: var(--color-text);
    border-bottom-color: var(--color-text);
}

.modal-tabs [role="tab"]:focus-visible {
    outline: 2px solid var(--color-text);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Specification Display
   -------------------------------------------------------------------------- */
.specs-key {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.spec-card {
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    text-align: center;
}

.spec-value {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
}

.spec-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.specs-groups {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-lg);
}

.spec-group h3 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    padding-bottom: var(--space-xs);
    border-bottom: 2px solid var(--color-border);
}

.spec-group dl {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--space-xs) var(--space-md);
    margin: 0;
}

.spec-group dt {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.spec-group dd {
    margin: 0;
    text-align: right;
    font-size: var(--font-size-sm);
}

/* --------------------------------------------------------------------------
   Seat Map Container
   -------------------------------------------------------------------------- */
.seatmap-container {
    text-align: center;
}

.seatmap-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Modal Description
   -------------------------------------------------------------------------- */
.modal-description {
    padding: var(--space-md) var(--space-lg) var(--space-lg);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-lg);
}

.modal-description p {
    margin: 0;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Fleet Page Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    .fleet-page .fleet-grid {
        grid-template-columns: 1fr;
    }

    .fleet-modal {
        width: 100%;
        max-width: none;
        max-height: 100%;
        border-radius: 0;
    }

    .fleet-modal .modal-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

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

    .specs-groups {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   18. CONTENT PAGES - About pages, how-it-works, generic content layout
   ========================================================================== */

/* --------------------------------------------------------------------------
   Content Page Layout
   -------------------------------------------------------------------------- */
.content-page {
    padding: var(--space-xl) 0;
}

.container-narrow {
    max-width: 75ch;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.content-body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
}

/* --------------------------------------------------------------------------
   Content Typography
   -------------------------------------------------------------------------- */
.content-body h2 {
    font-size: var(--font-size-2xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid var(--color-border);
}

.content-body h3 {
    font-size: var(--font-size-xl);
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.content-body h4 {
    font-size: var(--font-size-lg);
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.content-body p {
    margin-bottom: var(--space-md);
}

.content-body ul,
.content-body ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-xl);
}

.content-body li {
    margin-bottom: var(--space-xs);
}

.content-body strong {
    font-weight: var(--font-weight-semibold);
}

/* --------------------------------------------------------------------------
   Blockquotes
   -------------------------------------------------------------------------- */
.content-body blockquote {
    border-left: 4px solid var(--color-primary);
    padding-left: var(--space-lg);
    margin: var(--space-lg) 0;
    font-style: italic;
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Content Page Hero
   -------------------------------------------------------------------------- */
.content-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark, #b3001a) 100%);
    color: white;
    padding: var(--space-2xl) 0;
    text-align: center;
}

.content-hero .hero-title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-md);
}

.content-hero .hero-subtitle {
    font-size: var(--font-size-xl);
    opacity: 0.9;
}

/* --------------------------------------------------------------------------
   Content Page Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .content-page {
        padding: var(--space-xl) 0;
    }

    .container-narrow {
        padding: 0 var(--space-md);
    }

    .content-hero .hero-title {
        font-size: var(--font-size-3xl);
    }

    .content-hero .hero-subtitle {
        font-size: var(--font-size-lg);
    }
}

/* --------------------------------------------------------------------------
   Content Page Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .content-body h2 {
        border-bottom-color: var(--color-border);
    }

    .content-body blockquote {
        color: var(--color-text-muted);
    }
}

/* --------------------------------------------------------------------------
   How It Works - Numbered Steps (ID-based)
   Works with headings like "## 1. Create Account" which get id="1-create-account"
   -------------------------------------------------------------------------- */
.content-body h2[id^="1"],
.content-body h2[id^="2"],
.content-body h2[id^="3"],
.content-body h2[id^="4"],
.content-body h2[id^="5"],
.content-body h2[id^="6"] {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: none;
    padding-bottom: 0;
}

.content-body h2[id^="1"]::before,
.content-body h2[id^="2"]::before,
.content-body h2[id^="3"]::before,
.content-body h2[id^="4"]::before,
.content-body h2[id^="5"]::before,
.content-body h2[id^="6"]::before {
    content: attr(id);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   How It Works - Numbered Steps (Class-based)
   Alternative: add .numbered-steps class to content-body for automatic counter
   -------------------------------------------------------------------------- */
.content-body.numbered-steps {
    counter-reset: step-counter;
}

.content-body.numbered-steps h2 {
    counter-increment: step-counter;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: none;
    padding-bottom: 0;
}

.content-body.numbered-steps h2::before {
    content: counter(step-counter);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Numbered Steps Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .content-body h2[id^="1"]::before,
    .content-body h2[id^="2"]::before,
    .content-body h2[id^="3"]::before,
    .content-body h2[id^="4"]::before,
    .content-body h2[id^="5"]::before,
    .content-body h2[id^="6"]::before,
    .content-body.numbered-steps h2::before {
        width: 2rem;
        height: 2rem;
        font-size: var(--font-size-base);
    }
}

/* ==========================================================================
   REGISTRATION WIZARD
   ========================================================================== */

/* --------------------------------------------------------------------------
   Wizard Section Container
   -------------------------------------------------------------------------- */
.wizard-section {
    padding: var(--space-xl) 0;
    background-color: var(--color-surface);
}

/* --------------------------------------------------------------------------
   Wizard Container
   -------------------------------------------------------------------------- */
.wizard-container {
    max-width: 650px;
    margin: 0 auto;
    background: var(--color-background);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xl);
}

/* --------------------------------------------------------------------------
   Wizard Progress Indicator
   -------------------------------------------------------------------------- */
.wizard-progress {
    margin-bottom: var(--space-xl);
}

.wizard-progress-list {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Progress connector line */
.wizard-progress-list::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-border);
    z-index: 0;
}

.wizard-progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.wizard-progress-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-sm);
    transition: all var(--transition-base);
    color: var(--color-text-muted);
}

.wizard-progress-label {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    max-width: 80px;
    line-height: 1.3;
}

/* Current step state */
.wizard-progress-step.is-current .wizard-progress-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.wizard-progress-step.is-current .wizard-progress-label {
    color: var(--color-text);
    font-weight: var(--font-weight-semibold);
}

/* Completed step state */
.wizard-progress-step.is-complete .wizard-progress-icon {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.wizard-progress-step.is-complete .wizard-progress-label {
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Wizard Steps
   -------------------------------------------------------------------------- */
.wizard-step {
    animation: fadeIn var(--transition-base);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.wizard-step-intro {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-base);
}

/* --------------------------------------------------------------------------
   Form Fields
   -------------------------------------------------------------------------- */
.form-field {
    margin-bottom: var(--space-lg);
}

.form-field label {
    display: block;
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.form-field .required {
    color: var(--color-primary);
    margin-left: 0.125rem;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field input[type="date"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
    width: 100%;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-background);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
    border-color: var(--color-primary);
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Form field hints */
.field-hint {
    display: block;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}

/* Form field errors */
.field-error {
    font-size: var(--font-size-sm);
    color: var(--color-primary);
    margin-top: var(--space-xs);
}

.field-error:not([hidden]) {
    display: flex;
    align-items: flex-start;
    gap: var(--space-xs);
}

.field-error::before {
    content: '⚠';
    font-weight: var(--font-weight-bold);
    flex-shrink: 0;
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
    border-color: var(--color-primary);
    border-width: 2px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23cc0000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 16px;
    padding-right: 2.5rem;
}

/* Global wizard error */
.wizard-error {
    background: rgba(204, 0, 0, 0.1);
    border: 1px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-sm);
    padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + var(--space-sm));
    margin-bottom: var(--space-lg);
    color: var(--color-primary);
    align-items: flex-start;
    gap: var(--space-sm);
}

.wizard-error:not([hidden]) {
    display: flex;
}

.wizard-error::before {
    content: '!';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-weight: var(--font-weight-bold);
    font-size: var(--font-size-sm);
    flex-shrink: 0;
    margin-top: 2px;
}

/* Network error (shared between two fields) */
.network-error {
    margin-top: var(--space-md);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Form Row (side-by-side fields)
   -------------------------------------------------------------------------- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
}

@media (max-width: 640px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Toggle Switch
   -------------------------------------------------------------------------- */
.toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    padding: var(--space-sm) 0;
    min-height: 44px;
}

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

.toggle-track {
    position: relative;
    width: 48px;
    height: 28px;
    background: var(--color-border);
    border-radius: 14px;
    transition: background var(--transition-base);
    margin-right: var(--space-md);
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.toggle input:checked + .toggle-track {
    background: var(--color-primary);
}

.toggle input:checked + .toggle-track .toggle-thumb {
    transform: translateX(20px);
}

.toggle input:focus-visible + .toggle-track {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.toggle-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Membership Toggle Wrapper
   -------------------------------------------------------------------------- */
.membership-toggle-wrapper {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
}

.membership-benefits {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-sm);
    margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Member Fields (collapsible)
   -------------------------------------------------------------------------- */
.member-fields {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    overflow: hidden;
    transition: opacity var(--transition-base);
}

.member-fields[hidden] {
    display: none;
}

.member-fields-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Radio Group
   -------------------------------------------------------------------------- */
.radio-group {
    display: flex;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.radio {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.radio input[type="radio"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    margin-right: var(--space-sm);
    cursor: pointer;
    accent-color: var(--color-primary);
}

.radio span {
    color: var(--color-text);
}

.radio input:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Checkbox Group
   -------------------------------------------------------------------------- */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.checkbox {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    padding: var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.checkbox:hover {
    background: var(--color-surface);
}

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

.checkbox-box {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-right: var(--space-md);
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition-fast);
}

.checkbox input:checked + .checkbox-box {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.checkbox input:checked + .checkbox-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox input:focus-visible + .checkbox-box {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.checkbox-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.checkbox-label {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.checkbox-hint {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Minor Consent Notice
   -------------------------------------------------------------------------- */
.minor-consent {
    background: rgba(255, 180, 0, 0.1);
    border-left: 4px solid #ffb400;
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-lg);
}

.minor-consent strong {
    display: block;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.minor-consent p {
    margin: 0;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Wizard Navigation
   -------------------------------------------------------------------------- */
.wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   Review Step
   -------------------------------------------------------------------------- */
.review-section {
    margin-bottom: var(--space-xl);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.review-section:last-of-type {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-md);
}

.review-header h3 {
    font-size: var(--font-size-lg);
    margin: 0;
}

.btn-link {
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.btn-link:hover {
    color: var(--color-primary-hover);
}

.review-list {
    display: grid;
    gap: var(--space-md);
}

.review-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: var(--space-md);
}

.review-item dt {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}

.review-item dd {
    margin: 0;
    color: var(--color-text);
}

/* Hide review items for empty optional fields */
.review-item[data-review-section][hidden] {
    display: none;
}

.review-motivation {
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    white-space: pre-wrap;
    color: var(--color-text);
    font-size: var(--font-size-base);
}

/* --------------------------------------------------------------------------
   Membership Status Indicator
   -------------------------------------------------------------------------- */
.membership-status {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    text-align: center;
    margin-bottom: var(--space-lg);
}

.membership-status-text {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.membership-status-text[hidden] {
    display: none;
}

/* --------------------------------------------------------------------------
   Membership Benefits Grid
   -------------------------------------------------------------------------- */
.membership-benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.benefit-card {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-lg);
    text-align: center;
    transition: all 0.2s ease;
}

.benefit-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-md);
    background: var(--color-primary);
    border-radius: 50%;
    color: #ffffff;
}

.benefit-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.benefit-description {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

.membership-legal-note {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-lg);
}

/* --------------------------------------------------------------------------
   Membership Choice Cards
   -------------------------------------------------------------------------- */
.membership-choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.membership-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.membership-choice-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.choice-card-content {
    background: #ffffff;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: var(--space-xl);
    transition: all 0.2s ease;
}

.membership-choice-card:hover .choice-card-content {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.membership-choice-card input[type="radio"]:checked + .choice-card-content {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(239, 0, 0, 0.1);
}

.choice-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}

.choice-card-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
    margin: 0;
}

.choice-card-price {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--color-primary);
}

.choice-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.choice-card-features li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-sm);
    color: var(--color-text);
}

.choice-card-features li:last-child {
    margin-bottom: 0;
}

.choice-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.membership-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    font-style: italic;
}

.choice-card-note {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    line-height: 1.5;
}

.nowrap {
    white-space: nowrap;
}

/* Submit button pricing note */
.submit-pricing-note {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
}

.submit-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.wizard-nav-submit {
    margin-top: var(--space-xl);
}

/* Membership Type Summary in Review */
.membership-type-summary {
    margin: var(--space-lg) 0;
    padding: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
}

.membership-type-card {
    text-align: center;
}

.membership-type-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.membership-type-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm) var(--space-md);
}

.membership-type-benefits li {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    position: relative;
    padding-left: var(--space-md);
}

.membership-type-benefits li.benefit-included::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

.membership-type-benefits li.benefit-excluded {
    color: var(--color-text-disabled, #999);
    opacity: 0.6;
}

.membership-type-benefits li.benefit-excluded::before {
    content: '✗';
    position: absolute;
    left: 0;
    color: var(--color-text-disabled, #999);
    font-weight: bold;
}

/* Participation Tier section - tighter spacing */
.review-section-tier {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: var(--space-sm);
}

.review-section-tier .membership-type-summary {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Personal Info Summary (Step 5)
   -------------------------------------------------------------------------- */
.personal-info-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-md);
    margin-bottom: var(--space-lg);
    background: var(--color-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
}

.personal-info-summary-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xs);
}

.personal-info-name {
    font-weight: var(--font-weight-semibold);
    color: var(--color-text);
}

.personal-info-dob {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Date Input Group
   -------------------------------------------------------------------------- */
.date-field-group {
    border: none;
    padding: 0;
    margin: 0 0 var(--space-lg) 0;
}

.date-field-group legend {
    font-weight: var(--font-weight-medium);
    color: var(--color-text);
    margin-bottom: var(--space-xs);
    font-size: var(--font-size-base);
}

.date-inputs {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}

.date-input-wrapper {
    flex: 0 0 auto;
}

.date-input-wrapper input {
    width: 5rem;
    text-align: center;
}

.date-input-wrapper.date-input-month {
    flex: 1 1 auto;
    max-width: 12rem;
}

.date-input-wrapper.date-input-month select {
    width: 100%;
}

/* Hide native spinner buttons on date number inputs */
.date-input-wrapper input[type="number"]::-webkit-inner-spin-button,
.date-input-wrapper input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.date-input-wrapper input[type="number"] {
  -moz-appearance: textfield;
}

/* Custom select appearance for month selector */
.date-input-wrapper select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23888888' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-md) center;
  padding-right: calc(var(--space-md) + 20px);
  cursor: pointer;
}

.date-field-group .field-hint {
    display: block;
    margin-top: var(--space-xs);
}

.date-field-group .field-error {
    display: block;
    margin-top: var(--space-xs);
}

/* Visually hidden for screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Modal
   -------------------------------------------------------------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal[hidden] {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.modal-dialog {
    position: relative;
    background: #ffffff;
    border-radius: var(--radius-sm);
    box-shadow: 0 20px 25px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    z-index: 1001;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    margin: 0;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--color-text);
}

.modal-close {
    background: none;
    border: none;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: var(--space-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xs);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--color-surface);
    color: var(--color-text);
}

.modal-body {
    padding: var(--space-lg);
    overflow-y: auto;
}

/* --------------------------------------------------------------------------
   Wizard Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .wizard-container {
        padding: var(--space-lg);
    }

    .wizard-progress-list::before {
        display: none;
    }

    .wizard-progress-list {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .wizard-progress-step {
        flex-basis: calc(33.333% - var(--space-md));
    }

    .wizard-progress-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .wizard-progress-icon svg {
        width: 20px;
        height: 20px;
    }

    .wizard-progress-label {
        font-size: 0.75rem;
    }

    .wizard-step-title {
        font-size: var(--font-size-xl);
    }

    .review-item {
        grid-template-columns: 1fr;
        gap: var(--space-xs);
    }

    .review-item dt {
        font-size: var(--font-size-sm);
    }

    .wizard-nav {
        flex-direction: column-reverse;
        gap: var(--space-md);
    }

    .wizard-nav .btn {
        width: 100%;
    }

    .membership-benefits-grid {
        grid-template-columns: 1fr;
    }

    .membership-choice-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .wizard-section {
        padding: var(--space-lg) var(--space-md);
    }

    .wizard-container {
        padding: var(--space-md);
        border-radius: var(--radius-sm);
        max-width: 100%;
    }

    /* Show only icons on mobile for progress indicator */
    .wizard-progress-label {
        display: none;
    }

    .wizard-progress-step {
        flex-basis: auto;
        flex: 1;
    }

    .wizard-progress-icon {
        margin-bottom: 0;
    }
}

/* ==========================================================================
   REGISTRATION SUCCESS PAGE
   ========================================================================== */

/* --------------------------------------------------------------------------
   Success Hero
   -------------------------------------------------------------------------- */
.success-hero {
    padding: var(--space-xl) 0;
    background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%);
    text-align: center;
}

.success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    color: #ffffff;
}

.success-icon svg {
    width: 60px;
    height: 60px;
}

.success-hero h1 {
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.success-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
    margin: 0;
}

/* --------------------------------------------------------------------------
   Success Content
   -------------------------------------------------------------------------- */
.success-content {
    padding: var(--space-xl) 0 var(--space-2xl);
}

.success-message {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
    text-align: center;
}

/* --------------------------------------------------------------------------
   Success Note (Member Info)
   -------------------------------------------------------------------------- */
.success-note {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    margin-bottom: var(--space-xl);
    background: rgba(59, 130, 246, 0.1);
    border-left: 4px solid #3b82f6;
    border-radius: var(--border-radius);
}

.success-note-icon {
    flex-shrink: 0;
    color: #3b82f6;
}

.success-note p {
    margin: 0;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Next Steps Section
   -------------------------------------------------------------------------- */
.success-next-steps {
    margin-bottom: var(--space-xl);
}

.success-next-steps h2 {
    margin-bottom: var(--space-lg);
    text-align: center;
}

.next-steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.next-steps-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.next-steps-list li:last-child {
    margin-bottom: 0;
}

.step-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    border-radius: 50%;
    color: #ffffff;
}

.step-icon svg {
    width: 24px;
    height: 24px;
}

.next-steps-list li span:last-child {
    flex: 1;
}

/* --------------------------------------------------------------------------
   Connect Section
   -------------------------------------------------------------------------- */
.success-connect {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.success-connect h2 {
    margin-bottom: var(--space-md);
}

.success-connect p {
    margin-bottom: var(--space-lg);
    color: var(--color-text-muted);
}

.success-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Responsive - Success Page
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .success-icon {
        width: 80px;
        height: 80px;
    }

    .success-icon svg {
        width: 48px;
        height: 48px;
    }

    .success-subtitle {
        font-size: var(--font-size-base);
    }

    .next-steps-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: var(--space-md);
    }

    .success-buttons {
        flex-direction: column;
    }

    .success-buttons .btn {
        width: 100%;
    }
}

/* --------------------------------------------------------------------------
   Wizard Dark Mode
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
    .wizard-container {
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.8);
    }

    .wizard-progress-list::before {
        background: var(--color-border);
    }

    .wizard-progress-icon {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .wizard-progress-step.is-current .wizard-progress-icon,
    .wizard-progress-step.is-complete .wizard-progress-icon {
        background: var(--color-primary);
        border-color: var(--color-primary);
    }

    .form-field input,
    .form-field select,
    .form-field textarea {
        background-color: var(--color-surface);
        border-color: var(--color-border);
        color: var(--color-text);
    }

    .toggle-track {
        background: var(--color-border);
    }

    .toggle-thumb {
        background: var(--color-surface);
    }

    .membership-toggle-wrapper,
    .checkbox {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .checkbox:hover {
        background: #1a1a1a;
    }

    .checkbox-box {
        border-color: var(--color-border);
    }

    .minor-consent {
        background: rgba(255, 180, 0, 0.15);
        border-left-color: #ffb400;
    }

    .review-motivation {
        background: var(--color-surface);
    }

    .membership-status {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .success-hero {
        background: var(--color-surface);
    }

    .success-note {
        background: rgba(59, 130, 246, 0.15);
        border-left-color: #3b82f6;
    }

    .next-steps-list li {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .benefit-card {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .choice-card-content {
        background: var(--color-surface);
        border-color: var(--color-border);
    }

    .modal-dialog {
        background: var(--color-surface);
    }

    .modal-header {
        border-bottom-color: var(--color-border);
    }

    :root:not([data-theme="light"]) .date-input-wrapper select {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
    }
}

:root[data-theme="dark"] .date-input-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%23a0a0a0' stroke-width='2'%3E%3Cpath d='M3 5l3 3 3-3'/%3E%3C/svg%3E");
}
