description = "Comprehensive TUI survey with visual elements and grouped sections"
locale = "en-US"
name = "User Experience Survey"

# Welcome header with fancy Unicode borders
[[items]]
border_bottom = true
border_bottom_char = "─"
border_bottom_l = "╰"
border_bottom_len = 45
border_bottom_r = "╯"
border_margin_left = 0
border_top = true
border_top_char = "─"
border_top_l = "╭"
border_top_len = 45
border_top_r = "╮"
content = "Help us improve by sharing your feedback"
content_margin_left = 2
name = "welcome_header"
order = 1
title = "📋 User Experience Survey"
type = "section"

# Personal Information section header
[[items]]
margin_left = 2
name = "personal_info_header"
order = 2
title = "👤 Personal Information"
type = "section_header"

# Personal information fields
[[fields]]
group = "personal_info"
name = "full_name"
order = 3
placeholder = "Jane Smith"
prompt = "Full name"
required = true
type = "text"

[[fields]]
group = "personal_info"
name = "email"
order = 4
placeholder = "jane@example.com"
prompt = "Email address"
required = true
type = "text"

[[fields]]
group = "personal_info"
name = "phone"
order = 5
placeholder = "+1-555-0123"
prompt = "Phone number (optional)"
type = "text"

# Product experience section
[[items]]
margin_left = 2
name = "product_header"
order = 6
title = "⭐ Product Experience"
type = "section_header"

[[fields]]
group = "product"
name = "overall_satisfaction"
options = [
  { value = "Very Unsatisfied", label = "😢 Very Unsatisfied" },
  { value = "Unsatisfied", label = "😟 Unsatisfied" },
  { value = "Neutral", label = "😐 Neutral" },
  { value = "Satisfied", label = "😊 Satisfied" },
  { value = "Very Satisfied", label = "😍 Very Satisfied" },
]
order = 7
prompt = "Overall satisfaction with product"
required = true
type = "select"

[[fields]]
group = "product"
name = "usage_frequency"
options = [
  { value = "Daily", label = "📅 Daily" },
  { value = "Weekly", label = "📊 Weekly" },
  { value = "Monthly", label = "📆 Monthly" },
  { value = "Occasionally", label = "📝 Occasionally" },
  { value = "Never", label = "🚫 Never" },
]
order = 8
prompt = "How often do you use this product?"
required = true
type = "select"

[[fields]]
group = "product"
name = "features_used"
options = [
  { value = "Dashboard", label = "📊 Dashboard" },
  { value = "Analytics", label = "📈 Analytics" },
  { value = "Reporting", label = "📑 Reporting" },
  { value = "API Integration", label = "🔌 API Integration" },
  { value = "Mobile App", label = "📱 Mobile App" },
  { value = "Notifications", label = "🔔 Notifications" },
  { value = "Collaboration Tools", label = "👥 Collaboration Tools" },
]
order = 9
page_size = 5
prompt = "Which features do you use? (select all that apply)"
type = "multiselect"
vim_mode = true

# Feedback section
[[items]]
margin_left = 2
name = "feedback_header"
order = 10
title = "💬 Feedback"
type = "section_header"

[[fields]]
file_extension = "txt"
group = "feedback"
name = "improvements"
order = 11
prefix_text = "# Please describe desired improvements\n"
prompt = "What improvements would you suggest?"
type = "editor"

[[fields]]
group = "feedback"
name = "biggest_pain_point"
options = [
  { value = "Performance issues", label = "⚡ Performance issues" },
  { value = "Confusing UI/UX", label = "🎨 Confusing UI/UX" },
  { value = "Missing features", label = "❌ Missing features" },
  { value = "Documentation", label = "📖 Documentation" },
  { value = "Customer support", label = "🆘 Customer support" },
  { value = "Pricing", label = "💰 Pricing" },
  { value = "Other", label = "❓ Other" },
]
order = 12
prompt = "What's your biggest pain point?"
required = true
type = "select"

# Preferences section
[[items]]
margin_left = 2
name = "preferences_header"
order = 13
title = "⚙️ Preferences"
type = "section_header"

[[fields]]
default = "Email"
group = "preferences"
name = "contact_preference"
options = [
  { value = "Email", label = "📧 Email" },
  { value = "Phone", label = "📞 Phone" },
  { value = "SMS", label = "💬 SMS" },
  { value = "In-app notification", label = "🔔 In-app notification" },
  { value = "No contact", label = "🚫 No contact" },
]
order = 14
prompt = "Preferred contact method"
required = true
type = "select"

[[fields]]
default = "false"
group = "preferences"
name = "newsletter_opt_in"
order = 15
prompt = "Subscribe to our newsletter for updates?"
type = "confirm"

[[fields]]
default = "false"
group = "preferences"
name = "beta_features"
order = 16
prompt = "Interested in testing beta features?"
type = "confirm"

# Advanced options (conditional)
[[fields]]
group = "preferences"
name = "device_types"
options = [
  { value = "Desktop", label = "🖥️ Desktop" },
  { value = "Laptop", label = "💻 Laptop" },
  { value = "Tablet", label = "📱 Tablet" },
  { value = "Mobile", label = "📲 Mobile Phone" },
  { value = "Smartwatch", label = "⌚ Smartwatch" },
]
order = 17
page_size = 4
prompt = "Which devices do you use? (optional)"
type = "multiselect"
vim_mode = true
when = "beta_features == true"

# Closing footer
[[items]]
border_bottom = true
border_bottom_char = "─"
border_bottom_l = "└"
border_bottom_len = 50
border_bottom_r = "┘"
border_margin_left = 0
border_top = true
border_top_char = "─"
border_top_l = "┌"
border_top_len = 50
border_top_r = "┐"
content = "Your feedback helps us build better products"
content_margin_left = 2
name = "closing_footer"
order = 100
title = "✓ Thank You!"
type = "section"
