<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
             x:Class="LSFE.MobApp.Views.CoveragePlan.ReasonModal"
             BackgroundColor="#00000055">
    <Grid>
    <!-- Backdrop / Overlay -->
    <BoxView Opacity="0.6" InputTransparent="False" />
    <Grid VerticalOptions="Center" HorizontalOptions="Center">
        <Border BackgroundColor="White"
                Stroke="#E2E8F0"
                StrokeShape="RoundRectangle 16"
                WidthRequest="420"
                Padding="24">

            <Border.Shadow>
                <Shadow Brush="#00000033" Offset="0,4" Radius="10"/>
            </Border.Shadow>

            <VerticalStackLayout Spacing="20">

                <Label Text="{Binding Title}"
                       FontSize="22"
                       FontAttributes="Bold"
                       HorizontalOptions="Center"
                       TextColor="#0F172A"/>

                <Label Text="Select a reason"
                       FontAttributes="Bold"
                       TextColor="#334155"/>

                <Picker ItemsSource="{Binding ReasonOptions}"
                        SelectedItem="{Binding SelectedReason}"
                        Title="Choose reason"
                        TitleColor="#94A3B8"
                        TextColor="#1E293B"/>

                <Label Text="Or enter your own reason:"
                       FontAttributes="Bold"
                       TextColor="#334155"/>

                <Editor Text="{Binding CustomReason}"
                        AutoSize="TextChanges"
                        Placeholder="Enter text..."
                        HeightRequest="100"
                        BackgroundColor="#F8FAFC" />

                <Grid ColumnDefinitions="*,*" ColumnSpacing="10" Margin="0,10,0,0">
                    <Button Text="Cancel"
                            Grid.Column="0"
                            BackgroundColor="#E2E8F0"
                            TextColor="#475569"
                            CornerRadius="14"
                            HeightRequest="46"
                            Command="{Binding CancelCommand}"/>

                    <Button Text="Submit"
                            Grid.Column="1"
                            BackgroundColor="#0EA5E9"
                            TextColor="White"
                            CornerRadius="14"
                            HeightRequest="46"
                            FontAttributes="Bold"
                            Command="{Binding SubmitCommand}"/>
                </Grid>

            </VerticalStackLayout>
        </Border>
    </Grid>
    </Grid>
</ContentPage>
