<?php
$page_title = "Book Free Demo & Onboarding Call | MyEduNest School ERP";
$page_desc = "Schedule a free live demo and onboarding consultation for your school. Contact Antisoft India Technologies at +91 62399 43211 or contact@antisoftindia.com for seamless school ERP setup.";
$page_keywords = "School ERP Demo, Contact MyEduNest, Antisoft India Technologies School Software, School Management System Consultation, School ERP Support Punjab India";
require_once __DIR__ . '/includes/header.php';

$selected_plan = $_GET['plan'] ?? '';
$wa_phone_clean = preg_replace('/[^0-9]/', '', $contact_phone ?? '916239943211');
?>

<header class="hero">
  <div class="hero-inner">
    <span class="eyebrow">Direct Technical Desk</span>
    <h1>Connect With the MyEduNest Onboarding Team</h1>
    <p class="hero-copy">Schedule a 15-minute live screen demo, ask questions about Excel data migration, or discuss custom branded school mobile app packages.</p>
  </div>
</header>

<main>
  <!-- Contact Quick Cards -->
  <section class="band light">
    <div class="section-inner">
      <div class="contact-grid">
        <article class="contact-card">
          <div class="contact-card-top">
            <svg class="ui-icon icon-primary" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"/></svg>
            <strong>Call Support</strong>
          </div>
          <a href="tel:<?php echo htmlspecialchars($contact_phone, ENT_QUOTES, 'UTF-8'); ?>" class="contact-val"><?php echo htmlspecialchars($contact_phone_display, ENT_QUOTES, 'UTF-8'); ?></a>
          <span>Direct phone line for principals &amp; school admins.</span>
        </article>

        <article class="contact-card">
          <div class="contact-card-top">
            <svg class="ui-icon icon-emerald" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M3 21l1.65-3.8a9 9 0 1 1 3.4 2.9L3 21"/><path d="M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1"/></svg>
            <strong>WhatsApp Desk</strong>
          </div>
          <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20want%20to%20schedule%20a%20demo" target="_blank" rel="noopener noreferrer" class="contact-val" style="color: #15803D;">WhatsApp Chat</a>
          <span>Instant replies, quotations &amp; brochure PDFs.</span>
        </article>

        <article class="contact-card">
          <div class="contact-card-top">
            <svg class="ui-icon icon-primary" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" 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>
            <strong>Corporate Email</strong>
          </div>
          <a href="mailto:<?php echo htmlspecialchars($contact_email, ENT_QUOTES, 'UTF-8'); ?>" class="contact-val" style="font-size: 0.95rem; word-break: break-all;"><?php echo htmlspecialchars($contact_email, ENT_QUOTES, 'UTF-8'); ?></a>
          <span>Send RFPs, official requirements &amp; queries.</span>
        </article>

        <article class="contact-card">
          <div class="contact-card-top">
            <svg class="ui-icon icon-primary" xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/></svg>
            <strong>Mobile App</strong>
          </div>
          <div class="contact-val" style="font-size: 0.95rem;">Live on Store</div>
          <a href="<?php echo htmlspecialchars($play_store_url, ENT_QUOTES, 'UTF-8'); ?>" target="_blank" rel="noopener" class="button royal" style="min-height: 38px; padding: 6px 12px; font-size: 0.82rem; margin-top: 4px;">View on Play Store</a>
        </article>
      </div>
    </div>
  </section>

  <!-- WhatsApp Instant Connect Card -->
  <section class="band subtle">
    <div class="section-inner">
      <div class="section-heading text-center">
        <span class="eyebrow dark">Instant Technical Connect</span>
        <h2>Schedule Free Live Demo Walkthrough on WhatsApp</h2>
        <p>No waiting or complicated forms! Tap below to open an immediate chat with our technical team.</p>
      </div>

      <div class="whatsapp-connect-card">
        <div class="whatsapp-connect-grid">
          <div class="whatsapp-connect-left">
            <div class="whatsapp-badge-pill">
              <span class="live-pulse" aria-hidden="true" style="background: #22C55E; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);"></span>
              <span>Online Now</span>
            </div>
            
            <h3 style="margin: 14px 0 12px; font-size: 1.75rem;">Fast WhatsApp Consultation &amp; Onboarding</h3>
            <p style="margin-bottom: 24px; color: var(--ink-light); line-height: 1.75;">
              Connect directly with our onboarding specialists. We will share live demo screens, walkthrough videos, custom quotation sheets, and guide you on 1-click Excel migration.
            </p>

            <div class="whatsapp-topics-grid">
              <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20want%20to%20schedule%20a%20School%20ERP%20Demo" target="_blank" rel="noopener noreferrer" class="whatsapp-chip">
                <svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><polyline points="12 6 12 12 16 14"/></svg>
                <span>Book Free Live Demo</span>
              </a>

              <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20am%20interested%20in%20the%20Rs%2040,000%20Custom%20Branded%20App" target="_blank" rel="noopener noreferrer" class="whatsapp-chip">
                <svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect width="14" height="20" x="5" y="2" rx="2" ry="2"/><path d="M12 18h.01"/></svg>
                <span>Custom Branded App (&#8377;40k)</span>
              </a>

              <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20want%20to%20know%20about%20the%20<?php echo urlencode($selected_plan ? $selected_plan . ' Plan' : 'ERP Subscription Plans'); ?>" target="_blank" rel="noopener noreferrer" class="whatsapp-chip">
                <svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 2v20M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"/></svg>
                <span><?php echo htmlspecialchars($selected_plan ? $selected_plan . ' Plan (₹/mo)' : 'Pricing Plans (From ₹4/mo)', ENT_QUOTES, 'UTF-8'); ?></span>
              </a>

              <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20have%20questions%20regarding%20Excel%20Data%20Migration" target="_blank" rel="noopener noreferrer" class="whatsapp-chip">
                <svg class="ui-icon" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"/><polyline points="14 2 14 8 20 8"/></svg>
                <span>Excel Data Migration Help</span>
              </a>
            </div>
          </div>

          <div class="whatsapp-connect-right">
            <div class="whatsapp-icon-giant">
              <svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                <path d="M3 21l1.65-3.8a9 9 0 1 1 3.4 2.9L3 21"/>
                <path d="M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1"/>
              </svg>
            </div>

            <div style="font-family: var(--font-heading); font-size: 1.35rem; font-weight: 900; color: var(--ink); margin-bottom: 6px;">Chat Directly on WhatsApp</div>
            <div style="font-size: 1.15rem; font-weight: 800; color: #15803D; margin-bottom: 20px;"><?php echo htmlspecialchars($contact_phone_display, ENT_QUOTES, 'UTF-8'); ?></div>

            <a href="https://wa.me/<?php echo htmlspecialchars($wa_phone_clean, ENT_QUOTES, 'UTF-8'); ?>?text=Hello%20MyEduNest%20Team,%20I%20am%20ready%20for%20School%20ERP%20Demo" target="_blank" rel="noopener noreferrer" class="whatsapp-big-btn">
              <svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
                <path d="M3 21l1.65-3.8a9 9 0 1 1 3.4 2.9L3 21"/>
                <path d="M9 10a.5.5 0 0 0 1 0V9a.5.5 0 0 0-1 0v1a5 5 0 0 0 5 5h1a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1"/>
              </svg>
              <span>Open WhatsApp Chat</span>
            </a>

            <div style="margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.85rem; color: var(--muted); font-weight: 600;">
              <span>Or call:</span>
              <a href="tel:<?php echo htmlspecialchars($contact_phone, ENT_QUOTES, 'UTF-8'); ?>" style="font-weight: 800; color: var(--primary);"><?php echo htmlspecialchars($contact_phone_display, ENT_QUOTES, 'UTF-8'); ?></a>
            </div>
          </div>
        </div>
      </div>
    </div>
  </section>
</main>

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