<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
<div class="drop-popup-section modal fade position-fixed" id="expert-Modal-popup" aria-hidden="true"
    data-bs-backdrop="static" data-bs-keyboard="false" tabindex="-1">
    <div class="modal-dialog modal-dialog-centered">
        <div class="kirb-modal-content drop-section expert-section">
            <div class="modal-header">
                <div class="heading-h5 modal-title"><?php echo esc_html('Need Help?'); ?></div>
                <div class="pera-content">
                    <?php echo esc_html('Our jewelry experts are here to help with any product questions'); ?>.
                </div>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="email-section">
                    <form method="post" id="consultExpert">
                        <input type="text" id="email-consult" placeholder="<?php echo esc_attr('Your Email'); ?>">
                        <input type="text" id="name-consult" placeholder="<?php echo esc_attr('Your Name'); ?>">
                        <input type="number" id="phone-consult" placeholder="<?php echo esc_attr('Phone (Optional)'); ?>">
                        <textarea name="" id="message-consult" placeholder="<?php echo esc_attr('Message (Optional)'); ?>"></textarea>
                        <div id="resMessage-consult"></div>
                        <div class=" d-flex align-items-center justify-content-between">
                            <button class="send-btn send_mail" data-id="consult"><?php echo esc_html("Send") ?></button>
                            <?php
                            $expert_contact = wc_sanitize_phone_number($addons_data['consult_expert']['string']);
                            if ($expert_contact) {
                                ?>
                                <div class="modal_dynamic_number">
                                    <img src="<?php echo esc_url(KIRB_PLUGIN_DIR); ?>/assets/images/bi-telephone-icon.png"
                                        loading="lazy" alt="<?php echo esc_attr('product image'); ?>" width="15" height="15">
                                    <span><a
                                            href="tel:<?php echo esc_attr($expert_contact); ?>"><?php echo esc_html($expert_contact); ?></a></span>
                                </div>
                            <?php } ?>
                        </div>
                        <input type="hidden" id="type-consult" value="consult" />
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>