<?php include __DIR__ . '/../includes/header.php'; ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact — Reach Out</title>
<link href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:wght@300;400;500&display=swap" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
<style>
:root {
  --gold: #c98a1a;
  --gold-light: #e3b24b;
  --gold-dim: rgba(201,138,26,0.12);
  --bg: #f6f3ee;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-input: #fbfaf8;
  --border: rgba(15,23,42,0.10);
  --border-hover: rgba(201,138,26,0.35);
  --text-primary: #182033;
  --text-muted: #667085;
  --text-dim: #98a2b3;
  --radius: 14px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Background ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  overflow: hidden;
}
.bg-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.16;
}
.bg-orb-1 { width:700px; height:700px; background:#f6d48a; top:-220px; right:-220px; animation: drift1 18s ease-in-out infinite alternate; }
.bg-orb-2 { width:500px; height:500px; background:#d7e7ff; bottom:-120px; left:-150px; animation: drift2 22s ease-in-out infinite alternate; }
.bg-orb-3 { width:300px; height:300px; background:#ffd9b0; top:40%; left:30%; animation: drift3 15s ease-in-out infinite alternate; opacity:0.10; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

@keyframes drift1 { to { transform: translate(-80px, 60px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(60px, -80px) scale(0.95); } }
@keyframes drift3 { to { transform: translate(-40px, 40px); } }

/* ── Layout ── */
.page-wrap {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  padding: 48px 32px;
  min-height: 100vh;
  display: flex; flex-direction: column;
}

/* ── Header ── */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 64px; opacity: 0; animation: fadeUp 0.7s 0.1s forwards;
}
.logo-mark {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--text-primary);
}
.logo-mark span { color: var(--gold); }
.header-tag {
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 100px;
  background: rgba(255,255,255,0.7);
}

/* ── Hero Text ── */
.hero-section {
  margin-bottom: 56px; opacity: 0; animation: fadeUp 0.7s 0.2s forwards;
}
.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 10px;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 28px; height: 1px; background: var(--gold);
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300; line-height: 1.05;
  letter-spacing: -0.01em; color: var(--text-primary);
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub {
  margin-top: 20px; font-size: 15px; color: var(--text-muted);
  max-width: 440px; line-height: 1.7;
}

/* ── Trust Badges ── */
.trust-row {
  display: flex; gap: 32px; margin-bottom: 56px;
  opacity: 0; animation: fadeUp 0.7s 0.3s forwards;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--text-muted);
}
.trust-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: var(--gold-dim); border: 1px solid rgba(212,151,58,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--gold);
}
.trust-divider {
  width: 1px; height: 20px;
  background: var(--border); align-self: center;
}

/* ── Main Contact Card ── */
.contact-shell {
  display: grid; grid-template-columns: 280px 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0; animation: fadeUp 0.7s 0.4s forwards;
  min-height: 620px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
}

/* ── Tab Sidebar ── */
.tab-sidebar {
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  padding: 32px 0;
  display: flex; flex-direction: column;
}
.sidebar-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 28px; margin-bottom: 20px;
}
.tab-nav-item {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 13px 28px;
  cursor: pointer; border: none; background: none; width: 100%;
  font-family: 'DM Sans', sans-serif; font-size: 13.5px; font-weight: 400;
  color: var(--text-muted); text-align: left;
  transition: var(--transition);
}
.tab-nav-item:hover { color: var(--text-primary); }
.tab-nav-item.active { color: var(--text-primary); }
.tab-nav-item.active::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 2px; height: 24px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-radius: 0 2px 2px 0;
}
.tab-nav-item .nav-icon {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--bg-input);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0;
  transition: var(--transition);
}
.tab-nav-item.active .nav-icon {
  background: var(--gold-dim);
  color: var(--gold);
}
.tab-nav-item .nav-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); margin-left: auto;
  opacity: 0; transition: var(--transition);
}
.tab-nav-item.active .nav-dot { opacity: 1; }

.sidebar-footer {
  margin-top: auto; padding: 24px 28px;
  border-top: 1px solid var(--border);
}
.sidebar-footer p { font-size: 12px; color: var(--text-dim); line-height: 1.6; }
.sidebar-footer a { color: var(--gold); text-decoration: none; }

/* ── Form Panel ── */
.form-panel {
  padding: 44px 48px;
  overflow-y: auto;
}
.tab-pane { display: none; animation: paneFadeIn 0.35s ease forwards; }
.tab-pane.active { display: block; }

