<!-- Why Choose Us Tab -->
<div class="tab-pane fade" id="whychooseus" role="tabpanel">
  <div class="row g-4">
    <!-- Basic Info -->
    <div class="col-md-12">
      <div class="card border shadow-sm">
        <div class="card-header bg-white">
          <h6 class="mb-0">
            <i class="fas fa-info-circle me-2"></i>Basic Information
          </h6>
        </div>
        <div class="card-body">
          <div class="row g-3">
            <div class="col-md-6">
              <label class="form-label fw-medium">Heading</label>
              <input
                type="text"
                class="form-control"
                id="whyChooseUsHeading"
                value="<%= data.whyChooseUs?.heading || '' %>"
                placeholder="e.g., Turning Study Abroad Dreams Into Reality"
              />
            </div>
            <div class="col-md-6">
              <label class="form-label fw-medium">Subheading</label>
              <input
                type="text"
                class="form-control"
                id="whyChooseUsSubheading"
                value="<%= data.whyChooseUs?.subheading || '' %>"
                placeholder="e.g., About Our Consultancy"
              />
            </div>
            <div class="col-md-12">
              <label class="form-label fw-medium">Description</label>
              <textarea
                class="form-control"
                id="whyChooseUsDescription"
                rows="3"
                placeholder="Enter description"
              ><%= data.whyChooseUs?.description || '' %></textarea>
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Items -->
    <div class="col-md-12">
      <div class="card border shadow-sm">
        <div class="card-header bg-white">
          <h6 class="mb-0">
            <i class="fas fa-list-ul me-2"></i>Why Choose Us Items
          </h6>
        </div>
        <div class="card-body">
          <% (data.whyChooseUs?.items || []).forEach(function(item, index) { %>
          <div class="card mb-3 bg-light border">
            <div class="card-body">
              <h6 class="card-title fw-bold mb-3">Item <%= index + 1 %></h6>
              <div class="row g-3">
                <div class="col-md-6">
                  <label class="form-label fw-medium">Icon URL</label>
                  <div class="input-group mb-2">
                    <input
                      type="text"
                      class="form-control"
                      id="whyChooseUsIcon_<%= index %>"
                      value="<%= item.icon || '' %>"
                    />
                    <button
                      type="button"
                      class="btn btn-outline-primary btn-upload-image"
                      data-target-input="whyChooseUsIcon_<%= index %>"
                      data-image-type="home"
                    >
                      <i class="fas fa-upload me-1"></i>Upload
                    </button>
                  </div>
                </div>
                <div class="col-md-6">
                  <label class="form-label fw-medium">Title</label>
                  <input
                    type="text"
                    class="form-control"
                    id="whyChooseUsTitle_<%= index %>"
                    value="<%= item.title || '' %>"
                    placeholder="e.g., Global Reach"
                  />
                </div>
                <div class="col-md-12">
                  <label class="form-label fw-medium">Description</label>
                  <input
                    type="text"
                    class="form-control"
                    id="whyChooseUsItemDescription_<%= index %>"
                    value="<%= item.description || '' %>"
                    placeholder="e.g., Expanding Opportunities Worldwide"
                  />
                </div>
              </div>
            </div>
          </div>
          <% }); %>
        </div>
      </div>
    </div>

    <!-- Features -->
    <div class="col-md-12">
      <div class="card border shadow-sm">
        <div class="card-header bg-white">
          <h6 class="mb-0">
            <i class="fas fa-star me-2"></i>Features
          </h6>
        </div>
        <div class="card-body">
          <% (data.whyChooseUs?.features || []).forEach(function(feature, index) { %>
          <div class="mb-3">
            <label class="form-label fw-medium">Feature <%= index + 1 %></label>
            <input
              type="text"
              class="form-control"
              id="whyChooseUsFeature_<%= index %>"
              value="<%= feature %>"
              placeholder="Enter feature"
            />
          </div>
          <% }); %>
        </div>
      </div>
    </div>

    <!-- CTA Button -->
    <div class="col-md-12">
      <div class="card border shadow-sm">
        <div class="card-header bg-white">
          <h6 class="mb-0">
            <i class="fas fa-mouse-pointer me-2"></i>CTA Button
          </h6>
        </div>
        <div class="card-body">
          <div class="row g-3">
            <div class="col-md-6">
              <label class="form-label fw-medium">Label</label>
              <input
                type="text"
                class="form-control"
                id="whyChooseUsCtaLabel"
                value="<%= data.whyChooseUs?.ctaButton?.label || '' %>"
                placeholder="e.g., Get Started"
              />
            </div>
            <div class="col-md-6">
              <label class="form-label fw-medium">Link</label>
              <input
                type="text"
                class="form-control"
                id="whyChooseUsCtaHref"
                value="<%= data.whyChooseUs?.ctaButton?.href || '' %>"
                placeholder="/about"
              />
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
