<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-XF5N3L5Y9W">
</script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'G-XF5N3L5Y9W');
</script>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Fair Cash Offers - Get Your Fast Cash Offer</title>
    <!-- Load Tailwind CSS -->
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        /* Custom font for a modern, trustworthy look */
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');
        body {
            font-family: 'Inter', sans-serif;
            background-color: #f7f9fb; /* Light background */
        }
        /* Custom utility classes if needed, though Tailwind should suffice */
        .form-input {
            @apply w-full p-3 border border-gray-300 rounded-lg focus:ring-4 focus:ring-blue-100 focus:border-blue-500 transition duration-150;
        }
        /* Style for the custom select arrow positioning */
        .select-wrapper {
             position: relative;
        }
        .select-wrapper .form-input {
            padding-right: 2.5rem; /* Space for the custom arrow */
        }
        .select-wrapper .custom-arrow {
            position: absolute;
            top: 50%;
            right: 0.75rem;
            transform: translateY(-50%);
            pointer-events: none;
        }
    </style>
</head>
<body class="min-h-screen flex items-center justify-center p-4">

    <!-- Main Container Card -->
    <main class="w-full max-w-lg bg-white rounded-xl shadow-2xl overflow-hidden md:p-10 p-6">
        
        <!-- Brand Name/Logo -->
        <div class="text-center mb-6">
            <h2 class="text-2xl font-extrabold text-indigo-600 tracking-wider uppercase">
                Fair Cash Offers
            </h2>
        </div>

        <!-- Header & Value Proposition -->
        <header class="text-center mb-8">
            <!-- UPDATED HEADLINE for maximum motivation -->
            <h1 class="text-4xl md:text-5xl font-extrabold text-gray-900 leading-tight">
                Get Your <span class="text-indigo-600">Guaranteed Top-Dollar Cash Offer</span> in 24 Hours.
            </h1>
            <p class="mt-3 text-xl text-gray-600 font-medium">
                Sell your house on your timeline, without fees or repairs.
            </p>
        </header>

        <!-- Form Section -->
        <section id="offer-form-section">
            <div id="loading-indicator" class="hidden text-center py-8">
                <div class="animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600 mx-auto"></div>
                <p class="mt-4 text-indigo-600 font-semibold">Calculating your property value...</p>
            </div>
            
            <form id="leadForm" class="space-y-6">
                
                <!-- Step 1: Property Address -->
                <div>
                    <label for="address" class="block text-sm font-bold text-gray-700 mb-2">1. What is the property address?</label>
                    <input type="text" id="address" name="address" required 
                           class="form-input" 
                           placeholder="123 Main St, Anytown, CA 90210">
                </div>
                
                <!-- Step 2: Property Condition -->
                <div>
                    <label for="condition" class="block text-sm font-bold text-gray-700 mb-2">2. Briefly describe the property condition and needs:</label>
                    <textarea id="condition" name="condition" rows="3" required 
                              class="form-input resize-none" 
                              placeholder="e.g., Needs new roof, kitchen update, structural damage, or move-in ready."></textarea>
                </div>

                <!-- Step 3: Contact Details Group -->
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <div>
                        <label for="name" class="block text-sm font-bold text-gray-700 mb-2">3. Your Full Name</label>
                        <input type="text" id="name" name="name" required class="form-input" placeholder="John Doe">
                    </div>
                    <div>
                        <label for="phone" class="block text-sm font-bold text-gray-700 mb-2">4. Best Phone Number</label>
                        <input type="tel" id="phone" name="phone" required 
                               pattern="[0-9]{3}[0-9]{3}[0-9]{4}" 
                               class="form-input" 
                               placeholder="e.g., 5551234567">
                    </div>
                </div>

                <!-- Step 4: Email & Timeline -->
                <div class="grid grid-cols-1 md:grid-cols-2 gap-4">
                    <div>
                        <label for="email" class="block text-sm font-bold text-gray-700 mb-2">5. Email Address</label>
                        <input type="email" id="email" name="email" required class="form-input" placeholder="john@example.com">
                    </div>
                    <div class="select-wrapper">
                        <label for="timeline" class="block text-sm font-bold text-gray-700 mb-2">6. Desired Closing Timeline</label>
                        <select id="timeline" name="timeline" required class="form-input appearance-none bg-white">
                            <option value="">Select an option</option>
                            <option value="Immediate (<14 Days)">As fast as possible (< 14 Days)</option>
                            <option value="30-45 Days">30 - 45 Days</option>
                            <option value="60+ Days">Flexible (60+ Days)</option>
                            <option value="Just curious">Just curious about the offer</option>
                        </select>
                        <!-- Custom arrow icon using inline SVG for aesthetics -->
                        <div class="custom-arrow">
                             <svg class="fill-current h-4 w-4 text-gray-700" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l-.707.707L13.5 18l4.95-4.95-.707-.707L13.5 16.596z"/></svg>
                        </div>
                    </div>
                </div>

                <!-- Submit Button -->
                <button type="submit" 
                        class="w-full py-4 mt-4 text-lg font-bold text-white bg-red-600 hover:bg-red-700 rounded-lg shadow-lg transition duration-200 transform hover:scale-[1.01] focus:outline-none focus:ring-4 focus:ring-red-300">
                    Get My Guaranteed Cash Offer
                </button>
            </form>

            <!-- Thank You Message (Hidden initially) -->
            <div id="thankYouMessage" class="hidden text-center p-8 bg-green-50 rounded-lg border border-green-200 mt-6">
                <h3 class="text-3xl font-bold text-green-700 mb-2">Offer Request Submitted!</h3>
                <p class="text-gray-600">
                    Thank you. We are reviewing your details now and will contact you with your **Guaranteed Top-Dollar Cash Offer** within 24 hours.
                </p>
            </div>
            
        </section>
        
        <!-- Footer / Trust Badges -->
        <footer class="mt-8 pt-6 border-t border-gray-100 text-center text-sm text-gray-500">
            <p>&copy; 2024 Fair Cash Offers. All rights reserved.</p>
            <div class="mt-2 flex justify-center space-x-4">
                <span class="inline-flex items-center space-x-1">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-green-500" viewBox="0 0 20 20" fill="currentColor">
                        <path fill-rule="evenodd" d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z" clip-rule="evenodd" />
                    </svg>
                    <span>No Fees or Commissions</span>
                </span>
                <span class="inline-flex items-center space-x-1">
                    <svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5 text-green-500" viewBox="0 0 20 20" fill="currentColor">
                        <path d="M5 3a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2V5a2 2 0 00-2-2H5zM5 11a2 2 0 00-2 2v2a2 2 0 002 2h2a2 2 0 002-2v-2a2 2 0 00-2-2H5zM11 5a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2V5zM11 13a2 2 0 012-2h2a2 2 0 012 2v2a2 2 0 01-2 2h-2a2 2 0 01-2-2v-2z" />
                    </svg>
                    <span>Close When You're Ready</span>
                </span>
            </div>
        </footer>

    </main>

    <script>
        document.getElementById('leadForm').addEventListener('submit', function(event) {
            event.preventDefault();
            
            const form = event.target;
            const formData = new FormData(form);
            const data = Object.fromEntries(formData.entries());

       