<div class="faq-sec">
    <div class="container">
        <div class="row g-4">
            <div class="col-lg-4 col-md-5 col-12">
                <div class="qut-frm wow fadeInLeft" data-wow-delay="0s">
                    <div class="tt-bx text-start">
                        <div class="tt text-white">Request a <span>Quote</span></div>
                        <p class="text-start mx-0 text-white">Fill all information details to consult with us to get
                            sevices from us</p>
                    </div>
                    <form id="home_enquiry" method="post">
                        <div id="home_response"></div>
                        <div class="form-group">
                            <input class="form-control" type="text" name="name" onkeyup="validateOnlyTextField(this)" placeholder="Full Name*" value="" required="">
                        </div>

                        <div class="form-group">
                            <input class="form-control" type="tel" name="email" value="" placeholder="Email ID*" required="">
                        </div>

                        <div class="form-group">
                            <input type="hidden" name="countryName" class="countryName" value="">
                            <input type="hidden" name="code" class="code" value="">
                            <input class="form-control telePhone mobile" type="tel" name="mobile" placeholder="Mobile Number*" onkeyup="if (/\D/g.test(this.value)) this.value = this.value.replace(/\D/g,'')" minlength="10" maxlength="10" required="" autocomplete="off">
                        </div>

                        <div class="form-group">
                            <input class="form-control" type="text" name="location" value="" placeholder="Your Location*" required="">
                        </div>

                        <div class="form-group">
                            <textarea class="form-control" name="message" placeholder="Your Message*" required=""></textarea>
                        </div>

                        <div class="form-group" style="margin-bottom: 0;">
                            <div class="g-recaptcha" data-sitekey="<?= site_key; ?>"></div>
                        </div>

                        <button type="submit" class="main-btn" name="submit_enq">Submit <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" viewBox="0 0 16 16">
                                <path d="M.05 3.555A2 2 0 0 1 2 2h12a2 2 0 0 1 1.95 1.555L8 8.414.05 3.555ZM0 4.697v7.104l5.803-3.558L0 4.697ZM6.761 8.83l-6.57 4.027A2 2 0 0 0 2 14h12a2 2 0 0 0 1.808-1.144l-6.57-4.027L8 9.586l-1.239-.757Zm3.436-.586L16 11.801V4.697l-5.803 3.546Z">
                                </path>
                            </svg></button>
                    </form>
                </div>
            </div>
            <div class="col-lg-8 col-md-7 col-12">
                <div class="tt-bx text-start">
                    <div class="tt">Know more <span>from FAQs</span></div>
                    <p class="text-start mx-0">Discover corporate gifting solutions with our FAQs. Elevate your
                        brand with thoughtful and customized gifts. Start corporate gifting success today!</p>
                </div>
                <div class="accordion" id="accordionExample">
                    <?php $i = 1;

                    $faq_sql = mysqli_query($GLOBALS['dbconn'], "select answer, slno, question from faq_tbl where category_id='' order by slno ASC");

                    while ($faq_res = mysqli_fetch_array($faq_sql)) { ?>
                        <div class="accordion-item">
                            <div class="accordion-header">
                                <div class="mb-0 accordion-button <?= $i != '1' ? 'collapsed' : ''; ?>" data-bs-toggle="collapse" data-bs-target="#collapse<?= $faq_res['slno']; ?>" aria-expanded="true" aria-controls="collapse<?= $faq_res['slno']; ?>">
                                    <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['question']); ?>
                                </div>
                            </div>
                            <div id="collapse<?= $faq_res['slno']; ?>" class="accordion-collapse collapse <?= $i == '1' ? 'show' : ''; ?>" data-bs-parent="#accordionExample">
                                <div class="accordion-body">
                                    <?= str_ireplace('{companyName}', $admin_res['companyName'], $faq_res['answer']); ?>
                                </div>
                            </div>
                        </div>
                    <?php $i++;
                    } ?>

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