<?php $attributes ??= new \Illuminate\View\ComponentAttributeBag;

$__newAttributes = [];
$__propNames = \Illuminate\View\ComponentAttributeBag::extractPropNames((['contact', 'locale']));

foreach ($attributes->all() as $__key => $__value) {
    if (in_array($__key, $__propNames)) {
        $$__key = $$__key ?? $__value;
    } else {
        $__newAttributes[$__key] = $__value;
    }
}

$attributes = new \Illuminate\View\ComponentAttributeBag($__newAttributes);

unset($__propNames);
unset($__newAttributes);

foreach (array_filter((['contact', 'locale']), 'is_string', ARRAY_FILTER_USE_KEY) as $__key => $__value) {
    $$__key = $$__key ?? $__value;
}

$__defined_vars = get_defined_vars();

foreach ($attributes->all() as $__key => $__value) {
    if (array_key_exists($__key, $__defined_vars)) unset($$__key);
}

unset($__defined_vars, $__key, $__value); ?>

<section id="contact" class="relative overflow-hidden py-12 md:py-20">
    <div aria-hidden="true" class="pointer-events-none absolute inset-0 opacity-70" style="background: radial-gradient(ellipse at bottom, oklch(0.32 0.06 235 / 0.7), transparent 70%);"></div>
    <div class="relative mx-auto grid max-w-7xl grid-cols-1 gap-12 px-6 lg:grid-cols-[0.95fr_1.05fr]">
        <div>
            <div class="reveal section-eyebrow"><?php echo e(app()->getLocale() === 'en' ? 'Contact' : 'Contact'); ?></div>
            <h2 class="reveal display-title mt-4" data-delay="0.1"><?php echo $contact->tradEm('title'); ?></h2>
            <p class="reveal mt-6 max-w-md text-cream/70" data-delay="0.2"><?php echo e($contact->trad('intro')); ?></p>

            <div class="mt-10 space-y-3">
                <a href="mailto:<?php echo e($contact->ctc_email); ?>" class="reveal glass gold-border group flex items-center gap-4 rounded-2xl p-4 transition-transform duration-300 hover:translate-x-1">
                    <div class="grid h-11 w-11 place-items-center rounded-xl border border-gold/25 bg-gold/5 text-gold transition-colors duration-500 group-hover:bg-gold/15">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect width="20" height="16" x="2" y="4" rx="2"/><path d="m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"/></svg>
                    </div>
                    <div><div class="text-[10px] uppercase tracking-[0.22em] text-cream/50">Email</div><div class="text-sm text-cream"><?php echo e($contact->ctc_email); ?></div></div>
                </a>
                <a href="<?php echo e($contact->ctc_whatsapp_url); ?>" target="_blank" rel="noreferrer" class="reveal glass gold-border group flex items-center gap-4 rounded-2xl p-4 transition-transform duration-300 hover:translate-x-1" data-delay="0.08">
                    <div class="grid h-11 w-11 place-items-center rounded-xl border border-gold/25 bg-gold/5 text-gold transition-colors duration-500 group-hover:bg-gold/15">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M7.9 20A9 9 0 1 0 4 16.1L2 22Z"/></svg>
                    </div>
                    <div><div class="text-[10px] uppercase tracking-[0.22em] text-cream/50">WhatsApp</div><div class="text-sm text-cream"><?php echo e($contact->ctc_whatsapp); ?></div></div>
                </a>
                <div class="reveal glass gold-border group flex items-center gap-4 rounded-2xl p-4" data-delay="0.16">
                    <div class="grid h-11 w-11 place-items-center rounded-xl border border-gold/25 bg-gold/5 text-gold">
                        <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z"/><circle cx="12" cy="10" r="3"/></svg>
                    </div>
                    <div><div class="text-[10px] uppercase tracking-[0.22em] text-cream/50"><?php echo e(app()->getLocale() === 'en' ? 'Location' : 'Localisation'); ?></div><div class="text-sm text-cream"><?php echo e($contact->trad('localisation')); ?></div></div>
                </div>
            </div>

            <div class="reveal glass-strong mt-8 rounded-2xl border border-gold/20 p-6" data-delay="0.3">
                <div class="font-serif text-lg text-cream"><?php echo e($contact->trad('call_label')); ?></div>
                <p class="mt-2 text-sm text-cream/65"><?php echo e($contact->trad('call_texte')); ?></p>
                <a href="https://calendly.com/catherine-obvious-way/30min" target="_blank" rel="noopener" class="mt-4 inline-flex btn-ghost-gold"><?php echo e(app()->getLocale() === 'en' ? 'Book a call' : 'Réserver un appel'); ?></a>
            </div>
        </div>

        <div class="reveal" data-delay="0.15">
            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if(session('contact_success')): ?>
                <div class="glass-strong gold-border rounded-3xl p-8 text-center">
                    <svg width="40" height="40" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" class="mx-auto mb-4 text-gold"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"/><polyline points="22 4 12 14.01 9 11.01"/></svg>
                    <p class="font-serif text-xl text-cream"><?php echo e(app()->getLocale() === 'en' ? 'Message received — we will get back to you within 24h.' : 'Message bien reçu — nous revenons vers vous sous 24h.'); ?></p>
                </div>
            <?php else: ?>
                <form id="contact-form" method="POST" action="<?php echo e(route('contact.store', ['locale' => $locale])); ?>" class="glass-strong gold-border relative overflow-hidden rounded-3xl p-8">
                    <?php echo csrf_field(); ?>
                    
                    <input type="text" name="site_web" tabindex="-1" autocomplete="off" class="absolute -left-[9999px]" aria-hidden="true" />

                    <div class="mb-6 font-serif text-2xl text-cream"><?php echo e(app()->getLocale() === 'en' ? 'Send a message' : 'Envoyer un message'); ?></div>

                    <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php if($errors->any()): ?>
                        <div class="mb-4 rounded-xl border border-red-400/40 bg-red-400/10 p-4 text-sm text-red-200">
                            <ul class="list-inside list-disc space-y-1">
                                <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $errors->all(); $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $error): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <li><?php echo e($error); ?></li>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                            </ul>
                        </div>
                    <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>

                    <div class="grid grid-cols-1 gap-4 md:grid-cols-2">
                        <div>
                            <label for="sub_prenom" class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60"><?php echo e(app()->getLocale() === 'en' ? 'First name *' : 'Prénom *'); ?></label>
                            <input id="sub_prenom" name="sub_prenom" type="text" required value="<?php echo e(old('sub_prenom')); ?>" placeholder="Marie" class="w-full rounded-xl border border-cream/10 bg-navy-deep/60 px-4 py-3 text-sm text-cream placeholder:text-cream/40 focus:border-gold focus:outline-none focus:ring-2 focus:ring-gold/30" />
                        </div>
                        <div>
                            <label for="sub_nom" class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60"><?php echo e(app()->getLocale() === 'en' ? 'Last name *' : 'Nom *'); ?></label>
                            <input id="sub_nom" name="sub_nom" type="text" required value="<?php echo e(old('sub_nom')); ?>" placeholder="Dupont" class="w-full rounded-xl border border-cream/10 bg-navy-deep/60 px-4 py-3 text-sm text-cream placeholder:text-cream/40 focus:border-gold focus:outline-none focus:ring-2 focus:ring-gold/30" />
                        </div>
                    </div>
                    <div class="mt-4">
                        <label for="sub_email" class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60">Email *</label>
                        <input id="sub_email" name="sub_email" type="email" required value="<?php echo e(old('sub_email')); ?>" placeholder="marie@example.com" class="w-full rounded-xl border border-cream/10 bg-navy-deep/60 px-4 py-3 text-sm text-cream placeholder:text-cream/40 focus:border-gold focus:outline-none focus:ring-2 focus:ring-gold/30" />
                    </div>
                    <div class="mt-4">
                        <label for="sub_tel" class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60"><?php echo e(app()->getLocale() === 'en' ? 'Phone / WhatsApp' : 'Téléphone / WhatsApp'); ?></label>
                        <input id="sub_tel" name="sub_tel" type="tel" value="<?php echo e(old('sub_tel')); ?>" placeholder="+33 6 12 34 56 78" class="w-full rounded-xl border border-cream/10 bg-navy-deep/60 px-4 py-3 text-sm text-cream placeholder:text-cream/40 focus:border-gold focus:outline-none focus:ring-2 focus:ring-gold/30" />
                    </div>

                    <div class="mt-4">
                        <span class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60"><?php echo e(app()->getLocale() === 'en' ? 'Your profile *' : 'Votre profil *'); ?></span>
                        <div class="grid grid-cols-2 gap-2">
                            <?php
                                $profils = app()->getLocale() === 'en'
                                    ? ['Entrepreneur', 'Investor', 'Business owner', 'Institution / NGO']
                                    : ['Entrepreneur', 'Investisseur', "Dirigeant d'entreprise", 'Institution / ONG'];
                            ?>
                            <?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if BLOCK]><![endif]--><?php endif; ?><?php $__currentLoopData = $profils; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $profil): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                <label class="group flex cursor-pointer items-center gap-2 rounded-xl border border-cream/10 bg-navy-deep/60 px-3 py-2.5 text-xs text-cream/80 transition-colors has-[:checked]:border-gold has-[:checked]:bg-gold/10 has-[:checked]:text-gold hover:border-gold/40">
                                    <input type="radio" name="sub_profil" value="<?php echo e($profil); ?>" class="accent-gold" <?php if(old('sub_profil') === $profil): echo 'checked'; endif; ?> /> <?php echo e($profil); ?>

                                </label>
                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
                        </div>
                    </div>

                    <div class="mt-4">
                        <label for="sub_projet" class="mb-2 block text-[11px] uppercase tracking-[0.18em] text-cream/60"><?php echo e(app()->getLocale() === 'en' ? 'Your project *' : 'Votre projet *'); ?></label>
                        <textarea id="sub_projet" name="sub_projet" rows="4" required placeholder="<?php echo e(app()->getLocale() === 'en' ? 'Briefly describe your project or question…' : 'Décrivez brièvement votre projet ou votre question…'); ?>" class="w-full rounded-xl border border-cream/10 bg-navy-deep/60 px-4 py-3 text-sm text-cream placeholder:text-cream/40 focus:border-gold focus:outline-none focus:ring-2 focus:ring-gold/30"><?php echo e(old('sub_projet')); ?></textarea>
                    </div>

                    <button id="submit-btn" type="submit" class="shimmer btn-primary-gold group mt-6 w-full">
                        <?php echo e(app()->getLocale() === 'en' ? 'Send my request' : 'Envoyer ma demande'); ?>

                        <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="transition-transform duration-500 group-hover:translate-x-0.5"><line x1="22" y1="2" x2="11" y2="13"/><polygon points="22 2 15 22 11 13 2 9 22 2"/></svg>
                    </button>
                    <p class="mt-3 text-center text-[11px] text-cream/50"><?php echo e($contact->trad('rgpd')); ?></p>
                </form>
            <?php endif; ?><?php if(\Livewire\Mechanisms\ExtendBlade\ExtendBlade::isRenderingLivewireComponent()): ?><!--[if ENDBLOCK]><![endif]--><?php endif; ?>
        </div>
    </div>
</section>
<?php /**PATH D:\Manao_Client\Guichet\obvious_way\resources\views/components/contact.blade.php ENDPATH**/ ?>