<div class="wpcsr-search-box single-search">
	<form id="wpcsr-findrate" class="wpcsr-quote-book mb-0" action="<?php echo $result_page_url; ?>" method="post">
		<?php wp_nonce_field( 'quote_request_action', 'quote_request_nonce_field' ); ?>
		<input type="hidden" name="search-type" value="0">
		<div id="wpcsr-srequest-wrapper" class="wpcargo-container">
			<div id="rate-container">
				<h3><?php echo wpcsr_calculator_form_label(); ?></h3>
				<div class="simple-form wpcargo-row">
					<div class="wpcargo-col-lg-4">
						<div class="collection-from-section">
							<section class="wpcsr-sc-content">
								<div class="content-fields">
									<section class="origin-location">
										<span class="request-label label-from"><?php echo wpcsr_collection_form_label(); ?>:</span>
										<select id="wpcsr-origin" class="form-control browser-default custom-select" name="shipment-from" required="required">
											<?php if( !empty( get_wpcsr_location() ) ): ?>
												<option value=""><i><?php echo wpcsr_country_form_label(); ?></i></option>
												<?php foreach( get_wpcsr_location() as $location ): ?>
													<option value="<?php echo $location->location_id; ?>" <?php echo selected( $_location, $location->location_id ); ?>><?php echo $location->location;?></option>
												<?php endforeach; ?>
											<?php else: ?>
												<option disabled="disabled"><i><?php echo wpcsr_no_location_form_label(); ?></i></option>
											<?php endif; ?>
										</select>
									</section>
								</div>
							</section>
						</div>
					</div>
					<div class="wpcargo-col-lg-4">
						<div class="deliver-to-section">
							<section class="wpcsr-sc-content">
								<div class="content-fields">
									<section class="destination-location">
										<span class="request-label label-to"><?php echo wpcsr_delivery_to_form_label(); ?>:</span>
										<select id="wpcsr-destination" class="form-control browser-default custom-select" name="shipment-to" required="required" <?php echo ( !empty( $_location ) ) ? '' : 'disabled="disabled"' ; ?>>
											<?php if( $destination ): ?>
												<?php foreach( get_wpcsr_location() as $location ): ?>
													<option value="<?php echo $location->location_id;?>" <?php echo selected( $destination, $location->location_id ); ?>><?php echo $location->location; ?></option>
												<?php endforeach; ?>
											<?php else: ?>
												<option class="default" value=""><i><?php echo wpcsr_country_form_label(); ?></i></option>
											<?php endif; ?>
										</select>
									</section>
								</div>
							</section>
						</div>
					</div>
					<div class="wpcargo-col-lg-2">
						<section class="wpcsr-sc-content">
							<div class="wpcsr-package-input">
								<span class="request-label label-to"><?php _e('Weight('.wpcargo_package_settings()->weight_unit.')', 'wpcargo-shipment-rate' ); ?>:</span>
								<input type="number" class="form-control" name="wpc-pm-weight" value="<?php echo $shipment_weight;?>" min="1" required="required">
							</div>
						</section>
					</div>
					<div class="wpcargo-col-lg-2">
						<div class="quote_book_wrap text-center">
							<span class="request-label label-from"></span>
							<input type="submit" class="wpcargo-btn wpcargo-btn-primary quote_book" value="<?php echo wpcsr_quote_book_label(); ?>" />	
						</div>
					</div>
				</div>
				</div>
			</div>	
		</div>
	</form>
</div>