@charset "UTF-8";
.hidden {
  display: none !important;
}

:root {
  --safe-inset: max(16px, env(safe-area-inset-left));
  --safe-inset-r: max(16px, env(safe-area-inset-right));
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
            animation: none !important;
  }
}
/* Navbar shell */
.navbar {
  position: sticky;
  top: 12px;
  z-index: 2147483000;
  /* REMOVE the full-bleed hack */
  width: 80vw; /* not 100vw */
  margin: 0 auto;
  padding-inline: 0;
}
.navbar .navbar-inner {
  /* full width everywhere */
  max-width: none; /* no cap */
  width: 100%;
  margin: 12px 0;
  padding: 8px clamp(10px, 2vw, 20px);
  background: #f5f6f7;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  -webkit-box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
          box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.navbar.transparent .navbar-inner {
  background: rgba(245, 246, 247, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  border-color: rgba(15, 23, 42, 0.06);
}

/* Logo */
.navbar-logo {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 6px 10px;
  background: #f3f4f6;
  border-radius: 16px;
  line-height: 0;
  -webkit-transition: -webkit-transform 0.2s ease;
  transition: -webkit-transform 0.2s ease;
  transition: transform 0.2s ease;
  transition: transform 0.2s ease, -webkit-transform 0.2s ease;
}
.navbar-logo:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.navbar-logo img {
  height: clamp(48px, 6.5vw, 64px);
  width: auto;
  display: block;
  border-radius: 12px;
}

/* Icons */
.icon-user {
  width: 28px;
  height: 28px;
  display: block;
}

/* Desktop sections */
.desktop-nav {
  display: none;
}
@media (min-width: 1024px) {
  .desktop-nav {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 18px;
  }
}

.navbar-links a, .navbar-actions a, .mobile-links a {
  color: #0f172a;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.navbar-links a {
  padding: 10px 12px;
  border-radius: 10px;
  -webkit-transition: background-color 0.15s ease, color 0.15s ease;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.navbar-links a:hover {
  background: #f3f4f6;
  color: #0f172a;
}

/* Desktop dropdown (Services) */
.nav-dropdown {
  position: relative;
  display: inline-block; /* limit hover zone to the trigger width */
  /* open only when the trigger OR the submenu itself is hovered/focused */
}
.nav-dropdown .nav-parent {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-dropdown .nav-parent .caret { /* … */ }
.nav-dropdown .nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 200;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  -webkit-box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
          box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  padding: 8px;
  display: -ms-grid;
  display: grid;
  gap: 2px;
  /* closed state: not hittable, not visible */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-transition: opacity 0.15s ease, visibility 0s linear 0.15s, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, visibility 0s linear 0.15s, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s, -webkit-transform 0.15s ease;
}
.nav-dropdown .nav-submenu a { /* … */ }
.nav-dropdown:has(> .nav-parent:hover) .nav-submenu, .nav-dropdown:has(> .nav-submenu:hover) .nav-submenu, .nav-dropdown:focus-within .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-transition-delay: 0s;
          transition-delay: 0s; /* show immediately */
}
.nav-dropdown:has(> .nav-parent:hover) .caret, .nav-dropdown:has(> .nav-submenu:hover) .caret, .nav-dropdown:focus-within .caret {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

/* User menu (button container in header) */
.user-menu {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
.user-menu .login-icon-btn, .user-menu .user-menu-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 8px;
  border-radius: 12px;
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.user-menu .login-icon-btn:hover, .user-menu .user-menu-btn:hover {
  background: #f3f4f6;
}

/* =========================
   PORTALED ACCOUNT DROPDOWNS
   (Desktop + Mobile dropdowns move to <body> by JS)
   ========================= */
/* =========================
   PORTALED ACCOUNT DROPDOWNS
   (Desktop + Mobile dropdowns move to <body> by JS)
   ========================= */
.user-dropdown {
  position: fixed;
  z-index: 2147483647 !important;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  -webkit-box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
          box-shadow: 0 8px 24px rgba(2, 6, 23, 0.08);
  padding: 10px;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  max-width: min(92vw, 420px);
  display: none;
  opacity: 0;
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  pointer-events: none;
  -webkit-transition: opacity 0.15s ease, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, -webkit-transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease;
  transition: opacity 0.15s ease, transform 0.15s ease, -webkit-transform 0.15s ease;
}
.user-dropdown.open {
  display: -ms-grid !important;
  display: grid !important;
  grid-auto-flow: row;
  gap: 8px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  opacity: 1;
  -webkit-transform: translateY(0);
          transform: translateY(0);
  pointer-events: auto;
}

/* Mobile controls */
.mobile-controls {
  position: relative;
  z-index: 2147483001;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
@media (min-width: 1024px) {
  .mobile-controls {
    display: none;
  }
}
.mobile-controls .login-icon-btn, .mobile-controls .user-menu-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 8px;
  border-radius: 12px;
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.mobile-controls .login-icon-btn:hover, .mobile-controls .user-menu-btn:hover {
  background: #f3f4f6;
}
.mobile-controls .burger-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  -webkit-transition: background-color 0.15s ease, -webkit-transform 0.15s ease;
  transition: background-color 0.15s ease, -webkit-transform 0.15s ease;
  transition: background-color 0.15s ease, transform 0.15s ease;
  transition: background-color 0.15s ease, transform 0.15s ease, -webkit-transform 0.15s ease;
}
.mobile-controls .burger-btn:hover {
  background: #f3f4f6;
}
.mobile-controls .burger-btn[aria-expanded=true] {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
}

/* Hide desktop on small screens */
@media (max-width: 1023px) {
  .navbar-links.desktop-nav, .navbar-actions.desktop-nav {
    display: none !important;
  }
}
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(2, 6, 23, 0.4);
  backdrop-filter: blur(2px);
  -webkit-transform: translateY(-100%);
          transform: translateY(-100%);
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
  opacity: 0;
  pointer-events: none;
}
.mobile-menu[aria-hidden=false], .mobile-menu.open {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.mobile-menu .mobile-menu-inner {
  position: absolute;
  inset: 0;
  padding: 16px;
  padding-left: var(--safe-inset);
  padding-right: var(--safe-inset-r);
  background: #ffffff;
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.mobile-menu[aria-hidden=false] .mobile-menu-inner, .mobile-menu.open .mobile-menu-inner {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
.mobile-menu .mobile-menu-header {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 10px;
  padding: 8px 0 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}
.mobile-menu .mobile-menu-header .mobile-logo {
  height: clamp(44px, 7vw, 64px);
  width: auto;
  display: block;
  background: #f3f4f6;
  border-radius: 16px;
  padding: 4px 8px;
}
.mobile-menu .mobile-menu-header .close-btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 18px;
  cursor: pointer;
  -webkit-transition: background-color 0.15s ease;
  transition: background-color 0.15s ease;
}
.mobile-menu .mobile-menu-header .close-btn:hover {
  background: #f3f4f6;
}
.mobile-menu .mobile-links {
  display: -ms-grid;
  display: grid;
  gap: 16px;
  padding: 32px 0;
  text-align: center;
}
.mobile-menu .mobile-links a {
  padding: 12px 10px;
  border-radius: 12px;
  color: #0f172a;
  font-weight: 700;
  font-size: 18px;
}
.mobile-menu .mobile-links a:hover {
  background: #f3f4f6;
}
.mobile-menu .mobile-links details.nav-dropdown {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 6px;
  text-align: left;
}
.mobile-menu .mobile-links details.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  padding: 10px;
  border-radius: 10px;
  font-weight: 700;
  color: #0f172a;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}
.mobile-menu .mobile-links details.nav-dropdown summary:hover {
  background: #f3f4f6;
}
.mobile-menu .mobile-links details.nav-dropdown summary .caret {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid #475569;
  -webkit-transition: -webkit-transform 0.15s ease;
  transition: -webkit-transform 0.15s ease;
  transition: transform 0.15s ease;
  transition: transform 0.15s ease, -webkit-transform 0.15s ease;
}
.mobile-menu .mobile-links details.nav-dropdown[open] summary .caret {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}
.mobile-menu .mobile-links details.nav-dropdown .nav-submenu {
  display: -ms-grid;
  display: grid;
  gap: 4px;
  padding: 6px;
}
.mobile-menu .mobile-links details.nav-dropdown .nav-submenu a {
  color: #475569;
  font-weight: 600;
  padding: 10px;
  border-radius: 10px;
}
.mobile-menu .mobile-links details.nav-dropdown .nav-submenu a:hover {
  background: #f3f4f6;
  color: #0f172a;
}

@media (min-width: 1024px) {
  .navbar-inner {
    padding: 10px 14px;
  }
  .navbar-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 4px;
  }
  .navbar-links > a, .navbar-links > .nav-dropdown > .nav-parent {
    font-size: 15px;
  }
  .navbar-actions {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: 8px;
  }
}
.user-menu-btn {
  -ms-touch-action: manipulation;
      touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  overflow-x: clip;
}

.inline-btn {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

.verify-actions {
  margin-top: 8px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}

.footer {
  background: linear-gradient(135deg, #0d3870 0%, #09264d 100%);
  color: #fff;
  border-top: 4px solid #05a488;
  padding: 3rem 2rem 1.5rem;
  /* GRID: logo row + content rows */
  /* LOGO: center in the most robust way possible */
  /* Columns */
  /* ===== Mobile polish (<=768px) ===== */
  /* ===== Desktop (>=768px) ===== */
}
.footer .footer-container {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr; /* stack by default */
  gap: 2rem;
  max-width: 1280px;
  margin: 0 auto;
  justify-items: center; /* HARD center all direct children */
  text-align: center; /* center text on mobile */
}
.footer .footer-logo-col {
  grid-column: 1/-1;
  display: -ms-grid;
  display: grid; /* simpler than flex for centering */
  place-items: center; /* centers both axes */
  margin-bottom: 1.25rem;
}
.footer .footer-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin-inline: auto; /* center even if parent changes */
  -o-object-fit: contain;
     object-fit: contain;
  -o-object-position: center;
     object-position: center; /* neutralize weird SVG viewBox bias */
  -webkit-filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
          filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.25));
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}
.footer .footer-logo:hover {
  -webkit-transform: scale(1.05);
          transform: scale(1.05);
}
.footer .footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 0.4rem;
}
.footer .footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer .footer-col ul li {
  margin-bottom: 0.6rem;
}
.footer .footer-col ul a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.footer .footer-col ul a:hover {
  color: #05e3b8;
}
.footer .footer-col .footer-contact-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
  text-decoration: none;
  font-weight: 500;
}
.footer .footer-col .footer-contact-link i {
  color: #05a488;
}
.footer .footer-col .footer-contact-link:hover {
  color: #05e3b8;
}
.footer .footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}
.footer .footer-bottom small {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
@media (max-width: 768px) {
  .footer .footer-col h4 {
    border-bottom: 0 !important;
    position: relative;
    margin: 0 0 0.75rem;
    padding: 0 0 0.5rem;
  }
  .footer .footer-col h4::after {
    content: "";
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
            transform: translateX(-50%);
    bottom: 0;
    width: 56px;
    height: 2px;
    background: -webkit-gradient(linear, left top, right top, from(#05a488), to(#05e3b8));
    background: linear-gradient(90deg, #05a488, #05e3b8);
    border-radius: 1px;
  }
  .footer .footer-contact-link {
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}
@media (min-width: 768px) {
  .footer { /* logo remains centered row */ }
  .footer .footer-container {
    -ms-grid-columns: (minmax(180px, 1fr))[3];
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    justify-items: stretch; /* columns fill width */
    text-align: left; /* keep links/titles left on desktop */
  }
  .footer .footer-logo-col {
    grid-column: 1/-1;
  }
}

.hero {
  width: 100%;
  min-height: 100svh;
  background-image: url("/assets/images/modern_office_scene_optimized.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  display: -ms-grid;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 5rem) 1.25rem;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  color: #fff;
  overflow: clip;
}
.hero .hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 15% 20%, rgba(0, 194, 178, 0.35), transparent 60%), radial-gradient(1000px 500px at 85% 80%, rgba(13, 56, 112, 0.45), transparent 60%), linear-gradient(120deg, rgba(13, 56, 112, 0.75) 55%, rgba(0, 181, 173, 0.85) 100%);
  mix-blend-mode: multiply;
  z-index: 1;
  pointer-events: none;
}
.hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  width: min(100%, 860px);
  margin: 0 auto;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 18, 32, 0.35);
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}
.hero .hero-content .hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.9rem;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.hero .hero-content h1 {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  margin: 0.6rem 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.hero .hero-content p {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}
.hero .hero-content .hero-cta {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.75rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-bottom: 1rem;
}
.hero .hero-content .cta-btn {
  background-color: #00c2b2;
  color: #0b1220;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  border: 1px solid #00c2b2;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  cursor: pointer;
}
.hero .hero-content .cta-btn:hover {
  background-color: #05a488;
  border-color: #05a488;
}
.hero .hero-content .cta-btn:active {
  -webkit-transform: translateY(1px) scale(0.99);
          transform: translateY(1px) scale(0.99);
}
.hero .hero-content .cta-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.hero .hero-content .cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}
.hero .hero-content .hero-trust {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 0.75rem minmax(0, 1fr) 0.75rem minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}
.hero .hero-content .hero-trust li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}
.hero .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.75;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.35rem;
  -webkit-animation: hero-float 2.5s ease-in-out infinite;
          animation: hero-float 2.5s ease-in-out infinite;
}
.hero .scroll-cue .mouse {
  width: 14px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  position: relative;
  display: inline-block;
}
.hero .scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-animation: hero-wheel 1.8s ease-in-out infinite;
          animation: hero-wheel 1.8s ease-in-out infinite;
}
@-webkit-keyframes hero-float {
  0%, 100% {
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  50% {
    -webkit-transform: translate(-50%, -6px);
            transform: translate(-50%, -6px);
  }
}
@keyframes hero-float {
  0%, 100% {
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  50% {
    -webkit-transform: translate(-50%, -6px);
            transform: translate(-50%, -6px);
  }
}
@-webkit-keyframes hero-wheel {
  0% {
    opacity: 0;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(-50%, 6px);
            transform: translate(-50%, 6px);
  }
}
@keyframes hero-wheel {
  0% {
    opacity: 0;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(-50%, 6px);
            transform: translate(-50%, 6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero .scroll-cue {
    -webkit-animation: none;
            animation: none;
  }
  .hero .scroll-cue .mouse::after {
    -webkit-animation: none;
            animation: none;
  }
}
@media (max-width: 768px) {
  .hero {
    padding: 3rem 1rem;
  }
  .hero .hero {
    background-image: url("/assets/images/modern_office_scene_mobile (1).webp");
  }
  .hero .hero-content {
    padding: 1.5rem;
  }
  .hero .hero-content .hero-trust {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 2.5rem 1rem;
  }
  .hero .hero {
    background-image: url("/assets/images/modern_office_scene_mobile (1).webp");
  }
  .hero .hero-content h1 {
    font-size: 1.9rem;
  }
  .hero .hero-content p {
    font-size: 1rem;
  }
  .hero .hero-content .cta-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}
.hero .visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* ================== Shared Modal Styles ================== */
.modal-base {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0, 0, 0, 0.85);
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  opacity: 0;
  -webkit-transition: opacity 0.3s ease;
  transition: opacity 0.3s ease;
}

.modal-base.show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
}

.modal-content {
  background: #111;
  color: #fff;
  padding: 2rem;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  -webkit-transform: scale(0.96);
          transform: scale(0.96);
  -webkit-transition: -webkit-transform 0.3s ease;
  transition: -webkit-transform 0.3s ease;
  transition: transform 0.3s ease;
  transition: transform 0.3s ease, -webkit-transform 0.3s ease;
}

.modal-base.show .modal-content {
  -webkit-transform: scale(1);
          transform: scale(1);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #fff;
}

/* Special case for video (kept for compatibility) */
.video-modal .modal-content {
  max-width: 900px;
  max-height: 80vh;
  background: #000;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  overflow: hidden;
}

/* Backdrop: softer, tinted like your hero overlay */
.modal-base {
  background: radial-gradient(1200px 600px at 15% 20%, rgba(0, 194, 178, 0.18), transparent 60%), radial-gradient(1000px 500px at 85% 80%, rgba(13, 56, 112, 0.22), transparent 60%), rgba(7, 10, 18, 0.68); /* not pure black */
}

/* Glass look for info modals (leaves video modal dark) */
.modal-content.glass {
  background: rgba(11, 18, 32, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: #fff;
}

/* Typography polish to match hero */
.modal-content.glass h2 {
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.modal-content.glass p {
  margin: 0.5rem 0;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

/* Close button hover like your CTA tones */
.close-modal {
  line-height: 1;
  padding: 0.25rem 0.4rem;
  border-radius: 8px;
  -webkit-transition: background-color 0.2s ease, opacity 0.2s ease;
  transition: background-color 0.2s ease, opacity 0.2s ease;
}

.modal-content.glass .close-modal:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 0.9;
}

.about-section {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  border-radius: 28px;
  overflow: hidden;
  margin: 5rem 0;
  background: #ffffff;
}
.about-section .about-diagram {
  -webkit-box-flex: 1.5;
      -ms-flex: 1.5;
          flex: 1.5;
  position: relative;
  z-index: 2;
  padding: 5rem 3rem;
  background: #0d3870;
  clip-path: polygon(0 0, 100% 0, 85% 100%, 0% 100%);
  color: #ffffff;
}
.about-section .about-diagram .about-text {
  max-width: 520px;
  margin: 0 auto;
}
.about-section .about-diagram .about-text h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #ffffff;
}
.about-section .about-diagram .about-text h2 .about-highlight {
  background: rgba(255, 255, 255, 0.15);
  padding: 0 0.25em;
  border-radius: 6px;
  color: #ffffff;
}
.about-section .about-diagram .about-text p {
  color: #e0ecff;
  font-size: 1.05rem;
  margin-top: 1rem;
}
.about-section .about-diagram .about-text .about-badges {
  margin-top: 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.8rem;
}
.about-section .about-diagram .about-text .about-badges .about-badge {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-weight: 600;
  border-radius: 1em;
  padding: 0.4em 1em;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4em;
}
.about-section .about-diagram .about-text .about-badges .about-badge svg {
  stroke: #05a488;
  width: 18px;
  height: 18px;
}
.about-section .about-team-cards {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 5rem 2rem;
  background: #ffffff;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 2rem;
}
.about-section .about-team-cards .itarix-logo-diagram {
  width: 180px;
  height: auto;
  margin: 0 auto 1.5rem auto;
  display: block;
  -webkit-filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
          filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.1));
}
.about-section .about-team-cards .about-team-cards {
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
}
.about-section .about-team-cards .team-card {
  background: #f7f9fc;
  color: #0d3870;
  border-radius: 14px;
  padding: 16px 20px;
  -webkit-box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 18px rgba(0, 0, 0, 0.06);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 1rem;
}
.about-section .about-team-cards .team-card .team-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  -o-object-fit: cover;
     object-fit: cover;
  border: 2px solid #0d3870;
}
.about-section .about-team-cards .team-card h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}
.about-section .about-team-cards .team-card p {
  margin: 0;
  font-size: 0.95rem;
}
.about-section .about-team-cards .cta-btn {
  background: #0d3870;
  color: #ffffff;
  font-weight: 800;
  padding: 0.7em 2.2em;
  border-radius: 1.6em;
  border: none;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
}
.about-section .about-team-cards .cta-btn:hover {
  background: #12467a;
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}

