    <?php
ob_start();

if (!session_start()) {
    session_start();
}
?>


<?php
//get data from form

$name  = $_POST['name'];
$email = $_POST['email'];
// $subject= $_POST['subject'];
$message = $_POST['message'];
$number  = $_POST['number'];

$to      = 'monsoonvibespublica@gmail.com';
$subject = 'Mail from Monsoon Vibes Publica Website';
$txt     = 'Name : ' . $name . "\r\n  Email : " . $email . "\r\n Message : " . $message . "\r\n Subject : " . $subject . "\r\n Number : " . $number;
$headers = 'From: monsoonvibespublica@gmail.com' . "\r\n" .
'CC: monsoonvibespublica@gmail.com';

if ($email != null) {
    mail($to, $subject, $txt, $headers);
}
//redirect
header('Location:../index.html');
?>

<!DOCTYPE html>
<!-- Header Starts -->
<html lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
        <meta name="description" content="" />
        <meta name="author" content="" />
        <title>Monsoon Vibes - Book Market Place</title>
		<!-- Google monseratt Font-->
		<link rel="preconnect" href="https://fonts.googleapis.com">
		<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
		<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;700&display=swap" rel="stylesheet">
        <!-- Favicon-->
        <link rel="icon" type="image/x-icon" href="assets/favicon.ico" />
        <!-- Bootstrap icons-->
        <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css" rel="stylesheet" />
        <!-- Core theme CSS (includes Bootstrap)-->
        <link href="css/layout.css" rel="stylesheet" />
		<link href="css/styles.css" rel="stylesheet" />
		 <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css">
    </head>
    <body>
		
		<header>
		<div class="container">
		<div class="row">
			<div class="col-md-12">
				<nav class="navbar navbar-expand-lg navbar-light navigation">
					<a class="navbar-brand" href="index.php">
						<img width="150px" src="assets/image/monsoon_vibes.png" alt="Monsoon Vibes" class="img-fluid">
					</a>
					<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"><span class="navbar-toggler-icon"></span></button>
					<div class="collapse navbar-collapse" id="navbarSupportedContent">
						<ul class="navbar-nav m-auto main-nav ">
							<li class="nav-item"><a class="nav-link active" aria-current="page" href="index.php">Home</a></li>
                        <li class="nav-item"><a class="nav-link" href="publishing_policy.php">Publishing Policy</a></li>
                        <!--<li class="nav-item"><a class="nav-link" href="authors.php">Author</a></li>  -->
                        <li class="nav-item"><a class="nav-link" href="about_us.php">About Us</a></li> 
                        <li class="nav-item"><a class="nav-link" href="contact_us.php">Contact Us</a></li> 
                        
						</ul>
						<form class="d-flex " action="cart.php" method="post">
                        <button class="btn btn border-0 cart-btn mt-md-1 me-md-4" type="submit" >
                            <i class="bi-cart me-1 d-block"></i>
                            <span class="cart-text">Cart</span>
                        </button>
                    </form>
						<div class="wrapper-animated_search">
                <div class="searchbox-amimated_search">
                  <input type="text" class="input" placeholder="Book name / Author / Publisher / Subject">
            
                  <div class="searchbtn">
                    <i class="fas fa-search"></i>
                  </div>
            
                </div>
              </div>
              
						<ul class="navbar-nav me-end">
							<li class="nav-item">
							    <?php
                                if ($_SESSION['CustId'] > 0) {
                                    ?>
							     <a class="nav-link login-btn" href="login/logout.php">Logout</a> 
							     <?php
                                } else {
                                    ?>
							     <a class="nav-link login-btn" href="login/login.php">Login</a> 
							      <li class="nav-item"> <a class="nav-link btn btn-outline-primary rounded-pill signup-btn" href="login/signup.php"> Sign Up</a> </li>
							     <?php
                                }
