/* ==========================================================================
   MILITARY LEAVE & CLEARANCE PORTAL - CORE DESIGN SYSTEM
   Tactical Command Aesthetic / High-Contrast Precision Theme
   Fully Mobile Responsive / Clean Scalable Typography
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=Inter:wght@300;400;500;600;700&family=Cinzel:wght@600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Tactical Color Palette */
  --bg-core: #070d14;
  --bg-surface: #0c1622;
  --bg-card: #111e2e;
  --bg-card-hover: #16263a;
  --bg-glass: rgba(12, 22, 34, 0.95);
  --bg-accent-subtle: rgba(212, 175, 55, 0.08);

  --border-subtle: #1c2e42;
  --border-focus: #d4af37;
  --border-glow: rgba(212, 175, 55, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-gold: #d4af37;
  --text-gold-bright: #ffd700;

  /* Military Accents */
  --gold-primary: #d4af37;
  --gold-hover: #e5c158;
  --gold-gradient: linear-gradient(135deg, #fce089 0%, #d4af37 50%, #9e7d18 100%);
  --army-green: #3d5a45;
  --army-green-light: #52795f;
  
  /* Status Colors */
  --status-approved-bg: rgba(34, 197, 94, 0.15);
  --status-approved-text: #4ade80;
  --status-approved-border: #22c55e;

  --status-pending-bg: rgba(245, 158, 11, 0.15);
  --status-pending-text: #fbbf24;
  --status-pending-border: #f59e0b;

  --status-rejected-bg: rgba(239, 68, 68, 0.15);
  --status-rejected-text: #f87171;
  --status-rejected-border: #ef4444;

  /* Typography */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Chakra Petch', sans-serif;
  --font-serif: 'Cinzel', serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Shadows & Elevations */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.7);
  --shadow-gold: 0 0 20px rgba(212, 175, 55, 0.25);
  --shadow-glow: 0 0 15px rgba(56, 189, 248, 0.2);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-core);
  color: var(--text-primary);
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-core);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(212, 175, 55, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 85% 65%, rgba(30, 58, 138, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
  background-attachment: fixed;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1.25;
}

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

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

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
}

.container-narrow {
  max-width: 880px;
}

.container-wide {
  max-width: 1400px;
}

.main-content {
  flex: 1 0 auto;
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

/* Grid & Flex Helpers */
.grid {
  display: grid;
  gap: 1.5rem;
}

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

@media (max-width: 992px) {
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; gap: 1.25rem; }
}

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* Tactical Header & Top Bar */
.military-topbar {
  background: #04080d;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.74rem;
  padding: 0.35rem 0;
  color: var(--text-secondary);
  width: 100%;
}

.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-bright);
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.5px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.7rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.73rem;
}

.topbar-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

@media (max-width: 576px) {
  .military-topbar {
    display: none; /* Hide top utility strip on very small phones to keep view clean */
  }
}

/* Tactical Navbar */
.site-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  transition: all var(--transition-normal);
  width: 100%;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 1rem;
  position: relative;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 1;
  min-width: 0;
}

.brand-logo-img {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 6px rgba(212, 175, 55, 0.35));
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 0.82rem; /* Compact size almost the same with tagline */
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
  line-height: 1.15;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 0.65rem; /* Balanced with brand-title */
  color: var(--gold-primary);
  letter-spacing: 0.75px;
  font-family: var(--font-mono);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Nav Links - Desktop */
.nav-menu-wrapper {
  display: flex;
  align-items: center;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 0.3rem 0.15rem;
  position: relative;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
}