/* Contact / Location */
.contact-location-section {
  /* Layout */
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  gap: 2rem;
  /* Box */
  position: relative;
  padding: 3rem 2rem;
  margin: 3rem auto;
  max-width: 1200px;
  border-radius: 24px;
  overflow: hidden;
  /* Safety: ensure pseudo elements can't create weird stacking on iOS */
  isolation: isolate;
  z-index: 0; /* base layer */
  background: #0d3870; /* solid fallback color behind the split */
  /* Decorative split (behind content) */
  /* ---------- Responsive ---------- */
  /* If a browser doesn’t support clip-path, just show a clean solid background */
}
.contact-location-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0d3870;
  /* diagonal split */
  clip-path: polygon(0 0, 60% 0, 40% 100%, 0% 100%);
  -webkit-clip-path: polygon(0 0, 60% 0, 40% 100%, 0% 100%); /* iOS fix */
  z-index: -1; /* firmly behind content */
  pointer-events: none; /* never intercept taps */
  will-change: clip-path;
}
.contact-location-section .contact-info,
.contact-location-section .contact-map {
  position: relative;
  z-index: 1; /* above the ::before layer */
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0; /* flexible columns */
  min-width: 300px; /* desktop/tablet baseline */
}
.contact-location-section .contact-info {
  color: #ffffff;
}
.contact-location-section .contact-info h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: #ffffff;
}
.contact-location-section .contact-info .contact-details {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem 1.5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 1rem;
  -webkit-box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
          box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
.contact-location-section .contact-info .contact-details .contact-brand {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}
.contact-location-section .contact-info .contact-details .contact-brand strong {
  font-size: 1.3rem;
  font-weight: 900;
}
.contact-location-section .contact-info .contact-details .contact-brand span {
  font-size: 0.95rem;
  opacity: 0.9;
}
.contact-location-section .contact-info .contact-details .contact-icons {
  display: -ms-grid;
  display: grid;
  gap: 0.8rem;
}
.contact-location-section .contact-info .contact-details .contact-icons div {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.7rem;
  font-size: 1rem;
}
.contact-location-section .contact-info .contact-details .contact-icons div i {
  font-size: 1.2rem;
  color: #ffffff;
}
.contact-location-section .contact-info .contact-details .contact-icons div a {
  color: #ffffff;
  text-decoration: none;
  -webkit-transition: color 0.2s ease;
  transition: color 0.2s ease;
}
.contact-location-section .contact-info .contact-details .contact-icons div a:hover {
  color: #05a488;
}
.contact-location-section .contact-map .map-card {
  border-radius: 16px;
  overflow: hidden;
  -webkit-box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
          box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  /* Use aspect-ratio for reliable mobile height */
  aspect-ratio: 16/9;
  min-height: 300px; /* desktop safeguard */
  /* Fix for some iOS rounding/overflow bugs with iframes */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.contact-location-section .contact-map .map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 992px) {
  .contact-location-section .contact-info,
  .contact-location-section .contact-map {
    min-width: 260px; /* give a bit more flexibility before stacking */
  }
}
@media (max-width: 768px) {
  .contact-location-section {
    /* Stack columns */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    /* Make the decorative shape a top band instead of diagonal,
       to avoid odd clipping on very small screens */
  }
  .contact-location-section::before {
    clip-path: polygon(0 0, 100% 0, 100% 52%, 0 60%);
    -webkit-clip-path: polygon(0 0, 100% 0, 100% 52%, 0 60%);
  }
  .contact-location-section .contact-info,
  .contact-location-section .contact-map {
    min-width: 0; /* critical: prevent overflow/squeeze on mobile */
    width: 100%;
  }
  .contact-location-section .contact-info {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
  }
  .contact-location-section .contact-map {
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
  }
  .contact-location-section .contact-map .map-card {
    aspect-ratio: 16/10; /* a bit taller on phones */
    min-height: 260px;
  }
}
@media (max-width: 420px) {
  .contact-location-section {
    padding: 2rem 1rem;
  }
  .contact-location-section .contact-details {
    padding: 1rem 1.1rem;
  }
  .contact-location-section .contact-map .map-card {
    aspect-ratio: 3/2;
    min-height: 220px;
  }
}
@supports not (clip-path: polygon(0 0, 100% 0, 100% 100%)) {
  .contact-location-section {
    background: #0d3870;
  }
  .contact-location-section::before {
    display: none;
  }
}

.project-steps-v2 {
  background: #fff; /* keep white separator */
  padding: clamp(3.5rem, 6vw, 6rem) 1.25rem;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* faint tech grid in the background (very subtle) */
  /* header */
  /* grid */
  /* spacing tweaks on small screens */
  /* motion safety */
}
.project-steps-v2 .container {
  max-width: 1200px;
  margin: 0 auto;
}
.project-steps-v2::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(to right, #e7eef7 1px, transparent 1px), linear-gradient(to bottom, #e7eef7 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.5;
  -webkit-mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(30%, #000), to(transparent));
  -webkit-mask-image: linear-gradient(#000 30%, transparent 100%);
          mask-image: -webkit-gradient(linear, left top, left bottom, color-stop(30%, #000), to(transparent));
          mask-image: linear-gradient(#000 30%, transparent 100%);
}
.project-steps-v2 .steps-pretitle {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 0.9rem;
  color: #0d3870;
  background: #f4faf9;
  border: 1px solid #cdeee6;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  margin: 0 auto 0.6rem;
}
.project-steps-v2 .steps-title {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  color: #0d3870;
  text-align: center;
  margin: 0 0 2.2rem;
  /* gradient underline */
  position: relative;
  display: inline-block;
  left: 50%;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  padding-bottom: 0.55rem;
}
.project-steps-v2 .steps-title::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: -webkit-gradient(linear, left top, right top, from(#0d3870), to(#00c2b2));
  background: linear-gradient(90deg, #0d3870 0%, #00c2b2 100%);
  -webkit-box-shadow: 0 0 14px rgba(0, 194, 178, 0.35);
          box-shadow: 0 0 14px rgba(0, 194, 178, 0.35);
}
.project-steps-v2 .steps-flex {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 1.6rem 2rem;
  counter-reset: stepIndex; /* for auto numbers */
}
@media (min-width: 768px) {
  .project-steps-v2 .steps-flex {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
}
.project-steps-v2 .step-flow {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.75rem;
}
@media (min-width: 1024px) {
  .project-steps-v2 .step-flow {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
  }
}
.project-steps-v2 .step-card {
  position: relative;
  border-radius: 18px;
  padding: 1.6rem;
  text-align: left;
  color: #e8f1fa;
  /* dark glass gradient (matches hero tone) */
  background: linear-gradient(160deg, #10294a 0%, #0d3870 70%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  -webkit-transition: border-color 0.22s ease, -webkit-transform 0.22s ease, -webkit-box-shadow 0.22s ease;
  transition: border-color 0.22s ease, -webkit-transform 0.22s ease, -webkit-box-shadow 0.22s ease;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, -webkit-transform 0.22s ease, -webkit-box-shadow 0.22s ease;
  /* soft highlight at the top */
  /* numbered badge (auto 01, 02…) */
}
.project-steps-v2 .step-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 194, 178, 0.14)), color-stop(35%, transparent));
  background: linear-gradient(180deg, rgba(0, 194, 178, 0.14), transparent 35%);
  pointer-events: none;
}
.project-steps-v2 .step-card::before {
  counter-increment: stepIndex;
  content: counter(stepIndex, decimal-leading-zero);
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  font-weight: 800;
  font-size: 0.85rem;
  color: #0b1220;
  background: #00c2b2;
  border: 1px solid #00b4a6;
  border-radius: 10px;
  padding: 0.25rem 0.5rem;
  -webkit-box-shadow: 0 4px 16px rgba(0, 194, 178, 0.3);
          box-shadow: 0 4px 16px rgba(0, 194, 178, 0.3);
}
.project-steps-v2 .step-card:hover {
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-box-shadow: 0 16px 42px rgba(5, 164, 136, 0.3);
          box-shadow: 0 16px 42px rgba(5, 164, 136, 0.3);
  border-color: rgba(0, 194, 178, 0.4);
}
.project-steps-v2 .step-card .step-icon {
  display: -ms-inline-grid;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0.8rem;
  background: #0e355e;
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-box-shadow: inset 0 0 0 1px rgba(0, 194, 178, 0.18);
          box-shadow: inset 0 0 0 1px rgba(0, 194, 178, 0.18);
}
.project-steps-v2 .step-card .step-icon svg {
  width: 48px;
  height: 48px;
  stroke: #05a488;
}
.project-steps-v2 .step-card .step-label {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}
.project-steps-v2 .step-card .step-desc {
  font-size: 0.98rem;
  color: #cfe2f7;
  line-height: 1.55;
}
.project-steps-v2 .step-arrow {
  display: none;
}
@media (min-width: 1024px) {
  .project-steps-v2 .step-arrow {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 0 1rem;
  }
  .project-steps-v2 .step-arrow svg {
    width: 36px;
    height: 36px;
    stroke: #05a488;
    -webkit-filter: drop-shadow(0 2px 8px rgba(5, 164, 136, 0.25));
            filter: drop-shadow(0 2px 8px rgba(5, 164, 136, 0.25));
  }
}
@media (max-width: 480px) {
  .project-steps-v2 .step-card {
    padding: 1.25rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .project-steps-v2 .step-card {
    -webkit-transition: none;
    transition: none;
  }
}

/* Global keyframes (not nested) */
@-webkit-keyframes fadeInUpCard {
  from {
    opacity: 0;
    -webkit-transform: translateY(32px) scale(0.98);
            transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
@keyframes fadeInUpCard {
  from {
    opacity: 0;
    -webkit-transform: translateY(32px) scale(0.98);
            transform: translateY(32px) scale(0.98);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
.tech-stack-section {
  position: relative;
  padding: 5rem 1.5rem 8rem 1.5rem;
  background: #fff;
  border-radius: 24px;
  margin: 2.5rem 0;
  overflow: hidden;
  /* --- Fallbacks & Accessibility --- */
  /* If user prefers reduced motion OR animations fail to start,
     ensure content is visible. */
  /* Safety net for very old browsers without animation support */
  /* --- Responsive --- */
}
.tech-stack-section .tech-stack-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 0;
  border-radius: 24px;
  -webkit-filter: blur(0.5px) brightness(0.96);
          filter: blur(0.5px) brightness(0.96);
  pointer-events: none;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.tech-stack-section .tech-stack-bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(13, 56, 112, 0.75) 60%, rgba(0, 181, 173, 0.9) 100%);
  mix-blend-mode: multiply;
  opacity: 1;
  z-index: 1;
  border-radius: 24px;
  pointer-events: none;
}
.tech-stack-section .tech-stack-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}
.tech-stack-section .tech-title {
  text-align: center;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  margin-bottom: 1.5rem;
  letter-spacing: -1.2px;
  text-shadow: 0 2px 8px rgba(255, 255, 255, 0.5), 0 4px 24px rgba(13, 56, 112, 0.1);
}
.tech-stack-section .tech-intro {
  text-align: center;
  color: #fff;
  font-size: clamp(1.13rem, 2.5vw, 1.55rem);
  margin-bottom: 5rem;
  font-weight: 700;
  text-shadow: 0 1px 5px rgba(13, 56, 112, 0.12);
}
.tech-stack-section .tech-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.tech-stack-section .tech-card {
  background: #fff;
  border-radius: 24px;
  -webkit-box-shadow: 0 6px 32px rgba(128, 128, 128, 0.1), 0 1.5px 0 rgba(13, 56, 112, 0.07);
          box-shadow: 0 6px 32px rgba(128, 128, 128, 0.1), 0 1.5px 0 rgba(13, 56, 112, 0.07);
  padding: 2.5rem 1.5rem 1.5rem 1.5rem;
  max-width: 335px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  cursor: pointer;
  -webkit-transition: -webkit-transform 0.18s ease, -webkit-box-shadow 0.2s, -webkit-filter 0.24s;
  transition: -webkit-transform 0.18s ease, -webkit-box-shadow 0.2s, -webkit-filter 0.24s;
  transition: transform 0.18s ease, box-shadow 0.2s, filter 0.24s;
  transition: transform 0.18s ease, box-shadow 0.2s, filter 0.24s, -webkit-transform 0.18s ease, -webkit-box-shadow 0.2s, -webkit-filter 0.24s;
  /* Animation defaults */
  opacity: 0;
  -webkit-transform: translateY(32px) scale(0.98);
          transform: translateY(32px) scale(0.98);
  -webkit-animation-name: fadeInUpCard;
          animation-name: fadeInUpCard;
  -webkit-animation-duration: 0.7s;
          animation-duration: 0.7s;
  -webkit-animation-timing-function: ease;
          animation-timing-function: ease;
  -webkit-animation-fill-mode: forwards;
          animation-fill-mode: forwards; /* keep final state */
  will-change: transform, opacity;
  /* Decorative glow */
  /* Hover/focus lift (only on hover-capable devices) */
}
.tech-stack-section .tech-card:nth-child(2) {
  -webkit-animation-delay: 0.33s;
          animation-delay: 0.33s;
}
.tech-stack-section .tech-card:nth-child(3) {
  -webkit-animation-delay: 0.48s;
          animation-delay: 0.48s;
}
.tech-stack-section .tech-card:nth-child(4) {
  -webkit-animation-delay: 0.63s;
          animation-delay: 0.63s;
}
.tech-stack-section .tech-card:nth-child(5) {
  -webkit-animation-delay: 0.78s;
          animation-delay: 0.78s;
}
.tech-stack-section .tech-card:after {
  content: "";
  position: absolute;
  inset: -13px;
  border-radius: 28px;
  background: rgba(13, 56, 112, 0.25);
  -webkit-filter: blur(22px);
          filter: blur(22px);
  opacity: 0.11;
  pointer-events: none;
  z-index: 0;
}
@media (hover: hover) and (pointer: fine) {
  .tech-stack-section .tech-card:hover, .tech-stack-section .tech-card:focus {
    -webkit-transform: translateY(-8px) scale(1.035);
            transform: translateY(-8px) scale(1.035);
    -webkit-box-shadow: 0 18px 54px rgba(128, 128, 128, 0.2), 0 3px 16px rgba(0, 181, 173, 0.1);
            box-shadow: 0 18px 54px rgba(128, 128, 128, 0.2), 0 3px 16px rgba(0, 181, 173, 0.1);
    -webkit-filter: brightness(1.04);
            filter: brightness(1.04);
  }
}
.tech-stack-section .tech-card .tech-badge {
  font-size: 0.86em;
  font-weight: 600;
  background: -webkit-gradient(linear, left top, right top, color-stop(60%, #808080), to(#00b5ad));
  background: linear-gradient(90deg, #808080 60%, #00b5ad 100%);
  color: #fff;
  padding: 0.34em 1.1em;
  border-radius: 15px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.07em;
  -webkit-box-shadow: 0 2px 10px rgba(128, 128, 128, 0.15);
          box-shadow: 0 2px 10px rgba(128, 128, 128, 0.15);
  text-transform: uppercase;
}
.tech-stack-section .tech-card .tech-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 1.5rem;
  background: linear-gradient(140deg, #f9f9f9 65%, #5c87c7 100%);
  border-radius: 15px;
  padding: 0.32em;
  -webkit-box-shadow: 0 3px 20px rgba(13, 56, 112, 0.08);
          box-shadow: 0 3px 20px rgba(13, 56, 112, 0.08);
  -webkit-filter: brightness(1.04);
          filter: brightness(1.04);
}
.tech-stack-section .tech-card h3 {
  margin-bottom: 1.5rem;
  color: #0d3870;
  font-weight: 900;
  font-size: 1.28em;
  text-align: center;
  text-shadow: 0 2px 8px rgba(13, 56, 112, 0.05);
}
.tech-stack-section .tech-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.tech-stack-section .tech-card ul li {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  text-align: left;
  width: auto;
  font-size: 1.07em;
  color: #4a4a4a;
  font-weight: 600;
  background: rgba(0, 181, 173, 0.035);
  border-radius: 9px;
  padding: 0.28em 0.7em;
  margin-bottom: 0.53em;
}
.tech-stack-section .tech-card ul li:before {
  content: "✔";
  color: #00b5ad;
  font-size: 1.09em;
  font-weight: 900;
  margin-right: 0.64em;
  background: #f9f9f9;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  -webkit-box-shadow: 0 1px 5px rgba(13, 56, 112, 0.08);
          box-shadow: 0 1px 5px rgba(13, 56, 112, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .tech-stack-section .tech-card {
    opacity: 1 !important;
    -webkit-transform: none !important;
            transform: none !important;
    -webkit-animation: none !important;
            animation: none !important;
  }
}
@supports not (animation-name: fadeInUpCard) {
  .tech-stack-section .tech-card {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
@media (max-width: 1050px) {
  .tech-stack-section .tech-grid {
    gap: 2.5rem;
  }
  .tech-stack-section .tech-card {
    max-width: 340px;
  }
}
@media (max-width: 850px) {
  .tech-stack-section {
    padding: 2.5rem 1rem 5rem 1rem;
  }
  .tech-stack-section .tech-title {
    font-size: 2rem;
  }
  .tech-stack-section .tech-card {
    padding: 1.3em 0.6em 1.1em;
  }
  .tech-stack-section .tech-card .tech-icon {
    width: 44px;
    height: 44px;
  }
}
@media (max-width: 600px) {
  .tech-stack-section .tech-title {
    font-size: 1.35rem;
  }
  .tech-stack-section .tech-intro {
    font-size: 1rem;
  }
  .tech-stack-section .tech-grid {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .tech-stack-section .tech-card {
    max-width: 95vw;
  }
}

.product-section {
  position: relative;
  padding: 4rem 2rem;
  z-index: 2;
  overflow: hidden;
  margin-top: 3rem;
  /* background image */
  background: url("/assets/images/about-services/digital_innovation_compressed.webp");
}
.product-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 75% 100%, 0% 100%);
  opacity: 0.9; /* optional, so image still peeks through */
}
.product-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0d3870;
  clip-path: polygon(75% 0, 100% 0, 100% 100%, 25% 100%);
  opacity: 0.85; /* optional */
}
.product-section .section-header,
.product-section .product-grid {
  position: relative;
  z-index: 2;
}
.product-section .section-header {
  text-align: center;
  margin-bottom: 3rem;
}
.product-section .section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
  color: #0f1010;
}
@media (max-width: 768px) {
  .product-section .section-header {
    background: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: inline-block;
    margin: 0 auto 3rem;
    -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  }
  .product-section .section-header h2 {
    color: #0d3870;
  }
}
.product-section .product-grid {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 600px) {
  .product-section .product-grid {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .product-section .product-grid {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-section .product-card {
  background: #ffffff;
  border: 1px solid #dce8f7;
  border-radius: 1.5rem;
  padding: 2rem;
  color: #0d3870;
  -webkit-box-shadow: 0 8px 24px rgba(13, 56, 112, 0.1);
          box-shadow: 0 8px 24px rgba(13, 56, 112, 0.1);
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.product-section .product-card:hover {
  -webkit-transform: translateY(-6px);
          transform: translateY(-6px);
  -webkit-box-shadow: 0 12px 40px rgba(5, 164, 136, 0.25);
          box-shadow: 0 12px 40px rgba(5, 164, 136, 0.25);
}
.product-section .product-card .product-icon {
  margin-bottom: 1.2rem;
}
.product-section .product-card .product-icon svg {
  stroke: #05a488;
  width: 36px;
  height: 36px;
}
.product-section .product-card .product-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #0d3870;
}
.product-section .product-card .product-content p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
  color: #4a6480;
}
.product-section .product-card .product-content .product-features {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.product-section .product-card .product-content .product-features li {
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: #4a6480;
}
.product-section .product-card .product-content .product-features li strong {
  color: #05a488;
}
.product-section .product-card .product-content .btn-primary {
  margin-top: 1rem;
  background-color: #05a488;
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}
.product-section .product-card .product-content .btn-primary span {
  margin-left: 0.3rem;
}
.product-section .product-card .product-content .btn-primary:hover {
  background-color: #04997a;
}

/* ===== Modern steps section with crisp white → blue slash (no globals) ===== */
.cta-section.steps.steps--neo {
  position: relative;
  isolation: isolate;
  background: #ffffff;
  color: #0b1e34;
  padding: clamp(2.2rem, 3vw + 1rem, 4.4rem) 1.25rem;
  /* Blue diagonal starts BELOW the header for readability */
  /* ===== Header (high contrast) ===== */
  /* ===== Grid ===== */
  /* ===== Card base ===== */
  /* ===== Service chips (SEO anchors, modern look) ===== */
  /* ===== Variants ===== */
  /* ===== Footer CTA ===== */
  /* Mobile: keep the slash clear but not intrusive */
}
.cta-section.steps.steps--neo::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: clamp(150px, 18vw, 260px); /* keeps title/subtitle on white */
  background: #0d3870;
  /* crisp “/” edge */
  clip-path: polygon(36% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 52%);
  z-index: 0;
  pointer-events: none;
}
.cta-section.steps.steps--neo .steps__container {
  max-width: 1152px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.cta-section.steps.steps--neo .steps__hero {
  text-align: center;
  margin-bottom: clamp(1.25rem, 2.2vw, 2rem);
}
.cta-section.steps.steps--neo .steps__title {
  margin: 0 0 0.4rem;
  font-weight: 900;
  letter-spacing: -0.015em;
  font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  line-height: 1.1;
}
.cta-section.steps.steps--neo .steps__title .enter-key {
  display: inline-block;
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 0.72em;
  padding: 0.18rem 0.5rem;
  border-radius: 8px;
  border: 1px solid rgba(13, 56, 112, 0.25);
  background: #f3f7fc;
  color: #0b1e34;
}
.cta-section.steps.steps--neo .steps__subtitle {
  margin: 0 auto;
  max-width: 70ch;
  color: #2c4769; /* stronger than the old muted */
  opacity: 0.9;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  line-height: 1.5;
}
.cta-section.steps.steps--neo .steps__list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) clamp(1rem, 2vw, 1.5rem) minmax(0, 1fr) clamp(1rem, 2vw, 1.5rem) minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 980px) {
  .cta-section.steps.steps--neo .steps__list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.cta-section.steps.steps--neo .steps__item {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.7rem;
  min-height: 220px;
  padding: 1.2rem 1.2rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(13, 56, 112, 0.16);
  -webkit-box-shadow: 0 8px 20px rgba(13, 56, 112, 0.1);
          box-shadow: 0 8px 20px rgba(13, 56, 112, 0.1);
  overflow: hidden;
  /* modern action button */
}
.cta-section.steps.steps--neo .steps__item .steps__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid currentColor;
  opacity: 0.6;
  background: transparent;
}
.cta-section.steps.steps--neo .steps__item .steps__item-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.cta-section.steps.steps--neo .steps__item .steps__item-text {
  margin: 0;
  line-height: 1.6;
}
.cta-section.steps.steps--neo .steps__item .steps__action {
  -ms-flex-item-align: start;
      align-self: flex-start;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  line-height: 1;
  -webkit-transition: background-color 120ms ease, -webkit-transform 120ms ease;
  transition: background-color 120ms ease, -webkit-transform 120ms ease;
  transition: transform 120ms ease, background-color 120ms ease;
  transition: transform 120ms ease, background-color 120ms ease, -webkit-transform 120ms ease;
}
.cta-section.steps.steps--neo .steps__item .steps__action:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.cta-section.steps.steps--neo .steps__item .steps__action:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.cta-section.steps.steps--neo .services-tags {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.15rem 0 0.2rem;
  padding: 0;
  list-style: none;
}
.cta-section.steps.steps--neo .services-tags .tag {
  display: inline-block;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 1.5px solid currentColor;
  line-height: 1;
  -webkit-transition: background-color 120ms ease, -webkit-transform 120ms ease;
  transition: background-color 120ms ease, -webkit-transform 120ms ease;
  transition: transform 120ms ease, background-color 120ms ease;
  transition: transform 120ms ease, background-color 120ms ease, -webkit-transform 120ms ease;
}
.cta-section.steps.steps--neo .steps__item--white {
  background: #ffffff;
  color: #0b1e34;
}
.cta-section.steps.steps--neo .steps__item--white .steps__item-text {
  color: #2c4769;
}
.cta-section.steps.steps--neo .steps__item--white .services-tags .tag:hover,
.cta-section.steps.steps--neo .steps__item--white .steps__action:hover {
  background-color: #eef3f9;
}
.cta-section.steps.steps--neo .steps__item--blue {
  background: #0d3870;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.26);
  -webkit-box-shadow: 0 10px 24px rgba(13, 56, 112, 0.24);
          box-shadow: 0 10px 24px rgba(13, 56, 112, 0.24);
}
.cta-section.steps.steps--neo .steps__item--blue .steps__item-text {
  color: #e8f0fb;
}
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag,
.cta-section.steps.steps--neo .steps__item--blue .steps__action {
  border-color: rgba(255, 255, 255, 0.9);
}
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag:hover,
.cta-section.steps.steps--neo .steps__item--blue .steps__action:hover {
  background-color: rgba(255, 255, 255, 0.08);
}
.cta-section.steps.steps--neo .steps__footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  margin-top: clamp(1rem, 1.3vw, 1.7rem);
}
.cta-section.steps.steps--neo .cta-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.3rem;
  font-weight: 900;
  color: #ffffff;
  background: #0d3870;
  text-decoration: none;
  -webkit-box-shadow: 0 12px 24px rgba(13, 56, 112, 0.22);
          box-shadow: 0 12px 24px rgba(13, 56, 112, 0.22);
  -webkit-transition: -webkit-transform 120ms ease;
  transition: -webkit-transform 120ms ease;
  transition: transform 120ms ease;
  transition: transform 120ms ease, -webkit-transform 120ms ease;
}
.cta-section.steps.steps--neo .cta-btn:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.cta-section.steps.steps--neo .cta-btn:focus-visible {
  outline: 3px solid rgba(13, 56, 112, 0.35);
  outline-offset: 2px;
}
@media (max-width: 980px) {
  .cta-section.steps.steps--neo::before {
    top: clamp(180px, 26vw, 260px);
    clip-path: polygon(30% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 55%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cta-section.steps.steps--neo *, .cta-section.steps.steps--neo *::before, .cta-section.steps.steps--neo *::after {
    -webkit-transition: none !important;
    transition: none !important;
  }
}

/* === FORCE LINK COLORS INSIDE THE STEPS SECTION === */
/* Reset any global anchor colors */
.cta-section.steps.steps--neo a,
.cta-section.steps.steps--neo a:link,
.cta-section.steps.steps--neo a:visited {
  color: inherit;
  text-decoration: none; /* keep it modern; your buttons have borders */
}

/* White card: links = dark text */
.cta-section.steps.steps--neo .steps__item--white .steps__action,
.cta-section.steps.steps--neo .steps__item--white .services-tags .tag,
.cta-section.steps.steps--neo .steps__item--white .services-tags .tag:link,
.cta-section.steps.steps--neo .steps__item--white .services-tags .tag:visited {
  color: #0b1e34; /* black-ish */
  border-color: #0b1e34;
}

/* Blue card: links = white text */
.cta-section.steps.steps--neo .steps__item--blue .steps__action,
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag,
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag:link,
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag:visited {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.9);
}

/* Keep color on hover/active too */
.cta-section.steps.steps--neo .steps__item--white .steps__action:hover,
.cta-section.steps.steps--neo .steps__item--white .services-tags .tag:hover,
.cta-section.steps.steps--neo .steps__item--blue .steps__action:hover,
.cta-section.steps.steps--neo .steps__item--blue .services-tags .tag:hover,
.cta-section.steps.steps--neo .steps__action:active,
.cta-section.steps.steps--neo .services-tags .tag:active {
  color: inherit;
}

/* If your site uses !important on global links, uncomment these lines:
.cta-section.steps.steps--neo a,
.cta-section.steps.steps--neo a:link,
.cta-section.steps.steps--neo a:visited { color: inherit !important; }
*/
/* ============================
   Utilities your JS toggles
   ============================ */
.hidden {
  display: none !important;
}

.modal-open {
  overflow: hidden;
}

/* Account dropdown that JS toggles */
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
}

.user-dropdown.hidden {
  display: none !important;
}

/* ============================
   Auth Controls (Standalone)
   ============================ */
.auth-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 10px;
  margin-left: auto;
}

.auth-controls span[id^=userGreeting] {
  font-weight: 500;
  color: #0e0d0d;
  white-space: nowrap;
}

.auth-controls .auth-btn {
  background-color: #0073e6;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  -webkit-transition: background 0.3s ease;
  transition: background 0.3s ease;
}

.auth-controls .auth-btn:hover {
  background-color: #005bb5;
}

.user-menu {
  position: relative;
  display: inline-block;
}

.logout-link {
  color: #e03333;
  text-decoration: none;
  display: block;
  padding: 5px 0;
}

.logout-link:hover {
  text-decoration: underline;
}

/* ============================
   Modal Auth (Glassmorphism)
   ============================ */
.modal--auth {
  position: fixed;
  inset: 0;
  display: none;
  opacity: 0;
  visibility: hidden;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  z-index: 1000;
  -webkit-transition: opacity 0.3s ease, visibility 0.3s ease;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal--auth.active,
.modal--auth[aria-hidden=false] {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  opacity: 1;
  visibility: visible;
}

.modal__content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
          box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 420px;
  padding: 2rem;
  border-radius: 16px;
  color: #ffffff;
  position: relative;
  -webkit-animation: slideUp 0.3s ease-in-out;
          animation: slideUp 0.3s ease-in-out;
}

/* Close Button */
.modal__close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: #ffffff;
  cursor: pointer;
  -webkit-transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: color 0.3s ease, -webkit-transform 0.3s ease;
  transition: transform 0.3s ease, color 0.3s ease;
  transition: transform 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease;
}

.modal__close:hover, .modal__close:focus {
  -webkit-transform: rotate(90deg);
          transform: rotate(90deg);
  color: #ff4d4d;
  outline: none;
}

/* Tabs */
.modal__tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-pack: distribute;
      justify-content: space-around;
  margin-bottom: 1.2rem;
}

.modal__tab {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 0.6rem;
  background: transparent;
  color: #ddd;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

.modal__tab.modal__tab--active {
  color: #ffffff;
  border-bottom: 2px solid #00bcd4;
}

.modal__tab:focus-visible {
  outline: 2px solid #00bcd4;
  outline-offset: 3px;
}

/* Panels */
.modal__panel {
  display: none;
}

.modal__panel.modal__panel--active {
  display: block;
}

.modal__panel.modal__panel--message {
  padding: 1rem;
  background: rgba(10, 138, 63, 0.15);
  color: #0a8a3f;
  font-weight: 600;
  border-radius: 8px;
  text-align: center;
}

/* Forms */
.form--auth {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

.form--auth .form__input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  outline: none;
  font-size: 0.95rem;
  -webkit-transition: border-color 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: border-color 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, -webkit-box-shadow 0.3s ease;
}

.form--auth .form__input::-webkit-input-placeholder {
  color: #aaa;
}

.form--auth .form__input::-moz-placeholder {
  color: #aaa;
}

.form--auth .form__input:-ms-input-placeholder {
  color: #aaa;
}

.form--auth .form__input::-ms-input-placeholder {
  color: #aaa;
}

.form--auth .form__input::placeholder {
  color: #aaa;
}

.form--auth .form__input:focus {
  border-color: #00bcd4;
  -webkit-box-shadow: 0 0 6px rgba(0, 188, 212, 0.5);
          box-shadow: 0 0 6px rgba(0, 188, 212, 0.5);
}

.form--auth .form__submit {
  width: 100%;
  padding: 0.7rem;
  background: linear-gradient(135deg, #00bcd4, #2196f3);
  border: none;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
  -webkit-transition: background 0.3s ease, -webkit-transform 0.3s ease;
  transition: background 0.3s ease, -webkit-transform 0.3s ease;
  transition: background 0.3s ease, transform 0.3s ease;
  transition: background 0.3s ease, transform 0.3s ease, -webkit-transform 0.3s ease;
}

.form--auth .form__submit:hover {
  background: linear-gradient(135deg, #2196f3, #00bcd4);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}

.form--auth .form__message {
  color: #ff4d4d;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  min-height: 18px;
}

/* Optional: greet span */
#userGreeting {
  color: #140808;
  font-weight: 500;
  margin-right: 10px;
  display: inline-block;
}

/* ============================
   Animations
   ============================ */
@-webkit-keyframes slideUp {
  from {
    -webkit-transform: translateY(25px);
            transform: translateY(25px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
@keyframes slideUp {
  from {
    -webkit-transform: translateY(25px);
            transform: translateY(25px);
    opacity: 0;
  }
  to {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
.consultant-recruitment {
  position: relative;
  background-image: url("/assets/images/business_team_scene_optimized.webp");
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 6rem 2rem 4rem;
  text-align: center;
  z-index: 1;
}
.consultant-recruitment::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(13, 56, 112, 0.7);
  z-index: -1;
}
.consultant-recruitment h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}
.consultant-recruitment .subtitle {
  font-size: 1.3rem;
  margin-bottom: 4rem;
  color: #f0f4fa;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.consultant-recruitment .steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 2rem;
}
.consultant-recruitment .steps .step {
  background: rgba(13, 56, 112, 0.28);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  width: 300px;
  -webkit-box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
          box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  -webkit-transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s;
  transition: transform 0.3s, box-shadow 0.3s, -webkit-transform 0.3s, -webkit-box-shadow 0.3s;
  backdrop-filter: blur(2px);
}
.consultant-recruitment .steps .step:hover {
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
          box-shadow: 0 25px 50px rgba(0, 0, 0, 0.18);
}
.consultant-recruitment .steps .step .step-number {
  font-size: 1.5rem;
  font-weight: bold;
  width: 2.75rem;
  height: 2.75rem;
  line-height: 2.75rem;
  background: rgba(255, 255, 255, 0.93);
  color: #0d3870;
  border-radius: 50%;
  margin: 0 auto 1rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.13);
}
.consultant-recruitment .steps .step .step-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1rem;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.consultant-recruitment .steps .step .step-icon svg {
  width: 32px;
  height: 32px;
  fill: white !important;
  display: block;
}
.consultant-recruitment .steps .step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 1rem 0 0.5rem;
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.19);
}
.consultant-recruitment .steps .step p {
  font-size: 1.08rem;
  line-height: 1.6;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
@media (max-width: 768px) {
  .consultant-recruitment .steps {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}

/* --- Z-index plan (highest wins) ---------------------------------
   2,147,483,000  user dropdown (portal)
   30,000         welcome gate (in ui.scss)
   30,010         consultation/confirm modals (overlay)
   30,011         consultation/confirm modal content
   20,000         navbar
-------------------------------------------------------------------*/
/* Ensure the portaled user dropdown is always above overlays */
.user-dropdown {
  position: fixed !important;
  z-index: 2147483000 !important;
}

/* ============ CONSULTATION SECTION ============ */
.service-selection {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 3rem 2rem;
  text-align: center;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 20px;
  background: linear-gradient(45deg, #0d3870 0%, #0d3870 50%, #fff 50%, #fff 100%);
  -webkit-box-shadow: 0 8px 28px rgba(13, 56, 112, 0.15);
          box-shadow: 0 8px 28px rgba(13, 56, 112, 0.15);
}

.service-selection h2 {
  color: #111;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.service-selection > p {
  color: #0b0b0b;
  margin-bottom: 3rem;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  font-weight: 600;
}

.service-selection .service-cards {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
}

.service-selection .service-cards .card {
  background: #f5f8fc;
  border-radius: 16px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(13, 56, 112, 0.08);
  -webkit-box-shadow: 0 6px 20px rgba(13, 56, 112, 0.15);
          box-shadow: 0 6px 20px rgba(13, 56, 112, 0.15);
  -webkit-transition: background 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: background 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease, -webkit-transform 0.3s ease, -webkit-box-shadow 0.3s ease;
  cursor: pointer;
  min-height: 280px;
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  text-align: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.service-selection .service-cards .card .icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #0d3870;
  -webkit-transition: color 0.3s ease;
  transition: color 0.3s ease;
}

.service-selection .service-cards .card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-selection .service-cards .card p {
  font-size: 1rem;
  line-height: 1.6;
}

.service-selection .service-cards .card:hover,
.service-selection .service-cards .card.selected {
  background-color: #0d3870;
  color: #fff;
  -webkit-transform: translateY(-8px);
          transform: translateY(-8px);
  -webkit-box-shadow: 0 12px 28px rgba(13, 56, 112, 0.28);
          box-shadow: 0 12px 28px rgba(13, 56, 112, 0.28);
}

.service-selection .service-cards .card:hover .icon,
.service-selection .service-cards .card.selected .icon {
  color: #fff;
}

/* Balance last two cards under 1st and 3rd column */
.service-selection .service-cards .card:nth-child(4) {
  -ms-grid-column: 1;
  grid-column: 1;
}

.service-selection .service-cards .card:nth-child(5) {
  -ms-grid-column: 3;
  grid-column: 3;
}

/* Responsive */
@media (max-width: 992px) {
  .service-selection .service-cards {
    -ms-grid-columns: (1fr)[2];
    grid-template-columns: repeat(2, 1fr);
  }
  .service-selection .service-cards .card:nth-child(4),
  .service-selection .service-cards .card:nth-child(5) {
    grid-column: auto;
  }
}
@media (max-width: 600px) {
  .service-selection .service-cards {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
/* ============ CONSULTATION & CONFIRM MODALS ============ */
/* Use class toggle OR inline style selector; both supported */
#consultationModal,
#confirmCloseModal {
  position: fixed;
  inset: 0;
  display: none; /* default closed */
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  background: rgba(13, 56, 112, 0.8);
  z-index: 30010; /* ABOVE navbar (20k), BELOW portal/welcome */
  padding: 1.5rem;
  overflow: auto;
}

#consultationModal.is-open,
#confirmCloseModal.is-open,
#consultationModal[style*="display: flex"],
#confirmCloseModal[style*="display: flex"] {
  display: -webkit-box !important;
  display: -ms-flexbox !important;
  display: flex !important;
}

#consultationModal .modal-content,
#confirmCloseModal .modal-content {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 18px;
  padding: 2.5rem 2rem 2rem;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.98)), to(rgba(255, 255, 255, 0.96))), url("/assets/images/it-consultation-background/Renovation2.png") center/cover no-repeat;
  background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)), url("/assets/images/it-consultation-background/Renovation2.png") center/cover no-repeat;
  -webkit-box-shadow: 0 12px 36px rgba(13, 56, 112, 0.19), 0 1.5px 16px rgba(0, 0, 0, 0.09);
          box-shadow: 0 12px 36px rgba(13, 56, 112, 0.19), 0 1.5px 16px rgba(0, 0, 0, 0.09);
  color: #1a1a1a;
  backdrop-filter: blur(6px);
  z-index: 30011; /* above its own overlay */
}

#consultationModal .modal-header,
#confirmCloseModal .modal-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-bottom: 1.2rem;
  min-height: 2rem;
}

#consultationModal .modal-header .btn-close,
#confirmCloseModal .modal-header .btn-close {
  font-size: 2.3rem;
  background: none !important;
  border: none;
  color: #e71f05 !important;
  opacity: 0.92;
  cursor: pointer;
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 1;
  line-height: 1;
  padding: 0 0.6rem 0.18rem 0.6rem;
  -webkit-transition: background 0.14s, color 0.13s, -webkit-box-shadow 0.14s;
  transition: background 0.14s, color 0.13s, -webkit-box-shadow 0.14s;
  transition: background 0.14s, color 0.13s, box-shadow 0.14s;
  transition: background 0.14s, color 0.13s, box-shadow 0.14s, -webkit-box-shadow 0.14s;
  -webkit-box-shadow: none;
          box-shadow: none;
}

#consultationModal .modal-header .btn-close:hover,
#consultationModal .modal-header .btn-close:focus,
#confirmCloseModal .modal-header .btn-close:hover,
#confirmCloseModal .modal-header .btn-close:focus {
  color: #df0808 !important;
  background: #1976d2;
  -webkit-box-shadow: 0 2px 8px rgba(13, 56, 112, 0.17);
          box-shadow: 0 2px 8px rgba(13, 56, 112, 0.17);
  border-radius: 50%;
  outline: none;
}

/* ============ CONSULTATION FORM ============ */
#consultationForm label {
  font-size: 1.11rem;
  color: #172246;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.1rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.7em;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

#consultationForm input[type=checkbox],
#consultationForm input[type=radio] {
  accent-color: #1976d2;
  width: 1.28em;
  height: 1.28em;
  margin-right: 0.55em;
  border: 2px solid #b2c8e5;
  border-radius: 0.2em;
  vertical-align: middle;
  -webkit-appearance: auto;
     -moz-appearance: auto;
          appearance: auto;
}

#consultationForm input[type=checkbox]:checked,
#consultationForm input[type=radio]:checked {
  -webkit-box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.6666666667);
          box-shadow: 0 0 0 2px rgba(25, 118, 210, 0.6666666667);
  border-color: #1976d2;
  background-color: #1976d2;
}

#consultationForm .form-control,
#consultationForm .form-select {
  border-radius: 8px;
  border: 1px solid #b2c8e5;
  background: #f8fbff;
  color: #172246;
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

#consultationForm .form-control:focus,
#consultationForm .form-select:focus {
  border-color: #00bcd4;
  -webkit-box-shadow: 0 0 6px rgba(0, 188, 212, 0.12);
          box-shadow: 0 0 6px rgba(0, 188, 212, 0.12);
}

