<!DOCTYPE html>
<html lang="nl">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{{.Title}}</title>
    <link rel="stylesheet" href="/static/style.css">
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
</head>
<body>
    {{template "header" .}}

    <main>
        <section class="contact-hero">
            <div class="container">
                <h1>Neem Contact Op</h1>
                <p>Heeft u vragen over Linux migratie? Wij helpen u graag verder!</p>
            </div>
        </section>

        <section class="contact-content">
            <div class="container">
                <div class="contact-grid">
                    <div class="contact-info">
                        <h2>Contactgegevens</h2>
                        <div class="contact-item">
                            <div class="contact-icon">📍</div>
                            <div>
                                <h3>Adres</h3>
                                <p>{{.Street}}</p>
                                <p>{{.PostalCode}} {{.Village}}</p>
                            </div>
                        </div>
                        <div class="contact-item">
                            <div class="contact-icon">📧</div>
                            <div>
                                <h3>Email</h3>
                                <p><a href="mailto:{{.Email}}">{{.Email}}</a></p>
                            </div>
                        </div>
                        <div class="contact-item">
                            <div class="contact-icon">📞</div>
                            <div>
                                <h3>Telefoon</h3>
                                <p><a href="tel:{{.Phone}}">{{.Phone}}</a></p>
                            </div>
                        </div>
                        <div class="contact-item">
                            <div class="contact-icon">🏢</div>
                            <div>
                                <h3>KvK Nummer</h3>
                                <p>{{.KVK}}</p>
                            </div>
                        </div>
                        
                        <div class="contact-hours">
                            <h3>Openingstijden</h3>
                            <p>Maandag - Vrijdag: 09:00 - 17:00 (Op afspraak)</p>
                            <p>Weekend: Op afspraak</p>
                        </div>
                    </div>

                    <div class="contact-form">
                        <h2>Stuur een bericht</h2>
                        
                        {{if .ErrorMessage}}
                        <div class="alert alert-error">
                            <strong>❌ Fout:</strong> {{.ErrorMessage}}
                        </div>
                        {{end}}
                        
                        {{if .SuccessMessage}}
                        <div class="alert alert-success">
                            <strong>✅ Gelukt:</strong> {{.SuccessMessage}}
                        </div>
                        {{end}}
                        
                        <form action="/contact" method="POST">
                            <div class="form-group">
                                <label for="name">Naam *</label>
                                <input type="text" id="name" name="name" value="{{.FormData.Name}}" required>
                            </div>
                            
                            <div class="form-group">
                                <label for="email">Email *</label>
                                <input type="email" id="email" name="email" value="{{.FormData.Email}}" required>
                            </div>
                            
                            <div class="form-group">
                                <label for="phone">Telefoon</label>
                                <input type="tel" id="phone" name="phone" value="{{.FormData.Phone}}">
                            </div>
                            
                            <div class="form-group">
                                <label for="computer">Huidige computer</label>
                                <input type="text" id="computer" name="computer" value="{{.FormData.Computer}}" placeholder="Bijv. Dell Inspiron 2015, HP Pavilion 2018">
                            </div>
                            
                            <div class="form-group">
                                <label for="service">Gewenste service</label>
                                <select id="service" name="service">
                                    <option value="">Selecteer een optie</option>
                                    <option value="advice" {{if eq .FormData.Service "advice"}}selected{{end}}>Gratis advies</option>
                                    <option value="installation" {{if eq .FormData.Service "installation"}}selected{{end}}>Linux installatie</option>
                                    <option value="migration" {{if eq .FormData.Service "migration"}}selected{{end}}>Data migratie</option>
                                    <option value="training" {{if eq .FormData.Service "training"}}selected{{end}}>Training & ondersteuning</option>
                                    <option value="other" {{if eq .FormData.Service "other"}}selected{{end}}>Anders</option>
                                </select>
                            </div>
                            
                            <div class="form-group">
                                <label for="message">Bericht *</label>
                                <textarea id="message" name="message" rows="5" required placeholder="Vertel ons over uw situatie en hoe wij u kunnen helpen...">{{.FormData.Message}}</textarea>
                            </div>
                            
                            <button type="submit" class="btn btn-primary">Verstuur bericht</button>
                        </form>
                    </div>
                </div>
            </div>
        </section>

        <section class="contact-cta">
            <div class="container">
                <h2>Waarom kiezen voor {{.CompanyName}}?</h2>
                <div class="cta-benefits">
                    <div class="cta-benefit">
                        <div class="benefit-icon">🎯</div>
                        <h3>Persoonlijke aanpak</h3>
                        <p>Elke klant is uniek, en wij bieden maatwerkoplossingen.</p>
                    </div>
                    <div class="cta-benefit">
                        <div class="benefit-icon">🛠️</div>
                        <h3>Professionele service</h3>
                        <p>Ruim 20 jaar ervaring met Linux systemen en migraties.</p>
                    </div>
                    <div class="cta-benefit">
                        <div class="benefit-icon">🤝</div>
                        <h3>Volledige ondersteuning</h3>
                        <p>Van installatie tot training, wij begeleiden u door het hele proces.</p>
                    </div>
                    <div class="cta-benefit">
                        <div class="benefit-icon">💚</div>
                        <h3>Duurzame keuze</h3>
                        <p>Samen bouwen we aan een duurzamere digitale toekomst.</p>
                    </div>
                </div>
            </div>
        </section>
    </main>

    {{template "footer" .}}

    <script>
        function toggleMobileMenu() {
            const mobileMenu = document.getElementById('mobile-menu');
            mobileMenu.classList.toggle('active');
        }

        // Close mobile menu when clicking outside
        document.addEventListener('click', function(event) {
            const mobileMenu = document.getElementById('mobile-menu');
            const menuToggle = document.querySelector('.mobile-menu-toggle');
            
            if (!mobileMenu.contains(event.target) && !menuToggle.contains(event.target)) {
                mobileMenu.classList.remove('active');
            }
        });

        // Close mobile menu when clicking on a link
        document.querySelectorAll('.mobile-menu a').forEach(link => {
            link.addEventListener('click', function() {
                document.getElementById('mobile-menu').classList.remove('active');
            });
        });
    </script>
</body>
</html> 