<?php
/**
 * GFB Location Modal
 *
 * @package GFB.
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

?>

<div id="apbgf-location-modal" class="modal">
	<div class="modal__content apbgf_fancy_scroll">
		<h2><?php echo esc_html__('Location Details', 'appointment-and-booking-for-gravity-forms'); ?></h2>
		<form id="apbgf-location-form" autocomplete="off" class="modal--form">
			<input type="hidden" class="post_id" name="post_id" value="" />
			<div class="form-col-one">
				<label for="fname"><?php echo esc_html__('Name*', 'appointment-and-booking-for-gravity-forms'); ?></label>
				<input type="text" id="apbgf-name" name="name" required>
			</div>
			<div class="form-col-two">
				<label for="phone"><?php echo esc_html__('Phone', 'appointment-and-booking-for-gravity-forms'); ?></label>
				<input type="tel" id="apbgf-phone" name="phone" >
			</div>            

			<div class="form-col-full">
				<label for="apbgf-address"><?php echo esc_html__('Address', 'appointment-and-booking-for-gravity-forms'); ?></label>
				<textarea id="apbgf-address" name="address" ></textarea>
			</div>

			<div class="form-col-full">
				<label for="description"><?php echo esc_html__('Description', 'appointment-and-booking-for-gravity-forms'); ?></label>
				<textarea id="apbgf-description" name="description"></textarea>
			</div>

			<input class="save--modal" type="submit" value="Save">

			<div class="apbgf-response"></div>
		</form>

		<a href="#" class="modal__close">&times;</a>
	</div>
</div>
