{"id":2904,"date":"2023-10-04T13:58:51","date_gmt":"2023-10-04T13:58:51","guid":{"rendered":"https:\/\/epicpaws.modeltheme.com\/?page_id=2904"},"modified":"2026-04-30T12:07:24","modified_gmt":"2026-04-30T12:07:24","slug":"patient-satisfaction-survey","status":"publish","type":"page","link":"https:\/\/redsquaredentalcare.com\/index.php\/patient-satisfaction-survey\/","title":{"rendered":"Patient Satisfaction Survey"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"2904\" class=\"elementor elementor-2904\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2e0a1ab e-flex e-con-boxed e-con e-parent\" data-id=\"2e0a1ab\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-f231970 elementor-widget elementor-widget-shortcode\" data-id=\"f231970\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">\r\n    <div class=\"patient-survey-step-form\">\r\n        <form id=\"patientSurveyForm\" style=\"display:block;\">\r\n            <div id=\"surveyStepArea\"><\/div>\r\n            <button type=\"button\" id=\"nextSurveyStepButton\">Next<\/button>\r\n            <button type=\"submit\" id=\"submitSurveyButton\" style=\"display:none;\">Submit Survey<\/button>\r\n        <\/form>\r\n\r\n        <div id=\"surveySuccess\" style=\"display:none;\">\r\n            Thank you for your feedback!\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <style>\r\n    .patient-survey-step-form {\r\n        max-width: 620px;\r\n        margin: 40px auto;\r\n        padding: 34px;\r\n        border-radius: 24px;\r\n        background:\r\n            linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,250,250,0.96)),\r\n            radial-gradient(circle at top left, rgba(198,40,40,0.12), transparent 35%);\r\n        box-shadow: 0 18px 45px rgba(0,0,0,0.12);\r\n        font-family: Arial, sans-serif;\r\n        text-align: center;\r\n        border: 1px solid rgba(198,40,40,0.12);\r\n        position: relative;\r\n        overflow: hidden;\r\n    }\r\n\r\n    .patient-survey-step-form::before {\r\n        content: \"\";\r\n        position: absolute;\r\n        top: 0;\r\n        left: 0;\r\n        width: 100%;\r\n        height: 6px;\r\n        background: linear-gradient(90deg, #c62828, #ef5350, #c62828);\r\n    }\r\n\r\n    #patientSurveyForm {\r\n        position: relative;\r\n        z-index: 2;\r\n    }\r\n\r\n    #surveyStepArea {\r\n        animation: fadeSlideIn 0.35s ease;\r\n    }\r\n\r\n    @keyframes fadeSlideIn {\r\n        from {\r\n            opacity: 0;\r\n            transform: translateY(14px);\r\n        }\r\n\r\n        to {\r\n            opacity: 1;\r\n            transform: translateY(0);\r\n        }\r\n    }\r\n\r\n    .survey-section-title {\r\n        font-size: 15px;\r\n        font-weight: 700;\r\n        color: #c62828;\r\n        margin-bottom: 12px;\r\n        text-transform: uppercase;\r\n        letter-spacing: 0.5px;\r\n    }\r\n\r\n    .patient-survey-step-form label {\r\n        display: block;\r\n        font-weight: 700;\r\n        margin-bottom: 22px;\r\n        font-size: 25px;\r\n        line-height: 1.3;\r\n        color: #222222;\r\n        text-align: center;\r\n        letter-spacing: -0.3px;\r\n    }\r\n\r\n    .patient-survey-step-form input,\r\n    .patient-survey-step-form textarea {\r\n        width: 100%;\r\n        padding: 16px 18px;\r\n        border: 1px solid #e4dada;\r\n        border-radius: 14px;\r\n        font-size: 16px;\r\n        box-sizing: border-box;\r\n        text-align: center;\r\n        color: #222222;\r\n        background: #ffffff;\r\n        box-shadow: 0 5px 14px rgba(0,0,0,0.04);\r\n        transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;\r\n        outline: none;\r\n    }\r\n\r\n    .patient-survey-step-form input:focus,\r\n    .patient-survey-step-form textarea:focus {\r\n        border-color: #c62828;\r\n        box-shadow: 0 0 0 4px rgba(198,40,40,0.12);\r\n        transform: translateY(-1px);\r\n    }\r\n\r\n    .patient-survey-step-form textarea {\r\n        min-height: 130px;\r\n        resize: vertical;\r\n        line-height: 1.5;\r\n    }\r\n\r\n    .patient-survey-step-form button {\r\n        width: 100%;\r\n        margin-top: 18px;\r\n        padding: 16px 20px;\r\n        border: none;\r\n        background: linear-gradient(135deg, #FF0000, #a91f1f);\r\n        border-radius: 999px;\r\n        color: #ffffff;\r\n        font-size: 16px;\r\n        font-weight: 700;\r\n        cursor: pointer;\r\n        letter-spacing: 0.2px;\r\n        box-shadow: 0 10px 24px rgba(198,40,40,0.28);\r\n        transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;\r\n    }\r\n\r\n    .patient-survey-step-form button:hover {\r\n        background: linear-gradient(135deg, #b71c1c, #8e1919);\r\n        transform: translateY(-2px);\r\n        box-shadow: 0 14px 28px rgba(198,40,40,0.34);\r\n    }\r\n\r\n    .patient-survey-step-form button:active {\r\n        transform: translateY(0);\r\n        box-shadow: 0 7px 16px rgba(198,40,40,0.24);\r\n    }\r\n\r\n    .survey-option {\r\n        display: flex;\r\n        align-items: center;\r\n        justify-content: center;\r\n        text-align: center;\r\n        padding: 16px 18px;\r\n        margin-top: 12px;\r\n        border: 1px solid #eadede;\r\n        border-radius: 16px;\r\n        cursor: pointer;\r\n        background: #ffffff;\r\n        box-shadow: 0 6px 16px rgba(0,0,0,0.045);\r\n        transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;\r\n    }\r\n\r\n    .survey-option:hover {\r\n        border-color: #c62828;\r\n        background: #fff7f7;\r\n        transform: translateY(-2px);\r\n        box-shadow: 0 10px 22px rgba(198,40,40,0.12);\r\n    }\r\n\r\n    .survey-option span {\r\n        font-size: 15px;\r\n        line-height: 1.45;\r\n        color: #333333;\r\n        font-weight: 500;\r\n    }\r\n\r\n    .selected-survey-option {\r\n        border-color: #c62828;\r\n        background: linear-gradient(135deg, #fff5f5, #ffffff);\r\n        box-shadow: 0 10px 24px rgba(198,40,40,0.18);\r\n        position: relative;\r\n    }\r\n\r\n    .selected-survey-option::after {\r\n        content: \"\u2713\";\r\n        position: absolute;\r\n        right: 16px;\r\n        top: 50%;\r\n        transform: translateY(-50%);\r\n        width: 24px;\r\n        height: 24px;\r\n        border-radius: 50%;\r\n        background: #c62828;\r\n        color: #ffffff;\r\n        font-size: 14px;\r\n        font-weight: 700;\r\n        display: flex;\r\n        align-items: center;\r\n        justify-content: center;\r\n    }\r\n\r\n    #surveySuccess {\r\n        font-size: 19px;\r\n        line-height: 1.6;\r\n        color: #222222;\r\n        font-weight: 600;\r\n        text-align: center;\r\n        animation: fadeSlideIn 0.35s ease;\r\n        background: #fff7f7;\r\n        border: 1px solid rgba(198,40,40,0.18);\r\n        border-radius: 18px;\r\n        padding: 24px;\r\n        box-shadow: 0 8px 20px rgba(0,0,0,0.06);\r\n    }\r\n\r\n    #surveySuccess::before {\r\n        content: \"\u2713\";\r\n        display: flex;\r\n        align-items: center;\r\n        justify-content: center;\r\n        width: 46px;\r\n        height: 46px;\r\n        margin: 0 auto 14px auto;\r\n        border-radius: 50%;\r\n        background: #FF0000;\r\n        color: #ffffff;\r\n        font-size: 24px;\r\n        font-weight: 700;\r\n    }\r\n\r\n    .button-spinner {\r\n        display: inline-block;\r\n        width: 16px;\r\n        height: 16px;\r\n        border: 2px solid rgba(255,255,255,0.45);\r\n        border-top-color: #ffffff;\r\n        border-radius: 50%;\r\n        animation: buttonSpin 0.8s linear infinite;\r\n        vertical-align: middle;\r\n        margin-right: 8px;\r\n    }\r\n\r\n    @keyframes buttonSpin {\r\n        from {\r\n            transform: rotate(0deg);\r\n        }\r\n\r\n        to {\r\n            transform: rotate(360deg);\r\n        }\r\n    }\r\n\r\n    .patient-survey-step-form button:disabled {\r\n        opacity: 0.75;\r\n        cursor: not-allowed;\r\n        transform: none;\r\n    }\r\n\r\n    @media (max-width: 600px) {\r\n        .patient-survey-step-form {\r\n            margin: 22px 14px;\r\n            padding: 26px 20px;\r\n            border-radius: 20px;\r\n        }\r\n\r\n        .patient-survey-step-form label {\r\n            font-size: 21px;\r\n        }\r\n\r\n        .patient-survey-step-form input,\r\n        .patient-survey-step-form textarea {\r\n            font-size: 15px;\r\n            padding: 15px;\r\n        }\r\n\r\n        .survey-option {\r\n            padding: 15px 42px 15px 15px;\r\n        }\r\n\r\n        .survey-option span {\r\n            font-size: 14px;\r\n        }\r\n    }\r\n    <\/style>\r\n\r\n    <script>\r\n        document.addEventListener(\"DOMContentLoaded\", function () {\r\n            var form = document.getElementById(\"patientSurveyForm\");\r\n            var surveyStepArea = document.getElementById(\"surveyStepArea\");\r\n            var nextSurveyStepButton = document.getElementById(\"nextSurveyStepButton\");\r\n            var submitSurveyButton = document.getElementById(\"submitSurveyButton\");\r\n            var successMessage = document.getElementById(\"surveySuccess\");\r\n\r\n            var currentStep = 0;\r\n\r\n            var formData = {\r\n                language: \"\",\r\n                patientName: \"\",\r\n                dateOfVisit: \"\",\r\n                doctor: \"\",\r\n                scheduleEase: \"\",\r\n                seenOnTime: \"\",\r\n                doctorFriendly: \"\",\r\n                treatmentRating: \"\",\r\n                treatmentExplanation: \"\",\r\n                visitComfort: \"\",\r\n                frontDeskRating: \"\",\r\n                officeCleanliness: \"\",\r\n                overallSatisfaction: \"\",\r\n                recommendOffice: \"\",\r\n                heardAboutUs: \"\",\r\n                heardAboutUsOther: \"\",\r\n                additionalFeedback: \"\"\r\n            };\r\n\r\n            var languageContent = {\r\n                english: {\r\n                    nextButton: \"Next\",\r\n                    submitButton: \"Submit Survey\",\r\n                    submittingButton: \"Submitting...\",\r\n                    successMessage: \"Thank you for your feedback!\",\r\n                    requiredMessage: \"Please complete this field before continuing.\",\r\n                    submitRequiredMessage: \"Please complete this field before submitting.\",\r\n                    errorMessage: \"There was an issue submitting the survey. Please try again.\",\r\n                    optionalPlaceholder: \"Optional\",\r\n                    patientNamePlaceholder: \"Enter patient name\",\r\n                    doctorPlaceholder: \"Enter doctor's name\"\r\n                },\r\n                spanish: {\r\n                    nextButton: \"Siguiente\",\r\n                    submitButton: \"Enviar Encuesta\",\r\n                    submittingButton: \"Enviando...\",\r\n                    successMessage: \"\u00a1Gracias por sus comentarios!\",\r\n                    requiredMessage: \"Por favor complete este campo antes de continuar.\",\r\n                    submitRequiredMessage: \"Por favor complete este campo antes de enviar.\",\r\n                    errorMessage: \"Hubo un problema al enviar la encuesta. Por favor int\u00e9ntelo de nuevo.\",\r\n                    optionalPlaceholder: \"Opcional\",\r\n                    patientNamePlaceholder: \"Ingrese el nombre del paciente\",\r\n                    doctorPlaceholder: \"Ingrese el nombre del doctor\"\r\n                }\r\n            };\r\n\r\n            var steps = [\r\n                {\r\n                    section: {\r\n                        english: \"Language\",\r\n                        spanish: \"Idioma\"\r\n                    },\r\n                    label: {\r\n                        english: \"Please choose your preferred language.\",\r\n                        spanish: \"Por favor elija su idioma preferido.\"\r\n                    },\r\n                    name: \"language\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"English\",\r\n                            spanish: \"Ingl\u00e9s\",\r\n                            value: \"english\"\r\n                        },\r\n                        {\r\n                            english: \"Spanish\",\r\n                            spanish: \"Espa\u00f1ol\",\r\n                            value: \"spanish\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Patient Information\",\r\n                        spanish: \"Informaci\u00f3n del Paciente\"\r\n                    },\r\n                    label: {\r\n                        english: \"What is your name?\",\r\n                        spanish: \"\u00bfCu\u00e1l es su nombre?\"\r\n                    },\r\n                    name: \"patientName\",\r\n                    type: \"text\"\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Patient Information\",\r\n                        spanish: \"Informaci\u00f3n del Paciente\"\r\n                    },\r\n                    label: {\r\n                        english: \"What was the date of your visit?\",\r\n                        spanish: \"\u00bfCu\u00e1l fue la fecha de su visita?\"\r\n                    },\r\n                    name: \"dateOfVisit\",\r\n                    type: \"date\"\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Patient Information\",\r\n                        spanish: \"Informaci\u00f3n del Paciente\"\r\n                    },\r\n                    label: {\r\n                        english: \"Which doctor did you see?\",\r\n                        spanish: \"\u00bfQu\u00e9 doctor lo\/la atendi\u00f3?\"\r\n                    },\r\n                    name: \"doctor\",\r\n                    type: \"text\"\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"How easy was it to schedule your appointment?\",\r\n                        spanish: \"\u00bfQu\u00e9 tan f\u00e1cil fue programar su cita?\"\r\n                    },\r\n                    name: \"scheduleEase\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Very Easy\",\r\n                            spanish: \"Muy f\u00e1cil\",\r\n                            value: \"Very Easy \/ Muy f\u00e1cil\"\r\n                        },\r\n                        {\r\n                            english: \"Easy\",\r\n                            spanish: \"F\u00e1cil\",\r\n                            value: \"Easy \/ F\u00e1cil\"\r\n                        },\r\n                        {\r\n                            english: \"Neutral\",\r\n                            spanish: \"Neutral\",\r\n                            value: \"Neutral \/ Neutral\"\r\n                        },\r\n                        {\r\n                            english: \"Difficult\",\r\n                            spanish: \"Dif\u00edcil\",\r\n                            value: \"Difficult \/ Dif\u00edcil\"\r\n                        },\r\n                        {\r\n                            english: \"Very Difficult\",\r\n                            spanish: \"Muy dif\u00edcil\",\r\n                            value: \"Very Difficult \/ Muy dif\u00edcil\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"Were you seen on time?\",\r\n                        spanish: \"\u00bfFue atendido\/a a tiempo?\"\r\n                    },\r\n                    name: \"seenOnTime\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Yes\",\r\n                            spanish: \"S\u00ed\",\r\n                            value: \"Yes \/ S\u00ed\"\r\n                        },\r\n                        {\r\n                            english: \"No\",\r\n                            spanish: \"No\",\r\n                            value: \"No \/ No\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"Was the doctor friendly and helpful?\",\r\n                        spanish: \"\u00bfEl doctor fue amable y servicial?\"\r\n                    },\r\n                    name: \"doctorFriendly\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Yes\",\r\n                            spanish: \"S\u00ed\",\r\n                            value: \"Yes \/ S\u00ed\"\r\n                        },\r\n                        {\r\n                            english: \"Somewhat\",\r\n                            spanish: \"En parte\",\r\n                            value: \"Somewhat \/ En parte\"\r\n                        },\r\n                        {\r\n                            english: \"No\",\r\n                            spanish: \"No\",\r\n                            value: \"No \/ No\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"How would you rate your dental\/orthodontic treatment?\",\r\n                        spanish: \"\u00bfC\u00f3mo calificar\u00eda su tratamiento dental\/ortod\u00f3ntico?\"\r\n                    },\r\n                    name: \"treatmentRating\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Excellent\",\r\n                            spanish: \"Excelente\",\r\n                            value: \"Excellent \/ Excelente\"\r\n                        },\r\n                        {\r\n                            english: \"Good\",\r\n                            spanish: \"Bueno\",\r\n                            value: \"Good \/ Bueno\"\r\n                        },\r\n                        {\r\n                            english: \"Fair\",\r\n                            spanish: \"Regular\",\r\n                            value: \"Fair \/ Regular\"\r\n                        },\r\n                        {\r\n                            english: \"Poor\",\r\n                            spanish: \"Malo\",\r\n                            value: \"Poor \/ Malo\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"Did we explain your treatment clearly?\",\r\n                        spanish: \"\u00bfLe explicamos su tratamiento claramente?\"\r\n                    },\r\n                    name: \"treatmentExplanation\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Yes\",\r\n                            spanish: \"S\u00ed\",\r\n                            value: \"Yes \/ S\u00ed\"\r\n                        },\r\n                        {\r\n                            english: \"Somewhat\",\r\n                            spanish: \"En parte\",\r\n                            value: \"Somewhat \/ En parte\"\r\n                        },\r\n                        {\r\n                            english: \"No\",\r\n                            spanish: \"No\",\r\n                            value: \"No \/ No\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Appointment Experience\",\r\n                        spanish: \"Experiencia de la Cita\"\r\n                    },\r\n                    label: {\r\n                        english: \"Did you feel comfortable during your visit?\",\r\n                        spanish: \"\u00bfSe sinti\u00f3 c\u00f3modo\/a durante su visita?\"\r\n                    },\r\n                    name: \"visitComfort\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Yes\",\r\n                            spanish: \"S\u00ed\",\r\n                            value: \"Yes \/ S\u00ed\"\r\n                        },\r\n                        {\r\n                            english: \"Somewhat\",\r\n                            spanish: \"En parte\",\r\n                            value: \"Somewhat \/ En parte\"\r\n                        },\r\n                        {\r\n                            english: \"No\",\r\n                            spanish: \"No\",\r\n                            value: \"No \/ No\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Front Office Experience\",\r\n                        spanish: \"Experiencia en Recepci\u00f3n\"\r\n                    },\r\n                    label: {\r\n                        english: \"How would you rate our front desk staff?\",\r\n                        spanish: \"\u00bfC\u00f3mo calificar\u00eda a nuestro personal de recepci\u00f3n?\"\r\n                    },\r\n                    name: \"frontDeskRating\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Excellent\",\r\n                            spanish: \"Excelente\",\r\n                            value: \"Excellent \/ Excelente\"\r\n                        },\r\n                        {\r\n                            english: \"Good\",\r\n                            spanish: \"Bueno\",\r\n                            value: \"Good \/ Bueno\"\r\n                        },\r\n                        {\r\n                            english: \"Fair\",\r\n                            spanish: \"Regular\",\r\n                            value: \"Fair \/ Regular\"\r\n                        },\r\n                        {\r\n                            english: \"Poor\",\r\n                            spanish: \"Malo\",\r\n                            value: \"Poor \/ Malo\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Cleanliness & Environment\",\r\n                        spanish: \"Limpieza y Ambiente\"\r\n                    },\r\n                    label: {\r\n                        english: \"How would you rate the cleanliness of our office?\",\r\n                        spanish: \"\u00bfC\u00f3mo calificar\u00eda la limpieza de nuestra oficina?\"\r\n                    },\r\n                    name: \"officeCleanliness\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Excellent\",\r\n                            spanish: \"Excelente\",\r\n                            value: \"Excellent \/ Excelente\"\r\n                        },\r\n                        {\r\n                            english: \"Good\",\r\n                            spanish: \"Bueno\",\r\n                            value: \"Good \/ Bueno\"\r\n                        },\r\n                        {\r\n                            english: \"Fair\",\r\n                            spanish: \"Regular\",\r\n                            value: \"Fair \/ Regular\"\r\n                        },\r\n                        {\r\n                            english: \"Poor\",\r\n                            spanish: \"Malo\",\r\n                            value: \"Poor \/ Malo\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Overall Experience\",\r\n                        spanish: \"Experiencia General\"\r\n                    },\r\n                    label: {\r\n                        english: \"Overall, how satisfied are you with your visit?\",\r\n                        spanish: \"En general, \u00bfqu\u00e9 tan satisfecho\/a est\u00e1 con su visita?\"\r\n                    },\r\n                    name: \"overallSatisfaction\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Very Satisfied\",\r\n                            spanish: \"Muy satisfecho\/a\",\r\n                            value: \"Very Satisfied \/ Muy satisfecho\/a\"\r\n                        },\r\n                        {\r\n                            english: \"Satisfied\",\r\n                            spanish: \"Satisfecho\/a\",\r\n                            value: \"Satisfied \/ Satisfecho\/a\"\r\n                        },\r\n                        {\r\n                            english: \"Neutral\",\r\n                            spanish: \"Neutral\",\r\n                            value: \"Neutral \/ Neutral\"\r\n                        },\r\n                        {\r\n                            english: \"Unsatisfied\",\r\n                            spanish: \"Insatisfecho\/a\",\r\n                            value: \"Unsatisfied \/ Insatisfecho\/a\"\r\n                        },\r\n                        {\r\n                            english: \"Very Unsatisfied\",\r\n                            spanish: \"Muy insatisfecho\/a\",\r\n                            value: \"Very Unsatisfied \/ Muy insatisfecho\/a\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Overall Experience\",\r\n                        spanish: \"Experiencia General\"\r\n                    },\r\n                    label: {\r\n                        english: \"Would you recommend our office to family and friends?\",\r\n                        spanish: \"\u00bfRecomendar\u00eda nuestra oficina a familiares y amigos?\"\r\n                    },\r\n                    name: \"recommendOffice\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Yes\",\r\n                            spanish: \"S\u00ed\",\r\n                            value: \"Yes \/ S\u00ed\"\r\n                        },\r\n                        {\r\n                            english: \"No\",\r\n                            spanish: \"No\",\r\n                            value: \"No \/ No\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"How did you hear about us?\",\r\n                        spanish: \"\u00bfC\u00f3mo se enter\u00f3 de nosotros?\"\r\n                    },\r\n                    label: {\r\n                        english: \"How did you hear about us?\",\r\n                        spanish: \"\u00bfC\u00f3mo se enter\u00f3 de nosotros?\"\r\n                    },\r\n                    name: \"heardAboutUs\",\r\n                    type: \"choice\",\r\n                    choices: [\r\n                        {\r\n                            english: \"Friend \/ Family \/ Doctor\",\r\n                            spanish: \"Amigo \/ Familiar \/ Doctor\",\r\n                            value: \"Friend \/ Family \/ Doctor \/ Amigo \/ Familiar \/ Doctor\"\r\n                        },\r\n                        {\r\n                            english: \"Mail\",\r\n                            spanish: \"Correo\",\r\n                            value: \"Mail \/ Correo\"\r\n                        },\r\n                        {\r\n                            english: \"Social Media\",\r\n                            spanish: \"Redes Sociales\",\r\n                            value: \"Social Media \/ Redes Sociales\"\r\n                        },\r\n                        {\r\n                            english: \"Other\",\r\n                            spanish: \"Otro\",\r\n                            value: \"Other \/ Otro\"\r\n                        }\r\n                    ]\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"How did you hear about us?\",\r\n                        spanish: \"\u00bfC\u00f3mo se enter\u00f3 de nosotros?\"\r\n                    },\r\n                    label: {\r\n                        english: \"If you selected Other, please tell us how you heard about us.\",\r\n                        spanish: \"Si seleccion\u00f3 Otro, por favor d\u00edganos c\u00f3mo se enter\u00f3 de nosotros.\"\r\n                    },\r\n                    name: \"heardAboutUsOther\",\r\n                    type: \"text\",\r\n                    optional: true\r\n                },\r\n                {\r\n                    section: {\r\n                        english: \"Additional Feedback\",\r\n                        spanish: \"Comentarios Adicionales\"\r\n                    },\r\n                    label: {\r\n                        english: \"Do you have any additional feedback?\",\r\n                        spanish: \"\u00bfTiene alg\u00fan comentario adicional?\"\r\n                    },\r\n                    name: \"additionalFeedback\",\r\n                    type: \"textarea\",\r\n                    optional: true\r\n                }\r\n            ];\r\n\r\n            nextSurveyStepButton.addEventListener(\"click\", function () {\r\n                saveCurrentStep();\r\n\r\n                if (steps[currentStep].optional !== true) {\r\n                    if (formData[steps[currentStep].name] === \"\") {\r\n                        alert(getCurrentLanguageContent().requiredMessage);\r\n                        return;\r\n                    }\r\n                }\r\n\r\n                currentStep = currentStep + 1;\r\n                showStep();\r\n            });\r\n\r\n            form.addEventListener(\"submit\", function (event) {\r\n                event.preventDefault();\r\n                saveCurrentStep();\r\n\r\n                if (steps[currentStep].optional !== true) {\r\n                    if (formData[steps[currentStep].name] === \"\") {\r\n                        alert(getCurrentLanguageContent().submitRequiredMessage);\r\n                        return;\r\n                    }\r\n                }\r\n\r\n                submitSurveyButton.disabled = true;\r\n                submitSurveyButton.innerHTML = '<span class=\"button-spinner\"><\/span> ' + getCurrentLanguageContent().submittingButton;\r\n\r\n                var request = new XMLHttpRequest();\r\n                request.open(\"POST\", \"https:\/\/redsquaredentalcare.com\/wp-admin\/admin-ajax.php\", true);\r\n                request.setRequestHeader(\"Content-Type\", \"application\/x-www-form-urlencoded\");\r\n\r\n                var data = \"\";\r\n                data = data + \"action=submit_patient_survey_form\";\r\n                data = data + \"&language=\" + encodeURIComponent(formData.language);\r\n                data = data + \"&patientName=\" + encodeURIComponent(formData.patientName);\r\n                data = data + \"&dateOfVisit=\" + encodeURIComponent(formData.dateOfVisit);\r\n                data = data + \"&doctor=\" + encodeURIComponent(formData.doctor);\r\n                data = data + \"&scheduleEase=\" + encodeURIComponent(formData.scheduleEase);\r\n                data = data + \"&seenOnTime=\" + encodeURIComponent(formData.seenOnTime);\r\n                data = data + \"&doctorFriendly=\" + encodeURIComponent(formData.doctorFriendly);\r\n                data = data + \"&treatmentRating=\" + encodeURIComponent(formData.treatmentRating);\r\n                data = data + \"&treatmentExplanation=\" + encodeURIComponent(formData.treatmentExplanation);\r\n                data = data + \"&visitComfort=\" + encodeURIComponent(formData.visitComfort);\r\n                data = data + \"&frontDeskRating=\" + encodeURIComponent(formData.frontDeskRating);\r\n                data = data + \"&officeCleanliness=\" + encodeURIComponent(formData.officeCleanliness);\r\n                data = data + \"&overallSatisfaction=\" + encodeURIComponent(formData.overallSatisfaction);\r\n                data = data + \"&recommendOffice=\" + encodeURIComponent(formData.recommendOffice);\r\n                data = data + \"&heardAboutUs=\" + encodeURIComponent(formData.heardAboutUs);\r\n                data = data + \"&heardAboutUsOther=\" + encodeURIComponent(formData.heardAboutUsOther);\r\n                data = data + \"&additionalFeedback=\" + encodeURIComponent(formData.additionalFeedback);\r\n\r\n                request.onload = function () {\r\n                    if (request.status === 200) {\r\n                        form.style.display = \"none\";\r\n                        successMessage.textContent = getCurrentLanguageContent().successMessage;\r\n                        successMessage.style.display = \"block\";\r\n                    } else {\r\n                        submitSurveyButton.disabled = false;\r\n                        submitSurveyButton.innerHTML = getCurrentLanguageContent().submitButton;\r\n                        alert(getCurrentLanguageContent().errorMessage);\r\n                    }\r\n                };\r\n\r\n                request.onerror = function () {\r\n                    submitSurveyButton.disabled = false;\r\n                    submitSurveyButton.innerHTML = getCurrentLanguageContent().submitButton;\r\n                    alert(getCurrentLanguageContent().errorMessage);\r\n                };\r\n\r\n                request.send(data);\r\n            });\r\n\r\n            function showStep() {\r\n                var step = steps[currentStep];\r\n                var currentLanguage = getCurrentLanguage();\r\n                surveyStepArea.innerHTML = \"\";\r\n\r\n                nextSurveyStepButton.textContent = getCurrentLanguageContent().nextButton;\r\n                submitSurveyButton.textContent = getCurrentLanguageContent().submitButton;\r\n\r\n                var sectionTitle = document.createElement(\"div\");\r\n                sectionTitle.className = \"survey-section-title\";\r\n                sectionTitle.textContent = step.section[currentLanguage];\r\n                surveyStepArea.appendChild(sectionTitle);\r\n\r\n                var label = document.createElement(\"label\");\r\n                label.textContent = step.label[currentLanguage];\r\n                surveyStepArea.appendChild(label);\r\n\r\n                if (step.type === \"choice\") {\r\n                    var i = 0;\r\n\r\n                    while (i < step.choices.length) {\r\n                        var optionBox = document.createElement(\"div\");\r\n                        optionBox.className = \"survey-option\";\r\n\r\n                        if (formData[step.name] === step.choices[i].value) {\r\n                            optionBox.classList.add(\"selected-survey-option\");\r\n                        }\r\n\r\n                        optionBox.setAttribute(\"data-value\", step.choices[i].value);\r\n\r\n                        var optionText = document.createElement(\"span\");\r\n                        optionText.textContent = step.choices[i][currentLanguage];\r\n\r\n                        optionBox.appendChild(optionText);\r\n\r\n                        optionBox.addEventListener(\"click\", function () {\r\n                            formData[step.name] = this.getAttribute(\"data-value\");\r\n\r\n                            if (step.name === \"language\") {\r\n                                formData.language = this.getAttribute(\"data-value\");\r\n                            }\r\n\r\n                            var allOptions = document.querySelectorAll(\".survey-option\");\r\n                            var x = 0;\r\n\r\n                            while (x < allOptions.length) {\r\n                                allOptions[x].classList.remove(\"selected-survey-option\");\r\n                                x = x + 1;\r\n                            }\r\n\r\n                            this.classList.add(\"selected-survey-option\");\r\n\r\n                            nextSurveyStepButton.textContent = getCurrentLanguageContent().nextButton;\r\n                            submitSurveyButton.textContent = getCurrentLanguageContent().submitButton;\r\n                        });\r\n\r\n                        surveyStepArea.appendChild(optionBox);\r\n\r\n                        i = i + 1;\r\n                    }\r\n                } else if (step.type === \"textarea\") {\r\n                    var textarea = document.createElement(\"textarea\");\r\n                    textarea.id = \"currentSurveyInput\";\r\n                    textarea.value = formData[step.name];\r\n                    surveyStepArea.appendChild(textarea);\r\n                } else {\r\n                    var input = document.createElement(\"input\");\r\n                    input.id = \"currentSurveyInput\";\r\n                    input.type = step.type;\r\n                    input.value = formData[step.name];\r\n\r\n                    if (step.name === \"patientName\") {\r\n                        input.placeholder = getCurrentLanguageContent().patientNamePlaceholder;\r\n                    }\r\n\r\n                    if (step.name === \"doctor\") {\r\n                        input.placeholder = getCurrentLanguageContent().doctorPlaceholder;\r\n                    }\r\n\r\n                    if (step.name === \"heardAboutUsOther\") {\r\n                        input.placeholder = getCurrentLanguageContent().optionalPlaceholder;\r\n                    }\r\n\r\n                    surveyStepArea.appendChild(input);\r\n                }\r\n\r\n                if (currentStep === steps.length - 1) {\r\n                    nextSurveyStepButton.style.display = \"none\";\r\n                    submitSurveyButton.style.display = \"block\";\r\n                } else {\r\n                    nextSurveyStepButton.style.display = \"block\";\r\n                    submitSurveyButton.style.display = \"none\";\r\n                }\r\n            }\r\n\r\n            function saveCurrentStep() {\r\n                var step = steps[currentStep];\r\n\r\n                if (step.type !== \"choice\") {\r\n                    var input = document.getElementById(\"currentSurveyInput\");\r\n                    formData[step.name] = input.value.trim();\r\n                }\r\n            }\r\n\r\n            function getCurrentLanguage() {\r\n                if (formData.language === \"spanish\") {\r\n                    return \"spanish\";\r\n                }\r\n\r\n                return \"english\";\r\n            }\r\n\r\n            function getCurrentLanguageContent() {\r\n                if (formData.language === \"spanish\") {\r\n                    return languageContent.spanish;\r\n                }\r\n\r\n                return languageContent.english;\r\n            }\r\n\r\n            showStep();\r\n        });\r\n    <\/script>\r\n\r\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","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-2904","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/pages\/2904","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/comments?post=2904"}],"version-history":[{"count":30,"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/pages\/2904\/revisions"}],"predecessor-version":[{"id":15549,"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/pages\/2904\/revisions\/15549"}],"wp:attachment":[{"href":"https:\/\/redsquaredentalcare.com\/index.php\/wp-json\/wp\/v2\/media?parent=2904"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}