@keyframes paneFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.pane-header { margin-bottom: 36px; }
.pane-eyebrow {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 10px;
}
.pane-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px; font-weight: 300;
  line-height: 1.15; color: var(--text-primary);
}
.pane-title em { font-style: italic; }
.pane-desc { margin-top: 8px; font-size: 14px; color: var(--text-muted); }

/* ── Form Grid ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.form-grid.full { grid-template-columns: 1fr; }

/* ── Floating Label Input ── */
.field {
  position: relative;
}
.field label {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--text-muted);
  pointer-events: none; transition: var(--transition);
  display: flex; align-items: center; gap: 5px;
}
.field label .req { color: var(--gold); font-size: 9px; }
.field input, .field select {
  width: 100%; height: 52px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 16px 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 400; color: var(--text-primary);
  transition: var(--transition); outline: none;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201,138,26,0.10);
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field select:focus + label,
.field select:not([value=""]) + label {
  top: 14px; transform: none; font-size: 10px; letter-spacing: 0.05em;
}
.field input::placeholder { color: transparent; }
.field-error { font-size: 11px; color: #e05252; margin-top: 5px; padding-left: 4px; display: none; }

/* ── Textarea ── */
.field-area { position: relative; }
.field-area label {
  display: block; font-size: 12px; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--text-muted);
  margin-bottom: 10px;
}
.field-area label .req { color: var(--gold); }
.field-area textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--text-primary);
  resize: vertical; min-height: 130px;
  transition: var(--transition); outline: none;
}
.field-area textarea:focus {
  border-color: var(--gold);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(201,138,26,0.10);
}
.char-track {
  display: flex; justify-content: flex-end;
  font-size: 11px; color: var(--text-dim); margin-top: 6px;
}
.char-track .count { color: var(--gold); font-weight: 500; }

/* ── Contact Methods ── */
.contact-methods-section { margin-bottom: 24px; }
.section-label {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
  display: flex; align-items: center; gap: 8px;
}
.section-label .req { color: var(--gold); }
.section-label::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.methods-grid { display: flex; flex-direction: column; gap: 12px; }
.method-row {
  display: flex; align-items: center; gap: 12px;
}
.method-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 9px; background: var(--bg-input);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.method-icon.phone { color: #52a6ec; }
.method-icon.wechat { color: #28c445; }
.method-icon.whatsapp { color: #25D366; }
.method-icon.other { color: var(--text-dim); }
.method-inputs { flex: 1; display: flex; gap: 10px; }
.method-inputs .field { flex: 1; }

/* ── Phone with country selector ── */
.phone-group { display: flex; gap: 10px; flex: 1; }
.country-btn {
  height: 52px; width: 90px; flex-shrink: 0;
  background: var(--bg-input); border: 1px solid var(--border);
  border-radius: 10px; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; color: var(--text-primary);
  font-size: 13px; transition: var(--transition); position: relative;
}
.country-btn:hover { border-color: var(--border-hover); }
.country-btn img { width: 18px; height: 13px; border-radius: 2px; }
.country-btn i { font-size: 9px; color: var(--text-muted); margin-left: auto; }
.country-dropdown {
  display: none; position: absolute; top: calc(100% + 6px); left: 0;
  width: 260px; background: #ffffff;
  border: 1px solid var(--border); border-radius: 12px;
  z-index: 200; overflow: hidden;
  box-shadow: 0 20px 60px rgba(15,23,42,0.12);
}
.country-search {
  padding: 12px; border-bottom: 1px solid var(--border);
}
.country-search input {
  width: 100%; background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px;
  font-size: 13px; color: var(--text-primary);
  outline: none; font-family: 'DM Sans', sans-serif;
}
.country-list { max-height: 220px; overflow-y: auto; padding: 8px; }
.country-list::-webkit-scrollbar { width: 4px; }
.country-list::-webkit-scrollbar-track { background: transparent; }
.country-list::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 2px; }
.country-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px;
  cursor: pointer; font-size: 13px; transition: background 0.2s;
}
.country-opt:hover { background: #f4f7fb; }
.country-opt img { width: 18px; height: 13px; border-radius: 2px; }
.country-opt span { color: var(--text-muted); font-size: 12px; }

/* ── File Upload ── */
.upload-zone {
  border: 1px dashed rgba(212,151,58,0.25); border-radius: 12px;
  padding: 28px; text-align: center; cursor: pointer;
  transition: var(--transition); margin-bottom: 24px;
  background: #f8f4ec;
}
.upload-zone:hover {
  border-color: var(--gold); background: #fffaf0;
}
.upload-icon { font-size: 28px; color: var(--gold); margin-bottom: 10px; opacity: 0.7; }
.upload-zone p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.upload-zone p strong { color: var(--text-primary); font-weight: 400; }
.upload-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }

/* ── Submit ── */
.submit-row { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }
.submit-note { font-size: 12px; color: var(--text-dim); max-width: 260px; line-height: 1.5; }
.submit-note i { color: var(--gold); margin-right: 4px; }
.btn-submit {
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, var(--gold) 0%, #b87a1a 100%);
  color: #ffffff; border: none; border-radius: 50px;
  padding: 14px 32px; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: var(--transition); letter-spacing: 0.02em;
  overflow: hidden;
}
.btn-submit::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  opacity: 0; transition: opacity 0.3s;
}
.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212,151,58,0.35); }
.btn-submit:active { transform: translateY(0); }
.btn-submit span, .btn-submit i { position: relative; z-index: 1; }

