/* ==============================================================================
   Flexicomm Electrical Services - Master Design System & Style Engine
   Dual-Tone Architecture: Dark Tech Immersion + Clinical High-Contrast Conversion
   Compliance: WCAG 2.2 AA | Fully Accessible | Zero Occlusion
   ============================================================================== */

:root {
  /* Color Palette - Dark Tech Immersion */
  --color-canvas-deep: #070b14;
  --color-canvas-slate: #0b1329;
  --color-canvas-surface: #0f172a;
  --color-cyan-glow: #00f2fe;
  --color-electric-blue: #0072ff;
  --color-neon-accent: #06b6d4;
  --color-cyan-border: rgba(0, 242, 254, 0.25);
  --color-glass-bg: rgba(15, 23, 42, 0.78);
  --color-glass-border: rgba(255, 255, 255, 0.12);

  /* Color Palette - High-Contrast Clinical Light Mode */
  --color-canvas-light: #ffffff;
  --color-canvas-subtle: #f8fafc;
  --color-canvas-alt: #f1f5f9;
  --color-text-main: #0f172a;
  --color-text-body: #1e293b;
  --color-text-muted: #475569;
  --color-text-light: #64748b;
  --color-border-light: #e2e8f0;
  --color-border-hover: #cbd5e1;

  /* Brand Accents */
  --color-primary: #0284c7;
  --color-primary-dark: #0369a1;
  --color-primary-light: #e0f2fe;
  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-danger: #dc2626;
  --color-danger-bg: #fef2f2;
  --color-warning: #d97706;
  --color-warning-bg: #fffbeb;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 30px -10px rgba(0, 0, 0, 0.08);
  --shadow-cyan-glow: 0 0 25px rgba(0, 242, 254, 0.35);

  /* Layout */
  --max-w-screen: 1280px;
  --header-height: 5.5rem;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* 1. Global Reset & Smooth Scrolling Engine */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-canvas-light);
  scroll-behavior: smooth !important;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: clip; /* Required: never overflow-x: hidden to preserve native smooth scroll */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 10000;
  background: var(--color-cyan-glow);
  color: #070b14;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 1rem;
}

/* 2. Top Header & Navigation (Dark Tech Glassmorphism) */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  height: var(--header-height);
  background-color: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 242, 254, 0.18);
  transition: all 0.3s ease;
}

.header-inner {
  max-width: var(--max-w-screen);
  height: 100%;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.brand-logo .logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-electric-blue) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.brand-logo .logo-icon svg {
  width: 20px;
  height: 20px;
  color: #070b14;
}

.brand-logo span.accent {
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link:focus-visible {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: var(--color-cyan-glow);
  background-color: rgba(0, 242, 254, 0.1);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.cmd-k-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.85rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cmd-k-trigger:hover {
  background: rgba(15, 23, 42, 0.95);
  border-color: var(--color-cyan-glow);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.2);
}

.cmd-k-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-family: var(--font-mono);
}

.phone-badge-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(0, 114, 255, 0.15));
  border: 1px solid var(--color-cyan-border);
  color: #ffffff;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.phone-badge-cta:hover {
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-electric-blue) 100%);
  color: #070b14;
  box-shadow: var(--shadow-cyan-glow);
}

.btn-header-book {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-electric-blue) 100%);
  color: #070b14;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.35);
  transition: all 0.25s ease;
  white-space: nowrap;
}

.btn-header-book:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.6);
  color: #070b14;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: #ffffff;
  cursor: pointer;
}

/* 3. Hero Immersion Zone (Sleek Dark Gradient & Dynamic Current Pulse) */
.hero-zone {
  position: relative;
  background: radial-gradient(120% 120% at 50% 10%, #0d1e3a 0%, #080f1d 45%, #050811 100%);
  color: #ffffff;
  padding: 3.5rem 1.5rem 5rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 242, 254, 0.15);
}

.hero-bg-grid {
  display: none !important;
}

