:root {
  --brand: #1d4ed8;
  --brand-hover: #1e40af;
  --brand2: #0ea5e9;
  --accent: #f59e0b;
  --success: #10b981;
  --ink: #0f172a;
  --muted: #475569;
  --soft: #f8fafc;
  --card-bg: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding-top: 76px;
  background: var(--soft);
  color: var(--ink);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6, .display-font {
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

main {
  flex: 1 0 auto;
}

/* Navbar */
.nav-glass {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}

.brand-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 8px 18px rgba(29, 78, 216, 0.28);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink) !important;
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-nav .nav-link {
  font-weight: 600;
  color: var(--muted) !important;
  padding: 0.55rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand) !important;
  background: rgba(29, 78, 216, 0.06);
}

.pill-cta {
  border-radius: 999px;
  padding: 0.55rem 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  border: none;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(29, 78, 216, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pill-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.35);
}

/* States Megamenu */
.navbar .dropdown-menu.states-menu {
  min-width: 580px;
  max-height: 420px;
  overflow-y: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.states-menu .dropdown-item {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.states-menu .dropdown-item:hover {
  background: rgba(29, 78, 216, 0.08);
  color: var(--brand);
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: 
    radial-gradient(850px 420px at 15% 15%, rgba(29, 78, 216, 0.4), transparent 55%),
    radial-gradient(850px 420px at 85% 25%, rgba(14, 165, 233, 0.35), transparent 55%),
    linear-gradient(180deg, #090e1a 0%, #0f172a 100%);
  color: #ffffff;
  padding: 70px 0 85px;
  border-bottom-left-radius: 36px;
  border-bottom-right-radius: 36px;
}

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #ffffff 40%, #bae6fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p.lead {
  font-size: 1.18rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 600px;
  margin-bottom: 30px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}

.hero-card {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
}

/* Feature Cards */
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: rgba(29, 78, 216, 0.3);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: rgba(29, 78, 216, 0.1);
  color: var(--brand);
  margin-bottom: 20px;
}

/* State Directory Grid */
.state-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.2s ease;
}

.state-tile:hover {
  border-color: var(--brand);
  background: #f0f7ff;
  color: var(--brand);
  transform: translateX(4px);
}

.state-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  background: #e2e8f0;
  color: #334155;
}

/* Form Steps */
.step-indicator {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 35px;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 30px;
  right: 30px;
  height: 3px;
  background: var(--border);
  z-index: 1;
}

.step-node {
  position: relative;
  z-index: 2;
  text-align: center;
  background: var(--card-bg);
  padding: 0 10px;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  display: grid;
  place-items: center;
  font-weight: 800;
  margin: 0 auto 6px;
  transition: all 0.3s ease;
}

.step-node.active .step-circle {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 0 0 5px rgba(29, 78, 216, 0.2);
}

.step-node.completed .step-circle {
  background: var(--success);
  color: #fff;
}

.step-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}

.step-node.active .step-title {
  color: var(--ink);
}

.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fadeIn 0.3s ease forwards;
}

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

/* Footer */
footer {
  background: #090e1a;
  color: #94a3b8;
  padding: 55px 0 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #38bdf8;
}

@media (max-width: 991.98px) {
  .hero h1 { font-size: 2.3rem; }
  .navbar .dropdown-menu.states-menu {
    min-width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================================
   UNIVERSAL BUTTON ALIGNMENT & COMPONENT STYLING
========================================================= */
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  white-space: nowrap !important;
  vertical-align: middle !important;
  line-height: 1.4 !important;
  min-height: 46px;
  font-weight: 700 !important;
  border-radius: 999px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease !important;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  min-height: 36px;
  padding: 0.35rem 1rem !important;
  font-size: 0.85rem !important;
}

.btn-lg {
  min-height: 52px;
  padding: 0.65rem 1.75rem !important;
  font-size: 1.05rem !important;
}

.btn i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15em;
  line-height: 1;
  flex-shrink: 0;
}

/* Form Step Actions Container */
.step-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
  margin-top: 2rem !important;
  padding-top: 1.25rem !important;
  border-top: 1px solid var(--border);
}

@media (max-width: 575.98px) {
  .step-actions {
    flex-direction: column-reverse;
    gap: 12px !important;
  }
  .step-actions .btn {
    width: 100%;
  }
}

