The `renew.html` file is an HTML page designed for renewing memberships for the Indian River Kontrol Society (I.R.K.S.).

Here's a breakdown of its key aspects:

*   **Purpose:** Allows existing members to renew their membership by providing their AMA number, retrieving their details, updating them if necessary, and submitting the renewal.
*   **Frontend Technologies:**
    *   **HTML5:** Provides the basic structure of the page.
    *   **Tailwind CSS:** Used for styling, providing a responsive and modern design. It's loaded via a CDN.
    *   **Vanilla JavaScript:** Handles client-side interactivity, including:
        *   Toggling a mobile navigation menu.
        *   Fetching member data from `get_member_data.php` based on an entered AMA number.
        *   Populating a form with the retrieved member data.
        *   Submitting the renewal form data to `save_renewal.php`.
        *   Displaying success or error messages to the user.
*   **Backend Interaction:**
    *   **`get_member_data.php`:** This PHP script is called via `fetch` to retrieve a member's details from members.db Members table using their AMA number.
    *   **`save_renewal.php`:** This PHP script is called via `fetch` (POST request) to save the updated membership information to the database in table renewals.
*   **User Flow:**
    1.  User lands on the page and is prompted to enter their AMA number.
    2.  Upon entering the AMA number and clicking "Find your info," a JavaScript function makes an AJAX call to `get_member_data.php`.
    3.  If the member is found, a form is dynamically displayed and pre-filled with their existing information.
    4.  The user can review and modify their details.
    5.  Upon submitting the form, another AJAX call is made to `save_renewal.php` to write the membership record in table renewals.
    6.  Success messages (including payment instructions) or error messages are displayed.
*   **Key Elements:**
    *   A sticky header with navigation links (Home, Contact, Join/Renew) and a responsive mobile menu.
    *   A main content area with a prominent title for membership renewal.
    *   An input field for the AMA number and a "Find your info" button.
    *   A `message_area` to display feedback to the user.
    *   A `success_message_container` to show successful renewal messages and payment instructions.
    *   A dynamically loaded form (`form_container`) for member details (first name, last name, AMA number, email, phone, address, etc.).
*   **Styling Notes:** The page uses a blue background with a background image (`images/bk.png` and `images/bklg.png` for larger screens). The header is a dark blue (`#073d96`). Text colors and button styles are consistent with a clean, modern aesthetic provided by Tailwind CSS.