/* Dynamic Flat Line Pulse Container */
.hero-pulse-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.dynamic-pulse-line {
  position: absolute;
  left: -100%;
  width: 100%;
  pointer-events: none;
  will-change: transform, left, opacity;
  border-radius: 999px;
  opacity: 0.20;
  animation: dynamic-pulse-run 4.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Electric Current Beam Core */
.dynamic-pulse-line .electric-core {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(-50%);
  border-radius: 999px;
  animation: electric-crackle 0.12s steps(2, start) infinite;
}

/* Electric Arc SVG (Needle spikes, voltage surges & lightning zaps) */
.dynamic-pulse-line .electric-arc-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 48px;
  transform: translateY(-50%);
  overflow: visible;
  animation: electric-crackle 0.08s steps(2, start) infinite;
}

.dynamic-pulse-line .electric-bolt-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Electric Zap Spark Nodes (Arcing bursts along the pulse) */
.dynamic-pulse-line .electric-zap {
  position: absolute;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  animation: zap-flicker 0.14s ease-in-out infinite alternate;
}

.dynamic-pulse-line .electric-zap::before,
.dynamic-pulse-line .electric-zap::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  border-radius: 999px;
}

/* Vertical electric arc spike shooting upwards/downwards */
.dynamic-pulse-line .electric-zap::before {
  width: 2px;
  height: 20px;
  box-shadow: 0 0 8px currentColor;
}

.dynamic-pulse-line .electric-zap::after {
  width: 20px;
  height: 2px;
  box-shadow: 0 0 8px currentColor;
}

@keyframes zap-flicker {
  0% { transform: translate(-50%, -50%) scale(0.6) rotate(0deg); opacity: 0.4; }
  50% { transform: translate(-50%, -50%) scale(1.3) rotate(45deg); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(0.8) rotate(-30deg); opacity: 0.5; }
}

@keyframes electric-crackle {
  0% { transform: translateY(-50%) translateY(0px); }
  25% { transform: translateY(-50%) translateY(-2px) scaleY(1.3); }
  50% { transform: translateY(-50%) translateY(2.5px) scaleY(0.7); }
  75% { transform: translateY(-50%) translateY(-1px) scaleY(1.1); }
  100% { transform: translateY(-50%) translateY(1.5px) scaleY(0.9); }
}

@keyframes dynamic-pulse-run {
  0% {
    left: -100%;
    opacity: 0;
  }
  5% {
    opacity: 0.20;
  }
  14% {
    opacity: 0.60;
  }
  23% {
    opacity: 0.20;
  }
  32% {
    opacity: 0.60;
  }
  41% {
    opacity: 0.20;
  }
  50% {
    opacity: 0.60;
  }
  59% {
    opacity: 0.20;
  }
  68% {
    opacity: 0.60;
  }
  77% {
    opacity: 0.20;
  }
  86% {
    opacity: 0.60;
  }
  94% {
    opacity: 0.25;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

/* Legacy pulse fallback */
.pulse-line {
  display: none !important;
}

.hero-container,
.hero-grid {
  position: relative;
  z-index: 3;
  max-width: var(--max-w-screen);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.85rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid var(--color-cyan-border);
  border-radius: var(--radius-full);
  color: var(--color-cyan-glow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
}

.hero-pill-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-cyan-glow);
  box-shadow: 0 0 8px var(--color-cyan-glow);
  animation: blink 2s infinite ease-in-out;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #60a5fa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-lead {
  font-size: 1.12rem;
  color: #94a3b8;
  line-height: 1.7;
}

/* Hero Statutory Metric Pills */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-metric-item {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  backdrop-filter: blur(8px);
}

.hero-metric-item .val {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-cyan-glow);
}

