:root {
  /* Color Palette */
  --wf-primary: #DC2626;      /* IPV Red brand color */
  --wf-primary-hover: #B91C1C;
  --wf-dark: #0F172A;         /* Deep Navy/Black */
  --wf-dark-light: #1E293B;
  --wf-accent: #F59E0B;       /* Gold/Amber for warnings */
  --wf-bg: #F8FAFC;           /* Light gray background */
  --wf-surface: #FFFFFF;      /* White cards */
  --wf-text: #334155;         /* Slate 700 text */
  --wf-text-heading: #0F172A; /* Slate 900 headings */
  --wf-border: #E2E8F0;       /* Light border */
  --wf-soft-red: #FEF2F2;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 64px;
  --space-section: 80px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  /* Radius */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Font */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--wf-bg);
  color: var(--wf-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--wf-text-heading);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 2.25rem; letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.125rem; }

p {
  margin-bottom: var(--space-md);
  max-width: 65ch;
}

a {
  color: var(--wf-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

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

.text-center { text-align: center; }
.text-right { text-align: right; }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* Components: Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background-color: var(--wf-primary);
  color: white;
  box-shadow: 0 4px 6px rgba(220, 38, 38, 0.25);
}
.btn-primary:hover {
  background-color: var(--wf-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 8px rgba(220, 38, 38, 0.3);
  color: white;
}

.btn-secondary {
  background-color: white;
  color: var(--wf-dark);
  border: 1px solid var(--wf-border);
}
.btn-secondary:hover {
  border-color: var(--wf-dark);
  background-color: var(--wf-bg);
}

.btn-outline-white {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

/* Components: Cards */
.card {
  background: var(--wf-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--wf-border);
  height: 100%;
  display: flex;
  flex-direction: column;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: var(--space-xl);
  align-items: center;
}

/* Header/Nav */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--wf-border);
  padding: var(--space-md) 0;
}
.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--wf-dark);
  letter-spacing: -0.03em;
}
.nav-logo span { color: var(--wf-primary); }
.nav-links {
  display: flex;
  gap: var(--space-lg);
}
.nav-link {
  color: var(--wf-text);
  font-weight: 500;
}
.nav-link:hover { color: var(--wf-primary); }

/* Hero Section */
.hero {
  background-color: var(--wf-dark);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: white; }
.hero p { color: #CBD5E1; font-size: 1.25rem; }

/* Features/Benefits */
.feature-icon {
  width: 48px;
  height: 48px;
  background: #FEF2F2; /* Light red bg */
  color: var(--wf-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  font-weight: 700;
  font-size: 1.25rem;
}

/* Process Steps */
.process-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
  margin: 0 auto;
}
.process-step {
  display: flex;
  align-items: center;
  background: white;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--wf-border);
}
.step-number {
  background: var(--wf-dark);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-right: var(--space-md);
  flex-shrink: 0;
}
.step-text { font-weight: 600; color: var(--wf-dark); }

/* Warning Banner */
.deadline-banner {
  background: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #92400E;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-top: var(--space-lg);
  display: flex;
  align-items: start;
  gap: var(--space-md);
}
.deadline-icon { font-size: 1.5rem; }

/* Table Styles - Complex but responsive */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--wf-border);
  background: white;
  margin-bottom: var(--space-xl);
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px; /* Force scroll on mobile */
}
th, td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--wf-border);
  vertical-align: top;
}
th {
  background: var(--wf-dark);
  color: white;
  font-weight: 600;
  white-space: nowrap;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background-color: #F8FAFC; }
.condition-list {
  list-style: disc;
  margin-left: var(--space-lg);
  margin-bottom: 0;
}

/* Form Section */
.form-panel {
  background: var(--wf-surface);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
  color: var(--wf-dark);
}
.form-input, .form-select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--wf-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: border 0.2s;
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--wf-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Footer */
footer {
  background: var(--wf-dark);
  color: white;
  padding: var(--space-xl) 0;
  margin-top: auto;
  border-top: 1px solid #334155;
}
.footer-text { color: #94A3B8; font-size: 0.9rem; }

/* Utilities */
.text-primary { color: var(--wf-primary); }
.text-white { color: white !important; }
.text-muted { color: #94A3B8; }
.text-muted-light { color: #CBD5E1; }
.bg-light { background-color: white; }
.bg-glass {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  background: #E2E8F0;
  color: var(--wf-dark);
}
.badge-glass {
  background: rgba(255, 255, 255, 0.1);
  color: white;
}

/* Specific Section Styles */
.deadline-card-header {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 16px;
  margin-bottom: 16px;
}
.deadline-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--wf-accent);
}

.table-col-1 { width: 25%; }
.table-col-2 { width: 35%; }
.table-col-3 { width: 20%; }
.table-col-4 { width: 20%; }

.footer-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 40px;
  margin-top: 40px;
}

/* =========================================
   NEW COMPONENT STYLES
   ========================================= */

/* Hero Extensions */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-xxl);
  }
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  letter-spacing: 0.05em;
  border: 1px solid rgba(255,255,255,0.2);
}

/* Deadline Card */
.deadline-card {
  background: #1E293B;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}
.deadline-header {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: var(--space-md);
  margin-bottom: var(--space-md);
}
.deadline-header h3 { color: white; margin: 0; font-size: 1.25rem; }
.date-display {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.date-day {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--wf-accent);
}
.date-month-year {
  display: flex;
  flex-direction: column;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  text-transform: uppercase;
  line-height: 1.1;
}
.deadline-note {
  font-size: 0.9rem;
  color: #94A3B8;
  line-height: 1.5;
}

/* Warning Box */
.warning-box {
  background: #FFFBEB;
  border: 1px solid #FCD34D;
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}
.warning-icon {
  color: #D97706;
  font-size: 1.5rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Step Process */
.step-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}
.step-card {
  background: white;
  border: 1px solid var(--wf-border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  position: relative;
  transition: transform 0.2s;
  box-shadow: var(--shadow-sm);
  height: 100%;
}
.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--wf-primary);
}
.step-number {
  background: var(--wf-soft-red);
  color: var(--wf-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}
.step-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: var(--space-sm);
  color: var(--wf-dark);
}
.step-desc {
  font-size: 0.95rem;
  color: var(--wf-text);
  margin: 0;
}

/* Enhanced Table */
.table-wrapper {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  border: 1px solid var(--wf-border);
}
.table-scroll {
  overflow-x: auto;
}
.custom-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}
.custom-table th {
  background: var(--wf-dark);
  color: white;
  text-align: left;
  padding: 16px 24px;
  font-weight: 600;
  font-size: 0.95rem;
}
.custom-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--wf-border);
  vertical-align: top;
  color: var(--wf-text);
  font-size: 0.95rem;
}
.custom-table tr:last-child td { border-bottom: none; }
.custom-table tr:nth-child(even) { background-color: #F8FAFC; }

/* Lists */
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
}
.check-list li::before {
  content: "•";
  color: var(--wf-primary);
  font-weight: bold;
  font-size: 1.5em;
  position: absolute;
  left: 0;
  top: -6px;
}

/* CTA Section */
.footer-cta {
  background: var(--wf-dark);
  color: white;
  padding: 80px 0;
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xxl);
}
@media (min-width: 992px) {
  .cta-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
.cta-form {
  background: white;
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  color: var(--wf-dark);
}
.sub-footer {
  background: #020617;
  padding: var(--space-lg) 0;
  text-align: center;
  color: #64748B;
  font-size: 0.85rem;
}