#consultationForm .is-invalid {
  border-color: #ff4d4d;
  -webkit-box-shadow: 0 0 4px rgba(255, 77, 77, 0.19);
          box-shadow: 0 0 4px rgba(255, 77, 77, 0.19);
}

#consultationForm .invalid-feedback {
  display: none;
  color: #ff4d4d;
  font-size: 0.95rem;
}

#consultationForm .is-invalid ~ .invalid-feedback {
  display: block;
}

body.modal-open {
  overflow: hidden !important;
}

/* Error summary inside the modal content */
.form-error-summary {
  position: sticky;
  top: 0;
  z-index: 1; /* above form fields, below close btn */
  max-height: 40vh;
  overflow: auto;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid #f5c2c7;
  pointer-events: auto;
}

/* Ensure scrollIntoView doesn't end up hidden under the sticky summary */
#consultationModal .modal-content {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

/* Disable navbar interactivity while any modal is open */
.modal-open .navbar,
.modal-open .navbar * {
  pointer-events: none !important;
}

/* REMOVE any global rule that forces navbar to stay interactive:
   .navbar, .navbar * { pointer-events: auto !important; }
*/
/* Keep overlays truly above header */
#consultationModal, #confirmCloseModal {
  position: fixed;
  inset: 0;
  z-index: 2147483630; /* below modalHost(2147483646), above anything else */
}

