{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Stove Repair Claim Form",
    "description": "Log repair claim details, hardware fixes, replaced parts, and photographic evidence.",
    "pages": [
      {
        "name": "repair_claim_page",
        "elements": [
          {
            "type": "panel",
            "name": "schema:Person",
            "elements": [
              {
                "type": "text",
                "name": "schema:name",
                "title": "Customer Name",
                "description": "Full legal name of the primary customer account holder.",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:customer_id",
                "title": "Customer ID",
                "description": "Unique identification number assigned to the customer profile.",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:stove_id",
                "title": "Stove ID",
                "description": "Unique serial number or identifier of the stove requiring service.",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "schema:date",
                "title": "Repair Date",
                "description": "Date the repair was completed.",
                "isRequired": true,
                "inputType": "date"
              },
              {
                "type": "text",
                "name": "ecs:repair_location",
                "title": "Repair Location",
                "description": "Area, community, or district where the repair took place.",
                "isRequired": true
              },
              {
                "type": "map-grid-selector",
                "name": "ecs:gps_location",
                "title": "GPS Location",
                "description": "Geographic coordinates pinpointing the exact physical location where the repair occurred.",
                "isRequired": true
              }
            ],
            "title": "Customer & Location Details"
          },
          {
            "type": "panel",
            "name": "ecs:RepairDetailsPanel",
            "elements": [
              {
                "type": "checkbox",
                "name": "ecs:parts_replaced",
                "title": "Repair Parts Fixed / Replaced",
                "description": "Select all hardware components that were repaired or replaced during service.",
                "isRequired": true,
                "choices": [
                  {
                    "value": "fan",
                    "text": "Fan"
                  },
                  {
                    "value": "battery",
                    "text": "Battery"
                  },
                  {
                    "value": "pcb",
                    "text": "PCB / Circuit Board"
                  },
                  {
                    "value": "knob",
                    "text": "Control Knob"
                  },
                  {
                    "value": "pot_rest",
                    "text": "Pot Rest"
                  }
                ]
              },
              {
                "type": "comment",
                "name": "ecs:problem_description",
                "title": "Problem Description",
                "description": "Brief description of the issue reported.",
                "isRequired": true
              },
              {
                "type": "comment",
                "name": "ecs:repair_performed",
                "title": "Repair Performed",
                "description": "Summary of the work completed.",
                "isRequired": true
              }
            ],
            "title": "Repair & Hardware Details"
          },
          {
            "type": "panel",
            "name": "ecs:EvidencePanel",
            "elements": [
              {
                "type": "file",
                "name": "ecs:repair_photo_before",
                "title": "Repair Photo (Before)",
                "description": "Clear photograph showing the damaged or defective component prior to repair.",
                "isRequired": true,
                "acceptedTypes": "image/*",
                "maxSize": 5242880,
                "sourceType": "file-camera"
              },
              {
                "type": "file",
                "name": "ecs:repair_photo_after",
                "title": "Repair Photo (After)",
                "description": "Clear photograph showing the completed repair and restored stove component.",
                "isRequired": true,
                "acceptedTypes": "image/*",
                "maxSize": 5242880,
                "sourceType": "file-camera"
              },
              {
                "type": "comment",
                "name": "ecs:additional_notes",
                "title": "Additional Notes",
                "description": "Any extra comments from the field agent."
              }
            ],
            "title": "Evidence & Confirmation"
          }
        ],
        "title": "Claim & Location Details"
      }
    ],
    "questionErrorLocation": "bottom",
    "showProgressBar": true,
    "progressBarLocation": "top",
    "pagePrevText": "Back",
    "pageNextText": "Next",
    "completeText": "Submit Claim"
  }
}