.hero-metric-item .lbl {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* 4. Live Estimator Engine Container (Hero Dark-Tech Glass Card) */
.estimator-card {
  background: var(--color-glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.estimator-header {
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
}

.estimator-header h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
}

.estimator-header p {
  font-size: 0.85rem;
  color: #94a3b8;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 0.5rem;
}

.form-label .badge-stat {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--color-cyan-glow);
  background: rgba(0, 242, 254, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.form-select, .form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(7, 11, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* Range Slider Styling */
.range-slider-wrapper {
  position: relative;
  padding: 0.5rem 0;
}

.range-slider {
  width: 100%;
  height: 6px;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  outline: none;
  transition: background 0.2s;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-cyan-glow);
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-cyan-glow);
  border: 2px solid #070b14;
}

.range-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.35rem;
}

/* Addon Checkboxes */
.addon-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.addon-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(7, 11, 20, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all 0.2s;
}

.addon-checkbox-label:hover {
  background: rgba(7, 11, 20, 0.8);
  border-color: rgba(0, 242, 254, 0.3);
}

.addon-checkbox-label input[type="checkbox"] {
  accent-color: var(--color-cyan-glow);
  width: 17px;
  height: 17px;
}

.addon-checkbox-label .price-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--color-cyan-glow);
  font-size: 0.82rem;
}

/* Real-Time Price Total Box */
.calc-total-box {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.12) 0%, rgba(0, 114, 255, 0.12) 100%);
  border: 1px solid var(--color-cyan-border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calc-total-box .lbl {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.calc-total-box .price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--color-cyan-glow);
  text-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

/* Action Forwarding Button */
.btn-forward-quote {
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: linear-gradient(135deg, var(--color-cyan-glow) 0%, var(--color-electric-blue) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #070b14;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.35);
}

.btn-forward-quote:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.55);
}

.btn-forward-quote svg {
  width: 18px;
  height: 18px;
  transition: transform 0.2s;
}

.btn-forward-quote:hover svg {
  transform: translateY(2px);
}

/* 5. Main Body Conversion Zones (Ultra-Clean, High-Contrast Light Mode) */
.main-wrapper {
  background-color: var(--color-canvas-light);
  color: var(--color-text-body);
  flex: 1;
}

.container {
  max-width: var(--max-w-screen);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background-color: var(--color-primary-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--color-text-main);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* 6. Interactive Pricing Cards Grid */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.pricing-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.pricing-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
  width: 100%;
}

.fabric-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  width: 100%;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 30px -5px rgba(2, 132, 199, 0.15);
}

.pricing-card.selected {
  border: 2px solid var(--color-primary);
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 15px 35px -5px rgba(2, 132, 199, 0.25);
}

.pricing-card .card-badge {
  position: absolute;
  top: -12px;
  right: 1.5rem;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.pricing-card .card-tier {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.25rem;
}

.pricing-card .card-property-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.pricing-card .card-price-wrap {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.pricing-card .card-price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-text-main);
  letter-spacing: -0.03em;
}

.pricing-card .card-price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.pricing-card .card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--color-text-body);
  margin-bottom: 2rem;
  flex: 1;
}

.pricing-card .card-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.pricing-card .card-features li svg {
  width: 18px;
  height: 18px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.btn-select-tier {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-primary);
  background: transparent;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.pricing-card:hover .btn-select-tier,
.pricing-card.selected .btn-select-tier {
  background: var(--color-primary);
  color: #ffffff;
}

/* 7. Dedicated Booking Desk Section */
.booking-section-wrapper {
  background-color: var(--color-canvas-subtle);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  padding: 4.5rem 1.5rem;
}

.booking-container {
  max-width: 900px;
  margin: 0 auto;
}

/* Selected Package Summary Banner */
.selected-package-banner {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.selected-package-banner .pkg-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selected-package-banner .pkg-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.05em;
}

.selected-package-banner .pkg-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-main);
}

.selected-package-banner .pkg-specs {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.selected-package-banner .pkg-price {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--color-primary);
}

/* Booking Form Elements */
.booking-form-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.input-light {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text-main);
  background-color: #ffffff;
  transition: all 0.2s;
}