#consultationModal .modal-content,
#confirmCloseModal .modal-content {
  z-index: 2147483631;
}

/* While any modal is open, make header + user menu inert */
.modal-open .navbar,
.modal-open .navbar *,
.modal-open .user-dropdown {
  pointer-events: none !important;
}

/* (Optional) hide a portaled dropdown if it visually overlaps */
.modal-open .user-dropdown {
  display: none !important;
}

/* Big overlays must sit above everything except modalHost */
#consultationModal,
#confirmCloseModal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 2147483645 !important; /* just below modalHost(2147483646) */
}

#consultationModal .modal-content,
#confirmCloseModal .modal-content {
  z-index: 2147483646 !important; /* its own content above its backdrop */
}

/* Make sure the header never beats overlays */
.navbar {
  position: relative !important;
  z-index: 20000 !important; /* well below overlay */
}

body.modal-open .navbar,
body.modal-open .navbar * {
  pointer-events: none !important;
}

body.modal-open .user-dropdown {
  display: none !important;
}

/* ---- Z-index scale (stop magic numbers) ---- */
:root {
  --z-nav: 2147483000; /* your header */
  --z-dropdown: 2147483001; /* mobile controls if needed */
  --z-modal: 2147483647; /* absolute top (max safe) */
}

/* --- Welcome Modal (hard gate) ------------------------------- */
/* Visible by default; JS hides it after the user accepts. */
#welcomeModal.welcome-modal-backdrop {
  position: fixed;
  inset: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: rgba(13, 56, 112, 0.8);
  z-index: var(--z-modal); /* <-- above navbar */
  pointer-events: auto;
  backdrop-filter: blur(2px);
  -webkit-animation: fadeIn 0.25s;
          animation: fadeIn 0.25s;
}

/* Hide after consent */
#welcomeModal.welcome-modal-backdrop.is-hidden {
  display: none !important;
}

/* Card */
.welcome-modal {
  background: #fff;
  color: #0d3870;
  width: min(92vw, 720px);
  max-height: 90vh;
  overflow: auto;
  padding: 2.5rem 2rem 1.5rem;
  border-radius: 1.25rem;
  -webkit-box-shadow: 0 16px 48px rgba(13, 56, 112, 0.22);
          box-shadow: 0 16px 48px rgba(13, 56, 112, 0.22);
  text-align: center;
  -webkit-animation: popIn 0.28s cubic-bezier(0.4, 2, 0.6, 1);
          animation: popIn 0.28s cubic-bezier(0.4, 2, 0.6, 1);
}

/* Typography */
.welcome-modal h2 {
  font-size: 1.55rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.welcome-modal p {
  font-size: 1.09rem;
  margin-bottom: 1.1rem;
}

/* Button */
.accept-btn {
  background: #22b573;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.75rem 2.2rem;
  border: none;
  border-radius: 0.7rem;
  -webkit-box-shadow: 0 2px 8px rgba(13, 56, 112, 0.08);
          box-shadow: 0 2px 8px rgba(13, 56, 112, 0.08);
  cursor: pointer;
  -webkit-transition: background 0.2s, opacity 0.2s;
  transition: background 0.2s, opacity 0.2s;
  margin-top: 0.5rem;
  opacity: 0.85;
}

.accept-btn:disabled {
  background: #b6dacb;
  cursor: not-allowed;
  opacity: 0.5;
}

.accept-btn:not(:disabled):hover {
  background: #1b9e64;
  opacity: 1;
}

/* Animations */
@-webkit-keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@-webkit-keyframes popIn {
  from {
    -webkit-transform: scale(0.98) translateY(10px);
            transform: scale(0.98) translateY(10px);
    opacity: 0;
  }
  to {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@keyframes popIn {
  from {
    -webkit-transform: scale(0.98) translateY(10px);
            transform: scale(0.98) translateY(10px);
    opacity: 0;
  }
  to {
    -webkit-transform: scale(1) translateY(0);
            transform: scale(1) translateY(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  #welcomeModal.welcome-modal-backdrop,
  .welcome-modal {
    -webkit-animation: none !important;
            animation: none !important;
  }
}
/* Optional: prevent background scroll while modal visible */
body.modal-open {
  overflow: hidden;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
}

.services-hero {
  position: relative;
  min-height: 560px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  padding: 3.5rem 1rem 2.5rem;
  overflow: hidden;
  background: transparent;
  border-bottom-left-radius: 3.5rem;
  border-bottom-right-radius: 3.5rem;
  -webkit-box-shadow: 0 6px 36px rgba(13, 56, 112, 0.1);
          box-shadow: 0 6px 36px rgba(13, 56, 112, 0.1);
}
.services-hero .hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, #0d3870 70%, #00b4aa 110%);
  background-image: url("/assets/images/about-services/bg2.png"), linear-gradient(120deg, #0d3870 70%, #00b4aa 110%);
  background-repeat: no-repeat;
  background-size: cover, cover;
  background-position: right center, center;
  opacity: 0.97;
  z-index: 0;
  -webkit-filter: brightness(1) blur(0.4px) saturate(1.05);
          filter: brightness(1) blur(0.4px) saturate(1.05);
  border-bottom-left-radius: 3.5rem;
  border-bottom-right-radius: 3.5rem;
}
.services-hero .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(13, 56, 112, 0.62) 0%, rgba(13, 56, 112, 0.45) 60%, rgba(0, 180, 170, 0.32) 100%);
  z-index: 1;
  pointer-events: none;
  border-bottom-left-radius: 3.5rem;
  border-bottom-right-radius: 3.5rem;
}
.services-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 650px;
  margin: 0 auto;
  text-shadow: 0 4px 32px rgba(13, 56, 112, 0.21);
}
.services-hero .hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.05rem;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 32px rgba(13, 56, 112, 0.19), 0 1px 2px rgba(0, 0, 0, 0.12);
}
.services-hero .hero-content p {
  font-size: 1.21rem;
  font-weight: 400;
  color: #e7faff;
  margin-bottom: 2.1rem;
  line-height: 1.68;
  text-shadow: 0 2px 16px rgba(13, 56, 112, 0.14), 0 1px 2px rgba(0, 0, 0, 0.09);
}
.services-hero .hero-content .hero-cta {
  background: -webkit-gradient(linear, left top, right top, from(#05a488), color-stop(85%, #0d3870));
  background: linear-gradient(90deg, #05a488, #0d3870 85%);
  color: #fff;
  font-weight: 700;
  font-size: 1.15rem;
  padding: 0.85rem 2.2rem;
  border-radius: 8px;
  -webkit-box-shadow: 0 3px 14px rgba(13, 56, 112, 0.13);
          box-shadow: 0 3px 14px rgba(13, 56, 112, 0.13);
  -webkit-transition: background 0.24s, -webkit-box-shadow 0.21s;
  transition: background 0.24s, -webkit-box-shadow 0.21s;
  transition: background 0.24s, box-shadow 0.21s;
  transition: background 0.24s, box-shadow 0.21s, -webkit-box-shadow 0.21s;
  text-decoration: none;
  border: none;
  outline: none;
}
.services-hero .hero-content .hero-cta:hover {
  background: -webkit-gradient(linear, left top, right top, from(#04997a), color-stop(90%, #194a88));
  background: linear-gradient(90deg, #04997a, #194a88 90%);
}
@media (max-width: 700px) {
  .services-hero {
    border-bottom-left-radius: 1.6rem;
    border-bottom-right-radius: 1.6rem;
  }
  .services-hero .hero-bg,
  .services-hero .hero-bg::after {
    border-bottom-left-radius: 1.6rem;
    border-bottom-right-radius: 1.6rem;
  }
  .services-hero .hero-content h1 {
    font-size: 1.6rem;
  }
  .services-hero .hero-content p {
    font-size: 1rem;
  }
}

/* =========================
   Access Modal (Build-A-Bot)
   Self-contained / No globals
   ========================= */
/* Component root defines its own design tokens (CSS vars) */
.access-modal {
  /* design tokens (override per-instance if needed) */
  --modal-z: 100000;
  --modal-radius: 16px;
  --modal-shadow: 0 20px 50px rgba(0, 0, 0, .25);
  --modal-max-w: 520px;
  --gap-1: 8px;
  --gap-2: 10px;
  --gap-3: 12px;
  --gap-4: 16px;
  --pad-x: 22px;
  --pad-y: 24px;
  /* light */
  --bg: #fff;
  --fg: #111;
  --muted: #444;
  --btn-primary-bg: #111;
  --btn-primary-fg: #fff;
  --btn-secondary-bg: #f2f2f2;
  --btn-secondary-fg: #111;
  --btn-secondary-bd: #e6e6e6;
  --field-bg: #fff;
  --field-fg: #111;
  --field-bd: #d5d5d5;
  --focus: #7a7cff;
  --focus-ring: rgba(122,124,255, .2);
  --toast-bg: #f0f7ff;
  --toast-bd: #cfe4ff;
  --toast-fg: #084b8a;
  /* dark overrides auto-apply inside component only */
  /* ===========
     Backdrop
     =========== */
  /* ===========
     Dialog
     =========== */
  /* ===========
     Form
     =========== */
  /* ===========
     Buttons
     =========== */
  /* ===========
     Toast
     =========== */
  /* ===========
     Clickable openers (optional)
     =========== */
  /* ===========
     Layering against other local overlays
     Supply your own container with lower z-index if needed.
     =========== */
  /* ===========
     Optional: local scroll lock helper (no global body rules)
     Apply to a page/container element you control,
     not to <body> across the whole site.
     =========== */
}
@media (prefers-color-scheme: dark) {
  .access-modal {
    --bg: #111;
    --fg: #f3f3f3;
    --muted: #cfcfcf;
    --btn-primary-bg: #f3f3f3;
    --btn-primary-fg: #111;
    --btn-secondary-bg: #1b1b1b;
    --btn-secondary-fg: #f3f3f3;
    --btn-secondary-bd: #2a2a2a;
    --field-bg: #0d0d0d;
    --field-fg: #eaeaea;
    --field-bd: #2a2a2a;
    --toast-bg: #0f1a24;
    --toast-bd: #1c3b54;
    --toast-fg: #b6dbff;
  }
}
.access-modal__backdrop {
  position: fixed;
  inset: 0;
  display: none; /* hidden by default */
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  z-index: var(--modal-z);
  /* open state (toggle via data attribute) */
}
.access-modal__backdrop[data-open=true] {
  display: -ms-grid;
  display: grid;
}
@media (prefers-reduced-motion: no-preference) {
  .access-modal__backdrop {
    -webkit-transition: background 0.18s ease-out;
    transition: background 0.18s ease-out;
  }
}
.access-modal__dialog {
  position: relative;
  width: min(var(--modal-max-w), 92vw);
  border-radius: var(--modal-radius);
  -webkit-box-shadow: var(--modal-shadow);
          box-shadow: var(--modal-shadow);
  padding: var(--pad-y) var(--pad-x);
  background: var(--bg);
  color: var(--fg);
}
@media (prefers-reduced-motion: no-preference) {
  .access-modal__dialog {
    -webkit-transform: translateY(6px);
            transform: translateY(6px);
    opacity: 0.98;
    -webkit-transition: opacity 0.18s ease-out, -webkit-transform 0.18s ease-out;
    transition: opacity 0.18s ease-out, -webkit-transform 0.18s ease-out;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out, -webkit-transform 0.18s ease-out;
    /* animate in when parent backdrop is open */
  }
  .access-modal__backdrop[data-open=true] .access-modal__dialog {
    -webkit-transform: translateY(0);
            transform: translateY(0);
    opacity: 1;
  }
}
.access-modal__dialog h2 {
  margin: 0 0 var(--gap-1);
  font-size: 1.35rem;
  line-height: 1.25;
}
.access-modal__dialog .access-modal__sub {
  margin: 0 0 var(--gap-4);
  color: var(--muted);
}
.access-modal__dialog .access-modal__close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 26px;
  line-height: 1;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.access-modal__dialog .access-modal__close:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
.access-modal__form {
  display: -ms-grid;
  display: grid;
  gap: var(--gap-2);
}
.access-modal__form label {
  font-size: 0.9rem;
  color: color-mix(in oklab, var(--fg) 80%, transparent);
}
@media (prefers-color-scheme: dark) {
  .access-modal__form label {
    color: #ddd;
  }
}
.access-modal__form input,
.access-modal__form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--field-bd);
  outline: none;
  background: var(--field-bg);
  color: var(--field-fg);
}
.access-modal__form input:focus,
.access-modal__form textarea:focus {
  border-color: var(--focus);
  -webkit-box-shadow: 0 0 0 3px var(--focus-ring);
          box-shadow: 0 0 0 3px var(--focus-ring);
}
.access-modal__btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
}
.access-modal__btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.access-modal__btn--primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.access-modal__btn--secondary {
  background: var(--btn-secondary-bg);
  color: var(--btn-secondary-fg);
  border-color: var(--btn-secondary-bd);
}
.access-modal__toast {
  margin-top: var(--gap-3);
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--toast-bg);
  border: 1px solid var(--toast-bd);
  color: var(--toast-fg);
}
.access-modal__opener, .access-modal__requires-access {
  cursor: pointer;
}
.access-modal__other-overlay[aria-hidden=false] {
  z-index: calc(var(--modal-z) - 1);
}
.access-modal__scroll-lock {
  position: fixed;
  inset: 0;
  overflow: hidden;
  width: 100%;
}

/* =========================
   AI Tools Directory (sharp + modern)
   ========================= */
.ai-directory-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #eaf3ff 0%, #cfe0f4 42%, #123359 100%);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #0d3870;
  padding: 0 0 3rem;
  isolation: isolate;
  /* keep anchors visible under sticky topbar */
  /* ===== Topbar ===== */
  /* ===== Page title ===== */
  /* ===== Category blocks ===== */
  /* ===== Cards ===== */
}
.ai-directory-page .category[id] {
  scroll-margin-top: 84px;
}
.ai-directory-page .topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  background: rgba(13, 56, 112, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.7rem clamp(1rem, 2vw, 2rem);
  border-radius: 0 0 1.2rem 1.2rem;
  -webkit-box-shadow: 0 6px 26px rgba(13, 56, 112, 0.22);
          box-shadow: 0 6px 26px rgba(13, 56, 112, 0.22);
}
.ai-directory-page .topbar .floating-search {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 0.35rem 0.9rem 0.35rem 2.4rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-shadow: 0 2px 16px rgba(13, 56, 112, 0.08);
          box-shadow: 0 2px 16px rgba(13, 56, 112, 0.08);
}
.ai-directory-page .topbar .floating-search::before {
  content: "🔍";
  position: absolute;
  left: 0.8rem;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  font-size: 1.05rem;
  opacity: 0.9;
}
.ai-directory-page .topbar .floating-search input {
  border: 0;
  outline: 0;
  background: transparent;
  color: #eaf3ff;
  font-size: 1.05rem;
  min-width: 220px;
  padding: 0.2rem 0.2rem;
}
.ai-directory-page .topbar .floating-search input::-webkit-input-placeholder {
  color: rgba(213, 230, 255, 0.8);
}
.ai-directory-page .topbar .floating-search input::-moz-placeholder {
  color: rgba(213, 230, 255, 0.8);
}
.ai-directory-page .topbar .floating-search input:-ms-input-placeholder {
  color: rgba(213, 230, 255, 0.8);
}
.ai-directory-page .topbar .floating-search input::-ms-input-placeholder {
  color: rgba(213, 230, 255, 0.8);
}
.ai-directory-page .topbar .floating-search input::placeholder {
  color: rgba(213, 230, 255, 0.8);
}
.ai-directory-page .topbar .btn-nav-container {
  position: relative;
}
.ai-directory-page .topbar .btn-nav-container .floating-nav-btn {
  background: #fff;
  color: #0d3870;
  border: none;
  border-radius: 50%;
  width: 2.6rem;
  height: 2.6rem;
  -webkit-box-shadow: 0 2px 12px rgba(13, 56, 112, 0.18);
          box-shadow: 0 2px 12px rgba(13, 56, 112, 0.18);
  font-size: 1.2rem;
  cursor: pointer;
  display: -ms-grid;
  display: grid;
  place-items: center;
  -webkit-transition: background 0.16s, -webkit-box-shadow 0.16s, -webkit-transform 0.12s;
  transition: background 0.16s, -webkit-box-shadow 0.16s, -webkit-transform 0.12s;
  transition: box-shadow 0.16s, background 0.16s, transform 0.12s;
  transition: box-shadow 0.16s, background 0.16s, transform 0.12s, -webkit-box-shadow 0.16s, -webkit-transform 0.12s;
}
.ai-directory-page .topbar .btn-nav-container .floating-nav-btn:hover {
  background: #eaf3ff;
  -webkit-box-shadow: 0 0 0 6px rgba(234, 243, 255, 0.35);
          box-shadow: 0 0 0 6px rgba(234, 243, 255, 0.35);
}
.ai-directory-page .topbar .btn-nav-container .floating-nav-btn:active {
  -webkit-transform: scale(0.97);
          transform: scale(0.97);
}
.ai-directory-page .topbar .btn-nav-container .floating-nav-btn:focus-visible {
  outline: 2px solid #8ee3d8;
  outline-offset: 3px;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer {
  position: absolute;
  top: 3.1rem;
  right: 0;
  min-width: 280px;
  max-height: 72vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #cfe0f4;
  border-radius: 1rem;
  -webkit-box-shadow: 0 18px 40px rgba(13, 56, 112, 0.18);
          box-shadow: 0 18px 40px rgba(13, 56, 112, 0.18);
  padding: 1.1rem 1rem;
  -webkit-transform: translateY(6px);
          transform: translateY(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  -webkit-transition: opacity 0.16s ease, -webkit-transform 0.16s ease;
  transition: opacity 0.16s ease, -webkit-transform 0.16s ease;
  transition: opacity 0.16s ease, transform 0.16s ease;
  transition: opacity 0.16s ease, transform 0.16s ease, -webkit-transform 0.16s ease;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer.open {
  -webkit-transform: none;
          transform: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer .cat-drawer-title {
  color: #0d3870;
  font-weight: 800;
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer li {
  margin-bottom: 0.12rem;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer a {
  display: block;
  padding: 0.38rem 0.6rem;
  border-radius: 0.6rem;
  color: #0d3870;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  -webkit-transition: background 0.14s, color 0.14s;
  transition: background 0.14s, color 0.14s;
}
.ai-directory-page .topbar .btn-nav-container .category-drawer a:hover, .ai-directory-page .topbar .btn-nav-container .category-drawer a:focus-visible {
  background: #eaf3ff;
  color: #2061b2;
  outline: none;
}
@media (max-width: 700px) {
  .ai-directory-page .topbar .ai-directory-page .topbar .btn-nav-container {
    position: static;
  }
  .ai-directory-page .topbar .ai-directory-page .topbar .category-drawer {
    position: absolute;
    left: 50%;
    right: auto;
    -webkit-transform: translate(-50%, 6px);
            transform: translate(-50%, 6px); /* keep the drop-down feel */
    min-width: 0;
    width: min(92vw, 360px);
  }
}
.ai-directory-page h1 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 2rem 0 2.2rem;
  text-align: center;
  color: #0d3870;
  text-shadow: 0 2px 10px rgba(13, 56, 112, 0.07);
}
.ai-directory-page .category {
  margin: 0 auto 3rem;
  padding: 1.2rem 1rem 2rem;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 1.2rem;
  border: 1px solid #dbe9ff;
  -webkit-box-shadow: 0 6px 24px rgba(13, 56, 112, 0.1);
          box-shadow: 0 6px 24px rgba(13, 56, 112, 0.1);
  position: relative;
}
.ai-directory-page .category:not(:first-child) {
  margin-top: 2.8rem;
  padding-top: 2.4rem;
  border-top: 2px solid #cfe0f4;
}
.ai-directory-page .category:not(:first-child)::before {
  content: "";
  display: block;
  height: 6px;
  width: 140px;
  margin: 0 auto 1rem;
  border-radius: 10px;
  background: -webkit-gradient(linear, left top, right top, from(#0d3870), to(#00c2b2));
  background: linear-gradient(90deg, #0d3870, #00c2b2);
  opacity: 0.18;
  -webkit-box-shadow: 0 3px 12px rgba(0, 194, 178, 0.2666666667);
          box-shadow: 0 3px 12px rgba(0, 194, 178, 0.2666666667);
}
.ai-directory-page .category h2 {
  display: inline-block;
  margin: 0.2rem 0 1rem;
  padding: 0.45em 1.15em;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #2061b2;
  text-shadow: 0 1px 6px rgba(13, 56, 112, 0.07);
  background: -webkit-gradient(linear, left top, right top, color-stop(60%, #f7fbff), to(#eaf3ff));
  background: linear-gradient(90deg, #f7fbff 60%, #eaf3ff 100%);
  border-radius: 0.9rem;
  -webkit-box-shadow: 0 1px 8px rgba(13, 56, 112, 0.1019607843);
          box-shadow: 0 1px 8px rgba(13, 56, 112, 0.1019607843);
  border: 1px solid #e6f1fd;
}
.ai-directory-page .category .tool-grid {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem 1.7rem;
  margin-bottom: 0.8rem;
}
.ai-directory-page .card {
  position: relative;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0.92)), to(rgba(255, 255, 255, 0.86)));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.86));
  border: 1px solid #e6f0ff;
  border-radius: 1.1rem;
  -webkit-box-shadow: 0 8px 28px rgba(13, 56, 112, 0.12);
          box-shadow: 0 8px 28px rgba(13, 56, 112, 0.12);
  padding-bottom: 1.35rem;
  -webkit-transition: border-color 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
  transition: border-color 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, -webkit-transform 0.18s ease, -webkit-box-shadow 0.18s ease;
  /* Rating */
}
.ai-directory-page .card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 194, 178, 0.12)), color-stop(32%, transparent));
  background: linear-gradient(180deg, rgba(0, 194, 178, 0.12), transparent 32%);
}
.ai-directory-page .card:hover {
  -webkit-transform: translateY(-3px) scale(1.012);
          transform: translateY(-3px) scale(1.012);
  -webkit-box-shadow: 0 16px 40px rgba(32, 97, 178, 0.2);
          box-shadow: 0 16px 40px rgba(32, 97, 178, 0.2);
  border-color: #c8dcff;
}
.ai-directory-page .card .tool-img {
  display: -ms-grid;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  margin: 1rem auto 0.6rem;
  color: rgba(13, 56, 112, 0.6980392157);
  font-size: 2rem;
  background: #f2f7ff;
  border: 1px solid #dbe9ff;
  border-radius: 16px;
  -webkit-box-shadow: 0 4px 16px rgba(13, 56, 112, 0.08), inset 0 0 0 1px rgba(13, 56, 112, 0.05);
          box-shadow: 0 4px 16px rgba(13, 56, 112, 0.08), inset 0 0 0 1px rgba(13, 56, 112, 0.05);
}
.ai-directory-page .card .tool-title {
  font-size: 1.08rem;
  font-weight: 800;
  text-align: center;
  color: #1d4e86;
  margin: 0.2rem auto;
}
.ai-directory-page .card .tool-desc {
  text-align: center;
  font-size: 0.98rem;
  color: #3c5d8a;
  margin: 0.2rem auto 0.35rem;
  padding: 0 0.75rem;
}
.ai-directory-page .card .tool-example {
  text-align: center;
  font-size: 0.92rem;
  color: #3e4a66;
  opacity: 0.86;
  margin-bottom: 0.6rem;
  padding: 0 0.75rem;
}
.ai-directory-page .card .tool-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.35rem;
  margin: 0.7rem auto 0;
  padding: 0.42em 1.25em;
  background: #338ffd;
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  -webkit-box-shadow: 0 2px 10px rgba(184, 218, 255, 0.3333333333);
          box-shadow: 0 2px 10px rgba(184, 218, 255, 0.3333333333);
  -webkit-transition: background 0.16s ease, -webkit-transform 0.12s ease;
  transition: background 0.16s ease, -webkit-transform 0.12s ease;
  transition: background 0.16s ease, transform 0.12s ease;
  transition: background 0.16s ease, transform 0.12s ease, -webkit-transform 0.12s ease;
}
.ai-directory-page .card .tool-btn:hover {
  background: #2465a2;
}
.ai-directory-page .card .tool-btn:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}
.ai-directory-page .card .tool-btn:focus-visible {
  outline: 2px solid #8ee3d8;
  outline-offset: 2px;
}
.ai-directory-page .card .card-rating {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 6px;
  margin: 1.1em 0 0.5em;
  font-size: 1.1em;
}
.ai-directory-page .card .card-rating .star {
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
  color: #e1e4e7;
  font-size: 1.28em;
  margin: 0 1px;
  -webkit-transition: color 0.15s, text-shadow 0.15s, -webkit-transform 0.12s;
  transition: color 0.15s, text-shadow 0.15s, -webkit-transform 0.12s;
  transition: color 0.15s, text-shadow 0.15s, transform 0.12s;
  transition: color 0.15s, text-shadow 0.15s, transform 0.12s, -webkit-transform 0.12s;
}
.ai-directory-page .card .card-rating .star:hover, .ai-directory-page .card .card-rating .star:hover ~ .star {
  color: #f7b80c;
  text-shadow: 0 2px 8px rgba(247, 184, 12, 0.1333333333);
}
.ai-directory-page .card .card-rating .star:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.ai-directory-page .card .card-rating .star.active, .ai-directory-page .card .card-rating .star.selected {
  color: #f7b80c;
  text-shadow: 0 2px 8px rgba(247, 184, 12, 0.1333333333);
}
.ai-directory-page .card .card-rating .submit-rating-btn {
  margin-left: 0.8em;
  background: #ffe89b;
  color: #916a0a;
  border: none;
  border-radius: 999px;
  padding: 0.25em 1.1em;
  font-weight: 700;
  font-size: 0.95em;
  cursor: pointer;
  -webkit-box-shadow: 0 1px 6px rgba(247, 184, 12, 0.1333333333);
          box-shadow: 0 1px 6px rgba(247, 184, 12, 0.1333333333);
  -webkit-transition: background 0.16s ease, color 0.16s ease, -webkit-transform 0.12s ease;
  transition: background 0.16s ease, color 0.16s ease, -webkit-transform 0.12s ease;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease;
  transition: background 0.16s ease, color 0.16s ease, transform 0.12s ease, -webkit-transform 0.12s ease;
}
.ai-directory-page .card .card-rating .submit-rating-btn:hover {
  background: #ffd346;
  color: #624100;
}
.ai-directory-page .card .card-rating .submit-rating-btn:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}
.ai-directory-page .card .see-comments-btn {
  display: block;
  margin: 0.25em auto 0;
  background: #f0f6ff;
  color: #2366b6;
  border: 1.3px solid #b8daff;
  border-radius: 999px;
  font-size: 0.97rem;
  font-weight: 700;
  padding: 0.35em 1.15em;
  -webkit-box-shadow: 0 1px 8px rgba(184, 218, 255, 0.1333333333);
          box-shadow: 0 1px 8px rgba(184, 218, 255, 0.1333333333);
  -webkit-transition: background 0.15s, color 0.15s, border-color 0.15s, -webkit-transform 0.12s;
  transition: background 0.15s, color 0.15s, border-color 0.15s, -webkit-transform 0.12s;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s, -webkit-transform 0.12s;
}
.ai-directory-page .card .see-comments-btn:hover, .ai-directory-page .card .see-comments-btn:focus {
  background: #eaf3ff;
  color: #1a4373;
  border-color: #8ec6ff;
}
.ai-directory-page .card .see-comments-btn:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}

