'use client'; import React, { useState } from 'react'; import Link from 'next/link'; import PhoneInput from 'react-country-phone-input'; import 'react-country-phone-input/lib/style.css'; export function FooterAndContact() { const [formData, setFormData] = useState({ name: '', email: '', phone: '', message: '' }); const [status, setStatus] = useState<'idle' | 'loading' | 'success' | 'error'>('idle'); const handleSubmit = async (e: React.FormEvent) => { e.preventDefault(); setStatus('loading'); try { const res = await fetch('/api/contact', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(formData) }); if (res.ok) { setStatus('success'); setFormData({ name: '', email: '', phone: '', message: '' }); setTimeout(() => setStatus('idle'), 4000); } else { setStatus('error'); setTimeout(() => setStatus('idle'), 4000); } } catch { setStatus('error'); setTimeout(() => setStatus('idle'), 4000); } }; return (
{/* Premium Desktop CTA section */}
{/* Subtle background glow */}

Ready to Build Your G1?

Customize every detail. From intelligent locomotion to identity and purpose. Your enterprise-grade humanoid is just a few clicks away.

{ e.currentTarget.style.background = 'var(--color-gold)'; e.currentTarget.style.color = '#ffffff'; e.currentTarget.style.boxShadow = '0 0 30px rgba(196, 162, 101, 0.4)'; e.currentTarget.style.transform = 'translateY(-2px)'; }} onMouseOut={(e) => { e.currentTarget.style.background = 'transparent'; e.currentTarget.style.color = 'var(--color-gold)'; e.currentTarget.style.boxShadow = 'none'; e.currentTarget.style.transform = 'translateY(0)'; }} > Configure Your G1
{/* Contact Section */}
{/* Contact Info */}

Connect With Us

Start your
Robotics Journey

Whether you are looking to integrate the G1 into your enterprise workflows or have questions about custom developments, our team in the UAE is here to help.

{/* Contact Form */}
{status === 'success' && (
Thank you! Your message has been sent successfully.
)} {status === 'error' && (
An error occurred. Please try again.
)}
setFormData({...formData, name: e.target.value})} style={{ width: '100%', padding: '1rem 0', border: 'none', borderBottom: '1px solid rgba(255,255,255,0.1)', fontSize: '1rem', background: 'transparent', color: '#ffffff', outline: 'none', transition: 'border-color 0.3s', boxSizing: 'border-box' }} onFocus={(e) => e.target.style.borderBottom = '1px solid var(--color-gold)'} onBlur={(e) => e.target.style.borderBottom = '1px solid rgba(255,255,255,0.1)'} />
setFormData({...formData, email: e.target.value})} style={{ width: '100%', padding: '1rem 0', border: 'none', borderBottom: '1px solid rgba(255,255,255,0.1)', fontSize: '1rem', background: 'transparent', color: '#ffffff', outline: 'none', transition: 'border-color 0.3s', boxSizing: 'border-box' }} onFocus={(e) => e.target.style.borderBottom = '1px solid var(--color-gold)'} onBlur={(e) => e.target.style.borderBottom = '1px solid rgba(255,255,255,0.1)'} />
{/* Mobile Number with Country Code */}
setFormData({...formData, phone})} containerStyle={{ width: '100%' }} inputStyle={{ width: '100%', padding: '1rem 0 1rem 3.5rem', border: 'none', borderBottom: '1px solid rgba(255,255,255,0.1)', fontSize: '1rem', background: 'transparent', color: '#ffffff', outline: 'none', transition: 'border-color 0.3s', boxSizing: 'border-box' }} buttonStyle={{ background: 'transparent', border: 'none', borderBottom: '1px solid rgba(255,255,255,0.1)', padding: '0 0.5rem', }} dropdownStyle={{ background: '#11111a', color: '#fff', border: '1px solid rgba(255,255,255,0.1)' }} />