.input-light:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.textarea-light {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--color-text-main);
  min-height: 100px;
  resize: vertical;
}

.textarea-light:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.btn-submit-booking {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
  margin-top: 1rem;
}

.btn-submit-booking:hover {
  background: linear-gradient(135deg, #0369a1 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(2, 132, 199, 0.45);
}

/* 8. Frosted Dark-Tech Submission Confirmation Modal */
.submission-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.submission-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.submission-modal-box {
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid var(--color-cyan-glow);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), var(--shadow-cyan-glow);
  border-radius: var(--radius-lg);
  padding: 3rem 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  transform: scale(0.92);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.submission-modal-backdrop.active .submission-modal-box {
  transform: scale(1);
}

.modal-check-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: rgba(0, 242, 254, 0.12);
  border: 2px solid var(--color-cyan-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-cyan-glow);
  box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.modal-check-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 3;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.modal-desc {
  font-size: 0.95rem;
  color: #94a3b8;
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.modal-summary-card {
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.modal-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal-summary-row:last-child {
  border-bottom: none;
  padding-top: 0.6rem;
  font-weight: 800;
  color: var(--color-cyan-glow);
  font-size: 1.05rem;
}

/* 8b. High-Priority Emergency Routing Modal (#emergency-routing-modal) */
.emergency-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 20, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.emergency-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.emergency-modal-box {
  background: rgba(15, 23, 42, 0.97);
  border: 2px solid #ef4444;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.9), 0 0 45px rgba(239, 68, 68, 0.4), inset 0 0 25px rgba(239, 68, 68, 0.12);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.emergency-modal-backdrop.active .emergency-modal-box {
  transform: scale(1);
}

.emergency-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.emergency-modal-siren {
  animation: emergencySirenPulse 0.9s infinite alternate;
  font-size: 1.15rem;
  line-height: 1;
}

@keyframes emergencySirenPulse {
  0% { transform: scale(1); filter: drop-shadow(0 0 2px #ef4444); }
  100% { transform: scale(1.3); filter: drop-shadow(0 0 10px #ff0000); }
}

.emergency-modal-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.35rem;
  line-height: 1.25;
}

.emergency-modal-fault-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f87171;
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.emergency-statutory-directive {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  text-align: left;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.emergency-statutory-directive .directive-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
}

.emergency-statutory-directive .directive-content {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #fee2e2;
}

.emergency-statutory-directive strong {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: #ef4444;
  margin-bottom: 0.25rem;
}

.emergency-statutory-directive p {
  margin: 0;
  color: #fecaca;
}

.emergency-routing-status {
  background: rgba(7, 11, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 1.35rem;
}

.routing-status-text {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #cbd5e1;
  margin-bottom: 0.6rem;
}

.routing-status-text strong {
  color: #ffb800;
}

.routing-countdown-sec {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #ffb800;
}

.routing-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  overflow: hidden;
}

.routing-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ffb800, #ef4444);
  transition: width 0.1s linear;
}

.emergency-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-emergency-proceed {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.98rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: 0 0 25px rgba(239, 68, 68, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn-emergency-proceed:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.65);
}

.btn-emergency-hotline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.55);
  color: #34d399 !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.btn-emergency-hotline:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: #34d399;
}

.btn-emergency-cancel {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.88rem;
  padding: 0.4rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s;
}

.btn-emergency-cancel:hover {
  color: #ffffff;
}

@media (max-width: 480px) {
  .emergency-modal-box {
    padding: 1.5rem 1.25rem;
  }
  .emergency-modal-title {
    font-size: 1.3rem;
  }
  .btn-emergency-proceed,
  .btn-emergency-hotline {
    font-size: 0.9rem;
    padding: 0.85rem 1rem;
  }
}

/* 9. Towns Directory Modal (Command-K / ⌘K) */
.cmd-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10001;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.cmd-modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.cmd-modal-box {
  background: #0f172a;
  border: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 242, 254, 0.2);
  border-radius: var(--radius-lg);
  max-width: 680px;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}

.cmd-search-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 11, 20, 0.6);
}