/* ---------- GLOBAL AI reviews/comments modal (appended to <body>) ---------- */
.reviews-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 950; /* below navbar (~1000), above page */
  background: rgba(22, 36, 66, 0.44);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain;
}

.reviews-modal-content,
#reviewsModal,
#commentsModal {
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%) scale(1);
          transform: translate(-50%, -50%) scale(1);
  z-index: 960; /* above backdrop */
  min-width: 320px;
  max-width: 560px;
  width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 18px;
  -webkit-box-shadow: 0 16px 48px rgba(21, 45, 86, 0.6);
          box-shadow: 0 16px 48px rgba(21, 45, 86, 0.6);
  padding: 26px 20px 22px;
  -webkit-animation: modalPop 0.21s ease;
          animation: modalPop 0.21s ease;
  outline: none;
  /* Comments list */
  /* Inline login gate */
  /* Add comment form */
}
.reviews-modal-content .modal-close-btn,
.reviews-modal-content #closeReviewsModal,
.reviews-modal-content #closeCommentsModal,
#reviewsModal .modal-close-btn,
#reviewsModal #closeReviewsModal,
#reviewsModal #closeCommentsModal,
#commentsModal .modal-close-btn,
#commentsModal #closeReviewsModal,
#commentsModal #closeCommentsModal {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.65em;
  color: #97a7bb;
  border-radius: 99px;
  -webkit-transition: color 0.15s, background 0.15s;
  transition: color 0.15s, background 0.15s;
}
.reviews-modal-content .modal-close-btn:hover,
.reviews-modal-content #closeReviewsModal:hover,
.reviews-modal-content #closeCommentsModal:hover,
#reviewsModal .modal-close-btn:hover,
#reviewsModal #closeReviewsModal:hover,
#reviewsModal #closeCommentsModal:hover,
#commentsModal .modal-close-btn:hover,
#commentsModal #closeReviewsModal:hover,
#commentsModal #closeCommentsModal:hover {
  color: #0d3870;
  background: #eaf3ff;
}
.reviews-modal-content h2, .reviews-modal-content h3,
#reviewsModal h2,
#reviewsModal h3,
#commentsModal h2,
#commentsModal h3 {
  font-size: 1.14em;
  color: #2061b2;
  margin: 0.1em 0 0.9em;
  font-weight: 800;
}
.reviews-modal-content .comments-list,
#reviewsModal .comments-list,
#commentsModal .comments-list {
  display: -ms-grid;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 0.8rem;
}
.reviews-modal-content .comment-item,
#reviewsModal .comment-item,
#commentsModal .comment-item {
  background: #f7fbff;
  border: 1px solid #e6f1fd;
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  -webkit-box-shadow: 0 1px 7px rgba(215, 234, 255, 0.0941176471);
          box-shadow: 0 1px 7px rgba(215, 234, 255, 0.0941176471);
  display: -ms-grid;
  display: grid;
  gap: 0.25rem;
}
.reviews-modal-content .comment-item .comment-user,
#reviewsModal .comment-item .comment-user,
#commentsModal .comment-item .comment-user {
  font-weight: 700;
  color: #1d4e86;
}
.reviews-modal-content .comment-item .comment-text,
#reviewsModal .comment-item .comment-text,
#commentsModal .comment-item .comment-text {
  color: #395170;
  line-height: 1.45;
}
.reviews-modal-content .comment-item .comment-date,
#reviewsModal .comment-item .comment-date,
#commentsModal .comment-item .comment-date {
  color: #8198b6;
  font-size: 0.92rem;
}
.reviews-modal-content .ai-login-gate,
#reviewsModal .ai-login-gate,
#commentsModal .ai-login-gate {
  color: #2465a2;
  background: #f0f6ff;
  border: 1px solid #b8daff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  margin-bottom: 0.6rem;
  text-align: center;
  font-weight: 700;
}
.reviews-modal-content .add-comment-form,
#reviewsModal .add-comment-form,
#commentsModal .add-comment-form {
  margin-top: 0.4rem;
  display: -ms-grid;
  display: grid;
  gap: 0.5rem;
}
.reviews-modal-content .add-comment-form textarea,
#reviewsModal .add-comment-form textarea,
#commentsModal .add-comment-form textarea {
  border: 1px solid #e0e1e7;
  border-radius: 8px;
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  resize: vertical;
  min-height: 44px;
  -webkit-transition: border 0.13s;
  transition: border 0.13s;
}
.reviews-modal-content .add-comment-form textarea:focus,
#reviewsModal .add-comment-form textarea:focus,
#commentsModal .add-comment-form textarea:focus {
  border-color: #85cdfa;
  outline: none;
}
.reviews-modal-content .add-comment-form button,
#reviewsModal .add-comment-form button,
#commentsModal .add-comment-form button {
  -ms-grid-column-align: start;
      justify-self: start;
  padding: 8px 18px;
  background: #5eb5fa;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;
  -webkit-box-shadow: 0 1px 6px rgba(37, 115, 198, 0.3333333333);
          box-shadow: 0 1px 6px rgba(37, 115, 198, 0.3333333333);
  -webkit-transition: background 0.17s, -webkit-transform 0.12s ease;
  transition: background 0.17s, -webkit-transform 0.12s ease;
  transition: background 0.17s, transform 0.12s ease;
  transition: background 0.17s, transform 0.12s ease, -webkit-transform 0.12s ease;
}
.reviews-modal-content .add-comment-form button:hover,
#reviewsModal .add-comment-form button:hover,
#commentsModal .add-comment-form button:hover {
  background: #2573c6;
}
.reviews-modal-content .add-comment-form button:active,
#reviewsModal .add-comment-form button:active,
#commentsModal .add-comment-form button:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}

/* Animation that keeps translate(-50%, -50%) */
@-webkit-keyframes modalPop {
  from {
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) scale(0.98);
            transform: translate(-50%, -50%) scale(0.98);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes modalPop {
  from {
    opacity: 0;
    -webkit-transform: translate(-50%, -50%) scale(0.98);
            transform: translate(-50%, -50%) scale(0.98);
  }
  to {
    opacity: 1;
    -webkit-transform: translate(-50%, -50%) scale(1);
            transform: translate(-50%, -50%) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .reviews-modal-content,
  #reviewsModal,
  #commentsModal {
    -webkit-animation: none;
            animation: none;
  }
}
/* ---------- Centered alert (login required / network error — always above all) ---------- */
.ai-alert-backdrop {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(10, 20, 40, 0.55);
  display: -ms-grid;
  display: grid;
  place-items: center;
  -webkit-animation: aiAlertFade 0.18s ease;
          animation: aiAlertFade 0.18s ease;
}

.ai-alert {
  width: min(440px, 92vw);
  background: #fff;
  border: 1px solid #dbe9ff;
  border-radius: 16px;
  -webkit-box-shadow: 0 18px 50px rgba(13, 56, 112, 0.25);
          box-shadow: 0 18px 50px rgba(13, 56, 112, 0.25);
  padding: 18px 18px 16px;
  position: relative;
  text-align: center;
}

.ai-alert-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: 0;
  font-size: 1.5rem;
  color: #97a7bb;
  cursor: pointer;
  border-radius: 999px;
  -webkit-transition: color 0.15s, background 0.15s;
  transition: color 0.15s, background 0.15s;
}
.ai-alert-close:hover {
  color: #0d3870;
  background: #eaf3ff;
}

.ai-alert-icon {
  font-size: 2rem;
  margin-top: 0.25rem;
}

.ai-alert h3 {
  margin: 0.4rem 0 0.25rem;
  font-size: 1.1rem;
  color: #0d3870;
  font-weight: 800;
}

.ai-alert p {
  margin: 0 0.2rem 0.8rem;
  color: #395170;
}

.ai-alert-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 0.6rem;
}

.ai-alert-actions button {
  padding: 0.5rem 1.1rem;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
  -webkit-box-shadow: 0 1px 6px rgba(13, 56, 112, 0.2);
          box-shadow: 0 1px 6px rgba(13, 56, 112, 0.2);
}

.ai-alert-ok {
  background: #f0f6ff;
  color: #1a4373;
}

.ai-alert-login {
  background: #00c2b2;
  color: #0b1220;
}

.ai-alert-login:hover {
  -webkit-filter: brightness(0.95);
          filter: brightness(0.95);
}

@-webkit-keyframes aiAlertFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes aiAlertFade {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
/* Utilities */
.hidden {
  display: none !important;
}

.is-disabled, button[disabled], textarea[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.card.search-hit {
  -webkit-box-shadow: 0 0 0 3px #00c2b2 inset, 0 14px 40px rgba(13, 56, 112, 0.28);
          box-shadow: 0 0 0 3px #00c2b2 inset, 0 14px 40px rgba(13, 56, 112, 0.28);
  -webkit-transform: translateY(-3px) scale(1.012);
          transform: translateY(-3px) scale(1.012);
}

/* Burger menu */
#navLinks {
  display: none;
}

#navLinks.open {
  display: block;
}

/* Optional: gated buttons look disabled (JS still intercepts events) */
.tool-btn.is-disabled {
  opacity: 0.5;
  pointer-events: auto;
  cursor: not-allowed;
}

/* =========================================
   iTARiX Dashboard (Fluent-inspired)
   File: scss/dashboard.scss
   Scope: .dash-wrap and children
   ========================================= */
/* ====== Page shell ====== */
.dash-wrap {
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: #0a0a0a;
  max-width: 1200px;
  margin-inline: auto;
  padding: clamp(16px, 2vw, 24px);
  background: #f6f8fb;
}
.dash-wrap h1 {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: 4px 0 16px;
}

/* ====== Summary stats ====== */
.dash-summary {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}
.dash-summary .stat {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 16px;
  display: -ms-grid;
  display: grid;
  -ms-flex-line-pack: center;
      align-content: center;
  gap: 6px;
  -webkit-transition: border-color 0.12s ease, -webkit-transform 0.12s ease, -webkit-box-shadow 0.12s ease;
  transition: border-color 0.12s ease, -webkit-transform 0.12s ease, -webkit-box-shadow 0.12s ease;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, -webkit-transform 0.12s ease, -webkit-box-shadow 0.12s ease;
}
.dash-summary .stat span {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dash-summary .stat small {
  color: #6b7280;
  font-weight: 600;
}
.dash-summary .stat:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
}
.dash-summary .stat.disabled {
  opacity: 0.6;
  -webkit-filter: grayscale(0.2);
          filter: grayscale(0.2);
}

/* ====== Tabs ====== */
.dash-tabs {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  margin: 10px 0 16px;
}
.dash-tabs .tab {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #e6e9ef;
  background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f1f4f9));
  background: linear-gradient(180deg, #ffffff 0%, #f1f4f9 100%);
  color: #0a0a0a;
  border-radius: 16px;
  padding: 8px 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-transition: border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
  transition: border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
  transition: transform 0.06s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  transition: transform 0.06s ease, box-shadow 0.12s ease, border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
}
.dash-tabs .tab:hover:not(.disabled) {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
}
.dash-tabs .tab:focus-visible {
  outline: 3px solid rgba(0, 120, 212, 0.35);
  outline-offset: 2px;
}
.dash-tabs .tab.active {
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 120, 212, 0.12)), to(rgba(0, 120, 212, 0.06)));
  background: linear-gradient(180deg, rgba(0, 120, 212, 0.12), rgba(0, 120, 212, 0.06));
  border-color: rgba(0, 120, 212, 0.35);
  color: #0b2a40;
}
.dash-tabs .tab.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  -webkit-box-shadow: none;
          box-shadow: none;
}

/* ====== Panels ====== */
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
}

/* ====== Empty state ====== */
.empty {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 24px;
  text-align: center;
  color: #6b7280;
}

/* ====== Buttons ====== */
.btn,
.btn-small {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid #e6e9ef;
  background: #ffffff;
  color: #0a0a0a;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  cursor: pointer;
  -webkit-transition: border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
  transition: border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
  transition: transform 0.06s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  transition: transform 0.06s ease, box-shadow 0.12s ease, border-color 0.12s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.12s ease;
}
.btn:hover,
.btn-small:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 10px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 120, 212, 0.25);
}
.btn:focus-visible,
.btn-small:focus-visible {
  outline: 3px solid rgba(0, 120, 212, 0.35);
  outline-offset: 2px;
}

.btn-small {
  padding: 6px 10px;
  font-size: 0.92rem;
}

