<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="MauiControls.MainPage"
             Title="Registration">
    <ScrollView>
        <VerticalStackLayout Padding="24" Spacing="12">
            <Label Text="Course Registration"
                   FontSize="26" FontAttributes="Bold" />
            <Label Text="Your name" />
            <Entry x:Name="NameEntry" Placeholder="Full name" />
            <Label Text="Email" />
            <Entry x:Name="EmailEntry" Placeholder="you@example.com"
                   Keyboard="Email" />
            <Label Text="Choose a course" />
            <Picker x:Name="CoursePicker" Title="Select a course">
                <Picker.Items>
                    <x:String>C#</x:String>
                    <x:String>.NET MAUI</x:String>
                    <x:String>Python</x:String>
                </Picker.Items>
            </Picker>
            <HorizontalStackLayout Spacing="12">
                <Switch x:Name="ConsentSwitch" />
                <Label Text="I agree to register"
                       VerticalOptions="Center" />
            </HorizontalStackLayout>
            <Button Text="Submit" Clicked="OnSubmitClicked" />
            <Label x:Name="StatusLabel" FontSize="16" />
        </VerticalStackLayout>
    </ScrollView>
</ContentPage>