.cmd-search-header svg {
  width: 20px;
  height: 20px;
  color: var(--color-cyan-glow);
  flex-shrink: 0;
}

.cmd-search-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
}

.cmd-search-input::placeholder {
  color: #64748b;
}

.cmd-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cmd-results-list {
  overflow-y: auto;
  padding: 0.75rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cmd-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  color: #cbd5e1;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.cmd-result-item:hover, .cmd-result-item.highlighted {
  background: rgba(0, 242, 254, 0.1);
  color: #ffffff;
}

.cmd-result-item .item-title {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cmd-result-item .item-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.cmd-result-item .item-postcodes {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

/* 10. Statutory BS 7671 & Repairing Standard Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
  background: #ffffff;
}

.comparison-table th, .comparison-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--color-border-light);
}

.comparison-table th {
  background: var(--color-canvas-subtle);
  font-weight: 800;
  color: var(--color-text-main);
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: #f8fafc;
}

.badge-compliant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-success);
  background: var(--color-success-bg);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

.badge-noncompliant {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-danger);
  background: var(--color-danger-bg);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.8rem;
}

/* 11. Observation Code Cards (C1, C2, C3, FI) */
.codes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.code-card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--color-border-light);
  background: #ffffff;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}

.code-card.c1 { border-top: 4px solid var(--color-danger); }
.code-card.c2 { border-top: 4px solid #ea580c; }
.code-card.c3 { border-top: 4px solid #ca8a04; }
.code-card.fi { border-top: 4px solid #2563eb; }

.code-badge {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.code-card.c1 .code-badge { background: #fee2e2; color: #b91c1c; }
.code-card.c2 .code-badge { background: #ffedd5; color: #c2410c; }
.code-card.c3 .code-badge { background: #fef9c3; color: #854d0e; }
.code-card.fi .code-badge { background: #dbeafe; color: #1d4ed8; }

.code-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text-main);
}

.code-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* 12. Floating Back-to-Top Widget with SVG Progress Ring */
.back-to-top-widget {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0f172a;
  border: 1px solid rgba(0, 242, 254, 0.4);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.25);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.back-to-top-widget.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top-widget:hover {
  transform: translateY(-3px);
  border-color: var(--color-cyan-glow);
  box-shadow: var(--shadow-cyan-glow);
}

.back-to-top-widget svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 52px;
  transform: rotate(-90deg);
}

.back-to-top-widget circle.progress-bg {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 3;
  fill: transparent;
}

.back-to-top-widget circle.progress-bar {
  stroke: var(--color-cyan-glow);
  stroke-width: 3;
  fill: transparent;
  stroke-dasharray: 150.79;
  stroke-dashoffset: 150.79;
  transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-widget svg.arrow-icon {
  width: 20px;
  height: 20px;
  color: #ffffff;
  position: relative;
  z-index: 2;
  transition: transform 0.2s;
}

.back-to-top-widget:hover svg.arrow-icon {
  transform: translateY(-2px);
}

/* 13. Dynamic Content Rendering Containers (Regional & Local Town Views) */
.view-container {
  display: none;
}

.view-container.active-view {
  display: block;
}

.breadcrumbs-bar {
  background: var(--color-canvas-subtle);
  border-bottom: 1px solid var(--color-border-light);
  padding: 0.75rem 1.5rem;
  font-size: 0.85rem;
}

.breadcrumbs-inner {
  max-width: var(--max-w-screen);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumbs-inner a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs-inner a:hover {
  text-decoration: underline;
}

.regional-cards-grid, .town-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.geo-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.geo-card .geo-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 0.35rem;
}

.geo-card .geo-council {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.geo-card .geo-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.geo-card .geo-meta-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--color-border-light);
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: #64748b;
}

/* 14. AEO Conversational Q&A Accordion Modules */
.aeo-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 2rem 0;
}

.aeo-item {
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.aeo-trigger {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  cursor: pointer;
  transition: background-color 0.2s;
}

.aeo-trigger:hover {
  background-color: var(--color-canvas-subtle);
}

.aeo-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.aeo-item.open .aeo-trigger svg {
  transform: rotate(180deg);
}

.aeo-body {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--color-text-body);
  line-height: 1.7;
  display: none;
}

.aeo-item.open .aeo-body {
  display: block;
}

/* 15. Footer */
.site-footer {
  background-color: #070b14;
  color: #94a3b8;
  border-top: 1px solid rgba(0, 242, 254, 0.15);
  padding: 4.5rem 1.5rem 2rem;
}

.footer-container {
  max-width: var(--max-w-screen);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-cyan-glow);
}

.footer-bottom {
  max-width: var(--max-w-screen);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

/* 16. Responsive Media Queries */
@media (max-width: 1100px) {
  .cmd-k-trigger .cmd-k-text {
    display: none;
  }
}

@media (max-width: 1024px) {
  .hero-container, .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pricing-grid, .pricing-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pricing-grid-3 {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .codes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .regional-cards-grid, .town-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .fabric-guide-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .site-nav.mobile-active {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #070b14;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 242, 254, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  .site-nav.mobile-active .nav-links {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
    gap: 0.5rem;
  }
  .site-nav.mobile-active .nav-link {
    display: block;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    font-size: 0.95rem;
  }
  .btn-header-book {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .hero-container, .hero-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .pricing-grid, .pricing-grid-4 {
    grid-template-columns: 1fr;
  }
  .pricing-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .form-grid-2 {
    grid-template-columns: 1fr;
  }
  .codes-grid {
    grid-template-columns: 1fr;
  }
  .regional-cards-grid, .town-cards-grid {
    grid-template-columns: 1fr;
  }
  .footer-container {
    grid-template-columns: 1fr;
  }
  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tactical-banner {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
  .tactical-banner-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }
  .brand-logo .logo-icon {
    width: 30px;
    height: 30px;
  }
  .brand-logo .logo-icon svg {
    width: 17px;
    height: 17px;
  }
  .brand-logo .emergency-badge-tag,
  .brand-logo .rewire-badge-tag {
    display: none;
  }
  .header-inner {
    padding: 0 1rem;
    gap: 0.75rem;
  }
  .phone-badge-cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
    gap: 0.35rem;
  }
  .phone-badge-cta svg {
    width: 13px;
    height: 13px;
  }
  .hero-zone {
    padding: 3rem 1rem 4rem !important;
  }
  .btn-primary-action, .btn-secondary-action {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem !important;
    font-size: 0.95rem !important;
  }
  .triage-card {
    padding: 1.25rem !important;
  }
  .rate-card-emergency, .rewire-card-interactive {
    padding: 1.5rem !important;
  }
}

@media (max-width: 380px) {
  .brand-logo {
    font-size: 1rem;
  }
  .phone-badge-cta span {
    display: none;
  }
  .phone-badge-cta::after {
    content: 'Call';
  }
}

/* ==============================================================================
   STAKEHOLDER TRINITY: Landlords, Letting Agents & Home Buyers
   ============================================================================== */
.hero-stakeholder-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.hero-stakeholder-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.35);
  border-radius: var(--radius-full);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.stakeholders-section {
  margin-bottom: 4.5rem;
}

.stakeholders-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

@media (max-width: 992px) {
  .stakeholders-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.stakeholder-card {
  background: #ffffff;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.75rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stakeholder-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0284c7, #00f2fe);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.stakeholder-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: #cbd5e1;
}

.stakeholder-card:hover::before {
  opacity: 1;
}

.stakeholder-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.stakeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.stakeholder-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.stakeholder-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.stakeholder-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--color-text-body);
  flex-grow: 1;
}

.stakeholder-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.45;
}

.stakeholder-checklist svg {
  width: 17px;
  height: 17px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 2px;
}

.stakeholder-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: #f1f5f9;
  color: var(--color-primary-dark);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-fast);
  border: 1px solid var(--color-border-light);
}

.stakeholder-btn:hover {
  background: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  transform: translateX(2px);
}


/* ==============================================================================
   Flexicomm WebML In-Browser AI Diagnostic Assistant - Styles
   Standard: In-Browser WebGPU/WASM Off-Thread Diagnostic UI
   ============================================================================== */

.webml-diagnostic-section {
  position: relative;
  background: radial-gradient(circle at 50% 0%, #0d1b33 0%, #070b14 85%);
  border-top: 1px solid rgba(0, 242, 254, 0.2);
  border-bottom: 1px solid rgba(0, 242, 254, 0.2);
  padding: 5rem 0;
  color: #f8fafc;
  overflow: hidden;
}

.webml-diagnostic-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(rgba(0, 242, 254, 0.08) 1px, transparent 0),
    radial-gradient(rgba(0, 114, 255, 0.05) 1px, transparent 0);
  background-size: 32px 32px;
  background-position: 0 0, 16px 16px;
  pointer-events: none;
  opacity: 0.6;
}

.webml-container {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.webml-header-box {
  text-align: center;
  margin-bottom: 2.5rem;
}

.webml-top-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-cyan-glow);
  margin-bottom: 1rem;
}

