/* ============================================
   PublicAdjusterSelect.com - Design System
   ============================================ */

/* --- Google Font --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700&display=swap');

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

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-navy: #0B1D3A;
  --color-navy-light: #132B52;
  --color-navy-dark: #06101F;
  --color-gold: #D4A853;
  --color-gold-light: #E8C97A;
  --color-gold-dark: #B08930;
  --color-white: #FFFFFF;
  --color-off-white: #F8F7F4;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-green: #10B981;
  --color-green-light: #D1FAE5;
  --color-red: #EF4444;
  --color-blue: #3B82F6;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);
  --shadow-gold: 0 4px 20px rgba(212, 168, 83, 0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease-out);
  --transition-base: 300ms var(--ease-out);
  --transition-slow: 500ms var(--ease-out);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;
}

/* --- Base --- */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-gray-800);
  background: var(--color-white);
}

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

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

/* --- Typography --- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.serif {
  font-family: var(--font-serif);
}

.text-gold {
  color: var(--color-gold);
}

.text-navy {
  color: var(--color-navy);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.section {
  padding: var(--space-4xl) 1.5rem;
  scroll-margin-top: calc(var(--nav-height) + 1rem);
}

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

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(11, 29, 58, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(212, 168, 83, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-white);
}

.nav-logo .logo-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
  overflow: hidden;
  flex-shrink: 0;
}

.nav-logo .logo-icon img,
.nav-logo .logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nav-logo:hover .logo-icon {
  transform: scale(1.08);
}

.nav-logo span {
  color: var(--color-gold);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  color: var(--color-gray-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.nav-links a:hover {
  color: var(--color-gold-light);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1.25rem;
  background: var(--color-gold);
  color: var(--color-navy) !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
}

.nav-cta:hover {
  background: var(--color-gold-light) !important;
  color: var(--color-navy) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Hero Section --- */
.hero {
  display: flex;
  flex-direction: column;
  background: linear-gradient(170deg, var(--color-navy) 0%, var(--color-navy-dark) 60%, #0a1628 100%);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-lg));
  min-height: 85vh; /* Ensures partner logos are mostly visible above the fold */
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  flex-grow: 1; /* Utilize vertical space */
  align-content: center; /* Center the grid vertically */
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl); /* Reduced from 4xl to condense hero */
  align-items: center;
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-md); /* Reduced from xl for extreme condensation */
}

.hero-content {
  color: var(--color-white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.15rem;
  background: rgba(212, 168, 83, 0.08);
  border-left: 3px solid var(--color-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.82rem;
  color: var(--color-gold-light);
  margin-bottom: var(--space-md); /* Reduced from lg */
  letter-spacing: 0.02em;
}

.hero-badge .badge-star {
  font-size: 1rem;
  color: var(--color-gold);
  line-height: 1;
}

.hero h1 {
  margin-bottom: var(--space-sm); /* Extremely tight */
  font-size: clamp(2rem, 4vw, 3.2rem); /* Scaled down slightly */
  line-height: 1.1;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-gold);
  font-family: var(--font-serif);
}

.hero-subtitle {
  font-size: 1.05rem; /* Reduced from 1.15rem */
  color: var(--color-gray-400);
  margin-bottom: var(--space-lg); /* Reduced from xl */
  max-width: 600px; /* Wider to prevent line wrapping */
  line-height: 1.5;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1.15rem; /* Bigger for impact */
  color: var(--color-gray-100);
  line-height: 1.5;
  font-weight: 500;
}

.hero-features .feature-icon {
  font-size: 1.25rem;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 2px;
}

.hero-features strong {
  color: var(--color-gold);
  font-weight: 800; /* Extra bold */
}

/* --- Form Card --- */
.form-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-xl); /* Increased for breathing room */
  box-shadow: var(--shadow-xl);
  position: relative;
}

.form-card h2 {
  font-size: 1.35rem; /* Slightly larger */
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.form-card .form-subtitle {
  color: var(--color-gray-500);
  font-size: 0.95rem;
  margin-bottom: var(--space-md); /* More breathing room */
}

.form-group {
  margin-bottom: var(--space-sm); /* Increased gap */
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gray-700);
  margin-bottom: var(--space-xs);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem; /* More interior padding */
  border: 1.5px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-gray-800);
  background: var(--color-white);
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.15);
}

