name = "E-Commerce Checkout"
description = "Complete checkout form demonstrating advanced i18n features"
locale = "en-US"

[[sections]]
title = "Order Summary"
description = "Review your order before checkout"

[[sections.elements]]
name = "item_count"
type = "text"
prompt = "Number of items"
required = true
help = "Demonstrates pluralization rules for each locale"
placeholder = "1"

[[sections.elements]]
name = "subtotal"
type = "text"
prompt = "Subtotal amount"
required = true
help = "Will be formatted as currency per locale"
placeholder = "99.99"

[[sections.elements]]
name = "tax_rate"
type = "text"
prompt = "Tax rate percentage"
required = true
help = "Tax varies per locale"
placeholder = "7.5"

[[sections.elements]]
name = "shipping_method"
type = "select"
prompt = "Shipping method"
required = true
options = [
  { value = "standard", label = "Standard (5-7 days)" },
  { value = "express", label = "Express (2-3 days)" },
  { value = "overnight", label = "Overnight" },
]

[[sections]]
title = "Delivery Information"
description = "Where should we send your order?"

[[sections.elements]]
name = "recipient_gender"
type = "select"
prompt = "Recipient salutation"
help = "Used for gender-aware greetings in some languages"
options = [
  { value = "male", label = "Mr." },
  { value = "female", label = "Ms." },
  { value = "other", label = "Other" },
]

[[sections.elements]]
name = "recipient_name"
type = "text"
prompt = "Recipient name"
required = true
placeholder = "John Smith"

[[sections.elements]]
name = "delivery_date"
type = "date"
prompt = "Preferred delivery date"
required = true
help = "Date format will adjust per locale"

[[sections.elements]]
name = "delivery_notes"
type = "text"
prompt = "Special delivery instructions"
help = "Optional notes for courier"
placeholder = "Leave at door"

[[sections]]
title = "Billing Address"
description = "Billing information"

[[sections.elements]]
name = "country"
type = "select"
prompt = "Country"
required = true
options = [
  { value = "us", label = "🇺🇸 United States" },
  { value = "gb", label = "🇬🇧 United Kingdom" },
  { value = "es", label = "🇪🇸 Spain" },
  { value = "mx", label = "🇲🇽 Mexico" },
  { value = "br", label = "🇧🇷 Brazil" },
  { value = "pt", label = "🇵🇹 Portugal" },
  { value = "fr", label = "🇫🇷 France" },
  { value = "jp", label = "🇯🇵 Japan" },
  { value = "sa", label = "🇸🇦 Saudi Arabia" },
]

[[sections.elements]]
name = "payment_method"
type = "select"
prompt = "Payment method"
required = true
options = [
  { value = "credit_card", label = "💳 Credit Card" },
  { value = "debit_card", label = "💳 Debit Card" },
  { value = "paypal", label = "🅿️ PayPal" },
  { value = "bank_transfer", label = "🏦 Bank Transfer" },
  { value = "local", label = "Local Payment Method" },
]

[[sections]]
title = "Order Review"
description = "Confirm your order details"

[[sections.elements]]
name = "agree_terms"
type = "confirm"
prompt = "I agree to the terms and conditions"
required = true

[[sections.elements]]
name = "subscribe_newsletter"
type = "confirm"
prompt = "Subscribe to our newsletter"
default = true

[[sections.elements]]
name = "save_address"
type = "confirm"
prompt = "Save this address for future orders"
default = true
