
{"id":398,"date":"2025-06-01T03:45:16","date_gmt":"2025-06-01T03:45:16","guid":{"rendered":"https:\/\/www.gurucounseling.org\/?page_id=398"},"modified":"2025-06-01T03:45:16","modified_gmt":"2025-06-01T03:45:16","slug":"consultation-request","status":"publish","type":"page","link":"https:\/\/www.gurucounseling.org\/?page_id=398","title":{"rendered":"Consultation Request"},"content":{"rendered":"<p>\n<script src=\"https:\/\/www.google.com\/recaptcha\/api.js\" async defer><\/script>\n<div id=\"pfpwrapper\">\n    <div id = \"policyWrapper\" style = 'display:block'>\n           <div id=\"privacyPolicy\" style=\"max-height: 500px; overflow-y: auto; padding: 15px; border: 1px solid #ccc; margin-bottom: 20px;\">\n            <h3>Privacy Policy<\/h3>\n            <p>At Guru Counseling, we are committed to protecting the privacy and confidentiality of our clients. tf policy outlines our approach to handling and safeguarding personal information provided to us by individuals seeking our mental health services.<\/p>\n            <ol>\n                <li><strong>Information Collection and Use<\/strong><br>\n                We collect personal information from clients only when it is necessary for providing mental health services. tf information may include, but is not limited to, name, contact details, medical history, and other relevant information shared during therapy sessions.<\/li>\n\n                <li><strong>Information Sharing<\/strong><br>\n                We understand the sensitivity of mental health information and will not share any client&#8217;s personal information with any third party, except in the following circumstances:<br>\n                    a. <em>As required by law:<\/em> We may be required to share your information with legal authorities if it is mandated by law, in response to a court order, or to cooperate with a legitimate government investigation.\n                <\/li>\n\n                <li><strong>Data Retention<\/strong><br>\n                We will retain your personal information only for as long as it is necessary to fulfill the purposes for which it was collected, or as required by law. Once the retention period has expired, we will securely destroy or delete your personal information.<\/li>\n\n                <li><strong>Data Security<\/strong><br>\n                We have implemented appropriate physical, technical, and organizational measures to protect your personal information against unauthorized access, disclosure, alteration, or destruction. Access to your information is restricted to our authorized personnel. We will not share or sell your personal information to any third party under any circumstances.<\/li>\n\n                <li><strong>Your Rights<\/strong><br>\n                You have the right to request access to, correct, or delete any personal information we hold about you. You may also object to the processing of your personal information or request a restriction of its processing. To exercise these rights, please contact us using the information provided below.<\/li>\n\n                <li><strong>Changes to tf Policy<\/strong><br>\n                We reserve the right to update tf Privacy Policy at any time. We will notify you of any significant changes and provide you with the opportunity to review and approve the updated policy.<\/li>\n\n                <li><strong>Contact Information<\/strong><br>\n                If you have any questions, concerns, or requests regarding tf Privacy Policy or our handling of your personal information, please contact:<br><br>\n                Guru Counseling<br>\n                100 Church St STE 800<br>\n                NEW YORK, NY 10007, US<br>\n                (212)328-9157 \/ (212)716-1193<br>\n                <a href=\"mailto:ericlosadalcsw@outlook.com\">ericlosadalcsw@outlook.com<\/a>\n                <\/li>\n            <\/ol>\n            <p>By using our services, you acknowledge that you have read and understood tf Privacy Policy and agree to its terms. If you do not agree with any part of tf policy, please do not use our services.<\/p>\n\n                <button  id='openModal' type=\"button\"  class=\"btn btn-primary\" data-toggle=\"modal\" data-target=\"#exampleModal\" > Agree with privacy Policy<\/button>\n\n                <button  id='leaveSite' type=\"button\"  class=\"btn btn-primary\" > Get me out of here!<\/button>\n\n        <\/div>\n<\/div>\n\n\n    <div id=\"formWrapper\" style=\"display:none;\">\n        <form id='consult' class=\"row g-3 needs-validation\" method=\"post\"  data-pfp-require-captcha=\"1\">\n            <div class=\"col-md-4\">\n                <label class=\"form-label\" for=\"salutation\" required>Your Pronouns<\/label>\n                <select type=\"text\" class=\"form-select is-valid\" id = \"salutation\" name = \"salutation\" required>\n                    <option value = \"Leave Blank\">Leave Blank<\/option>\n                    <option value = \"Him\/He\">Him\/He<\/option>\n                    <option value = \"She\/Her\">She\/Her<\/option>\n                    <option value = \"They\/Them\">They\/Them<\/option>\n                <\/select>\n                <div class=\"invalid-feedback\">Please enter your first name.<\/div>\n            <\/div>\n            <div class=\"col-md-4\">\n                <label class=\"form-label\" for=\"firstname\">First Name<\/label>\n                <input type=\"text\" class=\"form-control\" id = \"firstname\" required>\n                <div class=\"invalid-feedback\">Please enter your first name.<\/div>\n            <\/div>\n            <div class=\"col-md-4\">\n                <label class=\"form-label\" for=\"lastname\">Last Name<\/label>\n                <input type=\"text\" class=\"form-control\" id = \"lastname\" required>\n                <div class=\"invalid-feedback\">Please enter your last name.<\/div>\n            <\/div>\n            <div class=\"col-md-6\">\n                <label class=\"form-label\" for=\"email\">Email<\/label>\n                <input type=\"email\" class=\"form-control\" id = \"email\" required>\n                <div class=\"invalid-feedback\">Enter a valid email.<\/div>\n            <\/div>\n            <div class=\"col-md-6\">\n                <label class=\"form-label\" for=\"phone\">Phone Number<\/label>\n                <input type=\"tel\" class=\"form-control\" id = \"phone\" required>\n                <div class=\"invalid-feedback\">Enter a valid phone number.<\/div>\n            <\/div>\n            <div class=\"col-md-3\">\n                <label class=\"form-label\" for=\"onDay\" >Please contact me <\/label>\n                <select class=\"form-select is-valid\" id=\"onDay\" name=\"onDay\" required >\n                    <option value = 'on any day'>on any day<\/option>\n                    <option value = 'Monday through Friday'>Monday through Friday<\/option>\n                    <option value = 'on weekends'>on weekends<\/option>                    \n                <\/select>\n                <div class=\"invalid-feedback\">Contact day<\/div>\n            <\/div>\n            <div class=\"col-md-3\">\n                <label class=\"form-label\" for=\"contactMethod\" >By<\/label>\n                <select class=\"form-select is-valid\" id=\"contactMethod\" name =\"contactMethod\" required >\n                    <option value = 'phone and email'>phone or email<\/option>\n                    <option value = 'phone only'>phone only<\/option>\n                    <option value ='email only'>email only<\/option>\n                <\/select>\n                <div class=\"invalid-feedback\">Valid Contact Method<\/div>\n            <\/div>\n            <div class=\"col-md-3\">\n                <label class=\"form-label\" for=\"fromTime\" >between<\/label>\n                <select class=\"form-select\" id=\"fromTime\" name =\"fromTime\" required >\n                <\/select>\n                <div class=\"invalid-feedback\">select a start of time window<\/div>\n            <\/div>\n            <div class=\"col-md-3\">\n                <label class=\"form-label\" for=\"toTime\">and<\/label>\n                <select class=\"form-select\" id=\"toTime\" name =\"toTime\" required >\n                <\/select>\n                <div class=\"invalid-feedback\">select end of time window<\/div>\n            <\/div>\n            <div class=\"col-md-12\">\n                <label for=\"message\">Would you like to provide some information about yourself? (optional)<\/label>\n                <textarea class=\"form-control\" id = \"message\"><\/textarea>\n            <\/div>\n                        <div class=\"col-md-12\">\n                                <div class=\"g-recaptcha\" data-sitekey=\"6Lc6Tk4rAAAAAA_tgPRPFD23QRJOvwATlQ8ptnOe\"><\/div>\n            <\/div>\n                        <div class=\"col-md-12\">\n                <button type=\"submit\" class=\"btn btn-primary\" id = \"submit\" name = 'submit' value=\"Request\">Request<\/button>\n            <\/div>\n        <\/form>\n    <\/div>\n<\/div>\n\n<script type = 'text\/javascript'>\n\n\/\/ Functions : START\n\n\/\/Hide priviacy policy\nvar formIsVisible = false;\nfunction switchTo(){\n    let policy = document.getElementById('policyWrapper');\n    let consult = document.getElementById('formWrapper');\n \n     if (!formIsVisible)\n     {\n        policy.style.display ='none';\n        consult.style.display = 'block';\n        formIsVisible = true;\n     } \n     else\n     {\n        policy.style.display = 'block';\n        consult.style.display = 'none';\n        formIsVisible = false;\n     }\n\n }\n\n \n\/\/Time Validation for contact time window\nfunction htag(tagName, attributes, Callback){\nreturn `<${tagName} ${attributes} > ${Callback} <\/${tagName}>`\n} \nfunction validateTime(domObjectId){\n    var s =  document.getElementById(domObjectId);\n    let TimeElements = s.value.replace(':',' ').split(' ');\n    if (TimeElements[0] > 0 && TimeElements[1].length > 1 && TimeElements[1] > -1){ \n        if(TimeElements[2]=='AM' || TimeElements[2]=='PM')\n        {\n            return true;            \n        } else {\n            return false;\n        }\n    }\n}\n  \/\/ Email address validation\nfunction validateEmail(emailAddress){\n    let validDomains = 'com.org.eu.net.io.ai.co.uk.ca.dev.me.co.de.app.in.is.gg.to.ph.nl.id.inc.website.xyz.club.online.info.store.best.live.us.tech.pw.pro.uk.tv.cx.mx.fm.cc.world.space.vip.life.shop.host.fun.biz.icu.design.art'.split('.');\n    try{\n    let  email = emailAddress.split('@');\n    const domain = email[1].split('.');\n    const domainExt = domain[domain.length-1].toLowerCase(); \n    const extIndex = validDomains.indexOf(domainExt);                \n    console.log('');\n    let userName = email[0];\n    if (validDomains[extIndex] == domainExt )\n    {\n        console.log(`${validDomains[extIndex]} = ${domainExt}`);\n        return true;\n    }\n    else\n    {\n        console.log(`${validDomains[extIndex]} != ${domainExt}`);\n        return false;\n    } \n    \n}\n    catch (e)\n{\n    console.log(e);\n    return false;\n} \n}\n\/\/ Add Time options to select dropdowns\nfunction populateOptions(timeFrom, timeTo, selectElementId) {\n    const selectElement = document.getElementById(selectElementId);\n    if (!selectElement) {\n        console.error(`Element with id \"${selectElementId}\" not found.`);\n        return;\n    }\n    function timeStringToMinutes(timeStr) {\n        const [time, modifier] = timeStr.split(' ');\n        let [hours, minutes] = time.split(':').map(Number);\n        if (modifier === 'PM' && hours !== 12) {\n            hours += 12;\n        } else if (modifier === 'AM' && hours === 12) {\n            hours = 0;\n        }\n    return hours * 60 + minutes;\n    }\n\n  selectElement.innerHTML = `<option value= ${false} >Please select a time<\/option>`;   \/\/ Clear existing options and add default prompt\n  const startMinutes = timeStringToMinutes(timeFrom);\n  const endMinutes = timeStringToMinutes(timeTo);\n\n  for (let totalMinutes = 0; totalMinutes < 24 * 60; totalMinutes += 15) {\n    if (totalMinutes >= startMinutes && totalMinutes < endMinutes) {\n      \/\/ Convert totalMinutes back to \"HH:MM AM\/PM\"\n      let hours = Math.floor(totalMinutes \/ 60);\n      let minutes = totalMinutes % 60;\n      const pd = hours >= 12 ? 'PM' : 'AM';\n      hours = hours % 12;\n      if (hours === 0) hours = 12;\n      const minuteStr = minutes < 10 ? '0' + minutes : minutes;\n      const timeStr = `${hours}:${minuteStr} ${pd}`;\n\n      selectElement.innerHTML += `<option value=\"${timeStr}\">${timeStr}<\/option>`;\n    }\n  }\n}\n    function validatePhone(phoneNumber) {\n        var match = phoneNumber.match(\/^(\\d{3})[-.\\s]?(\\d{3})[-.\\s]?(\\d{4})$\/);\n        return match ? `(${match[1]}) ${match[2]}-${match[3]}` : false;\n    }\n\n\/\/ functons: END\n\n\/\/eventListeners: START\n\n\/\/Add event Listener to window\nwindow.addEventListener(\"DOMContentLoaded\", function() { \n    console.log('Event Listener Successfully added to window');\n    populateOptions('10:00 AM','10:00 PM', 'fromTime');\n    console.log('times added to the select');\n    \/\/ declare 'Required' DOM Objects \n    \n    \n    let leaveSite = document.getElementById('leaveSite');\n    let agree = document.getElementById('openModal');\n    let modalLeave = document.getElementById('modaLeave');\n    let firstName = document.getElementById('firstname');\n    let lastName = document.getElementById('lastname');\n    let email = document.getElementById('email');\n    let phone = document.getElementById('phone');\n    let onDay  = document.getElementById('onDay');\n    let contactMethod = document.getElementById('contactMethod');\n    let fromTime = document.getElementById('fromTime');\n    let toTime = document.getElementById('toTime');\n    let request = document.getElementById('submit');\n    let consultForm = document.getElementById('consult');\n\n    \/\/Event listeners for formfieds\n    \n    \/\/PrivacyPolicy Agreement\n    agree.addEventListener('click', function() {\n       \n        switchTo();\n        \n    });\n    leaveSite.addEventListener('click',function(){\n        window.location.href ='https:\/\/www.google.com';\n    });\n    \/\/ Form Fields \n    firstName.addEventListener('blur', function(){\n        if (this.value)\n        {\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n            this.name = this.id;\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n    lastName.addEventListener('blur', function(){\n        if (this.value)\n        {\n            this.name = this.id;\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n    onDay.addEventListener('blur', function(){\n        if (this.value)\n        {\n            this.name = this.id;\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n    contactMethod.addEventListener('blur', function(){\n        if (this.value)\n        {\n            this.name = this.id;\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n    email.addEventListener('blur', function(){\n        if (validateEmail(this.value))\n        {\n            this.name = this.id;\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n        phone.addEventListener('blur', function(){\n        if (validatePhone(this.value))\n        {\n            this.name = this.id;\n            this.value = validatePhone(this.value);\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n    });\n\n    fromTime.addEventListener('blur', function(){\n         console.log('Event Listener added to time select');\n         if (fromTime.value) \n         {\n            this.name = this.id;\n            populateOptions(this.value, \"10:15 PM\", 'toTime');\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid')\n         }\n         else\n         {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');                                                                                                          \n         }\n     });\n     toTime.addEventListener('blur',function(){\n        if (toTime.value)\n        {\n            this.name = this.id;\n            this.classList.remove('is-invalid');\n            this.classList.add('is-valid');\n        }\n        else\n        {\n            this.classList.remove('is-valid');\n            this.classList.add('is-invalid');\n        }\n     });\n     message.addEventListener('blur', function(){\n        this.name = this.id;\n     });\n\n    \/\/ Require CAPTCHA to be completed before submit when enabled\n    if (consultForm.hasAttribute('data-pfp-require-captcha')) {\n        consultForm.addEventListener('submit', function(ev) {\n            if (typeof grecaptcha === 'undefined') return;\n            if (grecaptcha.getResponse && grecaptcha.getResponse().length === 0) {\n                ev.preventDefault();\n                alert('Please complete the \"I\\'m not a robot\" verification before submitting.');\n                return false;\n            }\n        });\n    }\n});\n<\/script>\n<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-398","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/pages\/398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=398"}],"version-history":[{"count":1,"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/pages\/398\/revisions"}],"predecessor-version":[{"id":401,"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=\/wp\/v2\/pages\/398\/revisions\/401"}],"wp:attachment":[{"href":"https:\/\/www.gurucounseling.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}