<!-- OFFER STACK (Unlimited Dynamic) -->
<div class="form-card section-divider" id="section-offer_stack">
    <h3>Offer Stack Section</h3>
    <input type="text" name="offer_stack_title" value="<?php echo htmlspecialchars($landing['offer_stack_title'] ?? 'Coach Kanchon\'s Offer Stack Template'); ?>"
           placeholder="Title" required class="mb-2">
    <textarea name="offer_stack_subtext" rows="2" placeholder="যেকোনো সংখ্যক অফার আইটেম – মাত্র একটি প্যাকেজে!"
              required class="mb-2"><?php echo htmlspecialchars($landing['offer_stack_subtext'] ?? 'যেকোনো সংখ্যক অফার আইটেম – মাত্র একটি প্যাকেজে!'); ?></textarea>
    <input type="text" name="offer_header_title" value="<?php echo htmlspecialchars($landing['offer_header_title'] ?? 'সীমিত সময়ের সুযোগ!'); ?>"
           placeholder="Header Title" required class="mb-2">
    <textarea name="offer_header_p" rows="2" placeholder="মোট মূল্য: ৳৩৫,৯৫০ → আজকের মূল্য: ৳৫,৯৯০"
              required><?php echo htmlspecialchars($landing['offer_header_p'] ?? 'মোট মূল্য: ৳৩৫,৯৫০ → আজকের মূল্য: ৳৫,৯৯০'); ?></textarea>
    <div id="offerContainer">
        <?php if (!empty($offer_items)): ?>
            <?php foreach ($offer_items as $index => $item): ?>
                <div class="offer-row">
                    <div class="flex justify-between items-center mb-2">
                        <h4>Offer Item <?php echo $index; ?></h4>
                        <button type="button" class="remove-btn" onclick="removeOffer(this)">Remove</button>
                    </div>
                    <input type="text" name="offer_icon[]" value="<?php echo htmlspecialchars($item['icon'] ?? ''); ?>"
                           placeholder="Icon (e.g. fas fa-box)" required class="mb-1">
                    <input type="text" name="offer_title[]" value="<?php echo htmlspecialchars($item['title'] ?? ''); ?>"
                           placeholder="Title (e.g. Main Offer)" required class="mb-1">
                    <textarea name="offer_desc[]" rows="2" placeholder="Description (e.g. Milk Booster Basic Package)"
                              required><?php echo htmlspecialchars($item['desc'] ?? ''); ?></textarea>
                    <input type="text" name="offer_value[]" value="<?php echo htmlspecialchars($item['value'] ?? ''); ?>"
                           placeholder="Value (e.g. ৳৫,৯৯০)" required class="mt-2">
                </div>
            <?php endforeach; ?>
        <?php else: ?>
            <div class="offer-row">
                <div class="flex justify-between items-center mb-2">
                    <h4>Offer Item 1</h4>
                    <button type="button" class="remove-btn" onclick="removeOffer(this)">Remove</button>
                </div>
                <input type="text" name="offer_icon[]" value="" placeholder="Icon (e.g. fas fa-box)" required class="mb-1">
                <input type="text" name="offer_title[]" value="" placeholder="Title (e.g. Main Offer)" required class="mb-1">
                <textarea name="offer_desc[]" rows="2" placeholder="Description (e.g. Milk Booster Basic Package)" required></textarea>
                <input type="text" name="offer_value[]" value="" placeholder="Value (e.g. ৳৫,৯৯০)" required class="mt-2">
            </div>
        <?php endif; ?>
    </div>
    <button type="button" class="add-btn" onclick="addOffer()">Add New Offer Item</button>
    <input type="text" name="offer_total_h4" value="<?php echo htmlspecialchars($landing['offer_total_h4'] ?? 'মোট মূল্য (Total Value)'); ?>"
           placeholder="Total H4" required class="mt-2 mb-1">
    <input type="text" name="offer_total_value" value="<?php echo htmlspecialchars($landing['offer_total_value'] ?? '৳৩৫,৯৫০'); ?>"
           placeholder="Total Value" required class="mb-1">
    <input type="text" name="offer_actual_price" value="<?php echo htmlspecialchars($landing['offer_actual_price'] ?? '৳৫,৯৯০'); ?>"
           placeholder="Actual Price" required class="mb-1">
    <textarea name="offer_save_amount" rows="2" placeholder="সেভ করছেন: ৳২৯,৯৬০ + সম্পূর্ণ ট্রান্সফরমেশন"
              required><?php echo htmlspecialchars($landing['offer_save_amount'] ?? 'সেভ করছেন: ৳২৯,৯৬০ + সম্পূর্ণ ট্রান্সফরমেশন'); ?></textarea>
</div>