/* ── Scrollbar ── */
.form-panel::-webkit-scrollbar { width: 4px; }
.form-panel::-webkit-scrollbar-track { background: transparent; }
.form-panel::-webkit-scrollbar-thumb { background: var(--text-dim); border-radius: 2px; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Mobile ── */
@media (max-width: 860px) {
  .page-wrap { padding: 24px 20px; }
  .contact-shell { grid-template-columns: 1fr; }
  .tab-sidebar {
    border-right: none; border-bottom: 1px solid var(--border);
    flex-direction: row; padding: 0; overflow-x: auto;
  }
  .sidebar-label, .sidebar-footer { display: none; }
  .tab-nav-item { padding: 14px 18px; white-space: nowrap; flex-shrink: 0; }
  .tab-nav-item::before { top: auto; bottom: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 2px; border-radius: 2px; }
  .form-panel { padding: 28px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-divider { display: none; }
  .hero-section { margin-bottom: 36px; }
  .submit-row { flex-direction: column; gap: 16px; align-items: flex-start; }
}
</style>
</head>
<body>

<!-- Background -->
<div class="bg-canvas">
  <div class="bg-grid"></div>
  <div class="bg-orb bg-orb-1"></div>
  <div class="bg-orb bg-orb-2"></div>
  <div class="bg-orb bg-orb-3"></div>
</div>

<div class="page-wrap">

  <!-- Header -->
  <header class="site-header">
    <div class="logo-mark">Company<span>.</span></div>
    <div class="header-tag">Contact &amp; Partnerships</div>
  </header>

  <!-- Hero -->
  <section class="hero-section">
    <div class="hero-eyebrow">Let's connect</div>
    <h1 class="hero-title">Get in touch<br>with <em>our team</em></h1>
    <p class="hero-sub">Choose the right channel below and we'll route your inquiry to the right person. We reply within 24 hours.</p>
  </section>

  <!-- Trust Badges -->
  <div class="trust-row">
    <div class="trust-item">
      <div class="trust-icon"><i class="fas fa-bolt"></i></div>
      <div><strong style="color:var(--text-primary);font-weight:400;">Fast response</strong><br><span style="font-size:12px;">Within 24 hours</span></div>
    </div>
    <div class="trust-divider"></div>
    <div class="trust-item">
      <div class="trust-icon"><i class="fas fa-user-shield"></i></div>
      <div><strong style="color:var(--text-primary);font-weight:400;">Expert support</strong><br><span style="font-size:12px;">Dedicated team</span></div>
    </div>
    <div class="trust-divider"></div>
    <div class="trust-item">
      <div class="trust-icon"><i class="fas fa-lock"></i></div>
      <div><strong style="color:var(--text-primary);font-weight:400;">Secure &amp; private</strong><br><span style="font-size:12px;">Data protected</span></div>
    </div>
    <div class="trust-divider"></div>
    <div class="trust-item">
      <div class="trust-icon"><i class="fas fa-globe"></i></div>
      <div><strong style="color:var(--text-primary);font-weight:400;">Global reach</strong><br><span style="font-size:12px;">Multiple channels</span></div>
    </div>
  </div>

  <!-- Contact Shell -->
  <div class="contact-shell">

    <!-- Sidebar Nav -->
    <aside class="tab-sidebar">
      <div class="sidebar-label">Inquiry Type</div>

      <button class="tab-nav-item active" data-tab="cooperation">
        <div class="nav-icon"><i class="fas fa-handshake"></i></div>
        Cooperation
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="update">
        <div class="nav-icon"><i class="fas fa-sync-alt"></i></div>
        Update License
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="inclusion">
        <div class="nav-icon"><i class="fas fa-plus-circle"></i></div>
        Apply for Inclusion
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="complaint">
        <div class="nav-icon"><i class="fas fa-comment-alt"></i></div>
        Complaint &amp; Suggestion
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="kol">
        <div class="nav-icon"><i class="fas fa-star"></i></div>
        KOL Cooperation
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="lcs">
        <div class="nav-icon"><i class="fas fa-network-wired"></i></div>
        LCS Cooperation
        <div class="nav-dot"></div>
      </button>
      <button class="tab-nav-item" data-tab="authentication">
        <div class="nav-icon"><i class="fas fa-shield-alt"></i></div>
        Authentication
        <div class="nav-dot"></div>
      </button>

      <div class="sidebar-footer">
        <p>Need immediate help?<br>Email us at <a href="mailto:hello@company.com">hello@company.com</a></p>
      </div>
    </aside>

    <!-- Form Panel -->
    <div class="form-panel">

      <!-- Tab: Cooperation -->
      <div class="tab-pane active" id="cooperation">
        <div class="pane-header">
          <div class="pane-eyebrow">Partnership Inquiry</div>
          <h2 class="pane-title">Cooperation<br><em>Request</em></h2>
          <p class="pane-desc">Tell us about your partnership vision and we'll connect you with the right team.</p>
        </div>
        <div class="form-grid">
          <div class="field">
            <input type="text" id="coop-name" placeholder=" ">
            <label for="coop-name">Full Name <span class="req">*</span></label>
          </div>
          <div class="field">
            <input type="text" id="coop-company" placeholder=" ">
            <label for="coop-company">Company Name <span class="req">*</span></label>
          </div>
        </div>
        <div class="form-grid full">
          <div class="field">
            <input type="email" id="coop-email" placeholder=" ">
            <label for="coop-email">Email Address <span class="req">*</span></label>
          </div>
        </div>
        <div class="contact-methods-section">
          <div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div>
          <div class="methods-grid">
            <div class="method-row">
              <div class="method-icon phone"><i class="fas fa-phone"></i></div>
              <div class="phone-group">
                <div class="country-btn" tabindex="0">
                  <img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i>
                  <div class="country-dropdown">
                    <div class="country-search"><input type="text" placeholder="Search..."></div>
                    <div class="country-list">
                      <div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div>
                      <div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div>
                      <div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div>
                      <div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div>
                      <div class="country-opt" data-code="+49" data-flag="https://flagcdn.com/w20/de.png"><img src="https://flagcdn.com/w20/de.png" alt="DE"> Germany <span>+49</span></div>
                      <div class="country-opt" data-code="+33" data-flag="https://flagcdn.com/w20/fr.png"><img src="https://flagcdn.com/w20/fr.png" alt="FR"> France <span>+33</span></div>
                      <div class="country-opt" data-code="+81" data-flag="https://flagcdn.com/w20/jp.png"><img src="https://flagcdn.com/w20/jp.png" alt="JP"> Japan <span>+81</span></div>
                      <div class="country-opt" data-code="+55" data-flag="https://flagcdn.com/w20/br.png"><img src="https://flagcdn.com/w20/br.png" alt="BR"> Brazil <span>+55</span></div>
                    </div>
                  </div>
                </div>
                <div class="field" style="flex:1;">
                  <input type="tel" placeholder=" ">
                  <label>Phone Number</label>
                </div>
              </div>
            </div>
            <div class="method-row">
              <div class="method-icon wechat"><i class="fab fa-weixin"></i></div>
              <div class="method-inputs">
                <div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div>
              </div>
            </div>
            <div class="method-row">
              <div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div>
              <div class="method-inputs">
                <div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div>
              </div>
            </div>
            <div class="method-row">
              <div class="method-icon other"><i class="fas fa-comment-dots"></i></div>
              <div class="method-inputs">
                <div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div>
                <div class="field"><input type="text" placeholder=" "><label>Account ID</label></div>
              </div>
            </div>
          </div>
        </div>
        <div class="field-area" style="margin-bottom:20px;">
          <label>Cooperation Details <span class="req">*</span></label>
          <textarea placeholder="Describe your cooperation proposal, goals, and timeline…"></textarea>
          <div class="char-track"><span class="count">0</span>&nbsp;/ 500</div>
        </div>
        <div>
          <div class="upload-label">Attach Files (0/5)</div>
          <div class="upload-zone">
            <div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div>
            <p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p>
          </div>
        </div>
        <div class="submit-row">
          <p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p>
          <button class="btn-submit" type="button">
            <span>Submit Request</span>
            <i class="fas fa-arrow-right"></i>
          </button>
        </div>
      </div>

      <!-- Tab: Update License -->
      <div class="tab-pane" id="update">
        <div class="pane-header">
          <div class="pane-eyebrow">License Management</div>
          <h2 class="pane-title">Update<br><em>License</em></h2>
          <p class="pane-desc">Submit updates to your company's license information and credentials.</p>
        </div>
        <div class="form-grid">
          <div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div>
          <div class="field"><input type="text" placeholder=" "><label>Company Name <span class="req">*</span></label></div>
        </div>
        <div class="form-grid full">
          <div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div>
        </div>
        <div class="contact-methods-section">
          <div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div>
          <div class="methods-grid">
            <div class="method-row">
              <div class="method-icon phone"><i class="fas fa-phone"></i></div>
              <div class="phone-group">
                <div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div>
                <div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div>
              </div>
            </div>
            <div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div>
            <div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div>
            <div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div>
          </div>
        </div>
        <div class="field-area" style="margin-bottom:20px;"><label>Update Details <span class="req">*</span></label><textarea placeholder="Describe what needs to be updated on your license…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Submit Update</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

      <!-- Tab: Apply for Inclusion -->
      <div class="tab-pane" id="inclusion">
        <div class="pane-header">
          <div class="pane-eyebrow">Directory Application</div>
          <h2 class="pane-title">Apply for<br><em>Inclusion</em></h2>
          <p class="pane-desc">Request to be listed in our directory or featured on our platform.</p>
        </div>
        <div class="form-grid"><div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div><div class="field"><input type="text" placeholder=" "><label>Company Name <span class="req">*</span></label></div></div>
        <div class="form-grid full"><div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div></div>
        <div class="contact-methods-section"><div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div><div class="methods-grid"><div class="method-row"><div class="method-icon phone"><i class="fas fa-phone"></i></div><div class="phone-group"><div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div><div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div></div></div><div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div><div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div><div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div></div></div>
        <div class="field-area" style="margin-bottom:20px;"><label>Application Details <span class="req">*</span></label><textarea placeholder="Tell us about your company and why you'd like to be included…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Submit Application</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

      <!-- Tab: Complaint & Suggestion -->
      <div class="tab-pane" id="complaint">
        <div class="pane-header">
          <div class="pane-eyebrow">Feedback Channel</div>
          <h2 class="pane-title">Complaint &amp;<br><em>Suggestion</em></h2>
          <p class="pane-desc">We take every piece of feedback seriously. Help us improve.</p>
        </div>
        <div class="form-grid"><div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div><div class="field"><input type="text" placeholder=" "><label>Company Name <span class="req">*</span></label></div></div>
        <div class="form-grid full"><div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div></div>
        <div class="contact-methods-section"><div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div><div class="methods-grid"><div class="method-row"><div class="method-icon phone"><i class="fas fa-phone"></i></div><div class="phone-group"><div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div><div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div></div></div><div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div><div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div><div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div></div></div>
        <div class="field-area" style="margin-bottom:20px;"><label>Your Feedback <span class="req">*</span></label><textarea placeholder="Share your complaint or suggestion with as much detail as possible…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Submit Feedback</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

      <!-- Tab: KOL -->
      <div class="tab-pane" id="kol">
        <div class="pane-header">
          <div class="pane-eyebrow">Influencer Program</div>
          <h2 class="pane-title">KOL<br><em>Cooperation</em></h2>
          <p class="pane-desc">Join our Key Opinion Leader program and grow together with our brand.</p>
        </div>
        <div class="form-grid"><div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div><div class="field"><input type="text" placeholder=" "><label>Company / Channel Name <span class="req">*</span></label></div></div>
        <div class="form-grid full"><div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div></div>
        <div class="contact-methods-section"><div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div><div class="methods-grid"><div class="method-row"><div class="method-icon phone"><i class="fas fa-phone"></i></div><div class="phone-group"><div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div><div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div></div></div><div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div><div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div><div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div></div></div>
        <div class="field-area" style="margin-bottom:20px;"><label>Cooperation Details <span class="req">*</span></label><textarea placeholder="Share your audience size, niche, and what kind of collaboration you're interested in…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Apply for KOL</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

      <!-- Tab: LCS -->
      <div class="tab-pane" id="lcs">
        <div class="pane-header">
          <div class="pane-eyebrow">Service Partnership</div>
          <h2 class="pane-title">LCS<br><em>Cooperation</em></h2>
          <p class="pane-desc">Apply for Local Customer Service partnership to represent our brand in your region.</p>
        </div>
        <div class="form-grid"><div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div><div class="field"><input type="text" placeholder=" "><label>Company Name <span class="req">*</span></label></div></div>
        <div class="form-grid full"><div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div></div>
        <div class="contact-methods-section"><div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div><div class="methods-grid"><div class="method-row"><div class="method-icon phone"><i class="fas fa-phone"></i></div><div class="phone-group"><div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div><div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div></div></div><div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div><div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div><div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div></div></div>
        <div class="field-area" style="margin-bottom:20px;"><label>Cooperation Details <span class="req">*</span></label><textarea placeholder="Describe your region, team capacity, and how you'd support our customers…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Apply for LCS</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

      <!-- Tab: Authentication -->
      <div class="tab-pane" id="authentication">
        <div class="pane-header">
          <div class="pane-eyebrow">Identity Verification</div>
          <h2 class="pane-title">Customer<br><em>Authentication</em></h2>
          <p class="pane-desc">Verify your customer identity for enhanced platform access and privileges.</p>
        </div>
        <div class="form-grid"><div class="field"><input type="text" placeholder=" "><label>Full Name <span class="req">*</span></label></div><div class="field"><input type="text" placeholder=" "><label>Company Name <span class="req">*</span></label></div></div>
        <div class="form-grid full"><div class="field"><input type="email" placeholder=" "><label>Email Address <span class="req">*</span></label></div></div>
        <div class="contact-methods-section"><div class="section-label"><span class="req">*</span>&nbsp;Other Contact Methods</div><div class="methods-grid"><div class="method-row"><div class="method-icon phone"><i class="fas fa-phone"></i></div><div class="phone-group"><div class="country-btn" tabindex="0"><img src="https://flagcdn.com/w20/us.png" alt="US"><span>+1</span><i class="fas fa-chevron-down"></i><div class="country-dropdown"><div class="country-search"><input type="text" placeholder="Search..."></div><div class="country-list"><div class="country-opt" data-code="+1" data-flag="https://flagcdn.com/w20/us.png"><img src="https://flagcdn.com/w20/us.png" alt="US"> United States <span>+1</span></div><div class="country-opt" data-code="+44" data-flag="https://flagcdn.com/w20/gb.png"><img src="https://flagcdn.com/w20/gb.png" alt="GB"> United Kingdom <span>+44</span></div><div class="country-opt" data-code="+86" data-flag="https://flagcdn.com/w20/cn.png"><img src="https://flagcdn.com/w20/cn.png" alt="CN"> China <span>+86</span></div><div class="country-opt" data-code="+91" data-flag="https://flagcdn.com/w20/in.png"><img src="https://flagcdn.com/w20/in.png" alt="IN"> India <span>+91</span></div></div></div></div><div class="field" style="flex:1;"><input type="tel" placeholder=" "><label>Phone Number</label></div></div></div><div class="method-row"><div class="method-icon wechat"><i class="fab fa-weixin"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WeChat ID</label></div></div></div><div class="method-row"><div class="method-icon whatsapp"><i class="fab fa-whatsapp"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>WhatsApp Number</label></div></div></div><div class="method-row"><div class="method-icon other"><i class="fas fa-comment-dots"></i></div><div class="method-inputs"><div class="field"><input type="text" placeholder=" "><label>Platform / Channel</label></div><div class="field"><input type="text" placeholder=" "><label>Account ID</label></div></div></div></div></div>
        <div class="field-area" style="margin-bottom:20px;"><label>Additional Information <span class="req">*</span></label><textarea placeholder="Provide any additional details relevant to your authentication request…"></textarea><div class="char-track"><span class="count">0</span>&nbsp;/ 500</div></div>
        <div><div class="upload-label">Attach Files (0/5)</div><div class="upload-zone"><div class="upload-icon"><i class="fas fa-cloud-upload-alt"></i></div><p><strong>Drop files here</strong> or click to browse<br>PDF, DOC, JPG, PNG · Max 10 MB each</p></div></div>
        <div class="submit-row"><p class="submit-note"><i class="fas fa-lock"></i> Your information is encrypted and never shared with third parties.</p><button class="btn-submit" type="button"><span>Submit for Auth</span><i class="fas fa-arrow-right"></i></button></div>
      </div>

    </div><!-- /form-panel -->
  </div><!-- /contact-shell -->

</div><!-- /page-wrap -->

<script>
/* Tab switching */
document.querySelectorAll('.tab-nav-item').forEach(btn => {
  btn.addEventListener('click', () => {
    document.querySelectorAll('.tab-nav-item').forEach(b => b.classList.remove('active'));
    document.querySelectorAll('.tab-pane').forEach(p => p.classList.remove('active'));
    btn.classList.add('active');
    document.getElementById(btn.dataset.tab).classList.add('active');
  });
});

/* Country selector */
document.querySelectorAll('.country-btn').forEach(btn => {
  btn.addEventListener('click', e => {
    e.stopPropagation();
    const dd = btn.querySelector('.country-dropdown');
    document.querySelectorAll('.country-dropdown').forEach(d => { if(d !== dd) d.style.display = 'none'; });
    dd.style.display = dd.style.display === 'block' ? 'none' : 'block';
    const si = dd.querySelector('.country-search input');
    if(si) setTimeout(() => si.focus(), 50);
  });
  btn.querySelectorAll('.country-opt').forEach(opt => {
    opt.addEventListener('click', e => {
      e.stopPropagation();
      btn.querySelector('img').src = opt.dataset.flag;
      btn.querySelector('span').textContent = opt.dataset.code;
      btn.querySelector('.country-dropdown').style.display = 'none';
    });
  });
  const si = btn.querySelector('.country-search input');
  if(si) {
    si.addEventListener('input', () => {
      const q = si.value.toLowerCase();
      btn.querySelectorAll('.country-opt').forEach(opt => {
        opt.style.display = opt.textContent.toLowerCase().includes(q) ? '' : 'none';
      });
    });
    si.addEventListener('click', e => e.stopPropagation());
  }
});

document.addEventListener('click', () => {
  document.querySelectorAll('.country-dropdown').forEach(d => d.style.display = 'none');
});

/* Char count */
document.querySelectorAll('.field-area').forEach(group => {
  const ta = group.querySelector('textarea');
  const ct = group.querySelector('.count');
  if(ta && ct) ta.addEventListener('input', () => { ct.textContent = Math.min(ta.value.length, 500); });
});

/* Upload zones */
document.querySelectorAll('.upload-zone').forEach(zone => {
  zone.addEventListener('dragover', e => { e.preventDefault(); zone.style.borderColor = 'var(--gold)'; });
  zone.addEventListener('dragleave', () => { zone.style.borderColor = ''; });
  zone.addEventListener('drop', e => { e.preventDefault(); zone.style.borderColor = ''; });
});

/* Submit feedback */
document.querySelectorAll('.btn-submit').forEach(btn => {
  btn.addEventListener('click', () => {
    const icon = btn.querySelector('i');
    const txt = btn.querySelector('span');
    const orig = txt.textContent;
    btn.style.pointerEvents = 'none';
    txt.textContent = 'Sending…';
    icon.className = 'fas fa-spinner fa-spin';
    setTimeout(() => {
      txt.textContent = 'Sent!';
      icon.className = 'fas fa-check';
      btn.style.background = 'linear-gradient(135deg,#3da85a,#2a8a44)';
      setTimeout(() => {
        txt.textContent = orig;
        icon.className = 'fas fa-arrow-right';
        btn.style.background = '';
        btn.style.pointerEvents = '';
      }, 2500);
    }, 1400);
  });
});
</script>
<?php include __DIR__ . '/../includes/footer.php'; ?>