.form-group input::placeholder {
  color: var(--color-gray-400);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.form-consent {
  font-size: 0.75rem;
  color: var(--color-gray-500);
  line-height: 1.5;
  margin-top: var(--space-sm);
}

.form-consent a {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.9rem 2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-primary {
  width: 100%;
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-navy);
  font-size: 1.05rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
  background: linear-gradient(135deg, var(--color-gold-light), var(--color-gold));
}

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

.btn-outline:hover {
  background: var(--color-gold);
  color: var(--color-navy);
}

/* (Removed old stats-bar CSS) */

/* --- Partner Trust Logos --- */
.partner-logos {
  width: 100%;
  margin-top: auto;
  padding: var(--space-xl) 0 var(--space-xl); /* Reduced from 3xl for visibility */
  border-top: none; /* Removed the fine line */
  position: relative;
  z-index: 10;
}

.partner-logos .container {
  text-align: center;
}

.partner-logos-img {
  max-width: 1000px;
  width: 100%;
  height: auto;
  max-height: 80px;
  opacity: 0.85;
  display: block;
  margin: 0 auto;
}

/* --- Section Heading --- */
.section-heading {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-3xl);
}

.section-heading .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-sm);
}

.section-heading h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.section-heading p {
  color: var(--color-gray-500);
  font-size: 1.05rem;
}

/* --- How It Works --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2xl);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), var(--color-gold), transparent);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  color: var(--color-gold);
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  position: relative;
  z-index: 1;
  border: 3px solid var(--color-gold);
}

.step-card h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.step-card p {
  color: var(--color-gray-500);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* --- Features / Benefits --- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.benefit-card {
  padding: var(--space-xl);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

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

.benefit-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 168, 83, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.benefit-card h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
  font-size: 1.1rem;
}

.benefit-card p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* --- Comparison Section --- */
.comparison-section {
  background: var(--color-navy);
  color: var(--color-white);
}

.comparison-section .section-heading h2 {
  color: var(--color-white);
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin: 0 auto;
}

.comparison-col {
  padding: var(--space-xl); /* Reduced from 2xl for vertical compactness */
  border-radius: var(--radius-lg);
}

.comparison-col.without {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-col.with {
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.15), rgba(212, 168, 83, 0.05));
  border: 1px solid rgba(212, 168, 83, 0.3);
}

.comparison-col h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.comparison-col.without h3 {
  color: var(--color-gray-400);
}

.comparison-col.with h3 {
  color: var(--color-gold-light);
}

.comparison-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm); /* Reduced from md to keep table compact */
}

.comparison-col li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

.comparison-col.without li::before {
  content: '✕';
  color: var(--color-red);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-col.with li::before {
  content: '✓';
  color: var(--color-green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.comparison-col .payout {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-col .payout-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-xs);
}

.comparison-col.without .payout-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gray-400);
}

.comparison-col.with .payout-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-gold);
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  text-align: center;
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.1) 0%, transparent 60%);
}

.cta-banner h2 {
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner p {
  color: var(--color-gray-400);
  margin-bottom: var(--space-xl);
  font-size: 1.1rem;
  position: relative;
}

.cta-banner .btn {
  position: relative;
}

/* --- FAQ --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-gray-200);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: var(--space-lg) 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-navy);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-gold-dark);
}

.faq-question .icon {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--color-gold);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.faq-item.active .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  color: var(--color-gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Footer --- */
.footer {
  background: var(--color-navy-dark);
  color: var(--color-gray-400);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-top: var(--space-md);
  max-width: 300px;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

.footer-col a:hover {
  color: var(--color-gold-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: var(--space-xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

/* --- City Page Specific --- */
.page-hero {
  padding: calc(var(--nav-height) + var(--space-3xl)) 0 0; /* Let children handle bottom padding */
  background: linear-gradient(170deg, var(--color-navy) 0%, var(--color-navy-dark) 100%);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(212, 168, 83, 0.08) 0%, transparent 70%);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  position: relative;
  z-index: 1;
}

.page-hero .hero-badge {
  margin-bottom: var(--space-md);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  margin-bottom: var(--space-md);
}

.page-hero-description {
  color: var(--color-gray-400);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.page-hero-stats {
  display: flex;
  gap: var(--space-xl);
}

/* --- Network Bar --- */
.network-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-top: var(--space-xl);
}

.network-item {
  text-align: center;
}

.network-item .icon {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
}

.network-item .value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.network-item .label {
  font-size: 0.72rem;
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Content Section --- */
.content-section {
  max-width: 800px;
}

.content-section h2 {
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.content-section p {
  color: var(--color-gray-600);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.content-section ul,
.content-section ol {
  color: var(--color-gray-600);
  margin-bottom: var(--space-md);
  padding-left: var(--space-xl);
  line-height: 1.7;
}

.content-section li {
  margin-bottom: var(--space-sm);
}

/* --- Success State --- */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
}

.form-success.active {
  display: block;
}

.form-success .checkmark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-green-light);
  color: var(--color-green);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.form-success h3 {
  color: var(--color-navy);
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--color-gray-500);
  font-size: 0.92rem;
}

/* --- Form Sidebar Layout (Content + Sticky Form) --- */
.form-sidebar-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-3xl);
  align-items: start;
}

.form-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-lg));
  max-height: calc(100vh - var(--nav-height) - var(--space-2xl));
  overflow-y: auto;
}

