<!-- Visa Solutions Tab -->
<div class="tab-pane fade" id="visasolutions" 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="visaSolutionsHeading"
                value="<%= data.visaSolutions?.heading || '' %>"
                placeholder="e.g., Comprehensive Visa Solutions"
              />
            </div>
            <div class="col-md-6">
              <label class="form-label fw-medium">Subheading</label>
              <input
                type="text"
                class="form-control"
                id="visaSolutionsSubheading"
                value="<%= data.visaSolutions?.subheading || '' %>"
                placeholder="e.g., Our Expert Services"
              />
            </div>
          </div>
        </div>
      </div>
    </div>

    <!-- Services 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>Visa Solutions Items
          </h6>
        </div>
        <div class="card-body">
          <% (data.visaSolutions?.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">Service <%= index + 1 %></h6>
              <div class="row g-3">
                <div class="col-md-3">
                  <label class="form-label fw-medium">Number</label>
                  <input
                    type="text"
                    class="form-control"
                    id="visaSolutionsNumber_<%= index %>"
                    value="<%= item.number || '' %>"
                    placeholder="e.g., 01"
                  />
                </div>
                <div class="col-md-9">
                  <label class="form-label fw-medium">Title</label>
                  <input
                    type="text"
                    class="form-control"
                    id="visaSolutionsTitle_<%= index %>"
                    value="<%= item.title || '' %>"
                    placeholder="e.g., Student Visa Guidance"
                  />
                </div>
                <div class="col-md-12">
                  <label class="form-label fw-medium">Description</label>
                  <textarea
                    class="form-control"
                    id="visaSolutionsDescription_<%= index %>"
                    rows="2"
                    placeholder="Enter description"
                  ><%= item.description || '' %></textarea>
                </div>
                <div class="col-md-12">
                  <label class="form-label fw-medium">Link</label>
                  <input
                    type="text"
                    class="form-control"
                    id="visaSolutionsLink_<%= index %>"
                    value="<%= item.link || '' %>"
                    placeholder="/service-details"
                  />
                </div>
              </div>
            </div>
          </div>
          <% }); %>
        </div>
      </div>
    </div>
  </div>
</div>
