<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scroll_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    android:background="@color/white_bg"
    android:overScrollMode="never">

    <LinearLayout
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:weightSum="10"
        android:orientation="vertical">

        <ImageView
            android:id="@+id/back_btn"
            android:layout_width="35sp"
            android:layout_height="35sp"
            android:contentDescription="@string/back_button"
            android:padding="5dp"
            android:src="@drawable/arrow_back"
            android:layout_margin="15dp"
            android:paddingStart="-15dp"
            android:paddingEnd="0dp"
            />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:text="@string/choose_on_map"
            android:fontFamily="@font/nunito_medium"
            android:textSize="@dimen/_18ssp"
            android:textColor="@color/black"
            android:layout_marginHorizontal="15dp"
            />

        <TextView
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_marginHorizontal="15dp"
            android:text="@string/drag_the_map_and_choose_the_place"
            android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
            android:fontFamily="@font/nunito_regular"
            android:layout_marginVertical="5dp"
            android:textColor="@color/black"
            />

        <RelativeLayout
            android:id="@+id/map_view"
            android:layout_width="match_parent"
            android:layout_height="@dimen/_350sdp"

            android:layout_marginHorizontal="15dp"
            android:layout_marginVertical="20dp"
            >

            <androidx.fragment.app.FragmentContainerView
                android:id="@+id/map_frag_cont"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                />

            <ImageView
                android:id="@+id/trans_img"
                android:layout_width="match_parent"
                android:layout_height="match_parent"
                android:background="@android:color/transparent"
                />

            <com.google.android.material.card.MaterialCardView
                android:layout_width="match_parent"
                android:layout_height="wrap_content"

                android:layout_marginHorizontal="@dimen/_10sdp"
                android:layout_marginTop="@dimen/_10sdp"

                app:cardBackgroundColor="@color/white"
                app:cardElevation="5dp"

                app:strokeWidth="0.5dp"
                app:strokeColor="@color/color_accent"

                app:cardCornerRadius="20dp"

                >

                <TextView
                    android:id="@+id/search"
                    android:layout_width="match_parent"
                    android:layout_height="wrap_content"

                    android:text="@string/search_places"
                    android:fontFamily="@string/register"
                    android:textColor="@android:color/darker_gray"
                    android:textSize="@dimen/_14ssp"

                    android:layout_marginVertical="10dp"
                    android:layout_marginHorizontal="15dp"

                    app:drawableStartCompat="@drawable/ic_search_outline"
                    android:drawablePadding="15dp"

                    />

            </com.google.android.material.card.MaterialCardView>

        </RelativeLayout>

        <LinearLayout
            android:id="@+id/address_view"
            android:visibility="invisible"
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:orientation="vertical">

            <TextView
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:text="@string/home_address"
                android:layout_marginHorizontal="15dp"
                android:textColor="@color/black"
                android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
                android:fontFamily="@font/nunito_medium"
                />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"

                android:orientation="horizontal"

                android:background="@drawable/edit_text_bg_2"
                android:layout_marginHorizontal="15dp"
                android:focusable="false"
                android:layout_marginVertical="10dp">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@string/medication_type"

                    app:srcCompat="@drawable/ic_home"

                    android:layout_marginVertical="10dp"
                    android:layout_marginStart="10dp"

                    />

                <com.skydoves.powerspinner.PowerSpinnerView
                    android:id="@+id/country_spinner"
                    android:enabled="false"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"

                    android:background="@color/white_bg"

                    android:gravity="center_vertical"

                    android:padding="10dp"
                    android:textColor="@color/black"
                    android:textAppearance="@style/TextAppearance.Material3.TitleMedium"

                    android:hint="@string/enter_your_country"
                    android:textColorHint="#A1A1A1"

                    app:spinner_arrow_drawable="@drawable/ic_down"
                    app:drawableTint="@color/white"

                    app:spinner_popup_max_height="200dp"
                    app:spinner_arrow_animate="true"
                    app:fontFamily="@font/nunito_regular"

                    android:layout_marginVertical="5dp"
                    android:layout_marginEnd="5dp"

                    app:spinner_arrow_gravity="end"
                    app:spinner_arrow_padding="8dp"
                    app:spinner_arrow_tint="@color/black"
                    app:spinner_divider_show="true"
                    app:spinner_divider_size="0.4dp"
                    app:spinner_divider_color="@color/black"
                    app:spinner_item_height="46dp"
                    app:spinner_popup_animation="dropdown"
                    app:spinner_popup_background="@drawable/edit_text_bg_2"
                    app:spinner_popup_elevation="14dp"

                    />

            </LinearLayout>

            <EditText
                android:id="@+id/street"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edit_text_bg_2"
                android:layout_marginHorizontal="15dp"
                android:layout_marginVertical="10dp"

                android:hint="@string/enter_your_street"
                android:fontFamily="@font/nunito_regular"
                android:textColor="@color/black"
                android:textColorHint="@android:color/darker_gray"
                android:textAppearance="@style/TextAppearance.Material3.TitleMedium"

                android:paddingVertical="5dp"
                android:padding="10dp"

                android:drawableStart="@drawable/ic_home"
                android:drawablePadding="10dp"

                android:autofillHints="postalAddress"
                android:inputType="text|textCapSentences"
                />

            <EditText
                android:id="@+id/town"
                android:enabled="false"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edit_text_bg_2"
                android:layout_marginHorizontal="15dp"
                android:layout_marginVertical="10dp"

                android:hint="@string/enter_your_town"
                android:fontFamily="@font/nunito_regular"
                android:textColor="@color/black"
                android:textColorHint="@android:color/darker_gray"
                android:textAppearance="@style/TextAppearance.Material3.TitleMedium"

                android:paddingVertical="5dp"
                android:padding="10dp"

                android:drawableStart="@drawable/ic_home"
                android:drawablePadding="10dp"

                android:autofillHints="postalAddress"
                android:inputType="text|textCapSentences"
                />

            <LinearLayout
                android:layout_width="match_parent"
                android:layout_height="wrap_content"

                android:orientation="horizontal"
                android:focusable="false"
                android:background="@drawable/edit_text_bg_2"
                android:layout_marginHorizontal="15dp"
                android:layout_marginVertical="10dp">

                <ImageView
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:contentDescription="@string/medication_type"

                    app:srcCompat="@drawable/ic_home"

                    android:layout_marginVertical="10dp"
                    android:layout_marginStart="10dp"

                    />

                <com.skydoves.powerspinner.PowerSpinnerView
                    android:id="@+id/state_spinner"
                    android:enabled="false"
                    android:layout_width="match_parent"
                    android:layout_height="match_parent"

                    android:background="@color/white_bg"

                    android:gravity="center_vertical"

                    android:padding="10dp"
                    android:textColor="@color/black"
                    android:textAppearance="@style/TextAppearance.Material3.TitleMedium"

                    android:hint="@string/enter_your_state"
                    android:textColorHint="#A1A1A1"

                    app:spinner_arrow_drawable="@drawable/ic_down"
                    app:drawableTint="@color/white"

                    app:spinner_popup_max_height="200dp"
                    app:spinner_arrow_animate="true"
                    app:fontFamily="@font/nunito_regular"

                    android:layout_marginVertical="5dp"
                    android:layout_marginEnd="5dp"

                    app:spinner_arrow_gravity="end"
                    app:spinner_arrow_padding="8dp"
                    app:spinner_arrow_tint="@color/black"
                    app:spinner_divider_show="true"
                    app:spinner_divider_size="0.4dp"
                    app:spinner_divider_color="@color/black"
                    app:spinner_item_height="46dp"
                    app:spinner_popup_animation="dropdown"
                    app:spinner_popup_background="@drawable/edit_text_bg_2"
                    app:spinner_popup_elevation="14dp"

                    />

            </LinearLayout>

            <EditText
                android:id="@+id/zip_code"
                android:enabled="false"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:background="@drawable/edit_text_bg_2"
                android:layout_marginHorizontal="15dp"
                android:layout_marginVertical="10dp"

                android:hint="@string/enter_your_zip_code"
                android:fontFamily="@font/nunito_regular"
                android:textColor="@color/black"
                android:textColorHint="@android:color/darker_gray"
                android:textAppearance="@style/TextAppearance.Material3.TitleMedium"

                android:paddingVertical="5dp"
                android:padding="10dp"

                android:drawableStart="@drawable/ic_home"
                android:drawablePadding="10dp"

                android:maxLength="6"

                android:autofillHints="postalAddress"
                android:inputType="number"
                />

            <com.google.android.material.button.MaterialButton
                android:id="@+id/submit"
                android:layout_width="match_parent"
                android:layout_height="wrap_content"
                android:layout_marginHorizontal="15dp"
                android:layout_marginVertical="15dp"
                android:text="@string/submit"
                android:textAppearance="@style/TextAppearance.Material3.TitleMedium"
                android:textAllCaps="false"
                android:fontFamily="@font/nunito_regular"
                android:textColor="@color/white_bg"
                android:paddingVertical="15dp"
                app:backgroundTint="@color/color_primary"
                app:cornerRadius="15dp"

                android:drawableEnd="@drawable/ic_forward_error"
                android:drawablePadding="15dp"
                />

            <View
                android:id="@+id/bottom_viwe"
                android:layout_width="match_parent"
                android:layout_height="0dp"
                />

        </LinearLayout>

    </LinearLayout>

</ScrollView>