.btn.primary {
  background: -webkit-gradient(linear, left top, left bottom, from(#0089f3), to(#0078d4));
  background: linear-gradient(180deg, #0089f3 0%, #0078d4 100%);
  color: #fff;
  border-color: #006abb;
}

/* ====== Badges / Chips ====== */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  background: rgba(0, 120, 212, 0.12);
  color: #003e6e;
  border: 1px solid rgba(0, 120, 212, 0.25);
}

/* ====== Tables ====== */
.dash-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.dash-table thead th {
  background: -webkit-gradient(linear, left top, left bottom, from(#f1f4f9), to(#ffffff));
  background: linear-gradient(180deg, #f1f4f9 0%, #ffffff 100%);
  color: #1f2937;
  text-align: left;
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 1px solid #e6e9ef;
  position: sticky;
  top: 0;
  z-index: 1;
}
.dash-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #e6e9ef;
  vertical-align: middle;
}
.dash-table tbody tr {
  -webkit-transition: background-color 0.12s ease;
  transition: background-color 0.12s ease;
}
.dash-table tbody tr:hover {
  background: rgba(0, 120, 212, 0.06);
}
.dash-table tfoot td {
  padding: 10px 14px;
  background: #ffffff;
}

/* Pager */
.pager {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 8px;
}
.pager .muted {
  color: #6b7280;
}

/* Row highlight after submit */
@-webkit-keyframes rowFlash {
  0% {
    background-color: rgba(15, 123, 15, 0.18);
  }
  100% {
    background-color: transparent;
  }
}
@keyframes rowFlash {
  0% {
    background-color: rgba(15, 123, 15, 0.18);
  }
  100% {
    background-color: transparent;
  }
}
.row-highlight {
  -webkit-animation: rowFlash 2200ms ease-out forwards;
          animation: rowFlash 2200ms ease-out forwards;
}

/* ====== Quote cards grid ====== */
.quotes-list {
  display: -ms-grid;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.quote-card {
  background: #ffffff;
  border: 1px solid #e6e9ef;
  border-radius: 12px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
          box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 14px;
  display: -ms-grid;
  display: grid;
  gap: 10px;
}
.quote-card header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: baseline;
      -ms-flex-align: baseline;
          align-items: baseline;
}
.quote-card header .qid {
  font-weight: 700;
  color: #0d3870;
}
.quote-card header .date {
  color: #6b7280;
  font-size: 0.9rem;
}
.quote-card .meta {
  display: -ms-grid;
  display: grid;
  gap: 6px;
}
.quote-card .meta .row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 100px 10px 1fr;
  grid-template-columns: 100px 1fr;
  gap: 10px;
}
.quote-card .meta .row .label {
  color: #6b7280;
  font-weight: 600;
}
.quote-card .meta .row .val {
  font-weight: 600;
}
.quote-card .chips {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 6px;
}
.quote-card .chips .chip {
  background: #f1f4f9;
  border: 1px solid #e6e9ef;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}
.quote-card .footer {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
}

/* ====== Modal polish (applies to our simple dialog content) ====== */
/* The overlay itself is inline-styled in JS. These styles enhance inner content. */
[role=dialog] .badge {
  vertical-align: middle;
}

[role=dialog] h3 {
  margin: 0 0 0.25rem;
}

[role=dialog] .btn-small {
  background: #f1f4f9;
}
[role=dialog] .btn-small:hover {
  background: #f8fafc;
}

/* ====== Accessibility & reductions ====== */
@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-transition: none !important;
    transition: none !important;
    -webkit-animation: none !important;
            animation: none !important;
  }
}
/* ====== Dark mode ====== */
@media (prefers-color-scheme: dark) {
  .dash-wrap {
    background: #f6f8fb;
    color: #0a0a0a;
  }
  .dash-summary .stat {
    background: #ffffff;
    border-color: #e6e9ef;
  }
  .dash-summary .stat small {
    color: #6b7280;
  }
  .dash-tabs .tab {
    background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#f1f4f9));
    background: linear-gradient(180deg, #ffffff 0%, #f1f4f9 100%);
    color: #0a0a0a;
    border-color: #e6e9ef;
  }
  .dash-tabs .tab.active {
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0, 120, 212, 0.16)), to(rgba(0, 120, 212, 0.08)));
    background: linear-gradient(180deg, rgba(0, 120, 212, 0.16), rgba(0, 120, 212, 0.08));
    border-color: rgba(0, 120, 212, 0.35);
    color: #e6f4ff;
  }
  .empty, .dash-table {
    background: #ffffff;
    border-color: #e6e9ef;
  }
  .empty th, .dash-table th {
    background: -webkit-gradient(linear, left top, left bottom, from(#f1f4f9), to(#ffffff));
    background: linear-gradient(180deg, #f1f4f9 0%, #ffffff 100%);
    color: #0a0a0a;
  }
  .empty td, .dash-table td {
    border-bottom-color: #e6e9ef;
    color: #0a0a0a;
  }
  .btn, .btn-small {
    background: #ffffff;
    color: #0a0a0a;
    border-color: #e6e9ef;
  }
  .badge {
    background: rgba(0, 120, 212, 0.16);
    color: #cfeaff;
    border-color: rgba(0, 120, 212, 0.35);
  }
  .quote-card {
    background: #ffffff;
    border-color: #e6e9ef;
  }
  .quote-card .chips .chip {
    background: #f1f4f9;
    border-color: #e6e9ef;
    color: #0a0a0a;
  }
}
/* =========================
   BASE / RESET (ICON-SAFE)
   ========================= */
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #0b1220;
  background: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
  padding: 0;
  margin: -1px;
}

/* =========================
   BOOTSTRAP ICONS GUARD
   (never set 'content' here)
   ========================= */
.bi::before,
i.bi::before {
  font-family: "bootstrap-icons" !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

#navbar-container .bi::before,
.footer .bi::before {
  font-family: "bootstrap-icons" !important;
}

/* =========================
   LINK DECORATIONS (SCOPED)
   ========================= */
.navbar a.has-underline {
  position: relative;
}

.navbar a.has-underline::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 8px;
  height: 2px;
  border-radius: 2px;
  opacity: 0;
  -webkit-transform: scaleX(0.5);
          transform: scaleX(0.5);
  -webkit-transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transition: opacity 0.2s ease, transform 0.2s ease, -webkit-transform 0.2s ease;
  background: currentColor;
}

/* Don’t draw underline when link contains an icon */
.navbar a.has-underline:has(.bi)::before,
.footer a.has-underline:has(.bi)::before {
  content: none !important;
}

.navbar a.has-underline:hover::before,
.navbar a.has-underline:focus-visible::before {
  opacity: 0.6;
  -webkit-transform: scaleX(1);
          transform: scaleX(1);
}

/* Icon-link utility */
.icon-link {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
}

.icon-link:focus-visible {
  outline: 2px solid color-mix(in srgb, currentColor 60%, transparent);
  outline-offset: 2px;
}

.icon-link:hover {
  background: color-mix(in srgb, currentColor 8%, transparent);
}

.icon-link .bi {
  font-size: 1.05em;
  line-height: 1;
}

/* =========================
   UTILS
   ========================= */
.hidden {
  display: none !important;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border, #ddd);
  background: #fff;
  border-radius: 0.5rem;
  -webkit-box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 2147483647;
}

.toast--hidden {
  opacity: 0;
  pointer-events: none;
  -webkit-transition: opacity 0.25s;
  transition: opacity 0.25s;
}

/* =========================
   HERO (image background)
   ========================= */
.hero2 {
  width: 100%;
  min-height: 100svh;
  position: relative;
  display: -ms-grid;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 5rem) 1.25rem;
  background: center/cover no-repeat url("/assets/images/databases-section/database_glow_bg.svg");
  color: #fff;
  overflow: hidden;
  border-radius: 30px;
}

.hero2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(1200px 600px at 15% 20%, rgba(0, 194, 178, 0.35), transparent 60%), radial-gradient(1000px 500px at 85% 80%, rgba(13, 56, 112, 0.45), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
}

.hero2 .row {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  text-align: center;
  z-index: 1;
  row-gap: 0.75rem;
}

@media (min-width: 992px) {
  .hero2 .row {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    text-align: left;
    row-gap: 1.5rem;
  }
}
@media (max-width: 991.98px) {
  .hero2 .row {
    --bs-gutter-y: 0;
  }
}
.hero2 .hero-title {
  font-size: clamp(2rem, 4.8vw, 3.4rem);
  font-weight: 800;
  margin: 0.6rem 0 0.5rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero2 .lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-bottom: 1.5rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero2 picture {
  display: block;
  line-height: 0;
}

.hero2 .hero-figure {
  max-width: 560px;
  width: min(100%, 560px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  -webkit-box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
}

.hero2 .hero-figure::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: -webkit-gradient(linear, left top, left bottom, from(rgba(11, 18, 32, 0.18)), color-stop(60%, rgba(11, 18, 32, 0.1)), to(transparent));
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.18) 0%, rgba(11, 18, 32, 0.1) 60%, transparent 100%);
  pointer-events: none;
}

.hero2 .hero-figure img {
  width: 100%;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 12px;
  display: block;
  background: #0b1220;
}

@media (min-width: 992px) {
  .hero2 .hero-figure {
    padding: 0;
    aspect-ratio: 4/3;
  }
  .hero2 .hero-figure img {
    height: 100%;
    -o-object-fit: cover;
       object-fit: cover;
    border-radius: 20px;
  }
}
.hero2 .hero-cta {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.75rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

@media (min-width: 992px) {
  .hero2 .hero-cta {
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
  }
}
.hero2 .cta-btn {
  background: #00c2b2;
  color: #0b1220;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid #00c2b2;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-transition: background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, -webkit-transform 0.2s ease;
  cursor: pointer;
}

.hero2 .cta-btn:hover {
  background: #05a488;
  border-color: #05a488;
}

.hero2 .cta-btn:active {
  -webkit-transform: translateY(1px) scale(0.99);
          transform: translateY(1px) scale(0.99);
}

.hero2 .cta-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.hero2 .cta-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.32);
}

.hero2 .hero-trust {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 0.75rem minmax(0, 1fr) 0.75rem minmax(0, 1fr);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero2 .hero-trust li {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 0.6rem 0.8rem;
}

.hero2 .scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.75;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.35rem;
  -webkit-animation: hero-float 2.5s ease-in-out infinite;
          animation: hero-float 2.5s ease-in-out infinite;
}

.hero2 .scroll-cue .mouse {
  width: 14px;
  height: 22px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 10px;
  position: relative;
  display: inline-block;
}

.hero2 .scroll-cue .mouse::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 2px;
  height: 6px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  -webkit-transform: translateX(-50%);
          transform: translateX(-50%);
  -webkit-animation: hero-wheel 1.8s ease-in-out infinite;
          animation: hero-wheel 1.8s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% {
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  50% {
    -webkit-transform: translate(-50%, -6px);
            transform: translate(-50%, -6px);
  }
}
@keyframes hero-wheel {
  0% {
    opacity: 0;
    -webkit-transform: translate(-50%, 0);
            transform: translate(-50%, 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    -webkit-transform: translate(-50%, 6px);
            transform: translate(-50%, 6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero2 .scroll-cue {
    -webkit-animation: none;
            animation: none;
  }
  .hero2 .scroll-cue .mouse::after {
    -webkit-animation: none;
            animation: none;
  }
}
@media (max-width: 768px) {
  .hero2 {
    padding: 3rem 1rem;
  }
  .hero2 .hero-trust {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .hero2 {
    padding: 2.5rem 1rem;
  }
  .hero2 .hero-title {
    font-size: 1.9rem;
  }
  .hero2 .lead {
    font-size: 1rem;
  }
  .hero2 .cta-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
  }
}
/* =========================
   WHY SECTION
   ========================= */
.why-section {
  padding-block: clamp(28px, 5vw, 56px);
}

@media (min-width: 992px) {
  .why-section .row {
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
  }
  .why-section .row > .col-lg-6:first-child {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 60%;
            flex: 0 0 60%;
    max-width: 60%;
  }
  .why-section .row > .col-lg-6:last-child {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 40%;
            flex: 0 0 40%;
    max-width: 40%;
  }
}
@media (min-width: 1200px) {
  .why-section .row > .col-lg-6:first-child {
    -ms-flex-preferred-size: 62%;
        flex-basis: 62%;
    max-width: 62%;
  }
  .why-section .row > .col-lg-6:last-child {
    -ms-flex-preferred-size: 38%;
        flex-basis: 38%;
    max-width: 38%;
  }
}
.why-section .why-image {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}

.why-section .why-image picture {
  display: block;
  width: 100%;
}

.why-section .why-image img {
  width: 100% !important;
  height: auto;
  max-width: 980px;
  border-radius: 14px;
  display: block;
  margin: 0;
  -webkit-box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
          box-shadow: 0 10px 20px rgba(2, 6, 23, 0.08);
  background: #fff;
}

.why-section .why-card {
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  background: #0d3870;
  color: #fff;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 16px;
  -webkit-box-shadow: 0 8px 20px rgba(2, 6, 23, 0.1);
          box-shadow: 0 8px 20px rgba(2, 6, 23, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.why-section .why-card h2 {
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 0.8rem;
  line-height: 1.15;
}

.why-section .why-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  line-height: 1.6;
  max-width: 60ch;
}

.why-section .why-card .fw-semibold,
.why-section .why-card strong {
  color: #fff;
}

@media (max-width: 991.98px) {
  .why-section .why-card {
    margin-top: 1rem;
  }
  .why-section .why-image img {
    max-width: 100%;
    border-radius: 12px;
  }
}
@media (max-width: 991.98px) {
  .hero2::before {
    mix-blend-mode: normal; /* stop the “screen” wash */
    opacity: 0.18; /* keep a hint of glow, optional */
  }
}
/* ---------- Theme tokens ---------- */
:root {
  --brand: #05a488;
  --brand-ink: #053e36;
  --ink: #0d223f;
  --muted: #70829a;
  --line: #dde5ee;
  --card: #ffffff;
  --radius: 14px;
  --shadow-lg: 0 10px 30px rgba(13, 34, 63, .07);
  --nav-height: 84px; /* your sticky header height */
}

/* Smooth anchor scrolling + stop under the sticky header */
html {
  scroll-behavior: smooth;
}

#contact {
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

/* Hidden by default; JS will remove [hidden] and add .revealed */
#contact[hidden] {
  display: none !important;
}

.contact-form-section.revealed {
  -webkit-animation: contact-reveal 0.28s ease-out both;
          animation: contact-reveal 0.28s ease-out both;
}

@-webkit-keyframes contact-reveal {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}

@keyframes contact-reveal {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
            transform: translateY(8px);
  }
  to {
    opacity: 1;
    -webkit-transform: none;
            transform: none;
  }
}
/* ---------- Contact section ---------- */
/* Centered modal overlay */
.contact-modal[hidden] {
  display: none !important;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 100000 !important;
  display: -ms-grid;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(13, 34, 63, 0.55);
  backdrop-filter: blur(2px);
  -webkit-animation: fade-in 0.18s ease-out both;
          animation: fade-in 0.18s ease-out both;
}

@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/* The card */
.form--contact {
  width: min(720px, 92vw);
  background: #fff;
  border: 1px solid var(--line, #dde5ee);
  border-radius: 16px;
  -webkit-box-shadow: 0 20px 60px rgba(13, 34, 63, 0.18);
          box-shadow: 0 20px 60px rgba(13, 34, 63, 0.18);
  padding: clamp(16px, 3.5vw, 28px);
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 20px 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
  -webkit-transform: translateY(8px);
          transform: translateY(8px);
  -webkit-animation: card-pop 0.22s 0.04s ease-out both;
          animation: card-pop 0.22s 0.04s ease-out both;
}

@-webkit-keyframes card-pop {
  to {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}

@keyframes card-pop {
  to {
    -webkit-transform: none;
            transform: none;
    opacity: 1;
  }
}
/* Single-column on small screens */
@media (max-width: 720px) {
  .form--contact {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
/* Inputs */
.form__label {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 8px;
  font-weight: 600;
}

.form__input {
  background: #fff;
  border: 1px solid var(--line, #dde5ee);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.98rem;
  outline: none;
  -webkit-transition: border-color 0.15s, -webkit-box-shadow 0.15s;
  transition: border-color 0.15s, -webkit-box-shadow 0.15s;
  transition: border-color 0.15s, box-shadow 0.15s;
  transition: border-color 0.15s, box-shadow 0.15s, -webkit-box-shadow 0.15s;
}

.form__input:focus {
  border-color: var(--brand, #05a488);
  -webkit-box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.18);
          box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.18);
}

.form__input:user-invalid,
.form__input:invalid:focus {
  border-color: #e75a5a;
  -webkit-box-shadow: 0 0 0 4px rgba(231, 90, 90, 0.15);
          box-shadow: 0 0 0 4px rgba(231, 90, 90, 0.15);
}

/* Actions row: Cancel + Send on the same line */
.form__actions {
  grid-column: 1/-1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  margin-top: 6px;
}

/* Buttons */
.btn {
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  border: 0;
}

.btn--primary {
  background: var(--brand, #05a488);
  color: #fff;
  -webkit-box-shadow: 0 8px 18px rgba(5, 164, 136, 0.25);
          box-shadow: 0 8px 18px rgba(5, 164, 136, 0.25);
}

.btn--primary:hover {
  -webkit-filter: brightness(1.05);
          filter: brightness(1.05);
}

.btn--ghost {
  background: #fff;
  color: #0d223f;
  border: 1px solid var(--line, #dde5ee);
}

.btn--ghost:hover {
  background: #f6f9fc;
}

/* Status line */
#contactStatus {
  grid-column: 1/-1;
  min-height: 1.25rem;
  color: #70829a;
}

/* =========================
   ERD App (scoped, no globals)
   ========================= */
#erd-app {
  /* Base (scoped) */
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #0f172a; /* --text */
  background: #ffffff; /* --bg */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Utility (scoped) */
  /* Focus ring (scoped) */
  /* Layout */
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(16px, 3vw, 28px);
  display: -ms-grid;
  display: grid;
  -ms-grid-rows: auto 32px auto 32px auto 32px auto 32px 1fr;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 32px; /* --space-8 */
  /* Header */
  /* Loader */
  /* Form */
  /* Keep grid items from forcing overflow */
  /* Fields */
  /* Inputs */
  /* Valid / Invalid */
  /* Fieldset */
  /* Actions & Buttons */
  /* Preview */
  /* Toast */
}
#erd-app *, #erd-app *::before, #erd-app *::after {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}
#erd-app img, #erd-app svg {
  max-width: 100%;
  display: block;
}
#erd-app button {
  font: inherit;
}
#erd-app .hidden {
  display: none !important;
}
#erd-app :where(button, [role=button], a, input, textarea, select) {
  outline: none;
}
#erd-app :where(button, [role=button], a, input, textarea, select):focus-visible {
  /* --ring: 2px, ring-color ≈ brand 40% */
  -webkit-box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4), 0 1px 2px rgba(0, 0, 0, 0.08);
          box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4), 0 1px 2px rgba(0, 0, 0, 0.08);
  /* border-color mix(brand 40%, line-strong) ≈ */
  border-color: #8b93f9;
}
#erd-app .page-head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 16px; /* --space-4 */
  padding-block: 8px 4px; /* --space-2 / --space-1 */
  border-bottom: 1px solid #e2e8f0; /* --line */
}
#erd-app .page-head h1 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  line-height: 1.15;
}
#erd-app .page-head .meta {
  margin-left: auto;
  color: #475569; /* --text-muted */
  font-size: 14px;
}
#erd-app .loader {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px; /* --space-3 */
  color: #475569; /* --text-muted */
  font-size: 14px;
}
#erd-app .loader::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #cbd5e1; /* --line-strong */
  border-top-color: #4f46e5; /* --brand */
  -webkit-animation: erd-spin 0.9s linear infinite;
          animation: erd-spin 0.9s linear infinite;
}
#erd-app .erd-form {
  background: #ffffff; /* --panel */
  border: 1px solid #e2e8f0; /* --line */
  border-radius: 14px; /* --radius */
  -webkit-box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04), 0 1px 1px rgba(2, 6, 23, 0.02);
          box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04), 0 1px 1px rgba(2, 6, 23, 0.02); /* --shadow-sm */
  padding: clamp(16px, 2.5vw, 28px);
  display: -ms-grid;
  display: grid;
  gap: 24px; /* --space-6 */
  /* original behavior: 2 columns ≥ 880px */
}
@media (min-width: 880px) {
  #erd-app .erd-form {
    -ms-grid-columns: 1fr 1fr;
    grid-template-columns: 1fr 1fr;
  }
  #erd-app .erd-form .field--full {
    grid-column: 1/-1;
  }
}
#erd-app .field, #erd-app fieldset {
  min-width: 0;
}
#erd-app .field {
  display: -ms-grid;
  display: grid;
  gap: 8px; /* --space-2 */
  background: #ffffff; /* --panel */
}
#erd-app .label {
  font-weight: 600;
  font-size: 14px;
  color: #0f172a; /* --text */
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 6px;
}
#erd-app .label .required {
  color: #dc2626; /* --danger */
  font-weight: 700;
}
#erd-app .control {
  position: relative;
  display: block;
}
#erd-app .help {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}
#erd-app .error {
  margin-top: 2px;
  font-size: 12px;
  color: #dc2626;
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea) {
  width: 100%;
  background: #f8fafc; /* --panel-alt */
  border: 1px solid #cbd5e1; /* --line-strong */
  color: #0f172a; /* --text */
  border-radius: 10px; /* --radius-sm */
  padding: 12px 14px;
  line-height: 1.4;
  -webkit-transition: border-color 0.15s ease, background 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, background 0.15s ease, -webkit-box-shadow 0.15s ease;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, -webkit-box-shadow 0.15s ease;
  /* muted 80% */
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea)::-webkit-input-placeholder {
  color: rgba(71, 85, 105, 0.8);
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea)::-moz-placeholder {
  color: rgba(71, 85, 105, 0.8);
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea):-ms-input-placeholder {
  color: rgba(71, 85, 105, 0.8);
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea)::-ms-input-placeholder {
  color: rgba(71, 85, 105, 0.8);
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea)::placeholder {
  color: rgba(71, 85, 105, 0.8);
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea):hover {
  background: #f1f5f9; /* mix(panel-alt 85%, panel 15%) */
  border-color: #b7c3ef; /* subtle mix(line-strong 60%, brand 10%) */
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea):focus-visible {
  background: #ffffff; /* --panel */
  border-color: #6366f1; /* mix(brand 55%, line-strong) ≈ indigo-500/600 */
  -webkit-box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4);
          box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.4); /* --ring + ring-color */
  outline: none;
}
#erd-app :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea):disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#erd-app textarea {
  min-height: 120px;
  resize: vertical;
}
#erd-app select {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%), linear-gradient(135deg, #64748b 50%, transparent 50%), linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px), calc(100% - 2.4em) 0;
  background-size: 6px 6px, 6px 6px, 1px 2.6em;
  background-repeat: no-repeat;
  padding-right: 2.6em;
}
#erd-app .is-valid :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea),
#erd-app [data-valid=true] :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea) {
  border-color: #3fb267; /* mix(success 55%, line-strong) */
}
#erd-app .is-invalid :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea),
#erd-app [data-valid=false] :where(input[type=text], input[type=email], input[type=url], input[type=number], input[type=search], input[type=password], input[type=date], input[type=time], select, textarea) {
  border-color: #dc2626; /* --danger */
  -webkit-box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
          box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.35);
}
#erd-app fieldset {
  border: 1px dashed #e2e8f0; /* --line */
  border-radius: 14px; /* --radius */
  padding: 20px; /* --space-5 */
}
#erd-app fieldset legend {
  padding: 0 8px; /* --space-2 */
  color: #475569; /* --text-muted */
  font-size: 13px;
}
#erd-app .actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 12px; /* --space-3 */
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}
#erd-app .btn {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 1px solid transparent;
  background: #4f46e5; /* --brand */
  color: #ffffff; /* --text-inverse */
  padding: 12px 18px;
  border-radius: 10px; /* --radius-sm */
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04), 0 1px 1px rgba(2, 6, 23, 0.02);
          box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04), 0 1px 1px rgba(2, 6, 23, 0.02); /* --shadow-sm */
  -webkit-transition: background 0.15s ease, border-color 0.15s ease, -webkit-transform 0.05s ease, -webkit-box-shadow 0.15s ease;
  transition: background 0.15s ease, border-color 0.15s ease, -webkit-transform 0.05s ease, -webkit-box-shadow 0.15s ease;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, -webkit-transform 0.05s ease, -webkit-box-shadow 0.15s ease;
}
#erd-app .btn:hover {
  background: #4338ca;
  -webkit-box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
          box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
}
#erd-app .btn:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
  -webkit-box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
          box-shadow: 0 1px 2px rgba(2, 6, 23, 0.04);
}
#erd-app .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#erd-app .btn--ghost {
  background: transparent;
  color: #0f172a; /* --text */
  border-color: #cbd5e1; /* --line-strong */
  /* --brand-50 */
}
#erd-app .btn--ghost:hover {
  background: #eef2ff;
}
#erd-app .preview {
  background: #ffffff; /* --panel */
  border: 1px solid #e2e8f0; /* --line */
  border-radius: 14px; /* --radius */
  -webkit-box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08);
          box-shadow: 0 6px 20px rgba(2, 6, 23, 0.08); /* --shadow-md */
  min-height: 200px;
  padding: 24px; /* --space-6 */
  position: relative;
}
#erd-app .preview.hidden {
  display: none !important;
}
#erd-app .preview .preview__head {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 16px; /* --space-4 */
  margin-bottom: 16px; /* --space-4 */
  padding-bottom: 12px; /* --space-3 */
  border-bottom: 1px solid #e2e8f0;
}
#erd-app .preview .preview__head h2 {
  margin: 0;
  font-size: 16px;
}
#erd-app .preview .preview__body {
  max-height: 60vh;
  overflow: auto;
  scrollbar-gutter: stable;
}
#erd-app .preview .stage {
  background: linear-gradient(to right, #e2e8f0 1px, transparent 1px) 0 0/24px 24px, linear-gradient(to bottom, #e2e8f0 1px, transparent 1px) 0 0/24px 24px;
  border-radius: 14px;
  padding: 24px; /* --space-6 */
}
#erd-app .toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  -webkit-transform: translateX(-50%) translateY(0);
          transform: translateX(-50%) translateY(0);
  z-index: 9999;
  background: #ffffff; /* --panel */
  color: #0f172a; /* --text */
  border: 1px solid #e2e8f0; /* --line */
  border-radius: 14px; /* --radius */
  padding: 12px 16px;
  -webkit-box-shadow: 0 16px 40px rgba(2, 6, 23, 0.14);
          box-shadow: 0 16px 40px rgba(2, 6, 23, 0.14); /* --shadow-lg */
  opacity: 1;
  -webkit-transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: opacity 0.25s ease, -webkit-transform 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transition: transform 0.25s ease, opacity 0.25s ease, -webkit-transform 0.25s ease;
  /* --success */
  /* --warning */
  /* --danger */
}
#erd-app .toast.toast--hidden {
  pointer-events: none;
  opacity: 0;
  -webkit-transform: translateX(-50%) translateY(10px);
          transform: translateX(-50%) translateY(10px);
}
#erd-app .toast.toast--success {
  border-color: #16a34a;
}
#erd-app .toast.toast--warn {
  border-color: #f59e0b;
}
#erd-app .toast.toast--error {
  border-color: #dc2626;
}

