<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Take Control of Your Tax Journey</title>
  <script src="https://cdn.tailwindcss.com"></script>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700;800&display=swap" rel="stylesheet">
  <script>
    tailwind.config = {
      theme: {
        extend: {
          fontFamily: {
            sans: ['"Plus Jakarta Sans"', 'sans-serif'],
            inter: ['"Inter"', 'sans-serif'],
          },
          colors: {
            brand: {
              50: '#f0fdfa',
              100: '#ccfbf1',
              500: '#14b8a6',
              600: '#0d9488',
              700: '#0f766e',
              900: '#134e4a',
            },
            accent: {
              gold: '#d97706',
              goldLight: '#fef3c7',
              navy: '#0f172a',
              slate: '#334155',
            }
          }
        }
      }
    }
  </script>
  <style>
    body {
      font-family: 'Plus Jakarta Sans', sans-serif;
    }
    .gradient-hero {
      background: linear-gradient(135deg, #0f172a 0%, #0f766e 100%);
    }
    .gradient-cta {
      background: linear-gradient(135deg, #0d9488 0%, #1e3a8a 100%);
    }
    .gold-border-glow:hover {
      border-color: #f59e0b;
      box-shadow: 0 10px 25px -5px rgba(217, 119, 6, 0.15);
    }
    /* Intake Form Header Background */
    .intake-header-bg {
      background: linear-gradient(135deg, #0a192f 0%, #0f172a 40%, #1e3a8a 80%, #2563eb 100%);
    }

    /* -------------------------------------------------------------
       CORRECTED OUTLINE TEXT STYLING
       Prevents stroke overlay from crossing inside the white fill
       ------------------------------------------------------------- */
    .clean-outline-title {
      position: relative;
      display: inline-block;
      color: #ffffff;
      font-weight: 800;
      letter-spacing: 0.08em;
      /* Precise outer shadow matrix prevents stroke bleed over inner text */
      text-shadow: 
        -1.5px -1.5px 0 #050c1a,  
         1.5px -1.5px 0 #050c1a,
        -1.5px  1.5px 0 #050c1a,
         1.5px  1.5px 0 #050c1a,
         0px    2px 5px rgba(0,0,0,0.6);
    }
  </style>
</head>

<body class="bg-slate-50 text-slate-800 antialiased min-h-screen flex flex-col justify-between">

  <div>
    <!-- Header / Hero Section -->
    <header class="gradient-hero text-white relative overflow-hidden rounded-b-3xl shadow-xl">
      <div class="absolute inset-0 opacity-10 bg-[radial-gradient(#fff_1px,transparent_1px)] [background-size:16px_16px]"></div>
      <div class="max-w-5xl mx-auto px-6 py-16 text-center relative z-10">
        <span class="inline-block px-4 py-1.5 bg-teal-500/20 text-teal-200 rounded-full text-xs font-semibold tracking-wide uppercase mb-4 border border-teal-400/30">
          Fresh Start Resolution Services
        </span>
        <h1 class="text-3xl sm:text-5xl font-extrabold tracking-wide mb-6 leading-tight bg-gray-900 text-white/85 p-4 inline-block rounded-lg">
          Take Control of Your Tax Journey
        </h1>
        <p class="text-lg sm:text-xl text-slate-200 max-w-2xl mx-auto font-normal leading-relaxed">
          Owing back taxes can feel overwhelming, but every tax situation has a clear, legal, and manageable path forward. We are here to guide you without judgment every step of the way.
        </p>
      </div>
    </header>

    <!-- Main Container -->
    <main class="max-w-5xl mx-auto px-6 py-12 space-y-16">

      <!-- Step-by-Step Interactive Resolution Pipeline -->
      <section>
        <div class="text-center mb-10">
          <h2 class="text-2xl sm:text-3xl font-bold text-slate-900">Your 4-Step Road Map to Freedom</h2>
          <p class="text-slate-600 mt-2 text-sm sm:text-base">Click any step to explore how we guide you from uncertainty to resolution.</p>
        </div>

        <!-- Pipeline Steps Grid -->
        <div class="grid grid-cols-1 md:grid-cols-4 gap-4 relative">
          
          <!-- Step 1 -->
          <div onclick="selectStep(1)" id="step-card-1" class="step-card cursor-pointer bg-white p-5 rounded-2xl border-2 border-teal-500 shadow-md transition-all duration-200 hover:-translate-y-1">
            <div class="flex items-center justify-between mb-3">
              <span id="step-badge-1" class="w-8 h-8 rounded-full bg-teal-600 text-white font-bold text-sm flex items-center justify-center">1</span>
              <span class="text-xs font-semibold text-teal-700 bg-teal-50 px-2 py-0.5 rounded">Intake</span>
            </div>
            <h3 class="font-bold text-slate-900 text-base mb-1">Assessment & Intake</h3>
            <p class="text-xs text-slate-500 leading-relaxed">Free confidential intake & transcript evaluation.</p>
          </div>

          <!-- Step 2 -->
          <div onclick="selectStep(2)" id="step-card-2" class="step-card cursor-pointer bg-white p-5 rounded-2xl border-2 border-slate-200 shadow-sm transition-all duration-200 hover:-translate-y-1">
            <div class="flex items-center justify-between mb-3">
              <span id="step-badge-2" class="w-8 h-8 rounded-full bg-slate-200 text-slate-700 font-bold text-sm flex items-center justify-center">2</span>
              <span class="text-xs font-semibold text-slate-600 bg-slate-100 px-2 py-0.5 rounded">Filing</span>
            </div>
            <h3 class="font-bold text-slate-900 text-base mb-1">Back Return Prep</h3>
            <p class="text-xs text-slate-500 leading-relaxed">Bringing all unfiled tax years into 100% compliance.</p>
          </div>

          <!-- Step 3 -->
          <div onclick="selectStep(3)" id="step-card-3" class="step-card cursor-pointer bg-white p-5 rounded-2xl border-2 border-slate-200 shadow-sm transition-all duration-200 hover:-translate-y-1">
            <div class="flex items-center justify-between mb-3">
              <span id="step-badge-3" class="w-8 h-8 rounded-full bg-slate-200 text-slate-700 font-bold text-sm flex items-center justify-center">3</span>
              <span class="text-xs font-semibold text-amber-700 bg-amber-50 px-2 py-0.5 rounded">Strategy</span>
            </div>
            <h3 class="font-bold text-slate-900 text-base mb-1">Settlement Strategy</h3>
            <p class="text-xs text-slate-500 leading-relaxed">Negotiating optimal payment or settlement terms.</p>
          </div>

          <!-- Step 4 -->
          <div onclick="selectStep(4)" id="step-card-4" class="step-card cursor-pointer bg-white p-5 rounded-2xl border-2 border-slate-200 shadow-sm transition-all duration-200 hover:-translate-y-1">
            <div class="flex items-center justify-between mb-3">
              <span id="step-badge-4" class="w-8 h-8 rounded-full bg-slate-200 text-slate-700 font-bold text-sm flex items-center justify-center">4</span>
              <span class="text-xs font-semibold text-emerald-700 bg-emerald-50 px-2 py-0.5 rounded">Freedom</span>
            </div>
            <h3 class="font-bold text-slate-900 text-base mb-1">Tax Peace of Mind</h3>
            <p class="text-xs text-slate-500 leading-relaxed">Final agreements executed & ongoing support.</p>
          </div>

        </div>

        <!-- Dynamic Step Detail View -->
        <div id="step-detail-container" class="mt-6 bg-white p-6 sm:p-8 rounded-2xl border border-slate-200 shadow-sm transition-all">
          <div class="flex items-start gap-4">
            <div class="p-3 bg-teal-100 text-teal-800 rounded-xl font-bold text-xl" id="detail-icon">
              🔍
            </div>
            <div>
              <h4 id="detail-title" class="text-lg font-bold text-slate-900">Step 1: Free Initial Assessment & Intake</h4>
              <p id="detail-desc" class="text-slate-600 text-sm sm:text-base mt-2 leading-relaxed">
                We pull your official IRS Wage & Income transcripts and analyze your total tax liability without triggering collection action. You get total transparency into what is owed and a stress-free evaluation of your available resolution options.
              </p>
            </div>
          </div>
        </div>
      </section>

      <!-- Service Options Breakdown Cards -->
      <section>
        <div class="text-center mb-10">
          <h2 class="text-2xl sm:text-3xl font-bold text-slate-900">Tailored Resolution Options</h2>
          <p class="text-slate-600 mt-2 text-sm sm:text-base">We identify the exact relief program you qualify for based on IRS guidelines.</p>
        </div>

        <div class="grid grid-cols-1 md:grid-cols-2 gap-6">

          <!-- Card 1 -->
          <div class="bg-white rounded-2xl p-6 sm:p-8 border border-slate-200 shadow-sm gold-border-glow transition-all duration-300 flex flex-col justify-between">
            <div>
              <div class="flex items-center justify-between mb-4">
                <span class="p-3 bg-teal-50 text-teal-600 rounded-xl text-xl font-bold">💳</span>
                <span class="text-xs font-bold text-teal-700 bg-teal-50 px-3 py-1 rounded-full uppercase tracking-wider">Most Popular</span>
              </div>
              <h3 class="text-xl font-bold text-slate-900 mb-2">Fresh Start / Installment Agreements</h3>
              <p class="text-slate-600 text-sm leading-relaxed mb-4">
                Convert a daunting total balance into affordable monthly payments designed to fit your real budget. Prevents bank levies and wage garnishments while keeping you compliant.
              </p>
            </div>
            <ul class="text-xs text-slate-500 space-y-2 border-t border-slate-100 pt-4">
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-teal-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Stops active collection threats immediately
              </li>
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-teal-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Flexible payment terms up to 72 months
              </li>
            </ul>
          </div>

          <!-- Card 2 -->
          <div class="bg-white rounded-2xl p-6 sm:p-8 border border-slate-200 shadow-sm gold-border-glow transition-all duration-300 flex flex-col justify-between">
            <div>
              <div class="flex items-center justify-between mb-4">
                <span class="p-3 bg-amber-50 text-amber-600 rounded-xl text-xl font-bold">🤝</span>
                <span class="text-xs font-bold text-amber-700 bg-amber-50 px-3 py-1 rounded-full uppercase tracking-wider">Maximum Relief</span>
              </div>
              <h3 class="text-xl font-bold text-slate-900 mb-2">Offer in Compromise (OIC)</h3>
              <p class="text-slate-600 text-sm leading-relaxed mb-4">
                Settle your back taxes for significantly less than the full amount owed if paying in full creates genuine financial hardship. We build airtight financial submissions.
              </p>
            </div>
            <ul class="text-xs text-slate-500 space-y-2 border-t border-slate-100 pt-4">
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Legally reduce total principal debt
              </li>
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-amber-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Complete fresh start with a zero tax balance
              </li>
            </ul>
          </div>

          <!-- Card 3 -->
          <div class="bg-white rounded-2xl p-6 sm:p-8 border border-slate-200 shadow-sm gold-border-glow transition-all duration-300 flex flex-col justify-between">
            <div>
              <div class="flex items-center justify-between mb-4">
                <span class="p-3 bg-blue-50 text-blue-600 rounded-xl text-xl font-bold">🛡️</span>
                <span class="text-xs font-bold text-blue-700 bg-blue-50 px-3 py-1 rounded-full uppercase tracking-wider">Hardship Shield</span>
              </div>
              <h3 class="text-xl font-bold text-slate-900 mb-2">Currently Not Collectible (CNC)</h3>
              <p class="text-slate-600 text-sm leading-relaxed mb-4">
                If paying taxes prevents you from covering essential living expenses, the IRS can temporarily pause all collection activity, levies, and garnishments.
              </p>
            </div>
            <ul class="text-xs text-slate-500 space-y-2 border-t border-slate-100 pt-4">
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Immediate pause on mandatory payments
              </li>
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-blue-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Protects wages, home, and bank accounts
              </li>
            </ul>
          </div>

          <!-- Card 4 -->
          <div class="bg-white rounded-2xl p-6 sm:p-8 border border-slate-200 shadow-sm gold-border-glow transition-all duration-300 flex flex-col justify-between">
            <div>
              <div class="flex items-center justify-between mb-4">
                <span class="p-3 bg-emerald-50 text-emerald-600 rounded-xl text-xl font-bold">✨</span>
                <span class="text-xs font-bold text-emerald-700 bg-emerald-50 px-3 py-1 rounded-full uppercase tracking-wider">Fee Removal</span>
              </div>
              <h3 class="text-xl font-bold text-slate-900 mb-2">Penalty Abatement</h3>
              <p class="text-slate-600 text-sm leading-relaxed mb-4">
                Remove accrued penalties and interest if unfiled returns or late payments were caused by medical emergencies, disasters, or a good historical filing record.
              </p>
            </div>
            <ul class="text-xs text-slate-500 space-y-2 border-t border-slate-100 pt-4">
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-emerald-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                First-Time Abatement (FTA) program access
              </li>
              <li class="flex items-center gap-2">
                <svg class="w-4 h-4 text-emerald-500" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
                Saves up to 25%+ of total outstanding balance
              </li>
            </ul>
          </div>

        </div>
      </section>

      <!-- Encouraging Call To Action Block -->
      <section class="gradient-cta rounded-3xl p-8 sm:p-12 text-center text-white shadow-2xl relative overflow-hidden">
        <div class="max-w-2xl mx-auto relative z-10">
          <h2 class="text-2xl sm:text-4xl font-extrabold mb-4 leading-tight">
            Ready to Take the First Step?
          </h2>
          <p class="text-teal-100 text-sm sm:text-base mb-8 leading-relaxed">
            The hardest part is behind you. Complete our 2-minute secure intake form to review your options with a certified tax professional.
          </p>
          <div class="flex flex-col sm:flex-row items-center justify-center gap-4">
            <button onclick="openIntakeModal()" class="w-full sm:w-auto px-8 py-4 bg-amber-500 hover:bg-amber-600 text-slate-900 font-extrabold rounded-xl shadow-lg transition-all transform hover:scale-105 active:scale-95 text-base">
              Start Free Assessment →
            </button>
          </div>
          <p class="text-xs text-teal-200 mt-4 opacity-80">
            🔒 Confidential & Secure • No Obligation • IRS Representation Ready
          </p>
        </div>
      </section>

    </main>
  </div>

  <!-- Footer -->
  <footer class="border-t border-slate-200 bg-white py-8 text-center text-xs text-slate-500 mt-12">
    <p>© Gennifer Goldy. All rights reserved.</p>
  </footer>

  <!-- INTAKE FORM POP-UP MODAL OVERLAY -->
  <div id="intakeModal" class="fixed inset-0 bg-slate-900/80 backdrop-blur-sm z-50 hidden items-center justify-center p-4 overflow-y-auto">
    
    <div class="relative w-full max-w-3xl bg-white rounded-2xl shadow-2xl overflow-hidden my-8 max-h-[90vh] flex flex-col font-inter">
      
      <!-- Close Button -->
      <button onclick="closeIntakeModal()" class="absolute top-4 right-4 z-20 text-white/80 hover:text-white bg-slate-900/40 hover:bg-slate-900/80 rounded-full w-9 h-9 flex items-center justify-center text-xl transition-all">
        &times;
      </button>

      <!-- Modal Scrollable Wrapper -->
      <div class="overflow-y-auto">
        
        <!-- Header Banner with Corrected Text Outline -->
        <div class="intake-header-bg p-8 text-center relative">
          <h2 class="text-2xl sm:text-3xl mb-2 clean-outline-title">Tax Readiness Assessment</h2>
          <p class="text-blue-100 italic text-sm mb-1">Your tax profile: complete this quick evaluation and prepare for preliminary compliance.</p>
          <p class="text-blue-200/90 text-xs font-light">Every tax situation has a clear, legal, and manageable path forward. Submit your request for guidance.</p>
        </div>

        <!-- Step Progress Indicator -->
        <div class="bg-slate-100 px-6 py-3 border-b border-slate-200 flex justify-between items-center text-xs font-semibold text-slate-500">
          <div class="flex items-center gap-2 text-blue-600">
            <span class="w-6 h-6 rounded-full bg-blue-600 text-white flex items-center justify-center text-xs font-bold">1</span> Contact Details
          </div>
          <div class="flex items-center gap-2 text-blue-600">
            <span class="w-6 h-6 rounded-full bg-blue-600 text-white flex items-center justify-center text-xs font-bold">2</span> Scope & Debt
          </div>
          <div class="flex items-center gap-2 text-blue-600">
            <span class="w-6 h-6 rounded-full bg-blue-600 text-white flex items-center justify-center text-xs font-bold">3</span> Representation
          </div>
        </div>

        <!-- Form Body -->
        <form id="intakeForm" onsubmit="submitIntakeForm(event)" class="p-6 sm:p-8 space-y-8">

          <!-- Section 1: Contact Details -->
          <div>
            <h3 class="text-sm font-bold uppercase tracking-wider text-blue-900 border-b-2 border-slate-100 pb-2 mb-4">1. Contact & Identification Details</h3>
            <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">First Name *</label>
                <input type="text" name="first_name" required placeholder="Jane" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Last Name *</label>
                <input type="text" name="last_name" required placeholder="Doe" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Email Address *</label>
                <input type="email" name="email" required placeholder="jane.doe@example.com" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Primary Phone *</label>
                <input type="tel" name="phone" required placeholder="(555) 000-0000" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
              </div>
              <div class="sm:col-span-2">
                <label class="block text-xs font-medium text-slate-700 mb-1">Preferred Contact Method</label>
                <select name="preferred_contact" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
                  <option value="email">Email</option>
                  <option value="phone">Phone Call</option>
                  <option value="sms">Text Message (SMS)</option>
                </select>
              </div>
            </div>
          </div>

          <!-- Section 2: Case Scope & Tax History -->
          <div>
            <h3 class="text-sm font-bold uppercase tracking-wider text-blue-900 border-b-2 border-slate-100 pb-2 mb-4">2. Tax Scope & Back-Tax Status</h3>
            <div class="grid grid-cols-1 sm:grid-cols-2 gap-4">
              <div class="sm:col-span-2">
                <label class="block text-xs font-medium text-slate-700 mb-1">Primary Tax Need *</label>
                <select name="primary_issue" required class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
                  <option value="" disabled selected>Select primary requirement...</option>
                  <option value="unfiled_returns">Unfiled Prior-Year Returns</option>
                  <option value="irs_notice">IRS / State Notice Received (CP2000, Balance Due)</option>
                  <option value="audit_representation">Audit & Examination Representation</option>
                  <option value="tax_debt">Tax Debt Resolution / Offer in Compromise</option>
                  <option value="complex_prep">Complex Individual & Business Tax Preparation</option>
                </select>
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Unfiled Tax Years</label>
                <select name="unfiled_years" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
                  <option value="none">None / All Filed</option>
                  <option value="1-2">1 to 2 Years</option>
                  <option value="3-5">3 to 5 Years</option>
                  <option value="6_plus">6+ Years</option>
                </select>
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Estimated Tax Debt / Liability</label>
                <select name="estimated_liability" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
                  <option value="under_10k">Under $10,000</option>
                  <option value="10k_50k">$10,000 - $50,000</option>
                  <option value="50k_100k">$50,000 - $100,000</option>
                  <option value="over_100k">$100,000+</option>
                  <option value="unknown">Unknown / Unsure</option>
                </select>
              </div>
              <div class="sm:col-span-2">
                <label class="block text-xs font-medium text-slate-700 mb-1">Brief Summary of Your Situation</label>
                <textarea name="case_summary" rows="3" placeholder="Provide details on IRS letters, missing W-2s/1099s, or specific deadlines..." class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50"></textarea>
              </div>
            </div>
          </div>

          <!-- Section 3: Evaluation & Referral Preferences -->
          <div>
            <h3 class="text-sm font-bold uppercase tracking-wider text-blue-900 border-b-2 border-slate-100 pb-2 mb-4">3. Evaluation & Referral Preferences</h3>
            <div class="space-y-4">
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-2">Do you currently have an active Power of Attorney (Form 2848) with another tax representative?</label>
                <div class="flex gap-6 text-sm">
                  <label class="flex items-center gap-2 cursor-pointer">
                    <input type="radio" name="existing_poa" value="no" checked class="accent-blue-600"> No
                  </label>
                  <label class="flex items-center gap-2 cursor-pointer">
                    <input type="radio" name="existing_poa" value="yes" class="accent-blue-600"> Yes
                  </label>
                  <label class="flex items-center gap-2 cursor-pointer">
                    <input type="radio" name="existing_poa" value="unsure" class="accent-blue-600"> Unsure
                  </label>
                </div>
              </div>
              <div>
                <label class="block text-xs font-medium text-slate-700 mb-1">Representation Preference</label>
                <select name="specialist_preference" class="w-full px-3 py-2 border border-slate-300 rounded-lg text-sm focus:outline-none focus:border-blue-600 focus:ring-2 focus:ring-blue-100 bg-slate-50">
                  <option value="any">First Available Qualified Specialist (CPA / EA)</option>
                  <option value="ea">Enrolled Agent (IRS Tax Resolution Specialist)</option>
                  <option value="cpa">Certified Public Accountant (CPA)</option>
                </select>
              </div>
            </div>
          </div>

          <!-- Section 4: Disclosure Consent (IRC 7216) -->
          <div class="bg-emerald-50 border border-emerald-200 rounded-xl p-4 text-xs text-emerald-900 leading-relaxed">
            <p class="mb-3">
              <strong>Consent to Disclosure & Document Readiness:</strong> In accordance with IRS Section 7216 regulations, by submitting this form you authorize our firm to gather initial tax background data, compile document readiness files, and securely transfer your case information to a qualified CPA or Enrolled Agent (EA) for full representation if higher-level authorization or specialized resolution is required.
            </p>
            <label class="flex items-start gap-2 cursor-pointer font-medium text-emerald-950">
              <input type="checkbox" name="consent_agreed" required class="mt-0.5 accent-emerald-600 w-4 h-4">
              <span>I agree to the disclosure consent terms and request a case review. *</span>
            </label>
          </div>

          <!-- Actions -->
          <div class="flex justify-end pt-2">
            <button type="submit" class="w-full sm:w-auto px-8 py-3 bg-gradient-to-r from-blue-600 to-blue-800 hover:from-blue-700 hover:to-blue-900 text-white font-bold rounded-lg shadow-md transition-all">
              Submit for Case Evaluation &rarr;
            </button>
          </div>

        </form>
      </div>

      <!-- Copyright Footer Inside Modal Container -->
      <div class="bg-slate-50 border-t border-slate-200 py-3 text-center text-xs text-slate-500 font-medium">
        &copy; Gennifer Goldy. All rights reserved.
      </div>

    </div>
  </div>

  <!-- Interactive JavaScript -->
  <script>
    const stepData = {
      1: {
        icon: "🔍",
        title: "Step 1: Free Initial Assessment & Intake",
        desc: "We pull your official IRS Wage & Income transcripts and analyze your total tax liability without triggering collection action. You get total transparency into what is owed and a stress-free evaluation of your available resolution options."
      },
      2: {
        icon: "📋",
        title: "Step 2: Compliance & Back Return Preparation",
        desc: "Before any tax settlement can be granted, all unfiled tax returns must be filed. Our team reconstructs missing records, claims every allowable credit and deduction, and prepares accurate returns to bring you into full IRS compliance."
      },
      3: {
        icon: "📊",
        title: "Step 3: Customized IRS Settlement & Payment Strategy",
        desc: "We match your financial profile with the optimal resolution strategy—whether negotiating an Installment Agreement, applying for an Offer in Compromise, or filing for Currently Not Collectible hardship status through credentialed tax pros."
      },
      4: {
        icon: "🕊️",
        title: "Step 4: Final Tax Freedom & Ongoing Peace of Mind",
        desc: "Once your agreement is executed, active IRS collection risks are eliminated. We provide you with ongoing advice to keep you in good standing so you can move forward with confidence and complete peace of mind."
      }
    };

    function selectStep(stepNum) {
      for (let i = 1; i <= 4; i++) {
        const card = document.getElementById(`step-card-${i}`);
        const badge = document.getElementById(`step-badge-${i}`);
        if (i === stepNum) {
          card.classList.remove('border-slate-200', 'shadow-sm');
          card.classList.add('border-teal-500', 'shadow-md');
          badge.classList.remove('bg-slate-200', 'text-slate-700');
          badge.classList.add('bg-teal-600', 'text-white');
        } else {
          card.classList.remove('border-teal-500', 'shadow-md');
          card.classList.add('border-slate-200', 'shadow-sm');
          badge.classList.remove('bg-teal-600', 'text-white');
          badge.classList.add('bg-slate-200', 'text-slate-700');
        }
      }

      const container = document.getElementById('step-detail-container');
      const data = stepData[stepNum];
      
      container.classList.add('opacity-0');
      setTimeout(() => {
        document.getElementById('detail-icon').innerText = data.icon;
        document.getElementById('detail-title').innerText = data.title;
        document.getElementById('detail-desc').innerText = data.desc;
        container.classList.remove('opacity-0');
      }, 150);
    }

    /* Modal Controls */
    function openIntakeModal() {
      const modal = document.getElementById('intakeModal');
      modal.classList.remove('hidden');
      modal.classList.add('flex');
      document.body.style.overflow = 'hidden'; // Lock background scroll
    }

    function closeIntakeModal() {
      const modal = document.getElementById('intakeModal');
      modal.classList.add('hidden');
      modal.classList.remove('flex');
      document.body.style.overflow = 'auto'; // Restore background scroll
    }

    /* Close Modal on Outside Backdrop Click */
    document.getElementById('intakeModal').addEventListener('click', function(e) {
      if (e.target === this) {
        closeIntakeModal();
      }
    });

    /* Form Handler (Connects to Python Backend or API Endpoint) */
    async function submitIntakeForm(event) {
      event.preventDefault();
      const formData = new FormData(event.target);
      const payload = Object.fromEntries(formData.entries());

      try {
        console.log("Submitting Intake Payload:", payload);
        alert("Thank you! Your assessment has been submitted successfully. A specialist will review your file shortly.");
        closeIntakeModal();
        event.target.reset();
      } catch (err) {
        alert("An error occurred submitting your request. Please try again.");
      }
    }
  </script>

</body>
</html>