.nav-link i {
  font-size: 0.72rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.mobile-toggle {
  display: none;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold-primary);
  color: var(--gold-primary);
  font-size: 1.15rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.mobile-toggle:hover {
  background: var(--gold-primary);
  color: #000;
}

.mobile-drawer-header,
.mobile-drawer-footer,
.nav-drawer-backdrop {
  display: none;
}

/* Mobile Responsiveness for Header (<= 1180px) */
@media (max-width: 1180px) {
  .nav-cta-desktop {
    display: none !important; /* Hide desktop button so hamburger never gets pushed out */
  }
  .mobile-toggle {
    display: block !important;
  }

  .nav-drawer-backdrop {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .nav-drawer-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu-wrapper {
    position: fixed;
    top: 0;
    right: -320px;
    width: min(300px, 85vw);
    height: 100vh;
    background: #09121d;
    border-left: 2px solid var(--gold-primary);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.9);
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    z-index: 9999;
    padding: 1.25rem 1rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
  }

  .nav-menu-wrapper.active {
    right: 0;
  }

  .mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 1rem;
  }

  .drawer-close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    line-height: 1;
  }

  .nav-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav-link {
    padding: 0.65rem 0.5rem;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .mobile-drawer-footer {
    display: block;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 1rem;
  }
}

/* Tactical Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0b1118;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  border-color: #fce089;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(212, 175, 55, 0.5);
  color: #05080c;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--gold-primary);
  border-color: var(--gold-primary);
}

.btn-outline:hover {
  background: rgba(212, 175, 55, 0.1);
  color: #ffffff;
  border-color: var(--gold-hover);
}

.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 0.92rem;
}

.btn-sm {
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
}

.btn-block {
  width: 100%;
}

/* Tactical Hero Section */
.hero-section {
  position: relative;
  padding: 3.5rem 0 2.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 50% 20%, rgba(212, 175, 55, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, rgba(7, 13, 20, 0.6) 0%, #070d14 100%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2.5rem;
  align-items: center;
  position: relative;
  z-index: 10;
}

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

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-primary);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-transform: uppercase;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.85rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

.text-gold-grad {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

/* Live Fast Tracker Box in Hero */
.hero-tracker-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-top: 3px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  position: relative;
  overflow: hidden;
  width: 100%;
}

@media (max-width: 576px) {
  .hero-tracker-card {
    padding: 1.15rem;
  }
}

.tracker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.tracker-title {
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #ffffff;
}

.tracker-input-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

@media (max-width: 576px) {
  .tracker-input-group {
    flex-direction: column;
  }
}

.tracker-input {
  flex: 1;
  background: #080f18;
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  padding: 0.7rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--transition-fast);
  min-width: 0;
}

.tracker-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.25);
}

.sample-pills {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sample-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.18rem 0.45rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.sample-pill-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

/* Stats Counter Section */
.stats-strip {
  background: #09121c;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.5rem 0;
  width: 100%;
}

.stat-item {
  text-align: center;
  padding: 0.65rem 0.85rem;
  border-right: 1px solid var(--border-subtle);
}

.stat-item:last-child {
  border-right: none;
}

@media (max-width: 768px) {
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
  .stat-item:last-child {
    border-bottom: none;
  }
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.15rem;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-family: var(--font-mono);
}

/* Section Header Generic */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: var(--gold-primary);
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.section-title {
  font-size: 1.95rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
  .section-title {
    font-size: 1.5rem;
  }
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* Military Branch Cards */
.branch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.branch-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-primary);
  transition: width var(--transition-fast);
}

.branch-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

.branch-card:hover::before {
  width: 6px;
}

.branch-icon-img {
  width: 44px;
  height: 44px;
  margin-bottom: 0.85rem;
}

.branch-card-title {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
  color: #ffffff;
}

.branch-card-motto {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--gold-primary);
  margin-bottom: 0.65rem;
}

.branch-card-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

/* Leave Category Cards */
.leave-type-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  width: 100%;
}

.leave-type-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  box-shadow: var(--shadow-md);
}

.leave-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-primary);
  border: 1px solid rgba(212, 175, 55, 0.25);
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.leave-type-title {
  font-size: 1.1rem;
  margin-bottom: 0.55rem;
  color: #ffffff;
}

.leave-type-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex: 1;
}

/* Application Wizard Multi-Step Form */
.wizard-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  width: 100%;
}