.webml-heading {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.85rem;
}

.webml-subtitle {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 720px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.webml-hardware-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.webml-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.webml-status-dot.status-green {
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite;
}

.webml-status-dot.status-amber {
  background: #f59e0b;
  box-shadow: 0 0 10px #f59e0b;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.webml-interface-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(0, 242, 254, 0.25);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.webml-chips-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: block;
}

.webml-symptoms-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.webml-symptom-chip {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.webml-symptom-chip:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--color-cyan-glow);
  color: #ffffff;
  transform: translateY(-1px);
}

.webml-symptom-chip.active-chip {
  background: rgba(0, 242, 254, 0.25);
  border-color: var(--color-cyan-glow);
  color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
  font-weight: 700;
}

.webml-input-cluster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.webml-text-row {
  display: flex;
  gap: 0.75rem;
}

.webml-search-field-wrap {
  position: relative;
  flex: 1;
}

.webml-input-icon {
  position: absolute;
  left: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: #00f2fe;
  font-size: 1.15rem;
  pointer-events: none;
}

.webml-input-field {
  width: 100%;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: var(--radius-md);
  padding: 0.95rem 1rem 0.95rem 3rem;
  color: #ffffff;
  font-size: 0.98rem;
  outline: none;
  transition: all var(--transition-fast);
}

