<?php

use PHPMailer\PHPMailer\PHPMailer;
use PHPMailer\PHPMailer\SMTP;
use PHPMailer\PHPMailer\Exception;

//Load Composer's autoloader
require 'vendor/autoload.php';

if(isset($_POST['submit_btn'])){
   
    $fullName = trim($_POST['fullName']);
    // echo $fullName;
    // die();
    $address = trim($_POST['address']);
    $phonenumber = trim($_POST['phonenumber']);
    $email = trim($_POST['email']);
    $subject = trim($_POST['subject']);
    $concern_name = trim($_POST['concern_name']);
    $details_complain = trim($_POST['details_complain']);
    $concern_details = trim($_POST['concern_details']);

    
    
    //Create an instance; passing `true` enables exceptions
    $mail = new PHPMailer(true);
    
    try {
        //Server settings
        //$mail->SMTPDebug = SMTP::DEBUG_SERVER;                      //Enable verbose debug output
     //   $mail->SMTPDebug = 2;	
        $mail->isSMTP();                                            //Send using SMTP
        $mail->Host       = 'cpanel.hrctech.net';                     //Set the SMTP server to send through
      //  $mail->Host       = 'https://mail.fsiblbd.com';                     //Set the SMTP server to send through
        $mail->SMTPAuth   = true;                                   //Enable SMTP authentication
        $mail->Username   = 'website@fsiblbd.com';                     //SMTP username
        $mail->Password   = 'xZ(Ns{km0Aar';                               //SMTP password
        $mail->SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS;            //Enable implicit TLS encryption
        $mail->Port       = 587;                                    //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
      //  $mail->Port       = 465;                                    //TCP port to connect to; use 587 if you have set `SMTPSecure = PHPMailer::ENCRYPTION_STARTTLS`
    
        //Recipients
        $mail->setFrom('website@fsiblbd.com', 'Website');
      //  $mail->addAddress('joe@example.net', 'Joe User');     //Add a recipient
        //$mail->addAddress('website@fsiblbd.com');               //Changed from cscmc.fsibl@gmail.com
      //  $mail->addAddress('ryhankazi@gmail.com'); 
        //Content
        $mail->isHTML(true);                                  //Set email format to HTML
        $mail->Subject = 'FSIB Complaint Submission Form';
       $mail->Body    = 'Muhtaram/Muhtarama,<br>Assalamu-alaikum,<br><br> Full name : <b>'.$fullName.'</b><br> From : <b>'.$email.'</b><br> Subject : <b>'.$subject.'<br></b> Address : <b>'.$address.'</b><br> Phone No. : <b>'.$phonenumber.'</b><br> Concern Branch/Official : <b>'.$concern_name.'</b><br> Details of the Complaint : <b>'.$details_complain.'</b><br> What you like us to do? <b>'.$concern_details.'</b><br><br><br><br>From<br>FSIB Website Complaint Submission Form.';
       // $mail->AltBody = 'This is the body in plain text for non-HTML mail clients';
    //    $mail->Body    = 'Muhtaram/Muhtarama,<br>Assalamu-alaikum,<br><br> Full name';
        $mail->send(); //Sending too many emails
        //echo 'Message has been sent';
        echo '<script type="text/javascript"> var show_text = confirm("SUCCESSFULLY MAIL SENT")
        window.location.href = "https://fsibplc.com/complaint.php";
        </script>';
        

    } catch (Exception $e) {
        echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
    }
   
}
?>
<?php
include('./includes/config.php'); 
$page_title = "First Security Islami Bank PLC.";
//echo $page_title;
//echo $data[0]['value'];
$meta_description = "First Security Islami Bank PLC. Home page description";
$meta_keywords = "First Security Islami Bank PLC., Bank, Website";
include('includes/header.php'); 
include('includes/navbar.php'); 
//include('includes/slider.php'); 
?>
<!-- ++++++++++++++++++++++++++Start Body Tag++++++++++++++++++++++++++ -->

    <div class="container my-2" style="margin: 0 auto;">

        <div class="complaint_header p-3">
            <h4 class="text-center" style="color: #2c318c;">Contact Us</h4>
            <p class="p-3 alert-info">For any Complaint Call: <strong>01938886207</strong>
            </p>
            <strong>OR</strong>
            <p class="p-2 alert-info">Email: <strong> cscmc@fsiblbd.com</strong></p>
            <strong>OR</strong>
            <p class="p-3 alert-warning">Write us: <br><strong> CCS&CMC</strong><br>Branches Control Division
                <br>First Security Islami Bank PLC. <br>Head Office<br>Bengal Centre (2nd floor)<br>28, Topkhana
                Road<br>Dhaka-1000.
            </p>
            <div class="complain_form text-center">
                <a href="image/Complaint-Lodgement-Form.pdf" target="_blank">
                    <i class="far fa-file-pdf fa-lg" style="color: #2c318c;"></i>
                    Click and Download Complaint Form from Here
                </a>
            </div>
        </div>


    </div>
    <div class="container my-4">
        <div class="complaint_form px-4 py-2">
            <h4 class="text-center my-2" style="color: #2c318c;">Complaint Submission Form</h4>
            <form action="#" method="post" id="complaint_form" name="complaint_form"></form>
            <div class="row" style="margin: 0 auto;">
                <div class="col-6">
                    <label for="fullName" class="form-label">Your Full Name</label>
                    <input type="text" class="form-control" id="fullName" name="fullName" required
                        form="complaint_form">

                </div>


                <div class="col-6">
                    <label for="address" class="form-label">Your Address</label>
                    <input type="text" class="form-control" id="address" name="address" required form="complaint_form">

                </div>
            </div>
            <div class="row" style="margin: 0 auto;">
                <div class="col-6">
                    <label for="phonenumber" class="form-label">Your Phone Number</label>
                    <!-- <input type="text" class="form-control" id="phonenumber" name="phonenumber"
                        pattern="[0-9]{3}-[0-9]{3}-[0-9]{4}" required form="complaint_form"> -->
                    <input type="text" class="form-control" required name="phonenumber" id="phonenumber"
                        form="complaint_form" maxlength="11">

                </div>
                <div class="col-6">
                    <label for="email" class="form-label">Your Email</label>
                    <input type="email" class="form-control" name="email" id="email" required form="complaint_form">
                    <span id="emailFeedback" style="color: red;"></span>
                </div>
            </div>
            <div class="row" style="margin: 0 auto;">
                <div class="col-6">
                    <label for="subject" class="form-label">Subject</label>
                    <input type="text" class="form-control" id="subject" name="subject" required form="complaint_form">

                </div>
                <div class="col-6">
                    <label for="concern_name" class="form-label">Concern Branch/Official</label>
                    <input type="text" class="form-control" id="concern_name" name="concern_name" required
                        form="complaint_form">

                </div>
            </div>
            <div class="row" style="margin: 0 auto;">
                <div class="col-6">
                    <label for="concern_name" class="form-label">Details of the Complaint</label>
                    <textarea type="text" class="form-control" id="details_complain" name="details_complain" required
                        form="complaint_form"></textarea>

                </div>
                <div class="col-6">
                    <label for="concern_name" class="form-label">What you like us to do?</label>
                    <textarea type="text" class="form-control" id="concern_details" name="concern_details" required
                        form="complaint_form"></textarea>

                </div>
                <div class="g-recaptcha" data-sitekey="6Lf8coEqAAAAAN31ytDKI3Mw_6kITYk4_zlxqFKr"></div>
            </div>
            <div class="row" style="margin: 0 auto;">
                <div class="col-12 my-3">
                    <button type="submit" class="btn btn-primary" name="submit_btn" style="width: 100%;"
                        form="complaint_form">Submit</button>
                </div>
            </div>
        </div>


    </div>


    <div class="container my-4">
        <div class="complaint_table p-4">
            <div class="row" style="margin: 0 auto;">
                <div class="col-12">
                    <h4 class="text-center my-2" style="color: #2c318c;">Central Customer Service</h4>
                    <label for="complaint_cell" class="form-label">Choose Complain Cell </label>
                    <select type="button" class="form-control dropdown-toggle" name="complaint_cell" id="complaint_cell"
                        data-bs-toggle="dropdown" required>
                        <option>Choose Complain Cell</option>
                        <option value="main_cell">Central Customer Service and Complaints Management Cell (CCS&CMC)
                        </option>
                        <option value="dhaka_south_cell">Dhaka South Zone Complaints Management Cell</option>
                        <option value="dhaka_north_cell">Dhaka North Zone Complaints Management Cell</option>
                        <option value="ctg_south_cell">Chattogram South Zone Complaints Management Cell</option>
                        <option value="ctg_north_cell">Chattogram North Zone Complaints Management Cell</option>
                        <option value="sylhet_cell">Sylhet Zone Complaints Management Cell</option>
                        <option value="barishal_cell">Barishal Zone Complaints Management Cell</option>
                        <option value="khulna_cell">Khulna Zone Complaints Management Cell</option>
                        <option value="rajshahi_cell">Rajshahi Zone Complaints Management Cell</option>
                        <option value="cumilla_cell">Cumilla Zone Complaints Management Cell</option>
                    </select>
                </div>
            </div>


        </div>
        <!-- <div class="complaint_cell_tables my-3 p-3"> -->
        <div class="main_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Central Customer Service and Complaints
                Management Cell
                (CCS&CMC)</h4>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <th width="71%">Name &amp; Designation</th>
                        <th width="15%">Email</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>Abu Reza Md. Yeahia,<br>
                            Managining Director(C.C), Convener of the Cell</td>
                        <td>md@fsiblbd.com</td>
                        <td>55045700<br>
                            Ext-101</td>
                    </tr>
                  <!--  <tr>
                        <td>Muhammad Mustafa Khair, Additional Managing Director (Member)</td>
                        <td>khair@fsiblbd.com</td>
                        <td>55045700<br>
                            Ext-111</td>
                    </tr>-->
                    <tr>
                        <td>Md. Sirajul Islam,<br>
                        Deputy Managing Director (Member)</td>
                        <td>sirajul@fsiblbd.com</td>
                        <td>55045700<br>
                            Ext-115</td>
                    </tr>
                    <tr>
                        <td>Md. Kawsar Ul Alam,<br>
                            SEVP &amp; Head of Human Resources Division (Member)</td>
                        <td>hrd@fsiblbd.com</td>
                        <td>55045700<br>
                            Ext-401</td>
                    </tr>
                    
                    <tr>
                        <td>Oli Kamal Fcs,<br>
                            EVP &amp; Head of Branches Control Division (Member Secretary)</td>
                        <td>cscmc@fsiblbd.com</td>
                        <td>01938886206</td>
                    </tr>
                    <tr>
                        <td>Md. Abdus Salam,<br>
                            EVP &amp; Head of General Services Division (Member)</td>
                        <td>gsd@fsiblbd.com</td>
                        <td>55045700<br>
                            Ext-201</td>
                    </tr>
                    <tr>
                        <td>Muhammad Nurul Islam, FAVP, Branches Control Division (Member)</td>
                        <td rowspan="2"></td>
                        <td>01716040272</td>
                    </tr>
                    <tr>
                        <td>Hanif Mohammad, FAVP, Branches Control Division (Member)</td>
                        <td>01712204980</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="dhaka_south_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Dhaka South Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Bengal Center (2nd floor)<br>
                            28, Topkhana Road, Dhaka-1000.<br>
                            E-mail: dhakasouthzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th width="6%">SL</th>
                        <th width="36%">Name</th>
                        <th width="36%">Designation</th>
                        <th width="22%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Md. Rezaul Islam,</td>
                        <td>SVP</td>
                        <td>01769094486</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Md. Sayfullah</td>
                        <td>AVP</td>
                        <td>01790121699</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Md. Mizanur Rahman</td>
                        <td>SO</td>
                        <td>01673777111</td>
                    </tr>
                   
                </tbody>
            </table>
        </div>
        <div class="dhaka_north_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Dhaka North Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Holding No-21 (Old-352/B), Road-16
                            (Old-27),<br>
                            Ward-15, Dhanmondi, Dhaka-1215.<br>
                            E-mail: dhakanorthzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th width="71%">Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Khundker Shamim Ahmed,</td>
                        <td>SVP</td>
                        <td>01769094487</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Shahadat Hossain</td>
                        <td>AVP</td>
                        <td>01795081409</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Syed Md. Mizanur Rahaman</td>
                        <td>SO</td>
                        <td>01776405050</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="ctg_south_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Chattogram South Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Hossain Court (1st floor),<br>
                            75, Agrabad C/A, Chattogram.<br>
                            E-mail: ctgsouthzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Ahmed Ashique Raazi</td>
                        <td>SVP</td>
                        <td>01713401595</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Mohammed Ibrahim Khalil</td>
                        <td>AVP</td>
                        <td>01712800401</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Ishtiak Chowdhury</td>
                        <td>FAVP</td>
                        <td>01977011966</td>
                    </tr>
                    <tr>
                        <td>4</td>
                        <td>Md. Sohel Rana</td>
                        <td>SPO</td>
                        <td>01825124865</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="ctg_north_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Chattogram North Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Plot # 6, Block # K, Port Connecting
                            Road,<br>
                            Halishahar Housing Estate, Halishahar, Chattogram.<br>
                            E-mail: ctgnorthzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Mohammed Mostafa</td>
                        <td>SVP</td>
                        <td>01938886195</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Ziaul Hoque</td>
                        <td>FAVP</td>
                        <td>01817202566</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Farzana Islam Peya</td>
                        <td>SPO</td>
                        <td>01717027647</td>
                    </tr>
                    <tr>
                      <td>4</td>
                      <td>Md. Nazim Uddin</td>
                      <td>PO</td>
                      <td>01675464646</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="sylhet_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Sylhet Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Holding # Probaha-17 (2nd floor)<br>
                            Taltola, Sylhet.<br>
                            E-mail: sylhetzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Foysal Ahmed</td>
                        <td>SVP</td>
                        <td>01958538098</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Md. Rahat Khan Racy</td>
                        <td>PO</td>
                        <td>01718021952</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Mohammad Ali Ahmad</td>
                        <td>JO</td>
                        <td>01710995855</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="barishal_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Barishal Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Holding # 790, M. Jahan Tower (3rd
                            floor),<br>
                            Folpotti, Port Road, BCC, Barishal Sadar, Barishal<br>
                            E-mail: barishalzo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Md. Fazlul Karim</td>
                        <td>SVP</td>
                        <td>01313780821</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Ahmed Imtiaz Munna</td>
                        <td>SO</td>
                        <td>01717970061</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Suman Al Naim</td>
                        <td>Officer</td>
                        <td>01674237743</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <div class="khulna_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Khulna Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: City Trade Centre (2nd floor),<br>
                            75, KDA Avenue , Khulna.<br>
                            E-mail: khulnazo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Md. Abdur Rauf</td>
                        <td>SVP</td>
                        <td>01938888101</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Shaikh Niaz Hasan</td>
                        <td>SAVP</td>
                        <td>01711310378</td>
                    </tr>
                    <tr>
                      <td>3</td>
                      <td>Md. Shidul Hossain</td>
                      <td>PO</td>
                      <td>01712958644</td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
        <div class="rajshahi_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Rajshahi Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Balighata House, Holding No # 224, Word
                            No # 20, station road (opposite of New Market), Sultanabad,<br>
                            Ghoramara, Boalia, Rajshahi.<br>
                            E-mail: rajshahizo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Mohd. Shafiqul Alam</td>
                        <td>VP</td>
                        <td>01938886141</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Sk. Masud Karim</td>
                        <td>FAVP</td>
                        <td>01711459379</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Md. Al Mamun</td>
                        <td>SO</td>
                        <td>01727663631</td>
                    </tr>
                    
                </tbody>
            </table>
        </div>
        <div class="cumilla_cell box my-3 p-3">
            <h4 class="text-center p-2 my-2" style="color: #2c318c;">Zonal Customer Service and Complaints
                Management Cell (ZCS&CMC)</h4>
            <p class="fw-bold">
                Cumilla Zone
            </p>
            <table id="atmTable" class="table-responsive table-striped table-bordered p-3">
                <thead>
                    <tr>
                        <td style="text-align: center;" colspan="4">Address: Hazi Shah Alam Tower (3rd floor),<br>
                            322 S.S.K. Road, Feni-3900.<br>
                            E-mail: cumillazo@fsiblbd.com</td>
                    </tr>
                    <tr>
                        <th>SL</th>
                        <th width="71%">Name</th>
                        <th>Designation</th>
                        <th width="14%">Phone</th>
                    </tr>
                </thead>
                <tbody>
                    <tr>
                        <td>1</td>
                        <td>Md. Waliur Rahman</td>
                        <td>VP</td>
                        <td>01769094484</td>
                    </tr>
                    <tr>
                        <td>2</td>
                        <td>Muhammad Munirul Islam</td>
                        <td>FAVP</td>
                        <td>01918114669</td>
                    </tr>
                    <tr>
                        <td>3</td>
                        <td>Md. Mohitul Islam Siddique</td>
                        <td>SO</td>
                        <td>01814238165</td>
                    </tr>
                </tbody>
            </table>
        </div>
        <!-- </div> -->
    </div>
   <!-- jquery 3.3.1 -->
    <script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
    <script>
    $(document).ready(function() {
        $("#complaint_cell").change(function() {
            $(this).find("option:selected").each(function() {
                var optionValue = $(this).attr("value");
                if (optionValue) {
                    $(".box").not("." + optionValue).hide();
                    $("." + optionValue).show();
                } else {
                    $(".box").hide();
                }
            });
        }).change();

        $('#email').on('input', function() {
            const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
            if (emailRegex.test($(this).val())) {
                $('#emailFeedback').text(''); // Email is valid
            } else {
                $('#emailFeedback').text('Please enter a valid email address.');
            }
        });
    });

    $(function() {
        $("input[name='phonenumber']").on('input', function(e) {
            $(this).val($(this).val().replace(/[^0-9]/g, ''));
        });
    });
    </script>

   <!-- ++++++++++++++++++++++++++Start Footer Section++++++++++++++++++++++++++ -->
   <?php include('includes/footer.php'); ?>