?>
							
							</li>
							
						</ul>
					</div>
				</nav>
			</div>
		</div>
			<!--<div class="row">
			<div class="search-bar d-flex justify-content-center m-auto">
				<div class="input-group mb-2">
                                <input type="text" class="form-control search-field" placeholder="Book name / Author / Publisher / Subject">
                                <button class="btn btn-primary search-btn" type="button">Search</button>
                              </div>
				<form class="d-flex" action="cart.php" method="post">
                        <button class="btn btn border-0 cart-btn" type="submit" >
                            <i class="bi-cart me-1 d-block"></i>
                            <span class="cart-text">Cart</span>
                        </button>
                    </form>
			</div>
			</div> -->
	</div>
		</header>
<!-- Header Ends -->

  <!-- contact us -->
  <div class="main-contact-us-new">
    <div class="container-contact-us">
      <div class="image">
        <img src="assets/image/95675  monsoon contact-us.png" alt="">
      </div>
      <div class="form-area">
        <h2>Contact US</h2>
         <form action="#" method="post">
          <input type="text" name="name" placeholder="Full Name">
          <input type="number" name="number" placeholder="Mobile number">
          <input type="email" name="email" placeholder="Email">
          <textarea placeholder="Message" name="message" ></textarea>

          <removethis-textarea cols="30" rows="3" placeholder="Your Message">
          </removethis-textarea>
          <button type="submit">Send Message</button>
        </form>
        <div class="social-icons">
          <i class="facebook fab fa-facebook-f"></i>
          <i class="instagram fab fa-instagram"></i>
          <i class="linkedin fab fa-linkedin-in"></i>
        </div>
      </div>
    </div>
  </div>





  <footer class="footer-new">
    <div class="container">
      <div class="row">
        <div class="footer-new-col">
          
          <img src="assets/image/monsoon_vibes.png" class="img-fluid set-200" alt="logo">
       
          <p class="alt-color mt-2">MONSOONVIBES PUBLICA PRIVATE LIMITED, 33/6466-C, Shanthi Villa, Vappoli Thazham,
            Puliyankode Road,Marikunnu P.O, 673012 - Pin, Kozhikkode .</p>
        </div>
        <div class="footer-new-col res-new-ps-md" >
          <h4>Policies</h4>
          <ul>
            <li><a href="Privacy_Policy.php">Privacy policy</a></li>
              <li><a href="Refundpolicy.php">Refund policy</a></li>
              <li><a href="TermsAndConditions.php">Terms & conditions</a></li>
          </ul>
        </div>
        <div class="footer-new-col">
          <h4>Quick Links</h4>
          <ul>
            <li><a href="about_us.php">About us</a></li>
            <li><a href="contact_us.php">Contact us</a></li>
            <!--<li><a href="#">FAQ</a></li>-->
            <li><a href="#">Profile</a></li>
          </ul>
        </div>
        
        <div class="footer-new-col">
          <h4>follow us</h4>
          <div class="social-links">
            <a href="https://www.facebook.com/monsoonvibes/?paipv=0&eav=AfZpBwqPtSXZtMH65SXYth8zMXVn66ngzKdU58PQvx1ZMABzbpEHV9J5qSZ3WcOGdWE&_rdr"><i class="fab fa-facebook-f"></i></a>
            <a href="#"><i class="fab fa-twitter"></i></a>
            <a href="#"><i class="fab fa-instagram"></i></a>
            <a href="#"><i class="fab fa-linkedin-in"></i></a>
            <a href="#"><i class="fab fa-youtube"></i></a>

          </div>
        </div>
      </div>
    </div>
 </footer>






  <footer class="py-1 footer">
    <div class="container">
      <p class="m-0 text-center " style="color: gray;">Copyright @ 2024. Workmate infotech Pvt Ltd All rights reserved</p>
    </div>
  </footer>



        <div class="whats-float">
  <a href="https://wa.me/919544599449" target="_blank">
    <i class="fa fa-whatsapp"></i><span>WhatsApp</span>
  </a>
</div>
<div class="whats-float adjust-call">
  <a href="tel:9544599449">
    <i class="fa fa-phone"></i><span>Phone Number</span>
  </a>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js" charset="utf-8"></script>
        <!-- Bootstrap core JS-->
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js"></script>
        <!-- Core theme JS-->
        <script src="js/scripts.js"></script>
        <script src="https://use.fontawesome.com/15939d8f41.js"></script>
    </body>
</html>