.webml-input-field:focus {
  border-color: var(--color-cyan-glow);
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25);
}

.webml-filters-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.webml-filter-group {
  flex: 1;
  min-width: 220px;
}

.webml-filter-group label {
  display: block;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.webml-select-field {
  width: 100%;
  background: rgba(7, 11, 20, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  font-size: 0.88rem;
  outline: none;
}

.btn-run-webml {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #070b14;
  border: none;
  border-radius: var(--radius-md);
  padding: 0.95rem 1.75rem;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-run-webml:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.webml-loading-state {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  color: #00f2fe;
  font-weight: 600;
}

.webml-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 242, 254, 0.2);
  border-top-color: #00f2fe;
  border-radius: 50%;
  animation: webml-spin 0.8s linear infinite;
}

@keyframes webml-spin {
  to { transform: rotate(360deg); }
}

/* Result Card Presentation */
.webml-card-result {
  background: #0b1329;
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-top: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  animation: webml-fade-in 0.3s ease-out forwards;
}

@keyframes webml-fade-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.webml-result-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.webml-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.webml-severity-pill {
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.webml-clause-pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-family: monospace;
}

.webml-speed-pill {
  background: rgba(0, 242, 254, 0.1);
  color: #00f2fe;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.webml-confidence-box {
  text-align: right;
}

.webml-confidence-lbl {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.webml-confidence-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10b981;
}

.webml-result-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.65rem;
}

