<div class="std-each-custom-field">
    <label for="std_custom_field_<?php echo esc_attr($field_key); ?>" class="sr-only std-hidden-item"><?php echo esc_html($field_label); ?></label>
    <input type="tel" name="<?php echo esc_attr($field_name); ?>" id="std_custom_field_<?php echo esc_attr($field_key); ?> " class="std-rounded" placeholder="<?php echo esc_attr($field_label); ?>" <?php
                                                                                                                                                                                                        if (!empty($field_details['pattern'])) {
                                                                                                                                                                                                        ?> pattern="<?php echo esc_attr($field_details['pattern']); ?>" <?php
                                                                                                                                                                                                                                                                    }
                                                                                                                                                                                                                                                                    if (!empty($field_details['pattern'])) { ?> maxlength="<?php echo esc_attr($field_details['max_length']); ?>" <?php }
                                                                                                                                                                                                                                                                                                                                                                                if (!empty($field_details['min_length'])) { ?> minlength="<?php echo esc_attr($field_details['min_length']); ?>" <?php } ?> data-field-key="<?php echo esc_attr($field_key); ?>" />
</div>