<!doctype html>
<html lang="en">
	 
  
  	<?php
    $title = "Contact | James Thompson Textiles";
    $description = "Get in touch with James Thompson Textiles for inquiries, fabric samples, or partnership opportunities. Our team is here to assist with all your cotton and jute fabric needs across the USA and Canada.";
    $keywords = "James Thompson Textiles, JamesThompson Textiles LLC Greenwood Delaware, fabric company Greenwood Delaware, cotton fabric supplier Greenwood, jute fabric supplier Greenwood, textile manufacturer Delaware, fabric inquiries Greenwood Delaware, textile support Greenwood 19950, fabric samples Greenwood Delaware";
    $image = "https://jthompsontextiles.com/assets/images/others/share-img.png";
	$current_url = "https://jthompsontextiles.com/contact-us";
  ?>
	<?php include 'layouts/header.php'; ?>
	
<body>
  
  <style>
    
    .width-class {
            width : 1200px !important;
          }

			
			@media (max-width: 768px) {
              .width-class {
                width : 400px !important;
              }
			}
    
    
  </style>

	<?php include 'layouts/navbar.php'; ?>	

	<main id="content" class="wrapper layout-page">
		<section>
			<div class="container">
				<div class="text-center pt-13 mb-13 mb-lg-15">
					<div class="text-center">
						<h2 class="fs-36px mb-7">Keep In Touch with Us</h2>
						<p class="fs-18px mb-0 w-lg-60 w-xl-50 mx-md-13 mx-lg-auto">Get in touch with our team for product inquiries, orders, or partnership opportunities. We value your time and respond promptly to every message.</p>
					</div>

				</div>
				<iframe src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d3109.2586252567903!2d-75.59651562435218!3d38.80362697174412!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x89b88c5c4a605c05%3A0x7ac053365e48d887!2sJames%20Thompson%20%26%20Co.%20Inc.!5e0!3m2!1sen!2sin!4v1761205540669!5m2!1sen!2sin" class="width-class" height="450" style="border:0;" allowfullscreen="" loading="lazy" referrerpolicy="no-referrer-when-downgrade"></iframe>
			</div>
		</section>
		<section class="py-15 py-lg-18">
			<div class="container">
				<div class="row align-items-center">
					<div class="col-lg-7">
						<h2 class="mb-11 fs-3">Sent A Message</h2>
						<?php
							$status = $_GET['status'] ?? '';
							if ($status === 'success') {
								echo '<p id="form-messages" style="color:green; font-weight:bold;">Your message has been sent successfully!</p>';
							} elseif ($status === 'error') {
								echo '<p id="form-messages" style="color:red; font-weight:bold;">Failed to send your message. Please try again.</p>';
							}
						?>
						
						<form class="contact-form" method="POST" action="sendmail">
							<div class="row mb-5">
								<input type="hidden" name="form_source" value="Contact Page">
								<div class="col-md-6 col-12 mt-5">
									<input type="text" name="name" class="form-control input-focus" placeholder="Name">
								</div>
								<div class="col-md-6 col-12 mt-5">
									<input type="email" name="email" class="form-control input-focus" placeholder="Email">
								</div>
							</div>
							<div class="col-md-12 col-12 mb-5">
								<input type="text" name="subject" class="form-control input-focus" placeholder="Subject">
							</div>
							<textarea class="form-control mb-5 input-focus" name="message" placeholder="Your Message" rows="3"></textarea>
							<div class="form-check mb-4 ps-0 text-start">
								<div class="g-recaptcha" data-sitekey="6LfaPQosAAAAAB3Ac0IYzmw9tHVbrFG8F1JqXvYs"></div>
                                <br>
							</div>
							<div class="form-check">
  <input class="form-check-input" type="checkbox" id="consent" required>
  <label class="form-check-label small" for="consent">
    I agree to receive emails from James Thompson Textiles
  </label>
</div>
							<button type="submit" class=" btn btn-dark mt-4 btn-hover-bg-primary btn-hover-border-primary px-11">Submit</button>
						</form>
						<script>
							document.addEventListener("DOMContentLoaded", () => {
								const message = document.getElementById("form-messages");
								if (message) {
									// Keep the anchor, remove query string
									const url = window.location.href;
									const [base, hashPart] = url.split('#');
									const [cleanBase] = base.split('?'); // remove ?status
									const newUrl = cleanBase + (hashPart ? '#' + hashPart : '#contact-section');
									window.history.replaceState({}, document.title, newUrl);

									// Scroll to contact section
									const contactSection = document.getElementById("contact-section");
									if (contactSection) {
										contactSection.scrollIntoView({ behavior: "smooth" });
									}
								}
							});
						</script>

					</div>
					<div class="col-lg-5 ps-lg-15 ps-xl-18 mt-10 mt-lg-0">
						<div class="d-flex align-items-start mb-5 me-15">
							<div class="d-none">
								<svg class="icon fs-2">
									<use xlink:href="#"></use>
								</svg>
							</div>
							<div>
								<h3 class="fs-5 mb-3">Address</h3>
								<div class="fs-6">
									<p class="mb-5 fs-6">JamesThompson Textiles, LLC.<br>301, South Church Street,<br>Greenwood - 19950, Delaware.</p>
								</div>
							</div>
						</div>

						<div class="d-flex align-items-start">
							<div class="d-none">
								<svg class="icon fs-2">
									<use xlink:href="#"></use>
								</svg>
							</div>
							<div>
								<h3 class="fs-5 mb-3">Contact</h3>
								<div class="fs-6">
									<p class="mb-3 fs-6">Phone:<span class="text-body-emphasis"> (302)-349-4503 ext. 300</span></p>
									
									<p class="mb-0 fs-6">E-mail: <a href="mailto:info@jthompsontextiles.com">info@jthompsontextiles.com</a></p>
								</div>
							</div>
						</div>

					</div>
				</div>
			</div>
		</section>

	</main>
	<script src="https://www.google.com/recaptcha/api.js" async defer></script>
	<script>
        document.querySelector("form").addEventListener("submit", function(e) {
            const response = grecaptcha.getResponse();
            if (response.length === 0) {
                e.preventDefault();
                alert("Please complete the reCAPTCHA before submitting!");
            }
        });
    </script>
	
	<?php include 'layouts/footer.php'; ?>

</body>


</html>