{
  "@context": {
    "ixo": "https://w3id.org/ixo/ns/protocol/",
    "@id": "@type",
    "type": "@type",
    "@protected": true
  },
  "type": "ixo:entity#surveyTemplate",
  "question": {
    "title": "Order Pickup Confirmation Form",
    "description": "Capture details when an order is collected by the customer.",
    "pages": [
      {
        "name": "pickup_details",
        "elements": [
          {
            "type": "panel",
            "name": "order_info_panel",
            "elements": [
              {
                "type": "text",
                "name": "ecs:order_id",
                "title": "Order ID",
                "isRequired": true,
                "readOnly": true
              },
              {
                "type": "text",
                "name": "schema:name",
                "title": "Customer Name",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:contract_reference",
                "title": "Contract Reference",
                "isRequired": true
              },
              {
                "type": "dropdown",
                "name": "schema:country",
                "title": "Country",
                "isRequired": true,
                "choices": [
                  "Zambia",
                  "Malawi",
                  "Mozambique"
                ]
              }
            ],
            "title": "Order Information"
          },
          {
            "type": "panel",
            "name": "stock_collection_panel",
            "elements": [
              {
                "type": "text",
                "name": "ecs:stock_item",
                "title": "Stock Item",
                "description": "Name or identifier of the collected item",
                "isRequired": true
              },
              {
                "type": "text",
                "name": "ecs:amount",
                "title": "Amount",
                "isRequired": true,
                "inputType": "number"
              },
              {
                "type": "dropdown",
                "name": "ecs:collection_type",
                "title": "Collection Type",
                "isRequired": true,
                "choices": [
                  "Depot",
                  "Supa Partner",
                  "Warehouse",
                  "Reseller",
                  "Mobile"
                ]
              },
              {
                "type": "text",
                "name": "ecs:collection_point",
                "title": "Collection",
                "description": "Specify the exact collection point (e.g., depot name, partner name, mobile agent)",
                "isRequired": true
              }
            ],
            "title": "Stock & Collection Details"
          }
        ]
      }
    ],
    "completeText": "Confirm Pickup"
  }
}