{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Stove Repossession Form",
    "description": "Log the reclamation of hardware and document the device condition.",
    "pages": [
      {
        "name": "repossession_details",
        "elements": [
          {
            "type": "text",
            "name": "schema:id",
            "title": "Customer ID",
            "description": "Unique identifier for the customer returning the stove",
            "isRequired": true,
            "readOnly": true
          },
          {
            "type": "panel",
            "name": "device_info_panel",
            "elements": [
              {
                "type": "dropdown",
                "name": "schema:productName",
                "title": "Product Type",
                "defaultValue": "Stove",
                "isRequired": true,
                "choices": [
                  "Stove",
                  "Pellet Bag (Bulk)"
                ]
              },
              {
                "type": "text",
                "name": "ecs:product_id",
                "title": "Product ID / Serial Number",
                "description": "Enter the ID of the specific unit being repossessed",
                "isRequired": true
              }
            ],
            "title": "Hardware Information"
          },
          {
            "type": "panel",
            "name": "repossession_logic_panel",
            "elements": [
              {
                "type": "comment",
                "name": "schema:reason",
                "title": "Reason for Repossession",
                "description": "E.g., Non-payment, technical failure, customer request, or relocation.",
                "isRequired": true
              },
              {
                "type": "file",
                "name": "ecs:device_photo",
                "title": "Photo of Device",
                "description": "Capture a clear photo of the stove and its current condition.",
                "isRequired": true,
                "acceptedTypes": "image/*",
                "maxSize": 5242880,
                "sourceType": "camera"
              }
            ],
            "title": "Reason & Evidence"
          }
        ]
      }
    ],
    "completeText": "Submit Repossession"
  }
}