.form-sidebar .form-card {
  border: 2px solid rgba(212, 168, 83, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-sidebar .form-card h2 {
  font-size: 1.15rem;
}

.form-sidebar .form-card .form-subtitle {
  font-size: 0.82rem;
}

.form-sidebar .form-card .btn-primary {
  font-size: 0.95rem;
  padding: 14px 24px;
}

/* Trust badges under sticky form */
.form-trust-badges {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-gray-200);
}

.form-trust-badges .trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.78rem;
  color: var(--color-gray-500);
}

.form-trust-badges .trust-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* --- Table of Contents --- */
.toc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.toc-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--space-xl));
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.toc-sidebar h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.toc-sidebar ol {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc-sidebar li {
  counter-increment: toc-counter;
}

.toc-sidebar a {
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  padding: 6px 10px;
  font-size: 0.82rem;
  color: var(--color-gray-500);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  line-height: 1.4;
}

.toc-sidebar a::before {
  content: counter(toc-counter) ".";
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--color-gray-400);
  flex-shrink: 0;
  min-width: 18px;
}

.toc-sidebar a:hover {
  color: var(--color-navy);
  background: var(--color-gray-100);
}

.toc-sidebar a.active {
  color: var(--color-navy);
  background: rgba(212, 168, 83, 0.1);
  font-weight: 600;
}

.toc-sidebar a.active::before {
  color: var(--color-gold-dark);
}

/* --- Inline TOC (mobile fallback) --- */
.toc-inline {
  display: none;
  padding: var(--space-lg);
  background: var(--color-off-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  margin-bottom: var(--space-2xl);
}

.toc-inline h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-md);
  font-weight: 600;
}

.toc-inline ol {
  list-style: decimal;
  padding-left: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.toc-inline a {
  font-size: 0.88rem;
  color: var(--color-navy);
  font-weight: 500;
}

.toc-inline a:hover {
  color: var(--color-gold-dark);
}

/* --- Data Callout Box --- */
.data-callout {
  padding: var(--space-lg) var(--space-xl);
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
  border-radius: var(--radius-lg);
  margin: var(--space-xl) 0;
  color: var(--color-white);
  border-left: 4px solid var(--color-gold);
}

.data-callout .callout-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.data-callout .callout-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-gold);
  line-height: 1.2;
  margin-bottom: var(--space-xs);
}

.data-callout .callout-context {
  font-size: 0.88rem;
  color: var(--color-gray-300);
  line-height: 1.5;
}

/* --- Stat Highlight Grid --- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
  margin: var(--space-xl) 0;
}

.stat-card {
  padding: var(--space-lg);
  background: var(--color-off-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-card .stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1.2;
}

.stat-card .stat-number.negative {
  color: var(--color-red);
}

.stat-card .stat-number.positive {
  color: var(--color-green);
}

.stat-card .stat-desc {
  font-size: 0.8rem;
  color: var(--color-gray-500);
  margin-top: var(--space-xs);
  line-height: 1.4;
}

/* --- Info Box --- */
.info-box {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-md);
  margin: var(--space-lg) 0;
  font-size: 0.92rem;
  line-height: 1.7;
}

.info-box.tip {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-left: 4px solid var(--color-green);
}

.info-box.warning {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-left: 4px solid var(--color-red);
}

.info-box.note {
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-left: 4px solid var(--color-blue);
}

.info-box strong {
  color: var(--color-navy);
}

/* --- Content Section (long-form) --- */
.content-section h2 {
  font-size: 1.5rem;
  padding-top: var(--space-xl);
  margin-top: var(--space-2xl);
  border-top: 1px solid var(--color-gray-200);
}

.content-section h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.content-section h3 {
  font-size: 1.15rem;
  color: var(--color-navy);
  margin-top: var(--space-xl);
  margin-bottom: var(--space-sm);
}

/* --- Mid-content CTA --- */
.mid-cta {
  padding: var(--space-xl) var(--space-2xl);
  background: linear-gradient(135deg, rgba(212, 168, 83, 0.08), rgba(212, 168, 83, 0.02));
  border: 1px solid rgba(212, 168, 83, 0.2);
  border-radius: var(--radius-lg);
  margin: var(--space-2xl) 0;
  text-align: center;
}

