<?php
namespace Elementor;
namespace Pt_Addons_Elementor\Elements\NinjaForm;
// If this file is called directly, abort.
if (!defined('ABSPATH')) {
    exit;
}
use \Elementor\Utils;
use \Elementor\Frontend;
use \Elementor\Controls_Manager as Controls_Manager;
use \Elementor\Group_Control_Background;
use \Elementor\Group_Control_Border;
use \Elementor\Group_Control_Typography;
use \Elementor\Scheme_Typography;
use \Elementor\Scheme_Color;
use \Elementor\Group_Control_Box_Shadow;
use \Elementor\Group_Control_Image_Size as Group_Control_Image_Size;
use \Elementor\Widget_Base as Widget_Base;
use \Pt_Addons_Elementor\Classes\Bootstrap;
class Ninja_Form extends Widget_Base
{
    use \Pt_Addons_Elementor\Includes\Triat\Helper;
    public function get_name()
    {
        return 'pt-ninja-form';
    }
    public function get_title()
    {
        return esc_html__('Ninja Form', 'pt-addons-elementor');
    }
    public function get_icon()
    {
        return 'fa fa-id-card-o';
    }
    public function get_categories()
    {
        return ['pt-addons-elementor'];
    }
	
	/**
	 * Define our _register_controls settings.
	 */
	protected function _register_controls() {
		 $this->start_controls_section(
  			'pt_section_ninja_form',
  			[
  				'label' => esc_html__( 'Add Form Shortcode', 'elementor' )
  			]
  		);
		$this->add_control(
			'pt_ninja_form',
			[
				'label' => esc_html__( 'Select ninja form', 'elementor' ),
				'label_block' => true,
				'type' => Controls_Manager::SELECT,
				'options' => $this->pt_select_ninja_form(),
			]
		);
		$this->end_controls_section();
		$this->start_controls_section(
			'pt_section_ninja_styles',
			[
				'label' => esc_html__( 'Form Container Styles', 'elementor' ),
				'tab' => Controls_Manager::TAB_STYLE
			]
		);
		$this->add_control(
			'pt_ninja_background',
			[
				'label' => esc_html__( 'Form Background Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'default' => '#fff',
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'background-color: {{VALUE}};',
				],
			]
		);
		$this->add_responsive_control(
			'pt_ninja_alignment',
			[
				'label' => esc_html__( 'Form Alignment', 'elementor' ),
				'type' => Controls_Manager::CHOOSE,
				'label_block' => true,
				'options' => [
					'default' => [
						'title' => __( 'Default', 'elementor' ),
						'icon' => 'eicon-ban',
					],
					'left' => [
						'title' => esc_html__( 'Left', 'elementor' ),
						'icon' => 'eicon-text-align-left',
					],
					'center' => [
						'title' => esc_html__( 'Center', 'elementor' ),
						'icon' => 'eicon-text-align-center',
					],
					'right' => [
						'title' => esc_html__( 'Right', 'elementor' ),
						'icon' => 'eicon-text-align-right',
					],
				],
				'default' => 'default',
				'prefix_class' => 'pt-contact-form-align-',
			]
		);
		$this->add_responsive_control(
  			'pt_ninja_width',
  			[
  				'label' => esc_html__( 'Form Width', 'elementor' ),
  				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', 'em', '%' ],
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 1500,
					],
					'em' => [
						'min' => 1,
						'max' => 80,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'width: {{SIZE}}{{UNIT}};',
				],
  			]
  		);
  		$this->add_responsive_control(
  			'pt_ninja_max_width',
  			[
  				'label' => esc_html__( 'Form Max Width', 'elementor' ),
  				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', 'em', '%' ],
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 1500,
					],
					'em' => [
						'min' => 1,
						'max' => 80,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'max-width: {{SIZE}}{{UNIT}};',
				],
  			]
  		);
		$this->add_responsive_control(
			'pt_ninja_margin',
			[
				'label' => esc_html__( 'Form Margin', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_responsive_control(
			'pt_ninja_padding',
			[
				'label' => esc_html__( 'Form Padding', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_border_radius',
			[
				'label' => esc_html__( 'Border Radius', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'separator' => 'before',
				'size_units' => [ 'px' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			[
				'name' => 'pt_ninja_border',
				'selector' => '{{WRAPPER}} .pt-ninja-container',
			]
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'pt_ninja_box_shadow',
				'selector' => '{{WRAPPER}} .pt-ninja-container',
			]
		);
		$this->end_controls_section();
		/**
		 * Form Fields Styles
		 */
		$this->start_controls_section(
			'pt_section_ninja_field_styles',
			[
				'label' => esc_html__( 'Form Fields Styles', 'elementor' ),
				'tab' => Controls_Manager::TAB_STYLE
			]
		);
		$this->add_control(
			'pt_ninja_input_background',
			[
				'label' => esc_html__( 'Input Field Background', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea' => 'background-color: {{VALUE}};',
				],
			]
		);
  		$this->add_responsive_control(
  			'pt_ninja_input_width',
  			[
  				'label' => esc_html__( 'Input Width', 'elementor' ),
  				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', 'em', '%' ],
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 1500,
					],
					'em' => [
						'min' => 1,
						'max' => 80,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"]' => 'width: {{SIZE}}{{UNIT}};',
				],
  			]
  		);
  		$this->add_responsive_control(
  			'pt_ninja_textarea_width',
  			[
  				'label' => esc_html__( 'Textarea Width', 'elementor' ),
  				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', 'em', '%' ],
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 1500,
					],
					'em' => [
						'min' => 1,
						'max' => 80,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea' => 'width: {{SIZE}}{{UNIT}};',
				],
  			]
  		);
		$this->add_responsive_control(
			'pt_ninja_input_padding',
			[
				'label' => esc_html__( 'Fields Padding', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_input_border_radius',
			[
				'label' => esc_html__( 'Border Radius', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'separator' => 'before',
				'size_units' => [ 'px' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			[
				'name' => 'pt_ninja_input_border',
				'selector' => '
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea',
			]
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'pt_ninja_input_box_shadow',
				'selector' => '
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea',
			]
		);
		$this->add_control(
			'pt_ninja_focus_heading',
			[
				'type' => Controls_Manager::HEADING,
				'label' => esc_html__( 'Focus State Style', 'elementor' ),
				'separator' => 'before',
			]
		);
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'pt_ninja_input_focus_box_shadow',
				'selector' => '
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea:focus',
			]
		);
		$this->add_control(
			'pt_ninja_input_focus_border',
			[
				'label' => esc_html__( 'Border Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"]:focus,
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea:focus' => 'border-color: {{VALUE}};',
				],
			]
		);
		$this->end_controls_section();
		/**
		 * Typography
		 */
		$this->start_controls_section(
			'pt_section_ninja_typography',
			[
				'label' => esc_html__( 'Color & Typography', 'elementor' ),
				'tab' => Controls_Manager::TAB_STYLE
			]
		);
		$this->add_control(
			'pt_ninja_label_color',
			[
				'label' => esc_html__( 'Label Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container, {{WRAPPER}} .pt-ninja-container .nf-field-label label' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_field_color',
			[
				'label' => esc_html__( 'Field Font Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_placeholder_color',
			[
				'label' => esc_html__( 'Placeholder Font Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container ::-webkit-input-placeholder' => 'color: {{VALUE}};',
					'{{WRAPPER}} .pt-ninja-container ::-moz-placeholder' => 'color: {{VALUE}};',
					'{{WRAPPER}} .pt-ninja-container ::-ms-input-placeholder' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_label_heading',
			[
				'type' => Controls_Manager::HEADING,
				'label' => esc_html__( 'Label Typography', 'elementor' ),
				'separator' => 'before',
			]
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			[
				'name' => 'pt_ninja_label_typography',
				'selector' => '{{WRAPPER}} .pt-ninja-container, {{WRAPPER}} .pt-ninja-container .wpuf-label label',
			]
		);
		$this->add_control(
			'pt_ninja_heading_input_field',
			[
				'type' => Controls_Manager::HEADING,
				'label' => esc_html__( 'Input Fields Typography', 'elementor' ),
				'separator' => 'before',
			]
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			[
				'name' => 'pt_ninja_input_field_typography',
				'selector' => '{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="text"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="password"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="email"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="url"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="number"],
					 {{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element textarea',
			]
		);
		$this->end_controls_section();
		/**
		 * Button Style
		 */
		$this->start_controls_section(
			'pt_section_ninja_submit_button_styles',
			[
				'label' => esc_html__( 'Submit Button Styles', 'elementor' ),
				'tab' => Controls_Manager::TAB_STYLE
			]
		);
  		$this->add_responsive_control(
  			'pt_ninja_submit_btn_width',
  			[
  				'label' => esc_html__( 'Button Width', 'elementor' ),
  				'type' => Controls_Manager::SLIDER,
				'size_units' => [ 'px', 'em', '%' ],
				'range' => [
					'px' => [
						'min' => 10,
						'max' => 1500,
					],
					'em' => [
						'min' => 1,
						'max' => 80,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="submit"]' => 'width: {{SIZE}}{{UNIT}};',
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'width: {{SIZE}}{{UNIT}};',
				],
  			]
  		);
		$this->add_responsive_control(
			'pt_ninja_submit_btn_alignment',
			[
				'label' => esc_html__( 'Button Alignment', 'elementor' ),
				'type' => Controls_Manager::CHOOSE,
				'label_block' => true,
				'options' => [
					'default' => [
						'title' => __( 'Default', 'elementor' ),
						'icon' => 'eicon-ban',
					],
					'left' => [
						'title' => esc_html__( 'Left', 'elementor' ),
						'icon' => 'eicon-text-align-left',
					],
					'center' => [
						'title' => esc_html__( 'Center', 'elementor' ),
						'icon' => 'eicon-text-align-center',
					],
					'right' => [
						'title' => esc_html__( 'Right', 'elementor' ),
						'icon' => 'eicon-text-align-right',
					],
				],
				'default' => 'default',
				'prefix_class' => 'pt-contact-form-btn-align-',
			]
		);
		$this->add_group_control(
			Group_Control_Typography::get_type(),
			[
             'name' => 'pt_ninja_submit_btn_typography',
				'scheme' => Scheme_Typography::TYPOGRAPHY_1,
				'selector' => '{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]',
			]
		);
		$this->add_responsive_control(
			'pt_ninja_submit_btn_margin',
			[
				'label' => esc_html__( 'Margin', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->add_responsive_control(
			'pt_ninja_submit_btn_padding',
			[
				'label' => esc_html__( 'Padding', 'elementor' ),
				'type' => Controls_Manager::DIMENSIONS,
				'size_units' => [ 'px', 'em', '%' ],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
				],
			]
		);
		$this->start_controls_tabs( 'pt_ninja_submit_button_tabs' );
		$this->start_controls_tab( 'normal', [ 'label' => esc_html__( 'Normal', 'elementor' ) ] );
		$this->add_control(
			'pt_ninja_submit_btn_text_color',
			[
				'label' => esc_html__( 'Text Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_submit_btn_background_color',
			[
				'label' => esc_html__( 'Background Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'background-color: {{VALUE}};',
				],
			]
		);
		$this->add_group_control(
			Group_Control_Border::get_type(),
			[
				'name' => 'pt_ninja_submit_btn_border',
				'selector' => '{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]',
			]
		);
		$this->add_control(
			'pt_ninja_submit_btn_border_radius',
			[
				'label' => esc_html__( 'Border Radius', 'elementor' ),
				'type' => Controls_Manager::SLIDER,
				'range' => [
					'px' => [
						'max' => 100,
					],
				],
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]' => 'border-radius: {{SIZE}}px;',
				],
			]
		);
		$this->end_controls_tab();
		$this->start_controls_tab( 'pt_ninja_submit_btn_hover', [ 'label' => esc_html__( 'Hover', 'elementor' ) ] );
		$this->add_control(
			'pt_ninja_submit_btn_hover_text_color',
			[
				'label' => esc_html__( 'Text Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]:hover' => 'color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_submit_btn_hover_background_color',
			[
				'label' => esc_html__( 'Background Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]:hover' => 'background-color: {{VALUE}};',
				],
			]
		);
		$this->add_control(
			'pt_ninja_submit_btn_hover_border_color',
			[
				'label' => esc_html__( 'Border Color', 'elementor' ),
				'type' => Controls_Manager::COLOR,
				'selectors' => [
					'{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]:hover' => 'border-color: {{VALUE}};',
				],
			]
		);
		$this->end_controls_tab();
		$this->end_controls_tabs();
		$this->add_group_control(
			Group_Control_Box_Shadow::get_type(),
			[
				'name' => 'pt_ninja_submit_btn_box_shadow',
				'selector' => '{{WRAPPER}} .pt-ninja-container .nf-field .nf-field-element input[type="button"]',
			]
		);
		$this->end_controls_section();
	}
	/**
	 * Define our Render Display settings.
	 */
		protected function render( ) {
      $settings = $this->get_settings();
	?>
	<div class="pt-ninja-container">
			<?php echo do_shortcode( '[ninja_form id="'.$settings['pt_ninja_form'].'"]' ); ?>
		</div>
	<?php if ( ! empty( $settings['pt_ninja_form'] ) ) : ?>
		
	<?php endif; ?>
	<?php
	}
	protected function content_template() {
		?>
		<?php
	}
}