/* unique keyframes name to avoid global collisions */
@-webkit-keyframes erd-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes erd-spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
/* Motion pref (scoped) */
@media (prefers-reduced-motion: no-preference) {
  #erd-app .btn {
    -webkit-transition: background 0.2s ease, border-color 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
    transition: background 0.2s ease, border-color 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
    transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    transition: transform 0.06s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, -webkit-transform 0.06s ease, -webkit-box-shadow 0.2s ease;
  }
  #erd-app .loader::before {
    -webkit-animation-duration: 0.8s;
            animation-duration: 0.8s;
  }
}
/* Print (scoped) */
@media print {
  #erd-app {
    padding: 0;
  }
  #erd-app .actions, #erd-app .toast, #erd-app .loader {
    display: none !important;
  }
  #erd-app .preview {
    -webkit-box-shadow: none;
            box-shadow: none;
    border: 0;
  }
}
/* Dark mode (scoped) — same palette as original dark tokens */
@media (prefers-color-scheme: dark) {
  #erd-app {
    color: #e5e7eb; /* --text (dark) */
    background: #0b1220; /* --bg (dark) */
  }
  #erd-app .page-head {
    border-bottom-color: #1f2937;
  }
  #erd-app .page-head .meta {
    color: #9ca3af;
  }
  #erd-app .loader {
    color: #9ca3af;
  }
  #erd-app .loader::before {
    border-color: #374151;
    border-top-color: #4f46e5;
  }
  #erd-app .erd-form {
    background: #0f172a; /* --panel dark */
    border-color: #1f2937; /* --line dark */
    -webkit-box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  }
  #erd-app .field {
    background: #0f172a;
  }
  #erd-app .label {
    color: #e5e7eb;
  }
  #erd-app .help {
    color: #9ca3af;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea) {
    background: #111827; /* --panel-alt dark */
    border-color: #374151; /* --line-strong dark */
    color: #e5e7eb;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea)::-webkit-input-placeholder {
    color: #6b7280;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea)::-moz-placeholder {
    color: #6b7280;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea):-ms-input-placeholder {
    color: #6b7280;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea)::-ms-input-placeholder {
    color: #6b7280;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea)::placeholder {
    color: #6b7280;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea):hover {
    background: #0f172a;
    border-color: #4b5563;
  }
  #erd-app :where(input[type=text],
  input[type=email],
  input[type=url],
  input[type=number],
  input[type=search],
  input[type=password],
  input[type=date],
  input[type=time],
  select,
  textarea):focus-visible {
    background: #0f172a;
    border-color: #6366f1; /* ring-ish */
    -webkit-box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
            box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.45);
  }
  #erd-app fieldset {
    border-color: #1f2937;
  }
  #erd-app fieldset legend {
    color: #9ca3af;
  }
  #erd-app .btn {
    background: #4f46e5;
    color: #ffffff;
    border-color: transparent;
  }
  #erd-app .btn:hover {
    background: #4338ca;
    -webkit-box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  }
  #erd-app .btn:active {
    -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
            box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  }
  #erd-app .btn--ghost {
    background: transparent;
    color: #e5e7eb;
    border-color: #374151;
    /* brand-50 dark-ish */
  }
  #erd-app .btn--ghost:hover {
    background: rgba(79, 70, 229, 0.18);
  }
  #erd-app .preview {
    background: #0f172a;
    border-color: #1f2937;
    -webkit-box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  }
  #erd-app .preview .preview__head {
    border-bottom-color: #1f2937;
  }
  #erd-app .preview .stage {
    background: linear-gradient(to right, #1f2937 1px, transparent 1px) 0 0/24px 24px, linear-gradient(to bottom, #1f2937 1px, transparent 1px) 0 0/24px 24px;
  }
  #erd-app .toast {
    background: #0f172a;
    color: #e5e7eb;
    border-color: #1f2937;
    -webkit-box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
            box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  }
  #erd-app .toast.toast--success {
    border-color: #16a34a;
  }
  #erd-app .toast.toast--warn {
    border-color: #f59e0b;
  }
  #erd-app .toast.toast--error {
    border-color: #dc2626;
  }
}
/* ---- confirm modal ---- */
.confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 1000;
}

.confirm-overlay.is-open {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
}