.webml-root-cause {
  color: #cbd5e1;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.webml-statutory-alert {
  display: flex;
  gap: 0.85rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

.webml-statutory-alert .statutory-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.webml-statutory-alert .statutory-text {
  font-size: 0.88rem;
  color: #fde68a;
  line-height: 1.5;
}

.webml-safety-guidance {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  color: #fca5a5;
  font-size: 0.88rem;
  margin-bottom: 1.25rem;
}

.webml-tier-selector-box {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  margin-bottom: 1.25rem;
}

.webml-tier-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.webml-tier-heading {
  font-size: 0.82rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.webml-tier-active-badge {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #00f2fe;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-family: var(--font-mono);
}

.webml-tier-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.webml-tier-choice-btn {
  flex: 1;
  min-width: 85px;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.65rem;
  color: #e2e8f0;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  transition: all var(--transition-fast);
}

.webml-tier-choice-btn strong {
  font-size: 0.85rem;
  font-weight: 700;
}

.webml-tier-choice-btn span {
  font-size: 0.78rem;
  color: #94a3b8;
  font-family: var(--font-mono);
}

.webml-tier-choice-btn:hover {
  background: rgba(0, 242, 254, 0.12);
  border-color: rgba(0, 242, 254, 0.4);
  color: #ffffff;
  transform: translateY(-1px);
}

.webml-tier-choice-btn.active {
  background: rgba(0, 242, 254, 0.2);
  border-color: #00f2fe;
  color: #00f2fe;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

.webml-tier-choice-btn.active span {
  color: #ffffff;
  font-weight: 700;
}

.webml-action-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.webml-price-est .est-label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
}

.webml-price-est .est-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #00f2fe;
}

.btn-webml-action {
  background: linear-gradient(135deg, #00f2fe 0%, #0072ff 100%);
  color: #070b14;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 0.92rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-webml-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

.btn-emergency-pulse {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  color: #ffffff !important;
  animation: emergency-glow 1.8s infinite;
}

@keyframes emergency-glow {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

@media (max-width: 768px) {
  .webml-text-row {
    flex-direction: column;
  }
  .btn-run-webml {
    width: 100%;
    justify-content: center;
  }
  .webml-action-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-webml-action {
    justify-content: center;
  }
}


/* ==============================================================================
   Date & Time Slot Picker - Morning, Afternoon, Evening Architecture
   ============================================================================== */

.time-slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.time-slot-card {
  position: relative;
  display: block;
  cursor: pointer;
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.6rem;
  background: #f8fafc;
  text-align: center;
  transition: all var(--transition-fast);
  user-select: none;
}

.time-slot-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.time-slot-card .time-slot-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.time-slot-card .time-slot-icon {
  font-size: 1.35rem;
  line-height: 1;
}

.time-slot-card .time-slot-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.2;
}

.time-slot-card .time-slot-sub {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.time-slot-card:hover {
  border-color: var(--color-primary);
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.12);
}

.time-slot-card.active,
.time-slot-card:has(input[type="radio"]:checked) {
  border-color: var(--color-primary);
  background: #f0f9ff;
  box-shadow: 0 0 0 2px var(--color-primary), 0 4px 14px rgba(2, 132, 199, 0.18);
}

.time-slot-card:has(input[type="radio"]:checked) .time-slot-title {
  color: var(--color-primary-dark);
}

.time-slot-card:has(input[type="radio"]:checked) .time-slot-sub {
  color: var(--color-primary);
  font-weight: 700;
}

@media (max-width: 640px) {
  .time-slot-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .time-slot-card {
    padding: 0.65rem 1rem;
  }
  .time-slot-card .time-slot-content {
    flex-direction: row;
    justify-content: flex-start;
    gap: 0.85rem;
  }
  .time-slot-card .time-slot-content > div {
    text-align: left;
  }
}
