<?php
/**
 * AR Developer - Contact Inquiry Page
 * Saves directly into Firestore 'messages' collection
 */
require_once __DIR__ . '/config/auth.php';
requireAuthentication();

$pageTitle = 'Contact AR Developer | Start a Web or Software Project with ARaza';
$pageDescription = 'Initiate a project with AR Developer. Request a quote for custom website development, software engineering, mobile apps, or ecommerce solutions.';
$canonicalUrl = 'https://ardeveloper.online/contact.php';
$activeNav = 'contact';
require_once __DIR__ . '/includes/header.php';
?>

  <section class="hero-section" style="padding-bottom: 1.5rem;">
    <div class="container" style="text-align: center; max-width: 800px;">
      <span class="kicker">INQUIRY</span>
      <h1 class="hero-title" style="margin-bottom: 1.25rem;">Start a Project</h1>
      <p class="hero-desc">
        Have a technical challenge or a product concept? Fill out the brief below and ARaza will reach out within 24 hours.
      </p>
    </div>
  </section>

  <section style="padding-bottom: 6rem;">
    <div class="container">
      <div class="contact-grid">
        
        <!-- Contact Information & Channels -->
        <div class="contact-info-card">
          <div>
            <span class="kicker">DIRECT COMMUNICATION</span>
            <h2 style="font-size: 1.75rem; margin-bottom: 1rem;">Direct Engineering Access</h2>
            <p style="font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;">
              Every inquiry is reviewed personally by lead developer ARaza. We provide realistic feasibility estimates and straightforward milestone breakdowns.
            </p>
          </div>

          <div class="contact-method">
            <div class="contact-method-icon">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"/><polyline points="22,6 12,13 2,6"/></svg>
            </div>
            <div>
              <div style="font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600;">Email Directly</div>
              <a href="mailto:razaamil84@gmail.com" style="font-weight: 600; color: var(--text-primary); font-size: 1rem;">razaamil84@gmail.com</a>
            </div>
          </div>

          <div class="contact-method">
            <div class="contact-method-icon">
              <svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><path d="M12 2a14.5 14.5 0 000 20 14.5 14.5 0 000-20"/><path d="M2 12h20"/></svg>
            </div>
            <div>
              <div style="font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); font-weight: 600;">Website</div>
              <div style="font-weight: 600; color: var(--text-primary); font-size: 1rem;">https://ardeveloper.online</div>
            </div>
          </div>

          <div style="background: var(--bg-tertiary); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.5rem; margin-top: 1rem;">
            <div style="font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text-primary);">Response Commitment</div>
            <p style="font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; margin: 0;">
              All inquiries receive a comprehensive response covering architecture recommendations, timeline estimation, and transparent scope options.
            </p>
          </div>
        </div>

        <!-- Contact Form Card -->
        <div class="contact-form-card">
          <form id="contactForm" class="contact-form">
            <div class="form-row">
              <div class="form-group">
                <label class="form-label" for="contactName">Your Name *</label>
                <input type="text" id="contactName" name="name" class="form-input" placeholder="ARaza" required />
              </div>
              <div class="form-group">
                <label class="form-label" for="contactEmail">Email Address *</label>
                <input type="email" id="contactEmail" name="email" class="form-input" placeholder="name@example.com" required />
              </div>
            </div>

            <div class="form-row">
              <div class="form-group">
                <label class="form-label" for="contactPhone">Phone / WhatsApp (Optional)</label>
                <input type="tel" id="contactPhone" name="phone" class="form-input" placeholder="+1..." />
              </div>
              <div class="form-group">
                <label class="form-label" for="contactType">Project Type *</label>
                <select id="contactType" name="projectType" class="form-input" style="background: var(--bg-tertiary);">
                  <option value="Website">Website Development</option>
                  <option value="Software">Custom Software</option>
                  <option value="App">Mobile App (iOS/Android)</option>
                  <option value="Ecommerce">Ecommerce Platform</option>
                  <option value="Game">Game Development</option>
                  <option value="Other">Other Digital Solution</option>
                </select>
              </div>
            </div>

            <div class="form-group">
              <label class="form-label" for="contactBudget">Estimated Budget Range</label>
              <select id="contactBudget" name="budget" class="form-input" style="background: var(--bg-tertiary);">
                <option value="Flexible">Flexible / Discuss with Developer</option>
                <option value="$1,000 - $3,000">$1,000 - $3,000</option>
                <option value="$3,000 - $8,000">$3,000 - $8,000</option>
                <option value="$8,000 - $15,000">$8,000 - $15,000</option>
                <option value="$15,000+">$15,000+</option>
              </select>
            </div>

            <div class="form-group">
              <label class="form-label" for="contactMessage">Project Details & Objectives *</label>
              <textarea id="contactMessage" name="message" class="form-input" placeholder="Describe your product idea, key features, target timeline, or reference websites..." required></textarea>
            </div>

            <button type="submit" class="btn btn-primary" style="margin-top: 0.5rem; justify-content: center;">
              Send Project Inquiry
              <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M5 12h14M12 5l7 7-7 7"/></svg>
            </button>
          </form>
        </div>

      </div>
    </div>
  </section>

<?php require_once __DIR__ . '/includes/footer.php'; ?>