.mid-cta h3 {
  color: var(--color-navy);
  font-size: 1.15rem;
  margin-bottom: var(--space-sm);
  margin-top: 0 !important;
}

.mid-cta p {
  color: var(--color-gray-500);
  font-size: 0.9rem;
}

.mid-cta .btn {
  margin-top: var(--space-md);
  max-width: 300px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .hero {
    min-height: auto;
    padding: calc(var(--nav-height) + var(--space-3xl)) 0 var(--space-3xl);
  }

  .hero-content {
    text-align: center;
  }

  .hero-features {
    align-items: center;
    margin-bottom: var(--space-2xl);
  }

  .hero-features li {
    justify-content: center;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto var(--space-2xl);
  }

  .hero-stats {
    justify-content: center;
  }

  .form-card {
    max-width: 500px;
    margin: 0 auto;
  }

  .page-hero-inner {
    grid-template-columns: 1fr;
  }

  .toc-layout {
    grid-template-columns: 1fr;
  }

  .form-sidebar-layout {
    grid-template-columns: 1fr;
  }

  

  .toc-sidebar {
    display: none;
  }

  .toc-inline {
    display: block;
  }

  

  [style*="grid-template-columns: 2fr 1fr"] {
    display: block !important;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .steps-grid::before {
    display: none;
  }

  .comparison-table {
    grid-template-columns: 1fr;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }

  .nav-links {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .stats-bar-inner {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  .network-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-hero-stats {
    flex-wrap: wrap;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: var(--space-xl);
  }
}
20% { left: 200%; }
  100% { left: 200%; }
}

.btn-hero-phone:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 168, 83, 0.6);
  background: var(--color-gold-light);
}


/* ==============================================================
   SERVICE PAGE STRUCTURAL LAYOUT (DESKTOP & MOBILE)
   ============================================================== */
.service-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: var(--space-4xl);
    padding: var(--space-4xl) 1.5rem;
    align-items: stretch;
}

@media (max-width: 900px) {

    .service-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: var(--space-2xl) 1rem;
    }

}

/* Sticky Sidebar Fix */
.sticky-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    align-self: start;
}

/* Content Beautification Utilities */
.content-section section {
    margin-bottom: 5rem;
}

.highlight-box {
    background: linear-gradient(135deg, var(--color-navy), var(--color-navy-light));
    color: var(--color-white);
    padding: 2.5rem;
    border-radius: 16px;
    margin: 3rem 0;
    border-left: 5px solid var(--color-gold);
    box-shadow: var(--shadow-lg);
}

.highlight-box h4 {
    color: var(--color-gold);
    margin-top: 0;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.highlight-box .stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.stat-item .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-white);
    display: block;
    line-height: 1;
}

.stat-item .label {
    font-size: 0.9rem;
    color: var(--color-gray-400);
    margin-top: 0.5rem;
    display: block;
}

.comparison-card {
    background: var(--color-white);
    border: 1px solid var(--color-gray-200);
    border-radius: 16px;
    overflow: hidden;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
}

.comparison-card table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-card th {
    background: var(--color-navy);
    color: var(--color-white);
    padding: 1.5rem;
    text-align: left;
    font-weight: 600;
}

.comparison-card td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.95rem;
}

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

.comparison-card .check { color: var(--color-green); font-weight: bold; }
.comparison-card .cross { color: var(--color-red); font-weight: bold; }

.pro-tip {
    background: rgba(212, 168, 83, 0.05);
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem 2rem;
    border-radius: 0 12px 12px 0;
    margin: 2.5rem 0;
    font-style: italic;
}

.pro-tip strong {
    color: var(--color-navy);
    display: block;
    margin-bottom: 0.5rem;
    font-style: normal;
}

.content-image {
    width: 100%;
    border-radius: 16px;
    margin: 3.5rem 0;
    box-shadow: var(--shadow-lg);
}

.image-caption {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-gray-500);
    margin-top: -2.5rem;
    margin-bottom: 3.5rem;
    font-style: italic;
}

blockquote {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-navy);
    line-height: 1.4;
    margin: 4rem 0;
    padding-left: 2rem;
    border-left: 4px solid var(--color-gold);
    position: relative;
}

blockquote::before {
    content: '"';
    position: absolute;
    left: -1rem;
    top: -1rem;
    font-size: 5rem;
    color: var(--color-gold);
    opacity: 0.2;
    font-family: serif;
}

.toc-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.toc-header {
    border-bottom: 2px solid var(--color-gold);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.toc-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
}

.toc-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-gold);
    font-weight: bold;
}

.toc-list a {
    color: var(--color-navy);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

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