review script 
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Wind Turbine Call Log</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f4f4f4;
            margin: 0;
            padding: 0;
            display: flex;
            height: 100vh;
            flex-direction: column;
        }

        header {
            background-color: #2196F3;
            padding: 10px;
            display: flex;
            align-items: center;
        }

        header img {
            height: 50px;
            margin-right: 10px;
        }

        header h1 {
            color: #fff;
            margin: 0;
        }

        .container {
            display: flex;
            flex: 1;
        }

        .left-panel {
            flex: 1;
            padding: 20px;
            box-sizing: border-box;
        }

        form {
            background-color: #fff;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
            padding: 20px;
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
        }

        input,
        select {
            width: 100%;
            padding: 8px;
            margin-bottom: 16px;
            box-sizing: border-box;
            border: 1px solid #ccc;
            border-radius: 4px;
        }

        button {
            background-color: #4caf50;
            color: #fff;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
        }

        button:hover {
            background-color: #45a049;
        }

        .middle-panel {
            flex: 1;
            padding: 20px;
            box-sizing: border-box;
            text-align: left;
        }

        .log-item {
            border: 1px solid #ccc;
            border-radius: 4px;
            padding: 10px;
            margin-bottom: 10px;
        }

        .download-btn {
            background-color: #2196F3;
            color: #fff;
            padding: 10px 15px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            margin-top: 20px;
        }

        .download-btn:hover {
            background-color: #0b7dda;
        }
    </style>
</head>

<body>
    <header>
        <img src="https://images.app.goo.gl/UL6md5XD4nHmnXjq7" alt="Logo">
        <h1>Wind Turbine Call Log</h1>
    </header>

    <div class="container">
        <div class="left-panel">
            <form id="callLogForm">
                <label for="name">Name:</label>
                <input type="text" id="name" name="name" required>

                <label for="company">Company:</label>
                <input type="text" id="company" name="company" required>

                <label for="site">Site:</label>
                <input type="text" id="site" name="site" required>

                <label for="tower">Tower:</label>
                <input type="text" id="tower" name="tower" required>

                <label for="resolution">Resolution:</label>
                <select id="resolution" name="resolution" required>
                    <option value="ALC Support">ALC Support</option>
                    <option value="Blade Support">Blade Support</option>
                    <option value="BOP">BOP</option>
                    <option value="External Toolbox Request">External Toolbox Request</option>
                    <option value="Internal Toolbox Request">Internal Toolbox Request</option>
                    <option value="Start/Stop">Start/Stop</option>
                    <option value="Status Check">Status Check</option>
                    <option value="Wind Speed">Wind Speed</option>
                    <option value="Yaw">Yaw</option>
                    <option value="Repair/Maintenance">Repair/Maintenance</option>
                </select>

                <button type="button" onclick="submitForm()">Submit</button>
            </form>
        </div>

        <div class="middle-panel">
            <h2>Call Log</h2>
            <div id="callLog">
                <!-- Log items will appear here -->
            </div>
            <button class="download-btn" onclick="downloadCSV()">Download as CSV</button>
        </div>
    </div>

    <script>
        function submitForm() {
            const name = document.getElementById('name').value;
            const site = document.getElementById('site').value;
            const tower = document.getElementById('tower').value;
            const resolution = document.getElementById('resolution').value;

            const logDiv = document.getElementById('callLog');

            const logItem = document.createElement('div');
            logItem.className = 'log-item';
            logItem.innerHTML = `<strong>Name:</strong> ${name} | <strong>Site:</strong> ${site} | <strong>Tower:</strong> ${tower} | <strong>Resolution:</strong> ${resolution}`;

            logDiv.appendChild(logItem);

            // Clear form fields after submission
            document.getElementById('callLogForm').reset();
        }

        function downloadCSV() {
            const logItems = document.querySelectorAll('.log-item');
            const csvContent = ['Name, Site, Tower, Resolution'];

            logItems.forEach(item => {
                const itemText = item.innerText.replace(/\s+/g, ' ').trim(); // remove extra spaces
                csvContent.push(itemText);
            });

            const csvData = csvContent.join('\n');
            const blob = new Blob([csvData], { type: 'text/csv' });
            const link = document.createElement('a');
            link.href = URL.createObjectURL(blob);
            link.download = 'call_log.csv';
            link.click();
        }
    </script>
</body>

</html>