.wizard-stepper {
  display: flex;
  background: #09121c;
  border-bottom: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.step-indicator {
  flex: 1;
  min-width: 110px;
  padding: 0.85rem 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  cursor: default;
  position: relative;
  transition: all var(--transition-fast);
}

.step-indicator:last-child {
  border-right: none;
}

.step-indicator.active {
  color: #ffffff;
  background: rgba(212, 175, 55, 0.06);
}

.step-indicator.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
}

.step-indicator.completed {
  color: var(--gold-primary);
}

.step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  background: #111d2b;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.step-indicator.active .step-number {
  background: var(--gold-primary);
  color: #0b1118;
  border-color: #ffd700;
}

.step-indicator.completed .step-number {
  background: rgba(34, 197, 94, 0.2);
  color: #4ade80;
  border-color: #22c55e;
}

.step-text {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  white-space: nowrap;
}

.wizard-body {
  padding: 2rem;
}

@media (max-width: 768px) {
  .wizard-body {
    padding: 1.15rem;
  }
}

.wizard-step-pane {
  display: none;
}

.wizard-step-pane.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

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

/* Tactical Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-label .required {
  color: #f87171;
}

.form-control {
  width: 100%;
  background: #09121d;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 0.65rem 0.85rem;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--gold-primary);
  background: #0b1624;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23d4af37' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

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

.form-help {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

/* Signature Pad Box */
.signature-box {
  border: 1px dashed var(--border-subtle);
  background: #070e17;
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  position: relative;
  text-align: center;
  width: 100%;
}

#signatureCanvas {
  background: #0b1624;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  cursor: crosshair;
  width: 100%;
  max-width: 100%;
  touch-action: none;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}

.status-approved {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border: 1px solid var(--status-approved-border);
}

.status-pending {
  background: var(--status-pending-bg);
  color: var(--status-pending-text);
  border: 1px solid var(--status-pending-border);
}

.status-rejected {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border: 1px solid var(--status-rejected-border);
}

.status-neutral {
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  border: 1px solid #94a3b8;
}

/* Visual Tracking Pipeline */
.tracking-pipeline {
  display: flex;
  justify-content: space-between;
  margin: 2rem 0;
  position: relative;
  width: 100%;
}

.tracking-pipeline::before {
  content: '';
  position: absolute;
  top: 17px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border-subtle);
  z-index: 1;
}

@media (max-width: 600px) {
  .tracking-pipeline {
    flex-direction: column;
    gap: 1.15rem;
    align-items: flex-start;
    padding-left: 0.5rem;
  }
  .tracking-pipeline::before {
    top: 0;
    bottom: 0;
    left: 22px;
    width: 3px;
    height: 100%;
  }
  .pipeline-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-align: left;
    width: 100%;
  }
  .pipeline-icon {
    margin: 0;
    flex-shrink: 0;
  }
}

.pipeline-step {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.pipeline-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.55rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-normal);
}

.pipeline-step.done .pipeline-icon {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #4ade80;
}

.pipeline-step.current .pipeline-icon {
  background: rgba(212, 175, 55, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.pipeline-label {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pipeline-step.done .pipeline-label {
  color: #4ade80;
}

.pipeline-step.current .pipeline-label {
  color: var(--gold-primary);
}

/* Footer Tactical Styling */
.site-footer {
  background: #04080d;
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 1.75rem;
  margin-top: 3.5rem;
  font-size: 0.85rem;
  width: 100%;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
  gap: 2.25rem;
  margin-bottom: 2.25rem;
}

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

@media (max-width: 576px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  margin-bottom: 1rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 0.35rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #070d14;
}
::-webkit-scrollbar-thumb {
  background: #1c2e42;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Toast Notifications */
.tactical-toast {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--gold-primary);
  box-shadow: var(--shadow-lg), var(--shadow-gold);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1.15rem;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  animation: slideInRight 0.3s ease;
  max-width: calc(100vw - 2.5rem);
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