.confirm-dialog {
  width: min(520px, 92vw);
  background: var(--panel, #0f172a);
  color: var(--text, #e5e7eb);
  border: 1px solid var(--border, #334155);
  border-radius: 16px;
  -webkit-box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
          box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.confirm-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border, #334155);
  font-weight: 600;
  font-size: 16px;
}

.confirm-body {
  padding: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #cbd5e1);
}

.confirm-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 10px;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 14px 18px 18px;
}

.btn-confirm {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #6366f1;
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.btn-cancel {
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--border, #334155);
  background: transparent;
  color: var(--text, #e5e7eb);
  cursor: pointer;
}

.btn-confirm:focus, .btn-cancel:focus {
  outline: 2px solid #94a3b8;
  outline-offset: 2px;
}

.about-page {
  --abx-bg: #0d3870;
  --abx-ink: #0d3870;
  --abx-ink-2: #1a4e87;
  --abx-accent: #00c2b2;
  --abx-soft: #eaf3ff;
  /* ---------- HERO ---------- */
  /* Button styles scoped */
  /* ---------- CRED STRIP ---------- */
  /* ---------- WHY ---------- */
  /* ---------- STORY ---------- */
  /* ---------- CASE ---------- */
  /* ---------- STACK ---------- */
  /* ---------- CTA ---------- */
}
.about-page .about-heroV3 {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.2rem 1rem;
  background: linear-gradient(160deg, #0a1528 0%, #0b1220 55%, #0a1426 100%);
  overflow: clip;
  border-radius: 30px;
}
.about-page .about-heroV3::before {
  content: "";
  position: absolute;
  inset: -1px;
  background-image: url("/assets/images/about-services/bg2.png");
  z-index: 0;
  pointer-events: none;
}
.about-page .about-heroV3 .about-heroV3__inner {
  display: -ms-grid;
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
@media (min-width: 980px) {
  .about-page .about-heroV3 .about-heroV3__inner {
    -ms-grid-columns: 1.05fr 0.95fr;
    grid-template-columns: 1.05fr 0.95fr;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
  }
}
.about-page .about-heroV3 .about-heroV3__copy {
  color: #fff;
}
.about-page .about-heroV3 .about-heroV3__copy h1 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 900;
}
.about-page .about-heroV3 .about-heroV3__copy .about-heroV3__sub {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  max-width: 52ch;
  margin: 0 0 1rem;
}
.about-page .about-heroV3 .about-heroV3__copy .about-heroV3__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.6rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin-bottom: 0.8rem;
}
.about-page .about-heroV3 .about-heroV3__copy .about-heroV3__badges {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.45rem 0.6rem;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  padding: 0;
  margin: 0.4rem 0 0;
  list-style: none;
}
.about-page .about-heroV3 .about-heroV3__copy .about-heroV3__badges li {
  color: #dff7f4;
  font-weight: 800;
  font-size: 0.92rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}
.about-page .about-heroV3 .about-heroV3__media {
  display: -ms-grid;
  display: grid;
  gap: 0.9rem;
  position: relative;
}
.about-page .about-heroV3 .about-heroV3__media .about-shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  -webkit-box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
          box-shadow: 0 14px 48px rgba(0, 0, 0, 0.35);
}
.about-page .about-heroV3 .about-heroV3__media .about-shot img {
  display: block;
  width: 100%;
  height: auto;
}
.about-page .about-heroV3 .about-heroV3__media .about-shot--stack {
  -webkit-transform: translate3d(6px, 0, 0);
          transform: translate3d(6px, 0, 0);
}
.about-page .about-btn {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.35rem;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  padding: 0.68rem 1.05rem;
  border: 1px solid transparent;
  cursor: pointer;
  -webkit-transition: border-color 0.16s ease, -webkit-transform 0.14s ease, -webkit-filter 0.16s ease;
  transition: border-color 0.16s ease, -webkit-transform 0.14s ease, -webkit-filter 0.16s ease;
  transition: transform 0.14s ease, filter 0.16s ease, border-color 0.16s ease;
  transition: transform 0.14s ease, filter 0.16s ease, border-color 0.16s ease, -webkit-transform 0.14s ease, -webkit-filter 0.16s ease;
}
.about-page .about-btn--primary {
  background: var(--abx-accent);
  color: #0b1220;
}
.about-page .about-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.about-page .about-btn:hover {
  -webkit-filter: brightness(0.96);
          filter: brightness(0.96);
}
.about-page .about-btn:active {
  -webkit-transform: translateY(1px);
          transform: translateY(1px);
}
.about-page .about-cred {
  background: #fff;
  color: var(--abx-ink);
}
.about-page .about-cred .about-cred__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.4rem 1rem;
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 0.8rem 1fr;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
}
@media (min-width: 860px) {
  .about-page .about-cred .about-cred__inner {
    -ms-grid-columns: (1fr)[4];
    grid-template-columns: repeat(4, 1fr);
  }
}
.about-page .about-cred .about-pill {
  background: -webkit-gradient(linear, left top, left bottom, from(#f7fbff), to(#eef5ff));
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
  border: 1px solid #dbe9ff;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  text-align: center;
  -webkit-box-shadow: 0 6px 24px rgba(13, 56, 112, 0.08);
          box-shadow: 0 6px 24px rgba(13, 56, 112, 0.08);
}
.about-page .about-cred .about-pill .about-pill__num {
  display: block;
  font-weight: 900;
  font-size: 1.35rem;
  color: #0d3870;
}
.about-page .about-cred .about-pill .about-pill__label {
  font-size: 0.95rem;
  color: #3566a3;
}
.about-page .about-section__head {
  max-width: 900px;
  margin: 2.2rem auto 1.3rem;
  text-align: center;
  padding: 0 1rem;
}
.about-page .about-section__head h2 {
  margin: 0;
  color: #0d3870;
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: clamp(1.4rem, 3.6vw, 2rem);
}
.about-page .about-section__head p {
  color: #3c5d8a;
  margin: 0.35rem 0 0;
}
.about-page .about-why__grid {
  max-width: 1100px;
  margin: 0 auto 2.2rem;
  padding: 0 1rem;
  display: -ms-grid;
  display: grid;
  gap: 1rem;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
}
@media (min-width: 880px) {
  .about-page .about-why__grid {
    -ms-grid-columns: (1fr)[3];
    grid-template-columns: repeat(3, 1fr);
  }
}
.about-page .about-why__grid .why-card {
  background: #fff;
  border: 1px solid #e6f0ff;
  border-radius: 16px;
  padding: 1rem 1rem 0.9rem;
  -webkit-box-shadow: 0 8px 24px rgba(13, 56, 112, 0.09);
          box-shadow: 0 8px 24px rgba(13, 56, 112, 0.09);
}
.about-page .about-why__grid .why-card h3 {
  margin: 0.1rem 0 0.25rem;
  color: #1a4e87;
  font-weight: 800;
}
.about-page .about-why__grid .why-card p {
  color: #3e5372;
  margin: 0 0 0.5rem;
}
.about-page .about-why__grid .why-card ul {
  margin: 0;
  padding-left: 1.05rem;
  color: #395170;
}
.about-page .about-storyV3 {
  padding: 1.6rem 1rem 1.2rem;
}
.about-page .about-storyV3 .about-storyV3__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: -ms-grid;
  display: grid;
  gap: 1rem;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (min-width: 980px) {
  .about-page .about-storyV3 .about-storyV3__grid {
    -ms-grid-columns: 1.1fr 0.9fr;
    grid-template-columns: 1.1fr 0.9fr;
  }
}
.about-page .about-storyV3 .about-storyV3__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #dbe9ff;
  -webkit-box-shadow: 0 14px 40px rgba(13, 56, 112, 0.14);
          box-shadow: 0 14px 40px rgba(13, 56, 112, 0.14);
}
.about-page .about-storyV3 .about-storyV3__copy h2 {
  color: #0d3870;
  margin: 0.1rem 0 0.35rem;
  font-weight: 900;
}
.about-page .about-storyV3 .about-storyV3__copy p {
  color: #3b5474;
  margin: 0 0 0.5rem;
}
.about-page .about-storyV3 .about-storyV3__copy .ticks {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
  color: #395170;
}
.about-page .about-storyV3 .about-storyV3__copy .ticks li {
  position: relative;
  padding-left: 1.2rem;
  margin: 0.25rem 0;
}
.about-page .about-storyV3 .about-storyV3__copy .ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.44rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #00c2b2, #0d3870);
  -webkit-box-shadow: 0 0 10px rgba(0, 194, 178, 0.6);
          box-shadow: 0 0 10px rgba(0, 194, 178, 0.6);
}
.about-page .about-caseV3 {
  padding: 1.2rem 1rem 2rem;
}
.about-page .about-caseV3 .about-caseV3__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: -ms-grid;
  display: grid;
  gap: 1rem;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media (min-width: 980px) {
  .about-page .about-caseV3 .about-caseV3__grid {
    -ms-grid-columns: 0.9fr 1.1fr;
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.about-page .about-caseV3 .about-caseV3__media img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid #dbe9ff;
  -webkit-box-shadow: 0 14px 40px rgba(13, 56, 112, 0.14);
          box-shadow: 0 14px 40px rgba(13, 56, 112, 0.14);
}
.about-page .about-caseV3 .about-caseV3__media .about-caseV3__caption {
  text-align: center;
  font-size: 0.85rem; /* smaller than body */
  color: #6c7a92; /* softer gray-blue */
  margin-top: 0.4rem;
  font-style: italic;
  letter-spacing: 0.2px; /* subtle spacing for elegance */
}
.about-page .about-caseV3 .about-caseV3__copy h2 {
  color: #0d3870;
  margin: 0 0 0.35rem;
  font-weight: 900;
}
.about-page .about-caseV3 .about-caseV3__copy p {
  color: #3b5474;
  margin: 0 0 0.55rem;
}
.about-page .about-caseV3 .about-caseV3__copy .case-points {
  margin: 0 0 0.7rem;
  color: #395170;
  padding-left: 1rem;
}
.about-page .about-caseV3 .about-btn {
  margin-top: 0.2rem;
}
.about-page .about-stackV3 {
  padding: 1.6rem 1rem 2.2rem;
  background: -webkit-gradient(linear, left top, left bottom, from(#f7fbff), to(#eef5ff));
  background: linear-gradient(180deg, #f7fbff, #eef5ff);
}
.about-page .about-stackV3 .stack-tags {
  max-width: 1000px;
  margin: 0.4rem auto 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  gap: 0.5rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
}
.about-page .about-stackV3 .stack-tags span {
  background: #fff;
  color: #1a4e87;
  border: 1px solid #dbe9ff;
  border-radius: 999px;
  padding: 0.42rem 0.8rem;
  font-weight: 800;
  font-size: 0.95rem;
  -webkit-box-shadow: 0 6px 20px rgba(13, 56, 112, 0.07);
          box-shadow: 0 6px 20px rgba(13, 56, 112, 0.07);
}
.about-page .about-ctaV3 {
  padding: 1.6rem 1rem 2.6rem;
  background: #fff;
}
.about-page .about-ctaV3 .about-ctaV3__box {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  background: -webkit-gradient(linear, left top, left bottom, from(#0d3870), to(#0f467f));
  background: linear-gradient(180deg, #0d3870, #0f467f);
  border: 1px solid #0e4c8a;
  color: #fff;
  border-radius: 18px;
  padding: 1.2rem 1rem 1.1rem;
  -webkit-box-shadow: 0 16px 48px rgba(13, 56, 112, 0.22);
          box-shadow: 0 16px 48px rgba(13, 56, 112, 0.22);
}
.about-page .about-ctaV3 .about-ctaV3__box h2 {
  margin: 0 0 0.35rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}
.about-page .about-ctaV3 .about-ctaV3__box p {
  margin: 0 0 0.7rem;
  color: #dff0ff;
}
.about-page .about-ctaV3 .about-ctaV3__box .about-ctaV3__actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 0.6rem;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.about-page .about-ctaV3 .about-ctaV3__box .about-btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}

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

:root {
  color-scheme: light;
}

@media (prefers-reduced-motion: reduce) {
  * {
    -webkit-animation: none !important;
            animation: none !important;
    -webkit-transition: none !important;
    transition: none !important;
  }
}
/* NEW — make [hidden] actually hide, honeypot hiding, busy cursor */
[hidden] {
  display: none !important;
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

[aria-busy=true] {
  cursor: progress;
}

.services-landing {
  padding: 5rem 2rem 3rem;
  background: linear-gradient(140deg, #fff 60%, #e7f0fb 100%);
  position: relative;
  z-index: 1;
}

.service-section {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  gap: 3rem;
  margin-bottom: 4rem;
  position: relative;
  min-height: 350px;
}
.service-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: -webkit-gradient(linear, left top, right top, from(#0d3870), to(#2c599a));
  background: linear-gradient(90deg, #0d3870 0%, #2c599a 100%);
  opacity: 0.12;
  pointer-events: none;
  -webkit-transition: opacity 0.3s;
  transition: opacity 0.3s;
  clip-path: polygon(0 0, 100% 60%, 100% 100%, 0 100%);
  border-radius: 1.2rem;
}
.service-section.alt-right::before {
  clip-path: polygon(100% 0, 0 60%, 0 100%, 100% 100%);
}
.service-section .service-image {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 300px;
          flex: 1 1 300px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  z-index: 2;
}
.service-section .service-image img {
  width: 95%;
  max-width: 330px;
  border-radius: 1.2rem;
  -webkit-box-shadow: 0 8px 28px rgba(13, 56, 112, 0.12);
          box-shadow: 0 8px 28px rgba(13, 56, 112, 0.12);
  background: #fff;
  -webkit-transition: -webkit-transform 0.25s ease;
  transition: -webkit-transform 0.25s ease;
  transition: transform 0.25s ease;
  transition: transform 0.25s ease, -webkit-transform 0.25s ease;
}
.service-section .service-image img:hover {
  -webkit-transform: translateY(-2px);
          transform: translateY(-2px);
}
.service-section .service-info {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 400px;
          flex: 1 1 400px;
  background: #f5f8fb;
  border-radius: 1.6rem;
  padding: 2.5rem 2rem;
  -webkit-box-shadow: 0 4px 18px rgba(13, 56, 112, 0.1);
          box-shadow: 0 4px 18px rgba(13, 56, 112, 0.1);
  z-index: 2;
  position: relative;
}
.service-section .service-info h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0d3870;
  margin-bottom: 1.1rem;
}
.service-section .service-info p {
  font-size: 1.12rem;
  color: #52647a;
  margin-bottom: 1.5rem;
}
.service-section .service-info ul {
  margin: 0 0 1.5rem 0;
  padding: 0;
  list-style: none;
}
.service-section .service-info ul li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1.01rem;
  margin-bottom: 0.7rem;
  color: #305488;
}
.service-section .service-info ul li b {
  color: #05a488;
  font-weight: 600;
}
.service-section .service-info ul li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #05a488;
  position: absolute;
  left: 0;
  top: 0.2rem;
  font-size: 1rem;
}
@media (max-width: 900px) {
  .service-section {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
  }
  .service-section::before {
    clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 100%);
  }
  .service-section .service-image, .service-section .service-info {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
  .service-section .service-info {
    margin-top: 2rem;
  }
}

/* NEW — tutorial host that JS toggles */
.tutorial-host {
  max-width: 1200px;
  margin: 0 auto 2rem;
  padding: 0 2rem;
}
.tutorial-host .service-tutorial {
  display: -ms-grid;
  display: grid;
  gap: 1rem 1.5rem;
  -ms-grid-columns: 220px 1.5rem 1fr;
  grid-template-columns: 220px 1fr;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  background: #f7faff;
  border: 1px solid #e3e9f2;
  border-radius: 1.2rem;
  padding: 1rem;
}
.tutorial-host .service-tutorial .tutorial-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  -webkit-box-shadow: 0 4px 18px rgba(13, 56, 112, 0.1);
          box-shadow: 0 4px 18px rgba(13, 56, 112, 0.1);
  background: #fff;
}
.tutorial-host .service-tutorial .tutorial-content h2 {
  margin: 0 0 0.4rem;
  color: #0d3870;
  font-weight: 800;
  font-size: 1.2rem;
}
@media (max-width: 800px) {
  .tutorial-host .service-tutorial {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}

/* ================================
   Service Form Section (upgraded)
   ================================ */
.service-form-section {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 2rem 3rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 2rem;
  max-width: 850px;
  z-index: 1;
  /* NEW — tutorial section block */
  /* NEW — honeypot visually hidden but accessible to bots */
  /* NEW — inline spinner used on submit */
}
@media (min-width: 1000px) {
  .service-form-section {
    max-width: 1200px;
  }
}
.service-form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #0d3870;
  z-index: 0;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  border-radius: 1.6rem;
}
.service-form-section .form-title {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  font-size: clamp(1.6rem, 4vw, 2rem);
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(13, 56, 112, 0.13);
}
.service-form-section .service-form {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 1.6rem;
  -webkit-box-shadow: 0 12px 40px rgba(13, 56, 112, 0.15);
          box-shadow: 0 12px 40px rgba(13, 56, 112, 0.15);
  padding: clamp(1.25rem, 3.5vw, 2.3rem);
  margin: 0 auto;
  max-width: 95%;
  display: -ms-grid;
  display: grid;
  gap: 1.6rem;
  -ms-grid-columns: 1fr;
  grid-template-columns: 1fr;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
}
@media (min-width: 1000px) {
  .service-form-section .service-form {
    -ms-grid-columns: minmax(0, 1.25fr) 24px 360px;
    grid-template-columns: minmax(0, 1.25fr) 360px;
    -webkit-column-gap: 24px;
       -moz-column-gap: 24px;
            column-gap: 24px;
  }
}
.service-form-section .form-row {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: 1fr 1.2rem 1fr;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}
@media (max-width: 700px) {
  .service-form-section .form-row {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.service-form-section .form-row .form-group {
  display: -ms-grid;
  display: grid;
  gap: 0.5rem;
  /* NEW — helper under tier */
}
.service-form-section .form-row .form-group label {
  color: #0d3870;
  font-weight: 700;
}
.service-form-section .form-row .form-group select,
.service-form-section .form-row .form-group input[type=number],
.service-form-section .form-row .form-group input[type=text] {
  border: 1.5px solid #c6d6e7;
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 1.05rem;
  background: #f9fbfd;
  color: #1c2b44;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.service-form-section .form-row .form-group select:focus,
.service-form-section .form-row .form-group input[type=number]:focus,
.service-form-section .form-row .form-group input[type=text]:focus {
  border-color: #05a488;
  -webkit-box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
          box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
  outline: none;
}
.service-form-section .form-row .form-group small#tierHelperNote {
  color: #6483b1;
  font-size: 0.9rem;
  margin-top: 0.1rem;
  display: block;
}
@media (min-width: 1000px) {
  .service-form-section #tutorialSection {
    grid-column: 1/-1;
  }
}
.service-form-section #tutorialSection .service-tutorial {
  display: -ms-grid;
  display: grid;
  gap: 1rem;
  -ms-grid-columns: 120px 1rem 1fr;
  grid-template-columns: 120px 1fr;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: start;
  padding: 0.9rem 1rem;
  background: #f7f9fe;
  border: 1px solid #e6eef9;
  border-radius: 1.2rem;
}
.service-form-section #tutorialSection .service-tutorial .tutorial-image img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}
.service-form-section #tutorialSection .service-tutorial .tutorial-content h2 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  color: #0d3870;
  font-weight: 800;
}
.service-form-section #tutorialSection .service-tutorial .tutorial-content p, .service-form-section #tutorialSection .service-tutorial .tutorial-content li {
  color: #52647a;
}
.service-form-section #tutorialSection .service-tutorial .tutorial-content ul {
  margin: 0.25rem 0 0 1.1rem;
}
@media (max-width: 700px) {
  .service-form-section #tutorialSection .service-tutorial {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.service-form-section .included-section {
  background: #f0f5fb;
  border: 1px dashed rgba(12, 57, 112, 0.18);
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
  margin: 0.2rem 0 0.6rem;
}
@media (min-width: 1000px) {
  .service-form-section .included-section {
    -ms-grid-column: 2;
    grid-column: 2;
    position: relative;
    top: 0;
  }
}
.service-form-section .included-section .included-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #0d3870;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.service-form-section .included-section .included-list {
  margin: 0;
  padding-left: 1.1rem;
  -webkit-columns: 2;
     -moz-columns: 2;
          columns: 2;
  -webkit-column-gap: 1.4rem;
     -moz-column-gap: 1.4rem;
          column-gap: 1.4rem;
}
.service-form-section .included-section .included-list li {
  color: #52647a;
  -webkit-column-break-inside: avoid;
     -moz-column-break-inside: avoid;
          break-inside: avoid;
  margin-bottom: 0.35rem;
}
@media (max-width: 700px) {
  .service-form-section .included-section .included-list {
    -webkit-columns: 1;
       -moz-columns: 1;
            columns: 1;
  }
}
.service-form-section #dynamicFields {
  display: -ms-grid;
  display: grid;
  gap: 1.2rem;
  /* numeric pages input + cursor improvements */
}
@media (min-width: 1000px) {
  .service-form-section #dynamicFields {
    -ms-grid-column: 1;
    grid-column: 1;
  }
}
.service-form-section #dynamicFields label#typeSelectLabel {
  font-weight: 800;
  color: #0d3870;
  margin-bottom: 0.2rem;
}
.service-form-section #dynamicFields select#typeSelect {
  max-width: 340px;
  border: 1.5px solid #c6d6e7;
  border-radius: 8px;
  padding: 0.55rem 0.9rem;
  background: #f9fbfd;
}
.service-form-section #dynamicFields select#typeSelect:focus {
  border-color: #05a488;
  -webkit-box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
          box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
  outline: none;
}
.service-form-section #dynamicFields small#typeHelperText {
  color: #6483b1;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  display: block;
}
.service-form-section #dynamicFields fieldset {
  border: 1px solid #e3e9f2;
  border-radius: 1.2rem;
  padding: 0.9rem 1rem;
  background: #fff;
}
.service-form-section #dynamicFields fieldset legend {
  padding: 0 0.4rem;
  font-weight: 800;
  color: #0d3870;
}
.service-form-section #dynamicFields fieldset.features-list {
  display: -ms-grid;
  display: grid;
  -ms-grid-columns: minmax(0, 1fr) 1.2rem minmax(0, 1fr);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem 1.2rem;
  grid-auto-rows: -webkit-min-content;
  grid-auto-rows: min-content;
  max-height: 420px;
  overflow: auto;
  -ms-scroll-chaining: none;
      overscroll-behavior: contain; /* keep page from scrolling */
  padding-right: 0.5rem;
  /* NEW — smooth scrollbar for long lists */
  scrollbar-width: thin;
  scrollbar-color: rgba(12, 57, 112, 0.35) rgba(12, 57, 112, 0.08);
}
.service-form-section #dynamicFields fieldset.features-list::-webkit-scrollbar {
  width: 10px;
}
.service-form-section #dynamicFields fieldset.features-list::-webkit-scrollbar-track {
  background: rgba(12, 57, 112, 0.08);
  border-radius: 8px;
}
.service-form-section #dynamicFields fieldset.features-list::-webkit-scrollbar-thumb {
  background: rgba(12, 57, 112, 0.35);
  border-radius: 8px;
}
@media (max-width: 700px) {
  .service-form-section #dynamicFields fieldset.features-list {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
  }
}
.service-form-section #dynamicFields fieldset.features-list .checkbox-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.55rem;
}
.service-form-section #dynamicFields fieldset.features-list .checkbox-row input[type=checkbox] {
  accent-color: #05a488;
  width: 18px;
  height: 18px;
}
.service-form-section #dynamicFields fieldset.features-list .checkbox-row label {
  cursor: pointer;
}
.service-form-section #dynamicFields .radio-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 1rem;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
}
.service-form-section #dynamicFields .radio-group .checkbox-row {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.4rem;
}
.service-form-section #dynamicFields .radio-group input[type=radio] {
  accent-color: #0d3870;
  width: 18px;
  height: 18px;
}
.service-form-section #dynamicFields input#pagesInput {
  max-width: 180px;
}
.service-form-section #dynamicFields .features-list .checkbox-row {
  cursor: pointer;
}
.service-form-section #dynamicFields .features-list input[type=checkbox] {
  cursor: pointer;
}
.service-form-section .form-footer {
  display: -ms-grid;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.4rem;
  background: #fafbff;
  padding: 16px;
  border-radius: 12px;
  -webkit-box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
          box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  /* live status line JS injects above estimate */
  /* tiny privacy line under the info note */
}
@media (min-width: 1000px) {
  .service-form-section .form-footer {
    -ms-grid-column: 2;
    grid-column: 2;
    position: sticky;
    top: clamp(72px, 8vh, 120px); /* safer sticky offset */
  }
}
.service-form-section .form-footer #formStatus {
  font-size: 0.95rem;
  color: #52647a;
}
.service-form-section .form-footer .estimate-box {
  font-weight: 800;
  color: #0d3870;
  background: #e7f0fb;
  border-radius: 10px;
  padding: 0.6rem 1.1rem;
  font-size: 1.05rem;
  -webkit-box-shadow: inset 0 0 0 1px rgba(12, 57, 112, 0.05);
          box-shadow: inset 0 0 0 1px rgba(12, 57, 112, 0.05);
  /* secondary notes line under estimate (budget status) */
}
.service-form-section .form-footer .estimate-box #estimateValue {
  color: #1c2b44;
}
.service-form-section .form-footer .estimate-box .estimate-hours {
  display: block;
  font-weight: 600;
  color: #52647a;
  margin-top: 0.15rem;
}
.service-form-section .form-footer .estimate-box .estimate-notes {
  display: block;
  font-weight: 600;
  color: #52647a;
  margin-top: 0.15rem;
}
.service-form-section .form-footer .quote-info-note small {
  color: #52647a;
}
.service-form-section .form-footer .privacy-mini {
  color: #657a92;
  font-size: 0.85rem;
}
.service-form-section .form-footer .privacy-mini a {
  color: #2c599a;
  text-decoration: underline;
}
.service-form-section .form-footer .submit-btn {
  background: -webkit-gradient(linear, left top, right top, from(#05a488), color-stop(95%, #0d3870));
  background: linear-gradient(90deg, #05a488, #0d3870 95%);
  color: #fff;
  border: none;
  padding: 0.7rem 2.1rem;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  -webkit-box-shadow: 0 6px 18px rgba(13, 56, 112, 0.18);
          box-shadow: 0 6px 18px rgba(13, 56, 112, 0.18);
  -webkit-transition: -webkit-transform 0.15s ease, -webkit-filter 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: -webkit-transform 0.15s ease, -webkit-filter 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
  transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease, -webkit-transform 0.15s ease, -webkit-filter 0.2s ease, -webkit-box-shadow 0.2s ease;
  width: 100%;
}
.service-form-section .form-footer .submit-btn:hover {
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
  -webkit-filter: brightness(1.02);
          filter: brightness(1.02);
}
.service-form-section .form-footer .submit-btn:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
  -webkit-box-shadow: 0 3px 12px rgba(13, 56, 112, 0.22);
          box-shadow: 0 3px 12px rgba(13, 56, 112, 0.22);
}
.service-form-section .form-footer .submit-btn:disabled {
  opacity: 0.65;
  -webkit-filter: grayscale(0.1);
          filter: grayscale(0.1);
  cursor: not-allowed;
}
.service-form-section .hp-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.service-form-section .spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  border: 0.15em solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  -webkit-animation: spin 0.8s linear infinite;
          animation: spin 0.8s linear infinite;
  margin-right: 0.4rem;
  vertical-align: -2px;
}
@-webkit-keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
@media (max-width: 700px) {
  .service-form-section {
    padding: 2rem 0.5rem;
  }
  .service-form-section .service-form {
    padding: 1.2rem 0.8rem;
  }
  .service-form-section .form-title {
    font-size: 1.4rem;
  }
  .service-form-section .form-footer {
    position: static;
  }
}

/* button spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -3px;
  -webkit-animation: spin 0.8s linear infinite;
          animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    -webkit-transform: rotate(360deg);
            transform: rotate(360deg);
  }
}
/* centered modal */
#modalHost {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: -ms-grid;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  -webkit-transition: opacity 0.18s ease;
  transition: opacity 0.18s ease;
}

#modalHost.on {
  opacity: 1;
  pointer-events: auto;
}

#modalHost .modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 12, 28, 0.5);
  cursor: pointer;
}

#modalHost .modal {
  position: relative;
  width: min(520px, 92vw);
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  -webkit-box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
          box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
}

#modalHost .modal h3 {
  margin: 0 0 8px;
  font-weight: 800;
  color: #0c3970;
}

#modalHost .modal-body {
  margin-bottom: 14px;
  color: #1b2430;
  line-height: 1.5;
}

#modalHost .modal-actions {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
}

#modalHost .modal-actions .modal-ok {
  background: -webkit-gradient(linear, left top, right top, from(#05a488), color-stop(95%, #0c3970));
  background: linear-gradient(90deg, #05a488, #0c3970 95%);
  color: #fff;
  border: 0;
  padding: 0.6rem 1.2rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* modal focus outlines */
#modalHost .modal:focus-visible,
#modalHost .modal-actions .modal-ok:focus-visible {
  outline: 3px solid rgba(5, 164, 136, 0.5);
  outline-offset: 2px;
}

/* NEW — friendly error card when services data fails to load */
.error-card {
  background: #fff5f5;
  border: 1px solid #ffd6d6;
  color: #5c2626;
  border-radius: 1.2rem;
  padding: 1rem 1.2rem;
  margin: 1rem 0;
  -webkit-box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
          box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.error-card p {
  margin: 0 0 0.6rem;
  font-weight: 600;
}
.error-card button {
  background: -webkit-gradient(linear, left top, right top, from(#05a488), color-stop(95%, #0d3870));
  background: linear-gradient(90deg, #05a488, #0d3870 95%);
  color: #fff;
  border: 0;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
}

/* Save quote row */
.save-quote-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #1c2b44;
}

.save-quote-row input {
  width: 18px;
  height: 18px;
  accent-color: #05a488;
}

/* Note areas (support both ids JS may use) */
.user-note-label {
  font-weight: 700;
  color: #0d3870;
  margin-top: 0.25rem;
}

#userNote,
#quoteNote {
  border: 1.5px solid #c6d6e7;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  background: #f9fbfd;
  font-size: 1rem;
  min-height: 96px;
  resize: vertical;
}

#userNote:focus,
#quoteNote:focus {
  border-color: #05a488;
  -webkit-box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
          box-shadow: 0 0 0 4px rgba(5, 164, 136, 0.14);
  outline: none;
}

.quote-note {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: #52647a;
}

.quote-note strong {
  color: #1c2b44;
}

/* Optional invalid state hint (if you use built-in validation later) */
select:invalid, input:invalid, textarea:invalid {
  border-color: #e29999;
}

/* High-contrast fallback */
@media (forced-colors: active) {
  .submit-btn, #modalHost .modal-actions .modal-ok {
    border: 1px solid CanvasText;
  }
}