from datetime import datetime


def create_booking_confirmation_message(first_name: str, appointment_day: str, appointment_time: str) -> str:
    """
    Creates the HTML message for the booking notification using first name and appointment details to
    personalize the message.
    :param first_name: First name of the user booking the appointment.
    :param appointment_day: Date of the appointment as string.
    :param appointment_time: Time of the appointment as string.
    :return: Personalized notification message for email notification.
    """
    appointment_day = datetime.strptime(appointment_day, "%Y-%m-%d").strftime("%d.%m.%Y")
    message = f"""
                <html>
                    <body>
                        <h1>Thanks for booking your appointment!</h1>
                        <p>Hello {first_name}!</p>
                        <p>Thank you for booking an appointment for a Covid-19 test at the TestPoint test centre.</p>
                        <p>These are your booking details:</p>
                        <p>Date: {appointment_day}</p>
                        <p>Time: {appointment_time} Uhr</p>
                        <p>Place: TestPoint test centre Bonn, Münsterplatz.</p>
                        <p>Please show the below QRCode upon arrival at the test centre to get tested.</p>
                        <img src="cid:qrcode">
                    </body>
                </html>
                """
    return message