<!-- SOLUTION -->
<div class="form-card section-divider" id="section-solution">
    <h3>Solution Section</h3>
    <input type="text" name="solution_section_title" value="<?php echo htmlspecialchars($landing['solution_section_title'] ?? 'সমাধান: Milk Booster – প্রমাণিত রেজাল্ট!'); ?>"
           placeholder="Section Title" required class="mb-2">
    <textarea name="solution_description" rows="2" placeholder="১০০% প্রাকৃতিক..."
              required class="mb-2"><?php echo htmlspecialchars($landing['solution_description'] ?? '১০০% প্রাকৃতিক। ১৫ দিনে দুধ বৃদ্ধি। ৫০০০+ খামারি ব্যবহার করছে।'); ?></textarea>
    <label class="block">Solution Image (≤ 2 MB)</label>
    <input type="file" name="solution_image" accept="image/*" class="mb-2">
    <?php if (!empty($landing['solution_image'])): ?>
        <img src="<?php echo htmlspecialchars($upload_dir . $landing['solution_image']); ?>" alt="Solution" class="preview-img">
    <?php endif; ?>
    <h4 class="mt-2 mb-1">Solution List Items</h4>
    <div id="solutionListContainer">
        <?php if (!empty($solution_list)): ?>
            <?php foreach ($solution_list as $index => $item): ?>
                <div class="solution-item-row">
                    <div class="flex justify-between items-center mb-2">
                        <h4>Solution Item <?php echo $index; ?></h4>
                        <button type="button" class="remove-btn" onclick="removeSolutionItem(this)">Remove</button>
                    </div>
                    <input type="text" name="solution_list_item[]" value="<?php echo htmlspecialchars($item); ?>"
                           placeholder="List Item (e.g. Item <?php echo $index; ?>)" required>
                </div>
            <?php endforeach; ?>
        <?php else: ?>
            <div class="solution-item-row">
                <div class="flex justify-between items-center mb-2">
                    <h4>Solution Item 1</h4>
                    <button type="button" class="remove-btn" onclick="removeSolutionItem(this)">Remove</button>
                </div>
                <input type="text" name="solution_list_item[]" value="" placeholder="List Item (e.g. ১০০% প্রাকৃতিক উপাদান)" required>
            </div>
        <?php endif; ?>
    </div>
    <button type="button" class="add-btn mt-2" onclick="addSolutionItem()">Add New Solution Item</button>
    <input type="text" name="solution_cta_text" value="<?php echo htmlspecialchars($landing['solution_cta_text'] ?? 'এখনই অর্ডার করুন'); ?>"
           placeholder="CTA Button Text" required class="mt-2">
</div>