{"id":38596,"date":"2025-04-08T15:41:57","date_gmt":"2025-04-08T12:41:57","guid":{"rendered":"https:\/\/turanturan.com.tr\/?page_id=38596"},"modified":"2025-09-02T16:22:05","modified_gmt":"2025-09-02T13:22:05","slug":"online-consultation","status":"publish","type":"page","link":"https:\/\/turanturan.com.tr\/en\/online-consultation\/","title":{"rendered":"Online Consultation"},"content":{"rendered":"\n<div class=\"gb-element-6b3cbb3c\" style=\"--inline-bg-image: url(https:\/\/turanturan.com.tr\/wp-content\/uploads\/2021\/03\/page-title.jpg)\">\n<div class=\"gb-element-6419b2ad\">\n<h1 class=\"gb-text gb-text-ef6896ed\">Online Consultation<\/h1>\n<\/div>\n<\/div>\n\n\n\n<div>\n<div class=\"gb-element-8fcc3fa7\">\n    \r\n    <style>\r\n        .form-group {\r\n            margin-bottom: 15px !important;\r\n            width: 100% !important;\r\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) !important;\r\n            padding: 20px !important;\r\n            border-radius: 10px !important;\r\n        }\r\n        label {\r\n            display: block !important;\r\n            margin-bottom: 5px !important;\r\n            font-size: 17px !important;\r\n        }\r\n        .special-form input[type=\"text\"], input[type=\"email\"], input[type=\"tel\"], input[type=\"number\"], input[type=\"date\"], input[type=\"file\"], textarea{\r\n            width: 100% !important;\r\n        }\r\n        .special-form input[type=\"checkbox\"], input[type=\"radio\"] {\r\n            display: none !important;\r\n        }\r\n        .custom-checkbox, .custom-radio {\r\n            display: inline-block !important;\r\n            padding: 10px 15px !important;\r\n            border: 2px solid #2563eb !important;\r\n            background-color: transparent !important;\r\n            border-radius: 10px !important;\r\n            cursor: pointer !important;\r\n            transition: all 0.3s ease !important;\r\n        }\r\n        .custom-checkbox:hover, .custom-radio:hover {\r\n            background-color: rgba(37, 99, 235, 0.2) !important;\r\n        }\r\n        .special-form input[type=\"checkbox\"]:checked + label, input[type=\"radio\"]:checked + label {\r\n            background-color: #2563eb !important;\r\n            color: white !important;\r\n        }\r\n        .custom-label {\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            gap: 10px !important;\r\n            cursor: pointer !important;\r\n        }\r\n        .special-form input[type=file]::file-selector-button {\r\n            border: 2px solid #2563eb !important;\r\n            padding: 8px 15px !important;\r\n            border-radius: 10px !important;\r\n            background-color: #fff !important;\r\n            transition: 1s !important;\r\n        }\r\n        .special-form input, select, textarea {\r\n            padding: 8px !important;\r\n            margin: 5px 0 !important;\r\n            box-sizing: border-box !important;\r\n            border-radius: 10px !important;\r\n            border: 1px solid #ccc !important;\r\n        }\r\n\t\t.special-form select {\r\n\t\t\theight:41px !important\r\n\t\t}\r\n        .special-form input[type=\"file\"] {\r\n            border: none !important;\r\n            padding: 0px !important;\r\n        }\r\n        .special-form input:focus, select:focus, textarea :focus {\r\n            border: 1px solid #2563eb !important;\r\n            outline: #2563eb !important;\r\n        }\r\n        .special-form input[type=\"file\"]:focus {\r\n            outline: none !important ;\r\n        }\r\n        .checkbox-group, .radio-group {\r\n            margin-bottom: 10px !important;\r\n            display: flex !important;\r\n            flex-direction: column !important;\r\n        }\r\n        .radio-group label, .checkbox-group label {\r\n            display: flex !important;\r\n            align-items: center !important;\r\n            gap: 0px 5px !important;\r\n            margin-right: 10px !important;\r\n        }\r\n        .other-input {\r\n            display: none;\r\n        }\r\n        .row {\r\n            display: flex !important;\r\n            flex-direction: row !important;\r\n            justify-content: space-between !important;\r\n            gap: 10px !important;\r\n        }\r\n        .special-form button {\r\n            background-color: #fff !important;\r\n            border: 2px solid #2563eb !important;\r\n            padding: 8px 15px !important;\r\n            border-radius: 10px !important; \r\n            transition: 1s !important;\r\n            cursor: pointer !important;\r\n            color: #2563eb !important;\r\n        }\r\n        .special-form {\r\n            background-color: #fff !important;\r\n            box-shadow: 0 0 10px rgba(37,99,235, 0.3) !important;\r\n            padding: 20px !important;\r\n            border-radius: 10px !important;\r\n        }\r\n        .accordion {\r\n            background-color: #fff !important;\r\n            color: #444 !important;\r\n            box-shadow: 0 0 10px rgba(37,99,235, 0.2) !important;\r\n            cursor: pointer !important;\r\n            padding: 10px !important;\r\n            width: 100% !important;\r\n            border: none !important;\r\n            text-align: left !important;\r\n            outline: none !important;\r\n            font-size: 18px !important;\r\n            transition: 0.4s !important;\r\n            margin-bottom: 10px !important;\r\n        }\r\n        .panel {\r\n            padding: 0 18px !important;\r\n            background-color: white !important;\r\n            display: none;\r\n            overflow: hidden !important;\r\n            margin-bottom: 10px !important;\r\n        }\r\n        .panel input, .panel textarea, .panel select {\r\n            width: 100% !important;\r\n            margin-top: 10px !important;\r\n        }\r\n        .active2, .accordion:hover {\r\n            background-color: rgba(37,99,235, 0.3) !important;\r\n        }\r\n        .panel label {\r\n            margin-top: 10px !important;\r\n            display: block !important;\r\n        }\r\n        .navigation-buttons {\r\n            margin-top: 20px !important;\r\n            text-align: right !important;\r\n        }\r\n\r\n        .navigation-buttons button {\r\n            padding: 10px 15px !important;\r\n            margin-right: 10px !important;\r\n        }\r\n        .day-button {\r\n            display: inline-block !important;\r\n            padding: 10px 20px !important;\r\n            border: 2px solid #2563eb !important;\r\n            border-radius: 10px !important;\r\n            margin: 5px !important;\r\n            background-color: white !important;\r\n            cursor: pointer !important;\r\n            transition: background-color 0.3s ease !important;\r\n        }\r\n        .day-button.selected {\r\n            background-color: #2563eb !important;\r\n            color: white !important;\r\n        }\r\n        .day-button:hover {\r\n            background-color: rgba(37,99,235, 0.2) !important;\r\n        }\r\n        .stepper-container {\r\n            justify-content: space-between !important;\r\n            align-items: center !important;\r\n            width: 100% !important;\r\n            position: relative !important;\r\n            margin-bottom: 30px !important;\r\n        }\r\n        .stepper-line {\r\n            position: absolute !important;\r\n            top: 28% !important;\r\n            left: 0 !important;\r\n            right: 0 !important;\r\n            height: 5px !important;\r\n            background-color: #e0e0e0 !important;\r\n            z-index: 0 !important;\r\n            width: 100% !important;\r\n            border-radius: 20px !important;\r\n        }\r\n        .stepper-line-filled {\r\n            position: absolute !important;\r\n            top: 28% !important;\r\n            left: 0% !important;\r\n            height: 5px !important;\r\n            background-color: #2563eb !important;\r\n            z-index: 0 !important;\r\n            transition: width 0.4s ease !important;\r\n            border-radius: 20px !important;\r\n        }\r\n        .step {\r\n            position: relative !important;\r\n            display: flex !important;\r\n            flex-direction: column !important;\r\n            align-items: center !important;\r\n            z-index: 1 !important;\r\n        }\r\n        .step .circle {\r\n            width: 40px !important;\r\n            height: 40px !important;\r\n            border-radius: 50% !important;\r\n            background-color: #e0e0e0 !important;\r\n            border: 2px solid #e0e0e0 !important;\r\n            display: flex !important;\r\n            justify-content: center !important;\r\n            align-items: center !important;\r\n            color: white !important;\r\n            font-size: 18px !important;\r\n            transition: background-color 0.4s, border-color 0.4s !important;\r\n        }\r\n        .step.active .circle {\r\n            background-color: #2563eb !important;\r\n            border-color: #2563eb !important;\r\n        }\r\n        .step-label {\r\n            margin-top: 10px !important;\r\n            font-size: 14px !important;\r\n            color: #777 !important;\r\n        }\r\n        .step.active .step-label {\r\n            color: #2563eb !important;\r\n        }\r\n        .step-content {\r\n            display: none !important;\r\n        }\r\n        .step-content.active {\r\n            display: block !important;\r\n        }\r\n        .navigation-buttons {\r\n            margin-top: 20px !important;\r\n            text-align: right !important;\r\n        }\r\n        .navigation-buttons button {\r\n            padding: 10px 15px !important;\r\n            margin-right: 10px !important;\r\n        }\r\n        .step-start {\r\n            align-items: start !important;\r\n        }\r\n        .step-end {\r\n            align-items: end !important;\r\n        }\r\n        .w-full {\r\n            width: 100% !important;\r\n        }\r\n        .medical-conditions-area {\r\n            padding: 20px !important;\r\n            box-shadow: 0 0 10px rgba(37,99,235, 0.3) !important;\r\n            border-radius: 10px !important;\r\n        }\r\n        .gap-horizantel {\r\n            gap: 10px 0px !important;\r\n        }\r\n        .accordion.completed {\r\n            background-color: #5ce65c !important;\r\n            color: white !important;\r\n        }\r\n        .flex-area {\r\n            display: flex;\r\n            flex-direction: row;\r\n            gap: 0px 10px;\r\n        }\r\n        .flex-area-2 {\r\n            display: flex;\r\n            flex-direction: row;\r\n            gap: 0px 20px;\r\n            align-items: center;\r\n            justify-content: space-between;\r\n        }\r\n        .webView {\r\n            display: flex;\r\n        }\r\n        .mobileView {\r\n            display: none;\r\n        }\r\n        #mobileStep {\r\n            padding: 10px;\r\n            background-color: #2563eb;\r\n            color: #fff;\r\n            border-radius: 10px;\r\n        }\r\n        .custom-btn {\r\n            padding: 10px 20px !important;\r\n            background-color: #2563eb !important;\r\n            color: #fff !important;\r\n            border-radius: 10px !important;\r\n            text-decoration: none !important;\r\n        }\r\n        .doctor-item {\r\n            display: flex;\r\n            flex-direction: row;\r\n            align-items: center;\r\n        }\r\n        h2, h3 {\r\n            text-align: center;\r\n            color: #333;\r\n        }\r\n        .doctor-list, .date-list, .time-list {\r\n            display: flex;\r\n            flex-wrap: wrap;\r\n            gap: 10px;\r\n            justify-content: center;\r\n            margin-bottom: 20px;\r\n        }\r\n        .doctor-list, .time-list {\r\n            flex-direction: column;\r\n            justify-content: center;\r\n        }\r\n        .time-list {\r\n            align-items: center;\r\n        }\r\n        .doctor-item, .date-item, .time-item {\r\n            background: #fff;\r\n            color: #000;\r\n            padding: 10px 15px;\r\n            border-radius: 5px;\r\n            cursor: pointer;\r\n            transition: background 0.3s;\r\n            text-align: center;\r\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);\r\n        }\r\n        .doctor-item:hover, .date-item:hover, .time-item:hover {\r\n            background: rgb(59 130 246 \/ 0.9);\r\n            color: #fff;\r\n        }\r\n        .selected {\r\n            background: rgb(59 130 246 \/ 0.9) !important;\r\n            color: #fff !important;\r\n        }\r\n        .schedule-container {\r\n            display: none;\r\n            flex-direction: column;\r\n            justify-content: center;\r\n            gap: 10px;\r\n        }\r\n        .time-item {\r\n            display: block;\r\n            padding: 8px;\r\n            margin: 3px 0;\r\n            border-radius: 5px;\r\n            font-size: 14px;\r\n            text-align: center;\r\n            width: 100px;\r\n        }\r\n        .available {\r\n            background: #fff;\r\n            color: #000;\r\n            cursor: pointer;\r\n        }\r\n        .unavailable {\r\n            background: #ccc;\r\n            color: black;\r\n            cursor: not-allowed;\r\n        }\r\n        .unavailable:hover {\r\n            background: #ccc !important;\r\n            color: black !important;\r\n            cursor: not-allowed !important;\r\n        }\r\n        .submit-btn {\r\n            display: none;\r\n            margin: auto;\r\n            padding: 10px 20px;\r\n            font-size: 16px;\r\n            background-color: rgb(59 130 246 \/ 0.9) !important;\r\n            color: white;\r\n            border: none;\r\n            border-radius: 5px;\r\n            cursor: pointer;\r\n            text-align: center;\r\n        }\r\n        .submit-btn:hover {\r\n            background-color: rgb(59 130 246 \/ 0.8) !important;\r\n        }\r\n        .payment-area {\r\n            display: inline-block ;\r\n            opacity: 1;\r\n            visibility: visible;\r\n            flex-direction: column;\r\n            gap: 10px 0px;\r\n            padding: 20px;\r\n            overflow: hidden; \/* \u0130\u00e7erik ta\u015fmas\u0131n\u0131 engelle *\/\r\n            \/* height: 500px; *\/\r\n            max-width: 450px;\r\n            width: 100%;\r\n            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2) !important;\r\n            border-radius: 10px;\r\n        }\r\n        @media (max-width: 768px) {\r\n            .webView {\r\n                display: none;\r\n            }\r\n            .mobileView {\r\n                display: flex;\r\n            }\r\n            .flex-area {\r\n                flex-direction: column;\r\n                gap: 10px 0px;\r\n            }\r\n            .flex-area-2 {\r\n                flex-direction: column;\r\n                gap: 10px 0px;\r\n            }\r\n            .w-full {\r\n                width: auto !important;\r\n            }\r\n        }\r\n    <\/style>\r\n\r\n\r\n\r\n<form class=\"special-form\" id=\"myForm\" enctype=\"multipart\/form-data\" style=\"margin-bottom:60px\">\r\n\r\n    <div class=\"stepper-container webView\">\r\n        <div class=\"stepper-line\"><\/div>\r\n        <div class=\"stepper-line-filled\" id=\"progressLine\" style=\"width: 0;\"><\/div>\r\n    \r\n        <!-- Step 1 -->\r\n        <div class=\"step active step-start\" id=\"step-1\">\r\n            <div class=\"circle\">1<\/div>\r\n            <div id=\"firststep\" class=\"step-label\">Personal Information<\/div>\r\n        <\/div>\r\n    \r\n        <!-- Step 2 -->\r\n        <div class=\"step\" id=\"step-2\">\r\n            <div class=\"circle\">2<\/div>\r\n            <div id=\"secondstep\" class=\"step-label\">Medical Condition<\/div>\r\n        <\/div>\r\n    \r\n        <!-- Step 3 -->\r\n        <div class=\"step\" id=\"step-3\">\r\n            <div class=\"circle\">3<\/div>\r\n            <div id=\"thirdstep\" class=\"step-label\">Medical Files<\/div>\r\n        <\/div>\r\n    \r\n        <!-- Step 4 -->\r\n        <div class=\"step\" id=\"step-4\">\r\n            <div class=\"circle\">4<\/div>\r\n            <div id=\"forthstep\" class=\"step-label\">Select Dates<\/div>\r\n        <\/div>\r\n        <div class=\"step step-end\" id=\"step-5\">\r\n            <div class=\"circle\">5<\/div>\r\n            <div id=\"fifthstep\" class=\"step-label\">Payment<\/div>\r\n        <\/div>\r\n    <\/div>\r\n    <div class=\"mobileView\">\r\n        <h3 id=\"mobileStep\"><\/h3>\r\n    <\/div>\r\n\r\n    <div class=\"step-content\" id=\"step-content-1\">\r\n        <label for=\"name\">Name and Surname:*<\/label>\r\n        <input type=\"text\" id=\"name\" name=\"name\" required>\r\n        <label for=\"email\">E-mail:*<\/label>\r\n        <!-- <input type=\"email\" id=\"email\" name=\"email\" required> -->\r\n        <div style=\"display: flex; gap: 10px; align-items: center;\">\r\n            <input type=\"email\" id=\"email\" name=\"email\" style=\"flex: 1;\" required>\r\n            <button type=\"button\" id=\"sendCodeBtn\" style=\"margin: 5px 0px;\">Send Code<\/button>\r\n            <!-- <span id=\"countdownText\" style=\"margin-left: 10px; color: gray;\"><\/span> -->\r\n        <\/div>\r\n        <div id=\"verificationSection\" style=\"margin-top:10px; display: none;\">\r\n            <input type=\"text\" id=\"verificationCodeInput\" placeholder=\"Please enter verification code\" style=\"width:100%;\">\r\n        <\/div>\r\n        <p id=\"verificationMessage\" style=\"color:green;\"><\/p>\r\n        <label for=\"country\">Country<\/label>\r\n        <select id=\"country\" style=\"width: 100%;\" required>\r\n            <option value=\"\" disabled selected>Please select country<\/option>\r\n        <\/select>\r\n        <label for=\"phone\">Please provide your phone number below with the country code:*<\/label>\r\n        <input type=\"tel\" id=\"phone\" name=\"phone\" placeholder=\"+905555555555\" required>\r\n        <label for=\"height\">Your height in cm:*<\/label>\r\n        <input type=\"number\" id=\"height\" name=\"height\" min=\"50\" max=\"250\" required>\r\n        <label for=\"weight\">Your weight in kg:*<\/label>\r\n        <input type=\"number\" id=\"weight\" name=\"weight\" min=\"20\" max=\"400\" required>\r\n        <label for=\"birthdate\">Your date of birth:<\/label>\r\n        <input type=\"date\" id=\"birthdate\" name=\"birthdate\" required>\r\n    <\/div>\r\n\r\n    <div class=\"step-content\" id=\"step-content-2\">\r\n\r\n        <button type=\"button\" id=\"btn1\" class=\"accordion\">Where do you experience pain (Select all that apply)?*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"checkbox-group gap-horizantel\">\r\n                <div class=\"medical-conditions-area\" style=\"margin-top: 10px;\">\r\n                    <p><b id=\"subtitle1\">Spinal Regions<\/b><\/p>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Neck\" id=\"painLocationsNeck\">\r\n                        <label for=\"painLocationsNeck\" class=\"custom-checkbox w-full\">Cervical Spine (Neck)<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Upper Back (Thoracic Spine)\" id=\"painLocationsThoracicSpine\">\r\n                        <label for=\"painLocationsThoracicSpine\" class=\"custom-checkbox w-full\">Upper Back (Thoracic Spine)<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Middle Back\" id=\"painLocationsMiddleBack\">\r\n                        <label for=\"painLocationsMiddleBack\" class=\"custom-checkbox w-full\">Middle Back<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Lower Back (Lumbar Spine)\" id=\"painLocationsLumbarSpine\">\r\n                        <label for=\"painLocationsLumbarSpine\" class=\"custom-checkbox w-full\">Lower Back (Lumbar Spine)<\/label>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"medical-conditions-area\">\r\n                    <p><b id=\"subtitle2\">Upper Extremities<\/b><\/p>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Shoulder\" id=\"painLocationsLeftShoulder\">\r\n                        <label for=\"painLocationsLeftShoulder\" class=\"custom-checkbox w-full\">Left Shoulder<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Shoulder\" id=\"painLocationsRightShoulder\">\r\n                        <label for=\"painLocationsRightShoulder\" class=\"custom-checkbox w-full\">Right Shoulder<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Elbow\" id=\"painLocationsLeftElbow\">\r\n                        <label for=\"painLocationsLeftElbow\" class=\"custom-checkbox w-full\">Left Elbow<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Elbow\" id=\"painLocationsRightElbow\">\r\n                        <label for=\"painLocationsRightElbow\" class=\"custom-checkbox w-full\">Right Elbow<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Wrist\" id=\"painLocationsLeftWrist\">\r\n                        <label for=\"painLocationsLeftWrist\" class=\"custom-checkbox w-full\">Left Wrist<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Wrist\" id=\"painLocationsRightWrist\">\r\n                        <label for=\"painLocationsRightWrist\" class=\"custom-checkbox w-full\">Right Wrist<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Hand\" id=\"painLocationsLeftHand\">\r\n                        <label for=\"painLocationsLeftHand\" class=\"custom-checkbox w-full\">Left Hand<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Hand\" id=\"painLocationsRightHand\">\r\n                        <label for=\"painLocationsRightHand\" class=\"custom-checkbox w-full\">Right Hand<\/label>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"medical-conditions-area\">\r\n                    <p><b id=\"subtitle3\">Lower Extremities<\/b><\/p>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Hip\" id=\"painLocationsLeftHip\">\r\n                        <label for=\"painLocationsLeftHip\" class=\"custom-checkbox w-full\">Left Hip<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Hip\" id=\"painLocationsRightHip\">\r\n                        <label for=\"painLocationsRightHip\" class=\"custom-checkbox w-full\">Right Hip<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Knee\" id=\"painLocationsLeftKnee\">\r\n                        <label for=\"painLocationsLeftKnee\" class=\"custom-checkbox w-full\">Left Knee<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Knee\" id=\"painLocationsRightKnee\">\r\n                        <label for=\"painLocationsRightKnee\" class=\"custom-checkbox w-full\">Right Knee<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Ankle\" id=\"painLocationsLeftAnkle\">\r\n                        <label for=\"painLocationsLeftAnkle\" class=\"custom-checkbox w-full\">Left Ankle<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Ankle\" id=\"painLocationsRightAnkle\">\r\n                        <label for=\"painLocationsRightAnkle\" class=\"custom-checkbox w-full\">Right Ankle<\/label>\r\n                    <\/div>\r\n                    <div class=\"flex-area\">\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Left Foot\" id=\"painLocationsLeftFoot\">\r\n                        <label for=\"painLocationsLeftFoot\" class=\"custom-checkbox w-full\">Left Foot<\/label>\r\n                        <input type=\"checkbox\" name=\"painLocations\" value=\"Right Foot\" id=\"painLocationsRightFoot\">\r\n                        <label for=\"painLocationsRightFoot\" class=\"custom-checkbox w-full\">Right Foot<\/label>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"medical-conditions-area\">\r\n                    <p><b>Please describe your pain and symptoms:<\/b><\/p>\r\n                    <textarea id=\"painLocationDescription\" name=\"painLocationDescription\" rows=\"4\"><\/textarea>\r\n                <\/div>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <button type=\"button\" id=\"btn2\" class=\"accordion\">How would you describe the pain you usually have?*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"radio-group\">\r\n                <input type=\"radio\" id=\"none\" name=\"pain\" value=\"None\">\r\n                <label for=\"none\" class=\"custom-radio\">None<\/label>\r\n                <input type=\"radio\" id=\"verymild\" name=\"pain\" value=\"Very Mild\">\r\n                <label for=\"verymild\" class=\"custom-radio\">Very Mild<\/label>\r\n                <input type=\"radio\" id=\"mild\" name=\"pain\" value=\"Mild\">\r\n                <label for=\"mild\" class=\"custom-radio\">Mild<\/label>\r\n                <input type=\"radio\" id=\"moderate\" name=\"pain\" value=\"Moderate\">\r\n                <label for=\"moderate\" class=\"custom-radio\">Moderate<\/label>\r\n                <input type=\"radio\" id=\"severe\" name=\"pain\" value=\"Severe\">\r\n                <label for=\"severe\" class=\"custom-radio\">Severe<\/label>\r\n            <\/div>\r\n        <\/div>\r\n\r\n        <button type=\"button\" id=\"btn3\" class=\"accordion\">Have you been limping when walking?*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"radio-group\">\r\n                <input type=\"radio\" id=\"rarely\" name=\"limping\" value=\"Rarely\/Never\">\r\n                <label for=\"rarely\" class=\"custom-radio\">Rarely\/Never<\/label>\r\n                <input type=\"radio\" id=\"sometimes\" name=\"limping\" value=\"Sometimes or just at first\">\r\n                <label for=\"sometimes\" class=\"custom-radio\">Sometimes or just at first<\/label>\r\n                <input type=\"radio\" id=\"often\" name=\"limping\" value=\"Often, not just at first\">\r\n                <label for=\"often\" class=\"custom-radio\">Often, not just at first<\/label>\r\n                <input type=\"radio\" id=\"most\" name=\"limping\" value=\"Most of the time\">\r\n                <label for=\"most\" class=\"custom-radio\">Most of the time<\/label>\r\n                <input type=\"radio\" id=\"alloftheTime\" name=\"limping\" value=\"All of the time\">\r\n                <label for=\"alloftheTime\" class=\"custom-radio\">All of the time<\/label>\r\n            <\/div>\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn4\" class=\"accordion\">For how long are you able to walk before the pain becomes severe? *<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"radio-group\">\r\n                <input type=\"radio\" name=\"walkpain\" id=\"nopain\" value=\"No pain > 60 minutes\">\r\n                <label for=\"nopain\" class=\"custom-radio\">No pain > 60 minutes<\/label>\r\n                <input type=\"radio\" name=\"walkpain\" id=\"to60\" value=\"16 to 60 minutes\">\r\n                <label for=\"to60\" class=\"custom-radio\">16 to 60 minutes<\/label>\r\n                <input type=\"radio\" name=\"walkpain\" id=\"to15\" value=\"5 to 15 minutes\">\r\n                <label for=\"to15\" class=\"custom-radio\">5 to 15 minutes<\/label>\r\n                <input type=\"radio\" name=\"walkpain\" id=\"aroundhouse\" value=\"Around the house only\">\r\n                <label for=\"aroundhouse\" class=\"custom-radio\">Around the house only<\/label>\r\n                <input type=\"radio\" name=\"walkpain\" id=\"notatall\" value=\"Not at all - severe on walking\">\r\n                <label for=\"notatall\" class=\"custom-radio\">Not at all - severe on walking<\/label>\r\n            <\/div>\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn5\" class=\"accordion\">How long have you had your pain?*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"radio-group\">\r\n                <input type=\"radio\" id=\"onetree\" name=\"hipknee\" value=\"1-3 months\">\r\n                <label for=\"onetree\" class=\"custom-radio\">1-3 months<\/label>\r\n                <input type=\"radio\" id=\"treesix\" name=\"hipknee\" value=\"3-6 months\">\r\n                <label for=\"treesix\" class=\"custom-radio\">3-6 months<\/label>\r\n                <input type=\"radio\" id=\"sixtwelve\" name=\"hipknee\" value=\"6-12 months\">\r\n                <label for=\"sixtwelve\" class=\"custom-radio\">6-12 months<\/label>\r\n                <input type=\"radio\" id=\"onetwo\" name=\"hipknee\" value=\"1-2 years\">\r\n                <label for=\"onetwo\" class=\"custom-radio\">1-2 years<\/label>\r\n                <input type=\"radio\" id=\"twoplus\" name=\"hipknee\" value=\"2+ years\">\r\n                <label for=\"twoplus\" class=\"custom-radio\">2+ years<\/label>\r\n            <\/div>\r\n        <\/div>\r\n        <button type=\"button\"  id=\"btn6\" class=\"accordion\">What are your functional problems related to your pain complaint? (Select all that apply)*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"checkbox-group\">\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Standing\" id=\"standingProblems\">\r\n                <label for=\"standingProblems\" class=\"custom-checkbox\">Standing<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Sitting\" id=\"sittingProblems\">\r\n                <label for=\"sittingProblems\" class=\"custom-checkbox\">Sitting<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Kneeling\" id=\"kneelingProblems\">\r\n                <label for=\"kneelingProblems\" class=\"custom-checkbox\">Kneeling<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Laying\" id=\"layingProblems\">\r\n                <label for=\"layingProblems\" class=\"custom-checkbox\">Laying<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Walking\" id=\"walkingProblems\">\r\n                <label for=\"walkingProblems\" class=\"custom-checkbox\">Walking<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Bending\" id=\"bendingProblems\">\r\n                <label for=\"bendingProblems\" class=\"custom-checkbox\">Bending<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Climbing Stairs\" id=\"climbingProblems\">\r\n                <label for=\"climbingProblems\" class=\"custom-checkbox\">Climbing Stairs<\/label>\r\n                <input type=\"checkbox\" name=\"problems\" value=\"Other\" id=\"otherProblems\" onclick=\"toggleOtherInput(this, 'otherProblem')\">\r\n                <label for=\"otherProblems\" class=\"custom-checkbox\">Other<\/label>\r\n            <\/div>\r\n            <input type=\"text\" id=\"otherProblem\" name=\"otherProblem\" placeholder=\"Other...\" class=\"other-input\">\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn7\" class=\"accordion\">Do you have any known medical diagnosis? (Select all that apply)*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"checkbox-group\">\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Hypertension\" id=\"hypertension\">\r\n                <label for=\"hypertension\" class=\"custom-checkbox\">Hypertension<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Diabetes\" id=\"diabetes\">\r\n                <label for=\"diabetes\" class=\"custom-checkbox\">Diabetes<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Asthma\" id=\"asthma\">\r\n                <label for=\"asthma\" class=\"custom-checkbox\">Asthma<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Heart Disease\" id=\"heartDisease\">\r\n                <label for=\"heartDisease\" class=\"custom-checkbox\">Heart Disease<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Liver Disease\" id=\"liverDisease\">\r\n                <label for=\"liverDisease\" class=\"custom-checkbox\">Liver Disease<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Allergy\" id=\"allergy\">\r\n                <label for=\"allergy\" class=\"custom-checkbox\">Allergy<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Renal Diseases\" id=\"renal\">\r\n                <label for=\"renal\" class=\"custom-checkbox\">Renal Diseases<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Neurological Diseases\" id=\"neurological\">\r\n                <label for=\"neurological\" class=\"custom-checkbox\">Neurological Diseases<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Cancer\" id=\"cancer\">\r\n                <label for=\"cancer\" class=\"custom-checkbox\">Cancer<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Infectional Diseases\" id=\"infectious\">\r\n                <label for=\"infectious\" class=\"custom-checkbox\">Infectional Diseases<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"I do not have any other chronic diseases or diagnosis\" id=\"nothavediseases\">\r\n                <label for=\"nothavediseases\" class=\"custom-checkbox\">I do not have any other chronic diseases or diagnosis<\/label>\r\n                <input type=\"checkbox\" name=\"diagnosis\" value=\"Other\" id=\"otherDiagnosiss\" onclick=\"toggleOtherInput(this, 'otherDiagnosis')\">\r\n                <label for=\"otherDiagnosiss\" class=\"custom-checkbox\">Other<\/label>\r\n            <\/div>\r\n            <input type=\"text\" id=\"otherDiagnosis\" name=\"otherDiagnosis\" placeholder=\"Other...\" class=\"other-input\">\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn8\" class=\"accordion\">Do you have night pain that wakes you up?*<\/button>\r\n        <div class=\"panel\">\r\n            <div class=\"radio-group\">\r\n                <input type=\"radio\" name=\"nightPain\" value=\"Yes\" id=\"yesnightpain\" required>\r\n                <label for=\"yesnightpain\" class=\"custom-radio\">Yes<\/label>\r\n                <input type=\"radio\" name=\"nightPain\" value=\"No\" id=\"nonightpain\" required>\r\n                <label for=\"nonightpain\" class=\"custom-radio\">No<\/label>\r\n            <\/div>\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn9\" class=\"accordion\">Please describe your condition.*<\/button>\r\n        <div class=\"panel\">\r\n            <label>Describe your complaints as a whole story.<\/label>\r\n            <textarea id=\"condition\" name=\"condition\" rows=\"4\" required><\/textarea>\r\n        <\/div>\r\n        <button type=\"button\" id=\"btn10\" class=\"accordion\">Please describe your previous treatments, surgeries and medications you use currently.*<\/button>\r\n        <div class=\"panel\">\r\n            <textarea id=\"treatments\" name=\"treatments\" rows=\"4\" required><\/textarea>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div class=\"step-content\" id=\"step-content-3\">\r\n        <div class=\"row\">\r\n            <div class=\"form-group\">\r\n                <label for=\"files\">Please upload your medical files below:* <br> <b>(Only rar and zip files are allowed)<\/b><\/label>\r\n                <input type=\"file\" onchange=\"validateFileSize()\" id=\"files\" name=\"file\" accept=\".rar, .zip\">\r\n            <\/div>\r\n        <\/div>\r\n    <\/div>\r\n\r\n    <div class=\"step-content\" id=\"step-content-4\">\r\n        <h2>Doctor Appointment Calendar<\/h2>\r\n\r\n        <!-- Doktor Listesi -->\r\n        <div id=\"doctor-list\" class=\"doctor-list\"><\/div>\r\n\r\n        <!-- Se\u00e7ilen doktorun tarihleri -->\r\n        <div id=\"date-list\" class=\"date-list\" style=\"display: none;\"><\/div>\r\n\r\n        <!-- Se\u00e7ilen tarihin saatleri -->\r\n        <div id=\"time-list\" class=\"time-list\" style=\"display: none;\"><\/div>\r\n\r\n        <!-- Randevu g\u00f6nderme butonu -->\r\n        <!-- <button id=\"submit-btn\" class=\"submit-btn\">Randevuyu G\u00f6nder<\/button> -->\r\n    <\/div>\r\n\r\n    <div class=\"step-content\" style=\"text-align: center;\" id=\"step-content-5\">\r\n        <div class=\"payment-area\" style=\"text-align: start !important;\">\r\n            <h2 style=\"text-align: center;\">Payment Information<\/h2>\r\n            \r\n            <label for=\"paymentCardName\">Name on card<\/label>\r\n            <input type=\"text\" class=\"custom-input \" id=\"paymentCardName\" name=\"cardname\" placeholder=\"John Doe\">\r\n            <div class=\"flex-area-2\">\r\n                <div class=\"w-full\">\r\n                    <label for=\"paymentCardNumber\">Card Number<\/label>\r\n                    <input \r\n                        type=\"text\" \r\n                        id=\"paymentCardNumber\" \r\n                        name=\"cardnumber\" \r\n                        class=\"custom-input w-90\"\r\n                        placeholder=\"1111-1111-1111-1111\" \r\n                        maxlength=\"19\" \r\n                        oninput=\"formatCardNumber(this)\" \r\n                        onkeypress=\"return isNumberOrSlash(event)\"\r\n                        onblur=\"validateCardNumber(this)\" \r\n                        required\r\n                    >\r\n                <\/div>\r\n                <div class=\"w-full\">\r\n                    <label for=\"cardTypeArea\">Card Type<\/label>\r\n                    <select class=\"custom-input w-full\" name=\"cardType\" id=\"cardTypeArea\">\r\n                        <option value=\"Visa\">Visa<\/option>\r\n                        <option value=\"Mastercard\">Mastercard<\/option>\r\n                    <\/select>\r\n                <\/div>\r\n            <\/div>\r\n            \r\n            <span id=\"cardError\" style=\"color: red; display: none;\">Please enter a valid card number.<\/span>\r\n            \r\n            <div class=\"flex-area-2 w-full\">\r\n                <div class=\"date-selector\">\r\n                    <label for=\"month\">Expiration date<\/label>\r\n                    <div class=\"flex-area-2\">\r\n                        <div class=\"w-full\">\r\n                            <select id=\"month\" class=\"custom-input mt-5\" name=\"month\">\r\n                                <option value=\"\" selected>Select Month<\/option>\r\n                            <\/select>\r\n                        <\/div>\r\n                        <div class=\"w-full\">\r\n                            <select id=\"year\" name=\"year\" class=\"custom-input mt-5\" disabled>\r\n                                <option value=\"\" selected>Select Year<\/option>\r\n                            <\/select>\r\n                        <\/div>\r\n                    <\/div>\r\n                <\/div>\r\n                <div class=\"w-full\">\r\n                    <label for=\"paymentCardCvv\">CVV<\/label>\r\n                    <input class=\"custom-input w-90 mt-5\" type=\"text\" id=\"paymentCardCvv\" name=\"cardcvv\" placeholder=\"CVV\">\r\n                <\/div>\r\n            <\/div>\r\n            <span id=\"expirationError\" style=\"color: red;display: none;\"><\/span>\r\n\r\n            <div style=\"justify-content: end; display: flex;\">\r\n                <h2 style=\"margin-bottom: 5px;\">Total Price: <b>15$<\/b><\/h2>\r\n            <\/div>\r\n            <div style=\"justify-content: end; display: flex;\">\r\n                <button id=\"payButton\" type=\"button\" class=\"custom-button\">Pay<\/button>\r\n            <\/div>\r\n        <\/div>\r\n        <!-- <div>\r\n            <h1 id=\"successMessage\" style=\"text-align: center;\">We will investigate based on the information you have provided to us and get back to you as soon as possible.<\/h1>\r\n            <h2 id=\"urgentContact\" style=\"text-align: center;\">Complete the form to receive your second opinion.<\/h2>\r\n            <h3 style=\"text-align: center;\" id=\"referanceCode\"><\/h3>\r\n            <p style=\"text-align: center;color: red;\" id=\"referanceCodeWarning\"><\/p>\r\n            <div class=\"flex-area\" style=\"justify-content: center;\">\r\n                <a href=\"tel:+905321320777\" class=\"custom-btn\" id=\"phoneBtn\">Phone<\/a>\r\n                <a href=\"https:\/\/wa.me\/905321320777\" class=\"custom-btn\" id=\"whatsappBtn\" target=\"_blank\" rel=\"noopener\">Whatsapp<\/a>\r\n            <\/div>\r\n        <\/div> -->\r\n    <\/div>\r\n\r\n    \r\n\r\n    <!-- Navigation Buttons -->\r\n    <div class=\"navigation-buttons\">\r\n        <button type=\"button\" id=\"prevBtn\" onclick=\"nextPrev(-1)\">Previous<\/button>\r\n        <button type=\"button\" id=\"nextBtn\" onclick=\"nextPrev(1)\">Next<\/button>\r\n        <button type=\"button\" id=\"submitBtn\" style=\"display:none;\">Submit<\/button>\r\n    <\/div>\r\n<\/form>\r\n\r\n\n\n\n\n<script>\r\n\t\r\n    function getCardType(cardNumber) {\r\n        if (\/^4\/.test(cardNumber)) return \"Visa\";\r\n        if (\/^5[1-5]\/.test(cardNumber)) return \"MasterCard\";\r\n        if (\/^3[47]\/.test(cardNumber)) return \"American Express\";\r\n        if (\/^6(?:011|5)\/.test(cardNumber)) return \"Discover\";\r\n        if (\/^35\/.test(cardNumber)) return \"JCB\";\r\n        if (\/^3(?:0[0-5]|[68])\/.test(cardNumber)) return \"Diners Club\";\r\n        return \"\";\r\n    }\r\n\r\n    function isNumberOrSlash(event) {\r\n        const char = String.fromCharCode(event.keyCode);\r\n        \/\/ Rakamlar veya '\/' harici hi\u00e7bir karaktere izin verme\r\n        return \/[0-9\\\/]\/.test(char);\r\n    }\r\n\r\n    \/\/ Girdi\u011fi de\u011feri otomatik olarak formatla\r\n    function formatCardNumber(input) {\r\n        let value = input.value.replace(\/[^0-9]\/g, ''); \/\/ Sadece rakamlar\u0131 al\r\n        const formattedValue = value.match(\/.{1,4}\/g)?.join('-') || value; \/\/ Her 4 rakamdan sonra '-' ekle\r\n        input.value = formattedValue.slice(0, 19); \/\/ Maksimum 19 karakter s\u0131n\u0131r\u0131\r\n\r\n        const cardType = getCardType(value.replace(\/-\/g, '')); \/\/ \"-\" kald\u0131r\u0131p g\u00f6nder\r\n        document.getElementById('cardType').textContent = cardType || \"\";\r\n    }\r\n    function validateCardNumber(input) {\r\n        const error = document.getElementById('cardError');\r\n        if (input.value.length < 19) {\r\n        \/\/ Hata: Eksik kart numaras\u0131\r\n        error.style.display = 'block';\r\n        } else {\r\n        \/\/ Ge\u00e7erli kart numaras\u0131\r\n        error.style.display = 'none';\r\n        }\r\n    }\r\n\r\n    const phoneInput = document.getElementById(\"phone\");\r\n\r\n    phoneInput.addEventListener(\"input\", function () {\r\n        this.value = this.value.replace(\/[^0-9+]\/g, '');\r\n    });\r\n\r\n    const translations = {\r\n        en: {\r\n            name : \"Name and Surname:*\",\r\n            email: \"E-mail:*\",\r\n            phone: \"Please provide your phone number below with the country code:*\",\r\n            height: \"Your height in cm:*\",\r\n            weight: \"Your weight in kg:*\",\r\n            birthdate: \"Your date of birth:\",\r\n            btn1: \"Where do you experience pain (Select all that apply)?*\",\r\n            btn2: \"How would you describe the pain you usually have?*\",\r\n            btn3 : \"Have you been limping when walking?*\",\r\n            btn4 : \"For how long are you able to walk before the pain becomes severe? *\",\r\n            btn5 : \"How long have you had your pain?*\",\r\n            btn6 : \"What are your functional problems related to your pain complaint? (Select all that apply)*\",\r\n            btn7 : \"Do you have any known medical diagnosis? (Select all that apply)*\",\r\n            btn8 : \"Do you have night pain that wakes you up?*\",\r\n            btn9 : \"Please describe your condition.*\",\r\n            btn10: \"Please describe your previous treatments, surgeries and medications you use currently.*\",\r\n            subtitle1: \"Spinal Regions\",\r\n            subtitle2: \"Upper Extremities\",\r\n            subtitle3: \"Lower Extremities\",\r\n            painLocationsNeck : \"Cervical Spine (Neck)\",\r\n            painLocationsThoracicSpine : \"Upper Back (Thoracic Spine)\",\r\n            painLocationsMiddleBack : \"Middle Back\",\r\n            painLocationsLumbarSpine : \"Lower Back (Lumbar Spine)\",\r\n            painLocationsLeftShoulder : \"Left Shoulder\",\r\n            painLocationsRightShoulder : \"Right Shoulder\",\r\n            painLocationsLeftElbow : \"Left Elbow\",\r\n            painLocationsRightElbow : \"Right Elbow\",\r\n            painLocationsLeftWrist : \"Left Wrist\",\r\n            painLocationsRightWrist : \"Right Wrist\",\r\n            painLocationsLeftHand : \"Left Hand\",\r\n            painLocationsRightHand : \"Right Hand\",\r\n            painLocationsLeftHip : \"Left Hip\",\r\n            painLocationsRightHip : \"Right Hip\",\r\n            painLocationsLeftKnee : \"Left Knee\",\r\n            painLocationsRightKnee : \"Right Knee\",\r\n            painLocationsLeftAnkle : \"Left Ankle\",\r\n            painLocationsRightAnkle : \"Right Ankle\",\r\n            painLocationsLeftFoot : \"Left Foot\",\r\n            painLocationsRightFoot : \"Right Foot\",\r\n            painLocationDescription : \"<b>Please describe your pain and symptoms:<\/b>\",\r\n            none : \"None\",\r\n            verymild : \"Very Mild\",\r\n            mild : \"Mild\",\r\n            moderate : \"Moderate\",\r\n            severe : \"Severe\",\r\n            rarely : \"Rarely\/Never\",\r\n            sometimes : \"Sometimes or just at first\",\r\n            often : \"Often, not just at first\",\r\n            most : \"Most of the time\",\r\n            alloftheTime : \"All of the time\",\r\n            nopain : \"No pain > 60 minutes\",\r\n            to60 : \"16 to 60 minutes\",\r\n            to15 : \"5 to 15 minutes\",\r\n            aroundhouse : \"Around the house only\",\r\n            notatall : \"Not at all - severe on walking\",\r\n            onetree : \"1-3 months\",\r\n            treesix : \"3-6 months\",\r\n            sixtwelve : \"6-12 months\",\r\n            onetwo : \"1-2 years\",\r\n            twoplus : \"2+ years\",\r\n            standingProblems : \"Standing\",\r\n            sittingProblems : \"Sitting\",\r\n            kneelingProblems : \"Kneeling\",\r\n            layingProblems : \"Laying\",\r\n            walkingProblems : \"Walking\",\r\n            bendingProblems : \"Bending\",\r\n            climbingProblems : \"Climbing Stairs\",\r\n            otherProblems : \"Other\",\r\n            otherProblem : \"Other\",\r\n            hypertension : \"Hypertension\",\r\n            diabetes : \"Diabetes\",\r\n            asthma : \"Asthma\",\r\n            heartDisease : \"Heart Disease\",\r\n            liverDisease : \"Liver Disease\",\r\n            allergy : \"Allergy\",\r\n            renal : \"Renal Diseases\",\r\n            neurological : \"Neurological Diseases\",\r\n            cancer : \"Cancer\",\r\n            infectious : \"Infectional Diseases\",\r\n            nothavediseases : \"I do not have any other chronic diseases or diagnosis\",\r\n            otherDiagnosiss : \"Other\",\r\n            otherDiagnosis : \"Other...\",\r\n            yesnightpain : \"Yes\",\r\n            nonightpain : \"No\",\r\n            condition : \"Describe your complaints as a whole story.\",\r\n            files : \"Please upload your medical files below:* <br> <b>(Only rar and zip files are allowed)<\/b>\",\r\n            dateButtons : \"Please select dates:\",\r\n            successMessage : \"We will review the information provided and get back to you as soon as possible.\",\r\n            prevBtn : \"Previous\",\r\n            nextBtn : \"Next\",\r\n            submitBtn : \"Submit\",\r\n            firststep : \"Personal Information\",\r\n            secondstep : \"Medical Condition\",\r\n            thirdstep : \"Medical Files\",\r\n            forthstep : \"Select Dates\",\r\n            fifthstep : \"Payment\",\r\n            urgentContact : \"If you have urgent needs, please contact us directly by phone or WhatsApp.\",\r\n            phoneBtn : \"Phone\"\r\n\r\n            \/\/ Di\u011fer metin alanlar\u0131n\u0131 buraya ekleyin\r\n        },\r\n        ru: {\r\n            name : \"\u0418\u043c\u044f \u0438 \u0424\u0430\u043c\u0438\u043b\u0438\u044f:*\",\r\n            email: \"\u042d\u043b\u0435\u043a\u0442\u0440\u043e\u043d\u043d\u0430\u044f \u043f\u043e\u0447\u0442\u0430:*\",\r\n            phone: \"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0443\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u0438\u0436\u0435 \u0441\u0432\u043e\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430 \u0441 \u043a\u043e\u0434\u043e\u043c \u0441\u0442\u0440\u0430\u043d\u044b:*\",\r\n            height: \"\u0412\u0430\u0448 \u0440\u043e\u0441\u0442 \u0432 \u0441\u043c:*\",\r\n            weight: \"\u0412\u0430\u0448 \u0432\u0435\u0441 \u0432 \u043a\u0433:*\",\r\n            birthdate: \"\u0412\u0430\u0448\u0430 \u0434\u0430\u0442\u0430 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f:*\",\r\n            btn1: \"\u0413\u0434\u0435 \u0432\u044b \u043e\u0449\u0443\u0449\u0430\u0435\u0442\u0435 \u0431\u043e\u043b\u044c (\u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0432\u0441\u0435 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0449\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b)?*\",\r\n            btn2: \"\u041a\u0430\u043a \u0431\u044b \u0432\u044b \u043e\u043f\u0438\u0441\u0430\u043b\u0438 \u0431\u043e\u043b\u044c \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u043e\u0431\u044b\u0447\u043d\u043e \u0438\u0441\u043f\u044b\u0442\u044b\u0432\u0430\u0435\u0442\u0435?*\",\r\n            btn3 : \"\u0425\u0440\u043e\u043c\u0430\u0435\u0442\u0435 \u043b\u0438 \u0432\u044b \u043f\u0440\u0438 \u0445\u043e\u0434\u044c\u0431\u0435?*\",\r\n            btn4 : \"\u041a\u0430\u043a \u0434\u043e\u043b\u0433\u043e \u0432\u044b \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0445\u043e\u0434\u0438\u0442\u044c, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u0431\u043e\u043b\u044c \u0441\u0442\u0430\u043d\u0435\u0442 \u0441\u0438\u043b\u044c\u043d\u043e\u0439?*\",\r\n            btn5 : \"\u041a\u0430\u043a \u0434\u0430\u0432\u043d\u043e \u0443 \u0432\u0430\u0441 \u0431\u043e\u043b\u0438?*\",\r\n            btn6 : \"\u041a\u0430\u043a\u0438\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u043d\u0430\u0440\u0443\u0448\u0435\u043d\u0438\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u0430\u044e\u0442 \u0443 \u0432\u0430\u0441 \u0432 \u0441\u0432\u044f\u0437\u0438 \u0441 \u0431\u043e\u043b\u044c\u044e? (\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430)*\",\r\n            btn7 : \"\u0415\u0441\u0442\u044c \u043b\u0438 \u0443 \u0432\u0430\u0441 \u043a\u0430\u043a\u043e\u0439-\u043b\u0438\u0431\u043e \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0439 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0437?  (\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u043e\u0434\u043d\u043e\u0433\u043e \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430)*\",\r\n            btn8 : \"\u0411\u044b\u0432\u0430\u0435\u0442 \u043b\u0438 \u0443 \u0432\u0430\u0441 \u043d\u043e\u0447\u043d\u0430\u044f \u0431\u043e\u043b\u044c, \u0438\u0437-\u0437\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0432\u044b \u043f\u0440\u043e\u0441\u044b\u043f\u0430\u0435\u0442\u0435\u0441\u044c?*\",\r\n            btn9 : \"\u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0430\u0448\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435*\",\r\n            btn10: \"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u043b\u0435\u0447\u0435\u043d\u0438\u044f, \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u044b\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0434\u0435\u043d\u044b \u0438 \u043b\u0435\u043a\u0430\u0440\u0441\u0442\u0432\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0432\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435 \u0432 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f.*\",\r\n            subtitle1: \"\u0412 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0441\u043f\u0438\u043d\u044b\",\r\n            subtitle2: \"\u0412\u0435\u0440\u0445\u043d\u0438\u0435 \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438\",\r\n            subtitle3: \"\u041d\u0438\u0436\u043d\u0438\u0435 \u041a\u043e\u043d\u0435\u0447\u043d\u043e\u0441\u0442\u0438\",\r\n            painLocationsNeck : \"\u0428\u0435\u0439\u043d\u044b\u0439 \u043e\u0442\u0434\u0435\u043b \u043f\u043e\u0437\u0432\u043e\u043d\u043e\u0447\u043d\u0438\u043a\u0430 (\u0448\u0435\u044f)\",\r\n            painLocationsThoracicSpine : \"\u0412\u0435\u0440\u0445\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0438\u043d\u044b (\u0433\u0440\u0443\u0434\u043d\u043e\u0439 \u043e\u0442\u0434\u0435\u043b \u043f\u043e\u0437\u0432\u043e\u043d\u043e\u0447\u043d\u0438\u043a\u0430)\",\r\n            painLocationsMiddleBack : \"\u0421\u0440\u0435\u0434\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0438\u043d\u044b\",\r\n            painLocationsLumbarSpine : \"\u041d\u0438\u0436\u043d\u044f\u044f \u0447\u0430\u0441\u0442\u044c \u0441\u043f\u0438\u043d\u044b (\u043f\u043e\u044f\u0441\u043d\u0438\u0447\u043d\u044b\u0439 \u043e\u0442\u0434\u0435\u043b \u043f\u043e\u0437\u0432\u043e\u043d\u043e\u0447\u043d\u0438\u043a\u0430)\",\r\n            painLocationsLeftShoulder : \"\u041b\u0435\u0432\u043e\u0435 \u043f\u043b\u0435\u0447\u043e\",\r\n            painLocationsRightShoulder : \"\u041f\u0440\u0430\u0432\u043e\u0435 \u043f\u043b\u0435\u0447\u043e\",\r\n            painLocationsLeftElbow : \"\u041b\u0435\u0432\u044b\u0439 \u043b\u043e\u043a\u043e\u0442\u044c\",\r\n            painLocationsRightElbow : \"\u041f\u0440\u0430\u0432\u044b\u0439 \u043b\u043e\u043a\u043e\u0442\u044c\",\r\n            painLocationsLeftWrist : \"\u041b\u0435\u0432\u043e\u0435 \u0437\u0430\u043f\u044f\u0441\u0442\u044c\u0435\",\r\n            painLocationsRightWrist : \"\u041f\u0440\u0430\u0432\u043e\u0435 \u0437\u0430\u043f\u044f\u0441\u0442\u044c\u0435\",\r\n            painLocationsLeftHand : \"\u041b\u0435\u0432\u0430\u044f \u043a\u0438\u0441\u0442\u044c\",\r\n            painLocationsRightHand : \"\u041f\u0440\u0430\u0432\u0430\u044f \u043a\u0438\u0441\u0442\u044c\",\r\n            painLocationsLeftHip : \"\u041b\u0435\u0432\u043e\u0435 \u0431\u0435\u0434\u0440\u043e\",\r\n            painLocationsRightHip : \"\u041f\u0440\u0430\u0432\u043e\u0435 \u0431\u0435\u0434\u0440\u043e\",\r\n            painLocationsLeftKnee : \"\u041b\u0435\u0432\u043e\u0435 \u043a\u043e\u043b\u0435\u043d\u043e\",\r\n            painLocationsRightKnee : \"\u041f\u0440\u0430\u0432\u043e\u0435 \u043a\u043e\u043b\u0435\u043d\u043e\",\r\n            painLocationsLeftAnkle : \"\u041b\u0435\u0432\u0430\u044f \u043b\u043e\u0434\u044b\u0436\u043a\u0430\",\r\n            painLocationsRightAnkle : \"\u041f\u0440\u0430\u0432\u0430\u044f \u043b\u043e\u0434\u044b\u0436\u043a\u0430\",\r\n            painLocationsLeftFoot : \"\u041b\u0435\u0432\u0430\u044f \u0441\u0442\u043e\u043f\u0430\",\r\n            painLocationsRightFoot : \"\u041f\u0440\u0430\u0432\u0430\u044f \u0441\u0442\u043e\u043f\u0430\",\r\n            painLocationDescription : \"<b>\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u043e\u043f\u0438\u0448\u0438\u0442\u0435 \u0432\u0430\u0448\u0438 \u0431\u043e\u043b\u0438 \u0438 \u0441\u0438\u043c\u043f\u0442\u043e\u043c\u044b:<\/b>\",\r\n            none : \"\u041d\u0435\u0442\",\r\n            verymild : \"\u041e\u0447\u0435\u043d\u044c \u0441\u043b\u0430\u0431\u0430\u044f\",\r\n            mild : \"\u0423\u043c\u0435\u0440\u0435\u043d\u043d\u0430\u044f\",\r\n            moderate : \"\u0421\u0440\u0435\u0434\u043d\u044f\u044f\",\r\n            severe : \"\u0421\u0438\u043b\u044c\u043d\u0430\u044f\",\r\n            rarely : \"\u0420\u0435\u0434\u043a\u043e\/\u041d\u0438\u043a\u043e\u0433\u0434\u0430\",\r\n            sometimes : \"\u0418\u043d\u043e\u0433\u0434\u0430 \u0438\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u043d\u0430\u0447\u0430\u043b\u0443\",\r\n            often : \"\u0427\u0430\u0441\u0442\u043e, \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u0432\u043d\u0430\u0447\u0430\u043b\u0435\",\r\n            most : \"\u0411\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0432\u0440\u0435\u043c\u0435\u043d\u0438\",\r\n            alloftheTime : \"\u0412\u0441\u0435 \u0432\u0440\u0435\u043c\u044f\",\r\n            nopain : \"\u0411\u0435\u0437 \u0431\u043e\u043b\u0438 > 60 \u043c\u0438\u043d\u0443\u0442\",\r\n            to60 : \"\u041e\u0442 16 \u0434\u043e 60 \u043c\u0438\u043d\u0443\u0442\",\r\n            to15 : \"\u041e\u0442 5 \u0434\u043e 15 \u043c\u0438\u043d\u0443\u0442\",\r\n            aroundhouse : \"\u0422\u043e\u043b\u044c\u043a\u043e \u043f\u043e \u0434\u043e\u043c\u0443\",\r\n            notatall : \"\u0421\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0442 - \u0441\u0438\u043b\u044c\u043d\u0430\u044f \u0431\u043e\u043b\u044c \u043f\u0440\u0438 \u0445\u043e\u0434\u044c\u0431\u0435\",\r\n            onetree : \"1-3 \u043c\u0435\u0441\u044f\u0446\u0430\",\r\n            treesix : \"3-6 \u043c\u0435\u0441\u044f\u0446\u0435\u0432\",\r\n            sixtwelve : \"6-12 \u043c\u0435\u0441\u044f\u0446\u0435\u0432\",\r\n            onetwo : \"1-2 \u0433\u043e\u0434\u0430\",\r\n            twoplus : \"2+ \u0433\u043e\u0434\u0430\",\r\n            standingProblems : \"\u0421\u0442\u043e\u044f\u0442\u044c\",\r\n            sittingProblems : \"\u0421\u0438\u0434\u0435\u0442\u044c\",\r\n            kneelingProblems : \"\u0421\u0442\u043e\u044f\u0442\u044c \u043d\u0430 \u043a\u043e\u043b\u0435\u043d\u044f\u0445\",\r\n            layingProblems : \"\u041b\u0435\u0436\u0430\u0442\u044c\",\r\n            walkingProblems : \"\u0425\u043e\u0434\u0438\u0442\u044c\",\r\n            bendingProblems : \"\u041d\u0430\u043a\u043b\u043e\u043d\u044f\u0442\u044c\u0441\u044f\",\r\n            climbingProblems : \"\u041f\u043e\u0434\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u043f\u043e \u043b\u0435\u0441\u0442\u043d\u0438\u0446\u0435\",\r\n            otherProblems : \"\u0414\u0440\u0443\u0433\u043e\u0435\",\r\n            otherProblem : \"\u0414\u0440\u0443\u0433\u043e\u0435\",\r\n            hypertension : \"\u0410\u0440\u0442\u0435\u0440\u0438\u0430\u043b\u044c\u043d\u0430\u044f \u0413\u0438\u043f\u0435\u0440\u0442\u043e\u043d\u0438\u044f (\u0434\u0430\u0432\u043b\u0435\u043d\u0438\u0435)\",\r\n            diabetes : \"\u0414\u0438\u0430\u0431\u0435\u0442\",\r\n            asthma : \"\u0410\u0441\u0442\u043c\u0430\",\r\n            heartDisease : \"\u0411\u043e\u043b\u0435\u0437\u043d\u0438 \u0441\u0435\u0440\u0434\u0446\u0430\",\r\n            liverDisease : \"\u0411\u043e\u043b\u0435\u0437\u043d\u0438 \u043f\u0435\u0447\u0435\u043d\u0438\",\r\n            allergy : \"\u0410\u043b\u043b\u0435\u0440\u0433\u0438\u044f\",\r\n            renal : \"\u0411\u043e\u043b\u0435\u0437\u043d\u0438 \u043f\u043e\u0447\u0435\u043a\",\r\n            neurological : \"\u041d\u0435\u0432\u0440\u043e\u043b\u043e\u0433\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u043d\u0438\u044f\",\r\n            cancer : \"\u0420\u0430\u043a\",\r\n            infectious : \"\u0418\u043d\u0444\u0435\u043a\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u043d\u0438\u044f\",\r\n            nothavediseases : \"\u0423 \u043c\u0435\u043d\u044f \u043d\u0435\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0445\u0440\u043e\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0437\u0430\u0431\u043e\u043b\u0435\u0432\u0430\u043d\u0438\u0439 \u0438\u043b\u0438 \u0434\u0438\u0430\u0433\u043d\u043e\u0437\u043e\u0432\",\r\n            otherDiagnosiss : \"\u0414\u0440\u0443\u0433\u043e\u0435\",\r\n            otherDiagnosis : \"\u0414\u0440\u0443\u0433\u043e\u0435\",\r\n            yesnightpain : \"\u0414\u0430\",\r\n            nonightpain : \"\u041d\u0435\u0442\",\r\n            condition : \"\u041e\u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0432\u043e\u0438 \u0436\u0430\u043b\u043e\u0431\u044b \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e*\",\r\n            files : \"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u0435 \u0432\u0430\u0448\u0438 \u043c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u0441\u044e\u0434\u0430:* <br> <b>(\u0414\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u0444\u0430\u0439\u043b\u044b \u0432 \u0444\u043e\u0440\u043c\u0430\u0442\u0435 rar \u0438 zip)<\/b>\",\r\n            dateButtons : \"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0434\u0430\u0442\u0443:\",\r\n            successMessage : \"\u041c\u044b \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u0441\u0432\u044f\u0436\u0435\u043c\u0441\u044f \u0441 \u0432\u0430\u043c\u0438 \u0432 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0435\u0435 \u0432\u0440\u0435\u043c\u044f.\",\r\n            prevBtn : \"\u041d\u0430\u0437\u0430\u0434\",\r\n            nextBtn : \"\u0414\u0430\u043b\u0435\u0435\",\r\n            submitBtn : \"\u041e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c\",\r\n            firststep : \"\u041b\u0438\u0447\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\",\r\n            secondstep : \"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\",\r\n            thirdstep : \"\u041c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b\",\r\n            forthstep : \"\u0412\u044b\u0431\u043e\u0440 \u0434\u0430\u0442\u044b\",\r\n            fifthstep : \"\u041e\u043f\u043b\u0430\u0442\u0430\",\r\n            urgentContact : \"\u0412 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0435\u043e\u0442\u043b\u043e\u0436\u043d\u044b\u0445 \u0432\u043e\u043f\u0440\u043e\u0441\u0430\u0445 , \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430,  \u0441\u0432\u044f\u0436\u0438\u0442\u0435\u0441\u044c \u0441 \u043d\u0430\u043c\u0438 \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043f\u043e \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443 \u0438\u043b\u0438\u00a0\u0447\u0435\u0440\u0435\u0437\u00a0WhatsApp\",\r\n            phoneBtn : \"\u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0443\"\r\n            \/\/ Di\u011fer metin alanlar\u0131n\u0131 buraya ekleyin\r\n        }\r\n    };\r\n\r\n    const isRussian = window.location.pathname.includes('\/ru');    \r\n\r\n\r\n    const countries = [\r\n        {name: \"Afghanistan\",code: \"+93\"},\r\n        {name: \"Aland Islands\",code: \"+358\"},\r\n        {name: \"Albania\",code: \"+355\"},\r\n        {name: \"Algeria\",code: \"+213\"},\r\n        {name: \"AmericanSamoa\",code: \"+1684\"},\r\n        {name: \"Andorra\",code: \"+376\"},\r\n        {name: \"Angola\",code: \"+244\"},\r\n        {name: \"Anguilla\",code: \"+1264\"},\r\n        {name: \"Antarctica\",code: \"+672\"},\r\n        {name: \"Antigua and Barbuda\",code: \"+1268\"},\r\n        {name: \"Argentina\",code: \"+54\"},\r\n        {name: \"Armenia\",code: \"+374\"},\r\n        {name: \"Aruba\",code: \"+297\"},\r\n        {name: \"Australia\",code: \"+61\"},\r\n        {name: \"Austria\",code: \"+43\"},\r\n        {name: \"Azerbaijan\",code: \"+994\"},\r\n        {name: \"Bahamas\",code: \"+1242\"},\r\n        {name: \"Bahrain\",code: \"+973\"},\r\n        {name: \"Bangladesh\",code: \"+880\"},\r\n        {name: \"Barbados\",code: \"+1246\"},\r\n        {name: \"Belarus\",code: \"+375\"},\r\n        {name: \"Belgium\",code: \"+32\"},\r\n        {name: \"Belize\",code: \"+501\"},\r\n        {name: \"Benin\",code: \"+229\"},\r\n        {name: \"Bermuda\",code: \"+1441\"},\r\n        {name: \"Bhutan\",code: \"+975\"},\r\n        {name: \"Bolivia, Plurinational State of\",code: \"+591\"},\r\n        {name: \"Bosnia and Herzegovina\",code: \"+387\"},\r\n        {name: \"Botswana\",code: \"+267\"},\r\n        {name: \"Brazil\",code: \"+55\"},\r\n        {name: \"British Indian Ocean Territory\",code: \"+246\"},\r\n        {name: \"Brunei Darussalam\",code: \"+673\"},\r\n        {name: \"Bulgaria\",code: \"+359\"},\r\n        {name: \"Burkina Faso\",code: \"+226\"},\r\n        {name: \"Burundi\",code: \"+257\"},\r\n        {name: \"Cambodia\",code: \"+855\"},\r\n        {name: \"Cameroon\",code: \"+237\"},\r\n        {name: \"Canada\",code: \"+1\"},\r\n        {name: \"Cape Verde\",code: \"+238\"},\r\n        {name: \"Cayman Islands\",code: \"+ 345\"},\r\n        {name: \"Central African Republic\",code: \"+236\"},\r\n        {name: \"Chad\",code: \"+235\"},\r\n        {name: \"Chile\",code: \"+56\"},\r\n        {name: \"China\",code: \"+86\"},\r\n        {name: \"Christmas Island\",code: \"+61\"},\r\n        {name: \"Cocos (Keeling) Islands\",code: \"+61\"},\r\n        {name: \"Colombia\",code: \"+57\"},\r\n        {name: \"Comoros\",code: \"+269\"},\r\n        {name: \"Congo\",code: \"+242\"},\r\n        {name: \"Congo, The Democratic Republic of the Congo\",code: \"+243\"},\r\n        {name: \"Cook Islands\",code: \"+682\"},\r\n        {name: \"Costa Rica\",code: \"+506\"},\r\n        {name: \"Cote d'Ivoire\",code: \"+225\"},\r\n        {name: \"Croatia\",code: \"+385\"},\r\n        {name: \"Cuba\",code: \"+53\"},\r\n        {name: \"Cyprus\",code: \"+357\"},\r\n        {name: \"Czech Republic\",code: \"+420\"},\r\n        {name: \"Denmark\",code: \"+45\"},\r\n        {name: \"Djibouti\",code: \"+253\"},\r\n        {name: \"Dominica\",code: \"+1767\"},\r\n        {name: \"Dominican Republic\",code: \"+1849\"},\r\n        {name: \"Ecuador\",code: \"+593\"},\r\n        {name: \"Egypt\",code: \"+20\"},\r\n        {name: \"El Salvador\",code: \"+503\"},\r\n        {name: \"Equatorial Guinea\",code: \"+240\"},\r\n        {name: \"Eritrea\",code: \"+291\"},\r\n        {name: \"Estonia\",code: \"+372\"},\r\n        {name: \"Ethiopia\",code: \"+251\"},\r\n        {name: \"Falkland Islands (Malvinas)\",code: \"+500\"},\r\n        {name: \"Faroe Islands\",code: \"+298\"},\r\n        {name: \"Fiji\",code: \"+679\"},\r\n        {name: \"Finland\",code: \"+358\"},\r\n        {name: \"France\",code: \"+33\"},\r\n        {name: \"French Guiana\",code: \"+594\"},\r\n        {name: \"French Polynesia\",code: \"+689\"},\r\n        {name: \"Gabon\",code: \"+241\"},\r\n        {name: \"Gambia\",code: \"+220\"},\r\n        {name: \"Georgia\",code: \"+995\"},\r\n        {name: \"Germany\",code: \"+49\"},\r\n        {name: \"Ghana\",code: \"+233\"},\r\n        {name: \"Gibraltar\",code: \"+350\"},\r\n        {name: \"Greece\",code: \"+30\"},\r\n        {name: \"Greenland\",code: \"+299\"},\r\n        {name: \"Grenada\",code: \"+1473\"},\r\n        {name: \"Guadeloupe\",code: \"+590\"},\r\n        {name: \"Guam\",code: \"+1671\"},\r\n        {name: \"Guatemala\",code: \"+502\"},\r\n        {name: \"Guernsey\",code: \"+44\"},\r\n        {name: \"Guinea\",code: \"+224\"},\r\n        {name: \"Guinea-Bissau\",code: \"+245\"},\r\n        {name: \"Guyana\",code: \"+595\"},\r\n        {name: \"Haiti\",code: \"+509\"},\r\n        {name: \"Holy See (Vatican City State)\",code: \"+379\"},\r\n        {name: \"Honduras\",code: \"+504\"},\r\n        {name: \"Hong Kong\",code: \"+852\"},\r\n        {name: \"Hungary\",code: \"+36\"},\r\n        {name: \"Iceland\",code: \"+354\"},\r\n        {name: \"India\",code: \"+91\"},\r\n        {name: \"Indonesia\",code: \"+62\"},\r\n        {name: \"Iran, Islamic Republic of Persian Gulf\",code: \"+98\"},\r\n        {name: \"Iraq\",code: \"+964\"},\r\n        {name: \"Ireland\",code: \"+353\"},\r\n        {name: \"Isle of Man\",code: \"+44\"},\r\n        {name: \"Israel\",code: \"+972\"},\r\n        {name: \"Italy\",code: \"+39\"},\r\n        {name: \"Jamaica\",code: \"+1876\"},\r\n        {name: \"Japan\",code: \"+81\"},\r\n        {name: \"Jersey\",code: \"+44\"},\r\n        {name: \"Jordan\",code: \"+962\"},\r\n        {name: \"Kazakhstan\",code: \"+77\"},\r\n        {name: \"Kenya\",code: \"+254\"},\r\n        {name: \"Kiribati\",code: \"+686\"},\r\n        {name: \"Korea, Democratic People's Republic of Korea\",code: \"+850\"},\r\n        {name: \"Korea, Republic of South Korea\",code: \"+82\"},\r\n        {name: \"Kuwait\",code: \"+965\"},\r\n        {name: \"Kyrgyzstan\",code: \"+996\"},\r\n        {name: \"Laos\",code: \"+856\"},\r\n        {name: \"Latvia\",code: \"+371\"},\r\n        {name: \"Lebanon\",code: \"+961\"},\r\n        {name: \"Lesotho\",code: \"+266\"},\r\n        {name: \"Liberia\",code: \"+231\"},\r\n        {name: \"Libyan Arab Jamahiriya\",code: \"+218\"},\r\n        {name: \"Liechtenstein\",code: \"+423\"},\r\n        {name: \"Lithuania\",code: \"+370\"},\r\n        {name: \"Luxembourg\",code: \"+352\"},\r\n        {name: \"Macao\",code: \"+853\"},\r\n        {name: \"Macedonia\",code: \"+389\"},\r\n        {name: \"Madagascar\",code: \"+261\"},\r\n        {name: \"Malawi\",code: \"+265\"},\r\n        {name: \"Malaysia\",code: \"+60\"},\r\n        {name: \"Maldives\",code: \"+960\"},\r\n        {name: \"Mali\",code: \"+223\"},\r\n        {name: \"Malta\",code: \"+356\"},\r\n        {name: \"Marshall Islands\",code: \"+692\"},\r\n        {name: \"Martinique\",code: \"+596\"},\r\n        {name: \"Mauritania\",code: \"+222\"},\r\n        {name: \"Mauritius\",code: \"+230\"},\r\n        {name: \"Mayotte\",code: \"+262\"},\r\n        {name: \"Mexico\",code: \"+52\"},\r\n        {name: \"Micronesia, Federated States of Micronesia\",code: \"+691\"},\r\n        {name: \"Moldova\",code: \"+373\"},\r\n        {name: \"Monaco\",code: \"+377\"},\r\n        {name: \"Mongolia\",code: \"+976\"},\r\n        {name: \"Montenegro\",code: \"+382\"},\r\n        {name: \"Montserrat\",code: \"+1664\"},\r\n        {name: \"Morocco\",code: \"+212\"},\r\n        {name: \"Mozambique\",code: \"+258\"},\r\n        {name: \"Myanmar\",code: \"+95\"},\r\n        {name: \"Namibia\",code: \"+264\"},\r\n        {name: \"Nauru\",code: \"+674\"},\r\n        {name: \"Nepal\",code: \"+977\"},\r\n        {name: \"Netherlands\",code: \"+31\"},\r\n        {name: \"Netherlands Antilles\",code: \"+599\"},\r\n        {name: \"New Caledonia\",code: \"+687\"},\r\n        {name: \"New Zealand\",code: \"+64\"},\r\n        {name: \"Nicaragua\",code: \"+505\"},\r\n        {name: \"Niger\",code: \"+227\"},\r\n        {name: \"Nigeria\",code: \"+234\"},\r\n        {name: \"Niue\",code: \"+683\"},\r\n        {name: \"Norfolk Island\",code: \"+672\"},\r\n        {name: \"Northern Mariana Islands\",code: \"+1670\"},\r\n        {name: \"Norway\",code: \"+47\"},\r\n        {name: \"Oman\",code: \"+968\"},\r\n        {name: \"Pakistan\",code: \"+92\"},\r\n        {name: \"Palau\",code: \"+680\"},\r\n        {name: \"Palestinian Territory, Occupied\",code: \"+970\"},\r\n        {name: \"Panama\",code: \"+507\"},\r\n        {name: \"Papua New Guinea\",code: \"+675\"},\r\n        {name: \"Paraguay\",code: \"+595\"},\r\n        {name: \"Peru\",code: \"+51\"},\r\n        {name: \"Philippines\",code: \"+63\"},\r\n        {name: \"Pitcairn\",code: \"+872\"},\r\n        {name: \"Poland\",code: \"+48\"},\r\n        {name: \"Portugal\",code: \"+351\"},\r\n        {name: \"Puerto Rico\",code: \"+1939\"},\r\n        {name: \"Qatar\",code: \"+974\"},\r\n        {name: \"Romania\",code: \"+40\"},\r\n        {name: \"Russia\",code: \"+7\"},\r\n        {name: \"Rwanda\",code: \"+250\"},\r\n        {name: \"Reunion\",code: \"+262\"},\r\n        {name: \"Saint Barthelemy\",code: \"+590\"},\r\n        {name: \"Saint Helena, Ascension and Tristan Da Cunha\",code: \"+290\"},\r\n        {name: \"Saint Kitts and Nevis\",code: \"+1869\"},\r\n        {name: \"Saint Lucia\",code: \"+1758\"},\r\n        {name: \"Saint Martin\",code: \"+590\"},\r\n        {name: \"Saint Pierre and Miquelon\",code: \"+508\"},\r\n        {name: \"Saint Vincent and the Grenadines\",code: \"+1784\"},\r\n        {name: \"Samoa\",code: \"+685\"},\r\n        {name: \"San Marino\",code: \"+378\"},\r\n        {name: \"Sao Tome and Principe\",code: \"+239\"},\r\n        {name: \"Saudi Arabia\",code: \"+966\"},\r\n        {name: \"Senegal\",code: \"+221\"},\r\n        {name: \"Serbia\",code: \"+381\"},\r\n        {name: \"Seychelles\",code: \"+248\"},\r\n        {name: \"Sierra Leone\",code: \"+232\"},\r\n        {name: \"Singapore\",code: \"+65\"},\r\n        {name: \"Slovakia\",code: \"+421\"},\r\n        {name: \"Slovenia\",code: \"+386\"},\r\n        {name: \"Solomon Islands\",code: \"+677\"},\r\n        {name: \"Somalia\",code: \"+252\"},\r\n        {name: \"South Africa\",code: \"+27\"},\r\n        {name: \"South Sudan\",code: \"+211\"},\r\n        {name: \"South Georgia and the South Sandwich Islands\",code: \"+500\"},\r\n        {name: \"Spain\",code: \"+34\"},\r\n        {name: \"Sri Lanka\",code: \"+94\"},\r\n        {name: \"Sudan\",code: \"+249\"},\r\n        {name: \"Suriname\",code: \"+597\"},\r\n        {name: \"Svalbard and Jan Mayen\",code: \"+47\"},\r\n        {name: \"Swaziland\",code: \"+268\"},\r\n        {name: \"Sweden\",code: \"+46\"},\r\n        {name: \"Switzerland\",code: \"+41\"},\r\n        {name: \"Syrian Arab Republic\",code: \"+963\"},\r\n        {name: \"Taiwan\",code: \"+886\"},\r\n        {name: \"Tajikistan\",code: \"+992\"},\r\n        {name: \"Tanzania, United Republic of Tanzania\",code: \"+255\"},\r\n        {name: \"Thailand\",code: \"+66\"},\r\n        {name: \"Timor-Leste\",code: \"+670\"},\r\n        {name: \"Togo\",code: \"+228\"},\r\n        {name: \"Tokelau\",code: \"+690\"},\r\n        {name: \"Tonga\",code: \"+676\"},\r\n        {name: \"Trinidad and Tobago\",code: \"+1868\"},\r\n        {name: \"Tunisia\",code: \"+216\"},\r\n        {name: \"Turkey\",code: \"+90\"},\r\n        {name: \"Turkmenistan\",code: \"+993\"},\r\n        {name: \"Turks and Caicos Islands\",code: \"+1649\"},\r\n        {name: \"Tuvalu\",code: \"+688\"},\r\n        {name: \"Uganda\",code: \"+256\"},\r\n        {name: \"Ukraine\",code: \"+380\"},\r\n        {name: \"United Arab Emirates\",code: \"+971\"},\r\n        {name: \"United Kingdom\",code: \"+44\"},\r\n        {name: \"United States\",code: \"+1\"},\r\n        {name: \"Uruguay\",code: \"+598\"},\r\n        {name: \"Uzbekistan\",code: \"+998\"},\r\n        {name: \"Vanuatu\",code: \"+678\"},\r\n        {name: \"Venezuela, Bolivarian Republic of Venezuela\",code: \"+58\"},\r\n        {name: \"Vietnam\",code: \"+84\"},\r\n        {name: \"Virgin Islands, British\",code: \"+1284\"},\r\n        {name: \"Virgin Islands, U.S.\",code: \"+1340\"},\r\n        {name: \"Wallis and Futuna\",code: \"+681\"},\r\n        {name: \"Yemen\",code: \"+967\"},\r\n        {name: \"Zambia\",code: \"+260\"},\r\n        {name: \"Zimbabwe\",dial_code: \"+263\"}\r\n    ];\r\n\r\n    \/\/ \u00dclke dropdown'unu doldurma\r\n    const countrySelect = document.getElementById(\"country\");\r\n    countries.forEach(country => {\r\n        let option = document.createElement(\"option\");\r\n        option.value = JSON.stringify(country); \/\/ \u00dclke bilgilerini JSON format\u0131nda sakl\u0131yoruz\r\n        option.textContent = `${country.name} (${country.code})`;\r\n        countrySelect.appendChild(option);\r\n    });\r\n\r\n    \/\/ \u00dclke se\u00e7ildi\u011finde telefon kodunu ve \u00fclke ad\u0131n\u0131 input alan\u0131na ekle\r\n    countrySelect.addEventListener(\"change\", function() {\r\n        let phoneInput = document.getElementById(\"phone\");\r\n        let selectedCountry = JSON.parse(this.value); \/\/ JSON format\u0131ndan veriyi al\u0131yoruz\r\n        phoneInput.value = `${selectedCountry.code} `;\r\n    });\r\n\r\n    const lang = isRussian ? 'ru' : 'en';\r\n    if(isRussian){\r\n        document.querySelector('.page-header h1[itemprop=\"headline\"]').textContent = \"\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435.\";\r\n        document.title = \"\u0417\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0444\u043e\u0440\u043c\u0443, \u0447\u0442\u043e\u0431\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0432\u0442\u043e\u0440\u043e\u0435 \u043c\u043d\u0435\u043d\u0438\u0435 - Turan & Turan Health\";\r\n    }\r\n\r\n    document.getElementById(\"name\").previousElementSibling.innerText = translations[lang].name;\r\n    \/\/ document.getElementById(\"email\").previousElementSibling.innerText = translations[lang].email;\r\n    document.getElementById(\"phone\").previousElementSibling.innerText = translations[lang].phone;\r\n    document.getElementById(\"height\").previousElementSibling.innerText = translations[lang].height;\r\n    document.getElementById(\"weight\").previousElementSibling.innerText = translations[lang].weight;\r\n    document.getElementById(\"birthdate\").previousElementSibling.innerText = translations[lang].birthdate;\r\n    document.getElementById(\"btn1\").innerText = translations[lang].btn1;\r\n    document.getElementById(\"btn2\").innerText = translations[lang].btn2;\r\n    document.getElementById(\"btn3\").innerText = translations[lang].btn3;\r\n    document.getElementById(\"btn4\").innerText = translations[lang].btn4;\r\n    document.getElementById(\"btn5\").innerText = translations[lang].btn5;\r\n    document.getElementById(\"btn6\").innerText = translations[lang].btn6;\r\n    document.getElementById(\"btn7\").innerText = translations[lang].btn7;\r\n    document.getElementById(\"btn8\").innerText = translations[lang].btn8;\r\n    document.getElementById(\"btn9\").innerText = translations[lang].btn9;\r\n    document.getElementById(\"btn10\").innerText = translations[lang].btn10;\r\n    document.getElementById(\"subtitle1\").innerText = translations[lang].subtitle1;\r\n    document.getElementById(\"subtitle2\").innerText = translations[lang].subtitle2;\r\n    document.getElementById(\"subtitle3\").innerText = translations[lang].subtitle3;\r\n    document.getElementById(\"painLocationsNeck\").nextElementSibling.innerText = translations[lang].painLocationsNeck;\r\n    document.getElementById(\"painLocationsThoracicSpine\").nextElementSibling.innerText = translations[lang].painLocationsThoracicSpine;\r\n    document.getElementById(\"painLocationsMiddleBack\").nextElementSibling.innerText = translations[lang].painLocationsMiddleBack;\r\n    document.getElementById(\"painLocationsLumbarSpine\").nextElementSibling.innerText = translations[lang].painLocationsLumbarSpine;\r\n    document.getElementById(\"painLocationsLeftShoulder\").nextElementSibling.innerText = translations[lang].painLocationsLeftShoulder;\r\n    document.getElementById(\"painLocationsRightShoulder\").nextElementSibling.innerText = translations[lang].painLocationsRightShoulder;\r\n    document.getElementById(\"painLocationsLeftElbow\").nextElementSibling.innerText = translations[lang].painLocationsLeftElbow;\r\n    document.getElementById(\"painLocationsRightElbow\").nextElementSibling.innerText = translations[lang].painLocationsRightElbow;\r\n    document.getElementById(\"painLocationsLeftWrist\").nextElementSibling.innerText = translations[lang].painLocationsLeftWrist;\r\n    document.getElementById(\"painLocationsRightWrist\").nextElementSibling.innerText = translations[lang].painLocationsRightWrist;\r\n    document.getElementById(\"painLocationsLeftHand\").nextElementSibling.innerText = translations[lang].painLocationsLeftHand;\r\n    document.getElementById(\"painLocationsRightHand\").nextElementSibling.innerText = translations[lang].painLocationsRightHand;\r\n    document.getElementById(\"painLocationsLeftHip\").nextElementSibling.innerText = translations[lang].painLocationsLeftHip;\r\n    document.getElementById(\"painLocationsRightHip\").nextElementSibling.innerText = translations[lang].painLocationsRightHip;\r\n    document.getElementById(\"painLocationsLeftKnee\").nextElementSibling.innerText = translations[lang].painLocationsLeftKnee;\r\n    document.getElementById(\"painLocationsRightKnee\").nextElementSibling.innerText = translations[lang].painLocationsRightKnee;\r\n    document.getElementById(\"painLocationsLeftAnkle\").nextElementSibling.innerText = translations[lang].painLocationsLeftAnkle;\r\n    document.getElementById(\"painLocationsRightAnkle\").nextElementSibling.innerText = translations[lang].painLocationsRightAnkle;\r\n    document.getElementById(\"painLocationsLeftFoot\").nextElementSibling.innerText = translations[lang].painLocationsLeftFoot;\r\n    document.getElementById(\"painLocationsRightFoot\").nextElementSibling.innerText = translations[lang].painLocationsRightFoot;\r\n    document.getElementById(\"painLocationDescription\").previousElementSibling.innerHTML = translations[lang].painLocationDescription;\r\n    document.getElementById(\"none\").nextElementSibling.innerText = translations[lang].none;\r\n    document.getElementById(\"verymild\").nextElementSibling.innerText = translations[lang].verymild;\r\n    document.getElementById(\"mild\").nextElementSibling.innerText = translations[lang].mild;\r\n    document.getElementById(\"moderate\").nextElementSibling.innerText = translations[lang].moderate;\r\n    document.getElementById(\"severe\").nextElementSibling.innerText = translations[lang].severe;\r\n    document.getElementById(\"rarely\").nextElementSibling.innerText = translations[lang].rarely;\r\n    document.getElementById(\"sometimes\").nextElementSibling.innerText = translations[lang].sometimes;\r\n    document.getElementById(\"often\").nextElementSibling.innerText = translations[lang].often;\r\n    document.getElementById(\"most\").nextElementSibling.innerText = translations[lang].most;\r\n    document.getElementById(\"alloftheTime\").nextElementSibling.innerText = translations[lang].alloftheTime;\r\n    document.getElementById(\"nopain\").nextElementSibling.innerText = translations[lang].nopain;\r\n    document.getElementById(\"to60\").nextElementSibling.innerText = translations[lang].to60;\r\n    document.getElementById(\"to15\").nextElementSibling.innerText = translations[lang].to15;\r\n    document.getElementById(\"aroundhouse\").nextElementSibling.innerText = translations[lang].aroundhouse;\r\n    document.getElementById(\"notatall\").nextElementSibling.innerText = translations[lang].notatall;\r\n    document.getElementById(\"onetree\").nextElementSibling.innerText = translations[lang].onetree;\r\n    document.getElementById(\"treesix\").nextElementSibling.innerText = translations[lang].treesix;\r\n    document.getElementById(\"sixtwelve\").nextElementSibling.innerText = translations[lang].sixtwelve;\r\n    document.getElementById(\"onetwo\").nextElementSibling.innerText = translations[lang].onetwo;\r\n    document.getElementById(\"twoplus\").nextElementSibling.innerText = translations[lang].twoplus;\r\n    document.getElementById(\"standingProblems\").nextElementSibling.innerText = translations[lang].standingProblems;\r\n    document.getElementById(\"sittingProblems\").nextElementSibling.innerText = translations[lang].sittingProblems;\r\n    document.getElementById(\"kneelingProblems\").nextElementSibling.innerText = translations[lang].kneelingProblems;\r\n    document.getElementById(\"layingProblems\").nextElementSibling.innerText = translations[lang].layingProblems;\r\n    document.getElementById(\"walkingProblems\").nextElementSibling.innerText = translations[lang].walkingProblems;\r\n    document.getElementById(\"bendingProblems\").nextElementSibling.innerText = translations[lang].bendingProblems;\r\n    document.getElementById(\"climbingProblems\").nextElementSibling.innerText = translations[lang].climbingProblems;\r\n    document.getElementById(\"otherProblems\").nextElementSibling.innerText = translations[lang].otherProblems;\r\n    document.getElementById(\"otherProblem\").placeholder = translations[lang].otherProblem;\r\n    document.getElementById(\"hypertension\").nextElementSibling.innerText = translations[lang].hypertension;\r\n    document.getElementById(\"diabetes\").nextElementSibling.innerText = translations[lang].diabetes;\r\n    document.getElementById(\"asthma\").nextElementSibling.innerText = translations[lang].asthma;\r\n    document.getElementById(\"heartDisease\").nextElementSibling.innerText = translations[lang].heartDisease;\r\n    document.getElementById(\"liverDisease\").nextElementSibling.innerText = translations[lang].liverDisease;\r\n    document.getElementById(\"allergy\").nextElementSibling.innerText = translations[lang].allergy;\r\n    document.getElementById(\"renal\").nextElementSibling.innerText = translations[lang].renal;\r\n    document.getElementById(\"neurological\").nextElementSibling.innerText = translations[lang].neurological;\r\n    document.getElementById(\"cancer\").nextElementSibling.innerText = translations[lang].cancer;\r\n    document.getElementById(\"infectious\").nextElementSibling.innerText = translations[lang].infectious;\r\n    document.getElementById(\"nothavediseases\").nextElementSibling.innerText = translations[lang].nothavediseases;\r\n    document.getElementById(\"otherDiagnosiss\").nextElementSibling.innerText = translations[lang].otherDiagnosiss;\r\n    document.getElementById(\"otherDiagnosis\").placeholder = translations[lang].otherDiagnosis;\r\n    document.getElementById(\"yesnightpain\").nextElementSibling.innerText = translations[lang].yesnightpain;\r\n    document.getElementById(\"nonightpain\").nextElementSibling.innerText = translations[lang].nonightpain;\r\n    document.getElementById(\"condition\").previousElementSibling.innerText = translations[lang].condition;\r\n    document.getElementById(\"files\").previousElementSibling.innerHTML = translations[lang].files;\r\n    \/\/ document.getElementById(\"dateButtons\").previousElementSibling.innerText = translations[lang].dateButtons;\r\n    \/\/ document.getElementById(\"successMessage\").innerText = translations[lang].successMessage;\r\n    document.getElementById(\"prevBtn\").innerText = translations[lang].prevBtn;\r\n    document.getElementById(\"nextBtn\").innerText = translations[lang].nextBtn;\r\n    document.getElementById(\"submitBtn\").innerText = translations[lang].submitBtn;\r\n    document.getElementById(\"firststep\").innerText = translations[lang].firststep;\r\n    document.getElementById(\"secondstep\").innerText = translations[lang].secondstep;\r\n    document.getElementById(\"thirdstep\").innerText = translations[lang].thirdstep;\r\n    document.getElementById(\"forthstep\").innerText = translations[lang].forthstep;\r\n    document.getElementById(\"fifthstep\").innerText = translations[lang].fifthstep;\r\n    \/\/ document.getElementById(\"urgentContact\").innerText = translations[lang].urgentContact;\r\n    \/\/ document.getElementById(\"phoneBtn\").innerText = translations[lang].phoneBtn;\r\n\r\n    document.getElementById(\"myForm\").addEventListener(\"keydown\", function(event) {\r\n    \/\/ Enter tu\u015funun kodu 13't\u00fcr\r\n        if (event.key === \"Enter\") {\r\n        event.preventDefault(); \/\/ Enter tu\u015funa bas\u0131ld\u0131\u011f\u0131nda formun g\u00f6nderilmesini engeller\r\n        }\r\n    });\r\n    \r\n    function validateFileSize() {\r\n        const fileInput = document.getElementById(\"fileInput\");\r\n        const maxSize = 40 * 1024 * 1024; \/\/ 40 MB in bytes\r\n\r\n        if (fileInput.files[0].size > maxSize) {\r\n            if (isRussian) {\r\n                alert(\"\u0420\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430 \u043d\u0435 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 40 \u041c\u0411.\");\r\n            }else{\r\n                alert(\"The file size cannot be larger than 40 MB.\");\r\n            }\r\n            fileInput.value = \"\"; \/\/ Dosyay\u0131 temizle\r\n        }\r\n    }\r\n\r\n    submitBtn = document.getElementById(\"submitBtn\");\r\n\r\n    var acc = document.getElementsByClassName(\"accordion\");\r\n    var i;\r\n\r\n    for (i = 0; i < acc.length; i++) {\r\n        acc[i].addEventListener(\"click\", function() {\r\n            \/\/ T\u00fcm panelleri kapat\r\n            var allPanels = document.getElementsByClassName(\"panel\");\r\n            for (var j = 0; j < allPanels.length; j++) {\r\n                allPanels[j].style.display = \"none\";\r\n            }\r\n            \r\n            \/\/ T\u00fcm accordions'lar\u0131 aktif olmaktan \u00e7\u0131kar\r\n            var allAccordions = document.getElementsByClassName(\"accordion\");\r\n            for (var k = 0; k < allAccordions.length; k++) {\r\n                allAccordions[k].classList.remove(\"active\");\r\n            }\r\n\r\n            \/\/ T\u0131klanan accordion'u aktif yap ve paneli g\u00f6ster\r\n            this.classList.toggle(\"active\");\r\n            var panel = this.nextElementSibling;\r\n            if (panel.style.display === \"none\" || panel.style.display === \"\") {\r\n                panel.style.display = \"block\";\r\n            } else {\r\n                panel.style.display = \"none\";\r\n            }\r\n        });\r\n    }\r\n\r\n    function toggleOtherInput(checkbox, targetId) {\r\n        var input = document.getElementById(targetId);\r\n        \r\n        if (checkbox.checked) {\r\n            input.style.display = 'block';\r\n        } else {\r\n            input.style.display = 'none';\r\n        }\r\n    }\r\n\r\n    \/\/ Fonksiyon: Her panelin i\u00e7indeki inputlar\u0131 kontrol eder\r\n    function checkPanelCompletion(panel, button) {\r\n        \/\/ Paneldeki sadece required input ve textarea alanlar\u0131n\u0131 se\u00e7iyoruz\r\n        const requiredInputs = panel.querySelectorAll('input[required], textarea[required]');\r\n        let allRequiredFilled = true;\r\n\r\n        \/\/ T\u00fcm required inputlar\u0131n durumunu kontrol et\r\n        if (requiredInputs.length > 0) {\r\n            allRequiredFilled = Array.from(requiredInputs).every(input => {\r\n                if (input.type === \"checkbox\" || input.type === \"radio\") {\r\n                    \/\/ En az bir checkbox veya radio se\u00e7iliyse true d\u00f6ner\r\n                    return Array.from(requiredInputs).some(input => input.checked);\r\n                } else {\r\n                    \/\/ Di\u011fer inputlar i\u00e7in, alan doluysa true d\u00f6ner\r\n                    return input.value.trim() !== '';\r\n                }\r\n            });\r\n        }\r\n\r\n        \/\/ E\u011fer t\u00fcm required inputlar dolu ya da se\u00e7iliyse butona 'completed' s\u0131n\u0131f\u0131 ekle\r\n        if (allRequiredFilled) {\r\n            button.classList.add(\"completed\");\r\n        } else {\r\n            button.classList.remove(\"completed\");\r\n        }\r\n    }\r\n\r\n    \/\/ Her panel i\u00e7in input alanlar\u0131n\u0131n de\u011fi\u015fimini kontrol ederiz\r\n    document.querySelectorAll('.accordion').forEach(button => {\r\n        const panel = button.nextElementSibling;\r\n\r\n        panel.addEventListener('input', () => checkPanelCompletion(panel, button));\r\n    });\r\n    var currentStep = 1; \/\/ Ba\u015flang\u0131\u00e7 ad\u0131m\u0131\r\n    var totalSteps = 5;  \/\/ Toplam ad\u0131m say\u0131s\u0131\r\n\r\n    function showStep(step) {\r\n        if (step == 1) {\r\n            if (isRussian) {\r\n                document.getElementById(\"mobileStep\").innerText = \"\u041b\u0438\u0447\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f\";\r\n            }else {\r\n                document.getElementById(\"mobileStep\").innerText = \"Personal Information\";\r\n            }\r\n        }\r\n        if (step == 2) {\r\n            if (isRussian) {\r\n                document.getElementById(\"mobileStep\").innerText = \"\u0421\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435 \u0437\u0434\u043e\u0440\u043e\u0432\u044c\u044f\";\r\n            }else {\r\n                document.getElementById(\"mobileStep\").innerText = \"Medical Condition\";\r\n            }\r\n        }\r\n        if (step == 3) {\r\n            if (isRussian) {\r\n                document.getElementById(\"mobileStep\").innerText = \"\u041c\u0435\u0434\u0438\u0446\u0438\u043d\u0441\u043a\u0438\u0435 \u0444\u0430\u0439\u043b\u044b\";\r\n            }else {\r\n                document.getElementById(\"mobileStep\").innerText = \"Medical Files\";\r\n            }\r\n        }\r\n        if (step == 4) {\r\n            if (isRussian) {\r\n                document.getElementById(\"mobileStep\").innerText = \"\u0412\u044b\u0431\u043e\u0440 \u0434\u0430\u0442\u044b\";\r\n            }else {\r\n                document.getElementById(\"mobileStep\").innerText = \"Select Dates\";\r\n            }\r\n        }\r\n        if (step == 5) {\r\n            if (isRussian) {\r\n                document.getElementById(\"mobileStep\").innerText = \"\u041e\u043f\u043b\u0430\u0442\u0430\";\r\n            }else {\r\n                document.getElementById(\"mobileStep\").innerText = \"Payment\";\r\n            }\r\n        }\r\n        \/\/ T\u00fcm ad\u0131mlar\u0131 gizle ve sadece aktif ad\u0131m\u0131 g\u00f6ster\r\n        var steps = document.getElementsByClassName(\"step-content\");\r\n        for (var i = 0; i < steps.length; i++) {\r\n            steps[i].classList.remove(\"active\"); \/\/ T\u00fcm ad\u0131mlar\u0131 gizle\r\n        }\r\n        document.getElementById(\"step-content-\" + step).classList.add(\"active\"); \/\/ Ge\u00e7erli ad\u0131m\u0131 g\u00f6ster\r\n\r\n        \/\/ Stepper'daki dairelerin rengini g\u00fcncelle\r\n        for (var i = 1; i <= totalSteps; i++) {\r\n            var stepElement = document.getElementById(\"step-\" + i);\r\n            if (i <= step) {\r\n                stepElement.classList.add(\"active\"); \/\/ Ge\u00e7mi\u015f ve ge\u00e7erli ad\u0131mlar\u0131 aktif yap\r\n            } else {\r\n                stepElement.classList.remove(\"active\"); \/\/ Gelecek ad\u0131mlar\u0131 pasif yap\r\n            }\r\n        }\r\n        console.log(step);\r\n        \r\n        \/\/ Progress bar'\u0131 g\u00fcncelle\r\n        var progressLine = document.getElementById(\"progressLine\");\r\n        \/\/ var progress = ((step - 1 ) \/ totalSteps) * 100; \/\/ \u0130lerleme y\u00fczdesi\r\n\r\n        \/\/ \u0130lk ad\u0131mdayken ilerleme 0 olmal\u0131\r\n        if (step == 1) {\r\n            progressLine.style.width = \"15%\";\r\n        } if (step == 2) {\r\n            progressLine.style.width = \"40%\";\r\n        }if (step == 3) {\r\n            progressLine.style.width = \"60%\";\r\n        }if (step == 4) {\r\n            progressLine.style.width = \"85%\";\r\n        }if (step == 5) {\r\n            progressLine.style.width = \"100%\";\r\n        }\r\n\r\n        \/\/ Butonlar\u0131 g\u00fcncelle\r\n        if (step == 1) {\r\n            document.getElementById(\"prevBtn\").style.display = \"none\"; \/\/ \u0130lk ad\u0131mda 'Previous' gizli olsun\r\n        } else {\r\n            document.getElementById(\"prevBtn\").style.display = \"inline\"; \/\/ Other ad\u0131mlarda 'Previous' g\u00f6r\u00fcn\u00fcr olsun\r\n        }\r\n\r\n        if (step == 4) {\r\n            document.getElementById(\"nextBtn\").style.display = \"inline\"; \/\/ Son ad\u0131mda 'Next' gizli olsun\r\n            document.getElementById(\"submitBtn\").style.display = \"none\"; \/\/ Son ad\u0131mda 'Submit' g\u00f6r\u00fcn\u00fcr olsun\r\n        }else if (step == 5) {\r\n            document.getElementById(\"nextBtn\").style.display = \"none\"\r\n            document.getElementById(\"prevBtn\").style.display = \"none\";\r\n            document.getElementById(\"submitBtn\").style.display = \"none\";\r\n        }else {\r\n            document.getElementById(\"nextBtn\").style.display = \"inline\"; \/\/ Other ad\u0131mlarda 'Next' g\u00f6r\u00fcn\u00fcr olsun\r\n            document.getElementById(\"submitBtn\").style.display = \"none\"; \/\/ Son ad\u0131m haricinde 'Submit' gizli olsun\r\n        }\r\n    }\r\n\r\n    function isValidEmail(email) {\r\n        \/\/ Basit ama \u00e7o\u011fu durumu kapsayan bir e-posta regex kontrol\u00fc\r\n        const re = \/^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$\/;\r\n        return re.test(email);\r\n    }\r\n\r\n    let countdownInterval;\r\n\r\n    document.getElementById(\"sendCodeBtn\").addEventListener(\"click\", function () {\r\n        const email = document.getElementById(\"email\").value.trim();\r\n\r\n        if (!email) return alert(\"Please enter your email.\");\r\n        if (!isValidEmail(email)) return alert(\"Please enter a valid email address.\");\r\n\r\n        if (this.disabled) return;\r\n        startCountdown(120); \/\/ 120 saniye ba\u015flat\r\n\r\n        let mail = new FormData()\r\n        mail.append(\"email\", email);\r\n        mail.append(\"type\", \"send_code\");\r\n\r\n        fetch(\"https:\/\/console.turanturan.com.tr\/api\/send-verification.php\", {\r\n            method: \"POST\",\r\n            body: mail\r\n        })\r\n        .then(res => res.text())\r\n        .then(response => {\r\n            document.getElementById(\"verificationSection\").style.display = \"block\";\r\n            document.getElementById(\"verificationMessage\").innerText = \"A verification code has been sent to your email address.\";\r\n            \/\/ startCountdown(20); \/\/ 120 saniye ba\u015flat\r\n        })\r\n        .catch(err => {\r\n            console.error(err);\r\n            alert(\"Code could not be sent.\");\r\n        });\r\n    });\r\n\r\n    function startCountdown(seconds) {\r\n        const sendBtn = document.getElementById(\"sendCodeBtn\");\r\n        const countdownText = document.getElementById(\"countdownText\");\r\n\r\n        sendBtn.disabled = true;\r\n        sendBtn.innerText = `(${seconds} second)`; \r\n\r\n        countdownInterval = setInterval(() => {\r\n            seconds--;\r\n            sendBtn.innerText = `(${seconds} second)`;\r\n\r\n            if (seconds <= 0) {\r\n                clearInterval(countdownInterval);\r\n                sendBtn.disabled = false;\r\n                sendBtn.innerText = \"Send Code\";\r\n            }\r\n        }, 1000);\r\n    }\r\n    \r\n    let formData = new FormData();\r\n\r\n    let selectedDoctor = null;\r\n    let selectedDate = null;\r\n    let selectedTime = null;\r\n    \r\n    let getCalendar = new FormData();\r\n    getCalendar.set('type', 'get_calendar');\r\n\r\n    fetch(\"https:\/\/console.turanturan.com.tr\/api\/classes\/OnlineAppointment.php\", {\r\n        method: \"POST\",\r\n        body: getCalendar\r\n    })\r\n    .then(response => response.json())\r\n    .then(data => {\r\n        if (data.status === \"success\" && data.doctor_schedules) {  \r\n            renderDoctors(data.doctor_schedules);\r\n        }\r\n    })\r\n    .catch(error => console.error(\"Hata:\", error));\r\n    \r\n    function renderDoctors(data) {\r\n        const doctorList = document.getElementById('doctor-list');\r\n        doctorList.innerHTML = ''; \r\n\r\n        \/\/ Sahte doktoru buraya ekliyoruz\r\n        const staticDoctor = {\r\n            doctor_id: 'static', \/\/ herhangi bir \u00f6zel ID olabilir\r\n            doctor_name: 'Clinical Choice',\r\n            doctor_photo: 'default.png',\r\n            is_static: true \/\/ ay\u0131rt edici flag\r\n        };\r\n\r\n        data.unshift(staticDoctor); \/\/ listenin en ba\u015f\u0131na ekle\r\n\r\n        data.forEach(doctor => {\r\n            const doctorItem = document.createElement('div');\r\n            doctorItem.classList.add('doctor-item');\r\n\r\n            const image = document.createElement('img');\r\n            image.src = 'http:\/\/console.turanturan.com.tr\/assets\/img\/' + doctor.doctor_photo; \/\/ fallback\r\n            image.alt = doctor.doctor_name;\r\n            image.style.width = '50px';\r\n            image.style.height = '50px';\r\n            image.style.borderRadius = '50%';\r\n            image.style.objectFit = 'cover';\r\n            image.style.marginRight = '20px';\r\n\r\n            const name = document.createElement('div');\r\n            name.innerText = doctor.doctor_name;\r\n\r\n            doctorItem.appendChild(image);\r\n            doctorItem.appendChild(name);\r\n            doctorItem.onclick = () => {\r\n                if (doctor.is_static) {\r\n                    \/\/ Sadece se\u00e7ili hale getir, ama tarih\/saat render etme\r\n                    document.querySelectorAll('.doctor-item').forEach(el => el.classList.remove('selected'));\r\n                    doctorItem.classList.add('selected');\r\n\r\n                    \/\/ Saatleri\/g\u00fcnleri gizle\r\n                    document.getElementById('date-list').style.display = 'none';\r\n                    document.getElementById('time-list').style.display = 'none';\r\n\r\n                    selectedDoctor = null;\r\n                    selectedDate = null;\r\n                    selectedTime = null;\r\n                } else {\r\n                    selectDoctor(doctor, doctorItem);\r\n                }\r\n            } \r\n\r\n            doctorList.appendChild(doctorItem);\r\n        });\r\n    }\r\n\r\n    function selectDoctor(doctor, doctorElement) {\r\n        document.querySelectorAll('.doctor-item').forEach(el => el.classList.remove('selected'));\r\n        doctorElement.classList.add('selected');\r\n\r\n        selectedDoctor = doctor.doctor_id;\r\n\r\n        \/\/ document.getElementById('submit-btn').style.display = 'none';\r\n        selectedDate = null;\r\n        selectedTime = null ;\r\n        renderDates(doctor);\r\n    }\r\n\r\n    function renderDates(doctor) {\r\n        const dateList = document.getElementById('date-list');\r\n        dateList.innerHTML = ''; \r\n        dateList.style.display = 'flex';\r\n\r\n        doctor.schedule.forEach(day => {\r\n            const dateItem = document.createElement('div');\r\n            dateItem.classList.add('date-item');\r\n\r\n            \r\n            let shortDay = shortenDayName(day.day_name);\r\n\r\n            dateItem.innerHTML = `<div>${day.date.split('\/')[0]}\/${day.date.split('\/')[1]}<\/div>\r\n                                  <div style=\"font-size: 12px;\">${shortDay}<\/div>`;\r\n            dateItem.onclick = () => selectDate(day, dateItem); \r\n            dateList.appendChild(dateItem);\r\n        });\r\n\r\n        document.getElementById('time-list').style.display = 'none';\r\n    }\r\n\r\n    function selectDate(day, dateElement) {\r\n        document.querySelectorAll('.date-item').forEach(el => el.classList.remove('selected'));\r\n        dateElement.classList.add('selected');\r\n\r\n        selectedDate = day.date;\r\n\r\n        \/\/ document.getElementById('submit-btn').style.display = 'none';\r\n\r\n        selectedTime = null ;\r\n        renderTimes(day);\r\n    }\r\n\r\n    function renderTimes(day) {\r\n        const timeList = document.getElementById('time-list');\r\n        timeList.innerHTML = ''; \r\n        timeList.style.display = 'flex';\r\n\r\n        day.available_time.forEach(slot => {\r\n            const timeItem = document.createElement('div');\r\n            timeItem.classList.add('time-item');\r\n            timeItem.classList.add(slot.status ? 'available' : 'unavailable');\r\n            timeItem.innerText = slot.time;\r\n            if (slot.status) {\r\n                timeItem.onclick = () => selectTime(slot.time, timeItem);\r\n            }\r\n            timeList.appendChild(timeItem);\r\n        });\r\n    }\r\n\r\n    function selectTime(time, timeElement) {\r\n        document.querySelectorAll('.time-item').forEach(el => el.classList.remove('selected'));\r\n        timeElement.classList.add('selected');\r\n\r\n        selectedTime = time;\r\n\r\n        \/\/ document.getElementById('submit-btn').style.display = 'block';\r\n    }\r\n\r\n    \r\n    function shortenDayName(day) {\r\n        const daysMap = {\r\n            \"Monday\": \"Mon\",\r\n            \"Tuesday\": \"Tue\",\r\n            \"Wednesday\": \"Wed\",\r\n            \"Thursday\": \"Thu\",\r\n            \"Friday\": \"Fri\",\r\n            \"Saturday\": \"Sat\",\r\n            \"Sunday\": \"Sun\"\r\n        };\r\n        return daysMap[day] || day; \/\/ E\u011fer e\u015fle\u015fme yoksa oldu\u011fu gibi d\u00f6nd\u00fcr\r\n    }\r\n\r\n    \/\/ \u0130lk Ad\u0131m: Ki\u015fisel Bilgi Ekleme\r\n    function addFirstStepData() {\r\n        const name = document.getElementById(\"name\").value;\r\n        const email = document.getElementById(\"email\").value;\r\n        const phone = document.getElementById(\"phone\").value;\r\n        const country = document.getElementById(\"country\").value;\r\n        const height = document.getElementById(\"height\").value;\r\n        const weight = document.getElementById(\"weight\").value;\r\n        const birthdate = document.getElementById(\"birthdate\").value;\r\n\r\n        formData.set(\"name\", name);\r\n        formData.set(\"email\", email);\r\n        formData.set(\"phone\", phone);\r\n        formData.set(\"country\", country);\r\n        formData.set(\"height\", height);\r\n        formData.set(\"weight\", weight);\r\n        formData.set(\"birthdate\", birthdate);\r\n    }\r\n\r\n    \/\/ \u0130kinci Ad\u0131m: T\u0131bbi Durum Bilgilerini Ekleme\r\n    function addSecondStepData() {\r\n        const painLocations = [];\r\n        document.querySelectorAll(\"input[name='painLocations']:checked\").forEach((checkbox) => {\r\n            painLocations.push(checkbox.value);\r\n        });\r\n        formData.set(\"painLocations\", painLocations.join(\",\"));\r\n\r\n        const painDescription = document.getElementById(\"painLocationDescription\").value;\r\n        formData.set(\"painLocationDescription\", painDescription);\r\n\r\n        const painLevel = document.querySelector(\"input[name='pain']:checked\")?.value || \"\";\r\n        formData.set(\"pain\", painLevel);\r\n\r\n        const limping = document.querySelector(\"input[name='limping']:checked\")?.value || \"\";\r\n        formData.set(\"limping\", limping);\r\n\r\n        const walkPain = document.querySelector(\"input[name='walkpain']:checked\")?.value || \"\";\r\n        formData.set(\"walkpain\", walkPain);\r\n\r\n        const hipKneeDuration = document.querySelector(\"input[name='hipknee']:checked\")?.value || \"\";\r\n        formData.set(\"hipknee\", hipKneeDuration);\r\n\r\n        const functionalProblems = [];\r\n        document.querySelectorAll(\"input[name='problems']:checked\").forEach((checkbox) => {\r\n            functionalProblems.push(checkbox.value);\r\n        });\r\n        formData.set(\"problems\", functionalProblems.join(\",\"));\r\n\r\n        const otherProblem = document.getElementById(\"otherProblem\").value;\r\n        \/\/if (otherProblem) {\r\n            formData.set(\"otherProblem\", otherProblem);\r\n        \/\/}\r\n\r\n        const diagnosis = [];\r\n        document.querySelectorAll(\"input[name='diagnosis']:checked\").forEach((checkbox) => {\r\n            diagnosis.push(checkbox.value);\r\n        });\r\n        formData.set(\"diagnosis\", diagnosis.join(\",\"));\r\n\r\n        const otherDiagnosis = document.getElementById(\"otherDiagnosis\").value;\r\n        \/\/if (otherDiagnosis) {\r\n            formData.set(\"otherDiagnosis\", otherDiagnosis);\r\n        \/\/}\r\n\r\n        const nightPain = document.querySelector(\"input[name='nightPain']:checked\")?.value || \"\";\r\n        formData.set(\"nightPain\", nightPain);\r\n\r\n        const condition = document.getElementById(\"condition\").value;\r\n        formData.set(\"condition\", condition);\r\n\r\n        const treatments = document.getElementById(\"treatments\").value;\r\n        formData.set(\"treatments\", treatments);\r\n    }\r\n\r\n    \/\/ \u00dc\u00e7\u00fcnc\u00fc Ad\u0131m: T\u0131bbi Dosyalar\u0131 Ekleme\r\n    function addThirdStepData() {\r\n        const filesInput = document.getElementById(\"files\");\r\n        if (filesInput.files.length > 0) {\r\n            formData.append(\"file\", filesInput.files[0]); \/\/ \u0130lk dosyay\u0131 ekliyoruz\r\n        }\r\n    }\r\n\r\n    \/\/ D\u00f6rd\u00fcnc\u00fc Ad\u0131m: Se\u00e7ilen Tarihleri Ekleme\r\n    function addFourthStepData() {\r\n        let datetime = null;\r\n\r\n        if (selectedDate != null) {\r\n            const [day, month, year] = selectedDate.split('\/');\r\n            datetime = `${year}-${month}-${day} ${selectedTime}:00`;\r\n        }\r\n        \r\n        formData.append(\"doctor_id\", selectedDoctor);\r\n        formData.append(\"datetime\", datetime); \r\n    }\r\n    async function nextPrev(n) {\r\n        if (n === 1) {\r\n            const isValid = validateStep(currentStep);\r\n            if (!isValid) {\r\n                if (isRussian) {\r\n                    alert(\"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435 \u0432\u0441\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u043e\u043b\u044f.\");\r\n                } else {\r\n                    alert(\"Please fill in all required fields.\");\r\n                }\r\n                return;\r\n            }\r\n        }\r\n\r\n        if (currentStep === 1 && n === 1) {\r\n            const email = document.getElementById(\"email\").value.trim();\r\n            if (!isValidEmail(email)) return alert(\"Please enter a valid email address.\");\r\n            const enteredCode = document.getElementById(\"verificationCodeInput\").value.trim();\r\n            if (!enteredCode) {\r\n                alert(\"Please enter the verification code.\");\r\n                return false;\r\n            }\r\n            const control = await controlVerificationCode(currentStep);\r\n            if (!control) {\r\n                alert(\"The verification code is incorrect.\");\r\n                return;\r\n            }\r\n            const height = Number(document.getElementById(\"height\").value);\r\n            const weight = Number(document.getElementById(\"weight\").value);\r\n            \r\n            const birthdate = document.getElementById(\"birthdate\").value;\r\n            const phone = document.getElementById(\"phone\");\r\n            const phoneInput = phone.value.trim();\r\n            if (height <= 20 || height >= 220) {\r\n                if (isRussian) {\r\n                    alert(\"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u0443\u044e \u0432\u044b\u0441\u043e\u0442\u0443.\");\r\n                } else {\r\n                    alert(\"Please enter a valid height.\");\r\n                }\r\n                return;\r\n            }\r\n            if (weight <= 1 || weight >= 300) {\r\n                if (isRussian) {\r\n                    alert(\"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0432\u0435\u0441.\");\r\n                } else {\r\n                    alert(\"Please enter a valid weight.\");\r\n                }\r\n                return;\r\n            }\r\n            \/\/ Tarihi Date objesine \u00e7evir\r\n            const parsedDate = new Date(birthdate);\r\n\r\n            \/\/ Ge\u00e7erli tarih mi kontrol\u00fc\r\n            const isValidDate = parsedDate instanceof Date && !isNaN(parsedDate);\r\n\r\n            \/\/ Ayr\u0131ca y\u0131l\u0131n 1900 ve 2100 aras\u0131nda olup olmad\u0131\u011f\u0131n\u0131 kontrol et (iste\u011fe ba\u011fl\u0131)\r\n            const year = parsedDate.getFullYear();\r\n            if (!isValidDate || year < 1900 || year > 2100) {\r\n                if (isRussian) {\r\n                    alert(\"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0432\u0435\u0440\u043d\u0443\u044e \u0434\u0430\u0442\u0443 \u0440\u043e\u0436\u0434\u0435\u043d\u0438\u044f.\");\r\n                } else {\r\n                    alert(\"Please enter a valid birthdate.\");\r\n                }\r\n                return;\r\n            }\r\n            if (phoneInput.length <= 6) {\r\n                if (isRussian) {\r\n                    alert(\"\u041f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430, \u0432\u0432\u0435\u0434\u0438\u0442\u0435 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u0442\u0435\u043b\u0435\u0444\u043e\u043d\u0430.\");\r\n                } else {\r\n                    alert(\"Please enter a valid phone number.\");\r\n                }\r\n                \r\n                return;\r\n            }\r\n            addFirstStepData();\r\n        } else if (currentStep === 2 && n === 1) {\r\n            addSecondStepData();\r\n        } else if (currentStep === 3 && n === 1) {\r\n            addThirdStepData();\r\n        }else if (currentStep === 4 && n === 1) {\r\n            if(selectedDoctor === null) return alert(\"Please select a doctor.\");\r\n            addFourthStepData();\r\n            for (let pair of formData.entries()) {\r\n            console.log(pair[0] + ': ' + pair[1]);\r\n            }\r\n        }\r\n        if (currentStep === 5 && n === 1) {\r\n            for (let pair of formData.entries()) {\r\n                console.log(pair[0] + ': ' + pair[1]);\r\n            }\r\n        }\r\n        if (currentStep + n > 0 && currentStep + n <= totalSteps) {\r\n            currentStep += n; \/\/ Ad\u0131m say\u0131s\u0131n\u0131 g\u00fcncelle\r\n            showStep(currentStep); \/\/ Yeni ad\u0131m\u0131 g\u00f6ster\r\n        }\r\n    }\r\n    async function controlVerificationCode(step) {\r\n        if (step === 1) {\r\n            const enteredCode = document.getElementById(\"verificationCodeInput\").value.trim();\r\n            const email = document.getElementById(\"email\").value.trim();\r\n            if (!enteredCode) {\r\n                alert(\"Please enter the verification code.\");\r\n                return false;\r\n            }\r\n            let checkCode = new FormData();\r\n            checkCode.append(\"code\", enteredCode);\r\n            checkCode.append(\"type\", \"check_code\");\r\n            checkCode.append(\"email\", email);\r\n\r\n            try {\r\n                const res = await fetch(\"https:\/\/console.turanturan.com.tr\/api\/send-verification.php\", {\r\n                    method: \"POST\",\r\n                    body: checkCode\r\n                });\r\n\r\n                const json = await res.json();\r\n                console.log(json, \"response\");\r\n\r\n                if (json.status === \"success\") {\r\n                    return true;\r\n                } else {\r\n                    \/\/ alert(\"The verification code is incorrect.\");\r\n                    return false;\r\n                }\r\n            } catch (error) {\r\n                console.error(\"Verification error:\", error);\r\n                alert(\"An error occurred while verifying the code.\");\r\n                return false;\r\n            }\r\n        }\r\n        return true;\r\n    }\r\n    function validateStep(step) {\r\n        const stepContent = document.getElementById(`step-content-${step}`);\r\n        const requiredFields = stepContent.querySelectorAll(\"input[required], textarea[required], select[required]\");\r\n        \r\n        for (const field of requiredFields) {\r\n            if (!field.value.trim()) {\r\n                field.classList.add(\"invalid\"); \/\/ Eksik alanlar\u0131 i\u015faretlemek i\u00e7in s\u0131n\u0131f ekleyin\r\n                return false; \/\/ Bir alan bo\u015fsa false d\u00f6ner\r\n            } else {\r\n                field.classList.remove(\"invalid\"); \/\/ Alan doluysa i\u015faretlemeyi kald\u0131r\r\n            }\r\n        }\r\n\r\n        return true; \/\/ T\u00fcm zorunlu alanlar doluysa true d\u00f6ner\r\n    }\r\n    \/\/ Ba\u015flang\u0131\u00e7ta ilk ad\u0131m\u0131 g\u00f6ster\r\n\r\n    showStep(currentStep);\r\n    \/\/ showStep(4);\r\n\r\n    \/\/ G\u00fcn se\u00e7imi fonksiyonu ayn\u0131 kal\u0131yor\r\n    const maxSelectable = 2;  \/\/ Maksimum se\u00e7ilebilecek g\u00fcn say\u0131s\u0131\r\n    let selectedDays = [];    \/\/ Se\u00e7ilen g\u00fcnleri tutacak dizi\r\n\r\n    function isWeekend(date) {\r\n        const day = date.getDay();\r\n        return (day === 6 || day === 0); \/\/ Cumartesi ve Pazar g\u00fcnleri\r\n    }\r\n\r\n    function getWeekdays(startDate, numDays) {\r\n        const weekdays = [];\r\n        let currentDate = new Date(startDate);\r\n        while (weekdays.length < numDays) {\r\n            if (!isWeekend(currentDate)) {\r\n                weekdays.push(new Date(currentDate));\r\n            }\r\n            currentDate.setDate(currentDate.getDate() + 1);\r\n        }\r\n        return weekdays;\r\n    }\r\n\r\n    \/\/ function createDateButtons(dates) {\r\n    \/\/     const container = document.getElementById(\"dateButtons\");\r\n    \/\/     container.innerHTML = '';  \r\n    \/\/     dates.forEach((date, index) => {\r\n    \/\/         const button = document.createElement(\"button\");\r\n    \/\/         button.type = \"button\";\r\n    \/\/         button.classList.add(\"day-button\");\r\n    \/\/         button.innerText = isRussian ? date.toLocaleDateString(\"ru-RU\") : date.toDateString();\r\n    \/\/         button.dataset.date = date.toISOString();  \r\n    \/\/         button.addEventListener(\"click\", () => handleDaySelection(button, date));\r\n    \/\/         container.appendChild(button);\r\n    \/\/     });\r\n    \/\/ }\r\n\r\n    \/\/ function handleDaySelection(button, date) {\r\n    \/\/     if (selectedDays.includes(date.toISOString())) {\r\n    \/\/         selectedDays = selectedDays.filter(day => day !== date.toISOString());\r\n    \/\/         button.classList.remove(\"selected\");\r\n    \/\/     } else if (selectedDays.length < maxSelectable) {\r\n    \/\/         selectedDays.push(date.toISOString());\r\n    \/\/         button.classList.add(\"selected\");\r\n    \/\/     } else {\r\n    \/\/         if (isRussian) {\r\n    \/\/             document.getElementById(\"error-message\").innerText = `\u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 \u0434\u0432\u0443\u0445 \u0434\u043d\u0435\u0439.`;\r\n    \/\/         }else {\r\n    \/\/         document.getElementById(\"error-message\").innerText = `You can select up to ${maxSelectable} days.`;\r\n\r\n    \/\/         }\r\n    \/\/     }\r\n\r\n    \/\/     if (selectedDays.length < maxSelectable) {\r\n    \/\/         document.getElementById(\"error-message\").innerText = '';\r\n    \/\/     }\r\n    \/\/ }\r\n\r\n    const monthSelect = document.getElementById(\"month\");\r\n    const yearSelect = document.getElementById(\"year\");\r\n\r\n    const currentDate = new Date();\r\n    const currentYear = currentDate.getFullYear();\r\n    const currentMonth = currentDate.getMonth() + 1; \/\/ Aylar 0-11 oldu\u011fu i\u00e7in +1\r\n\r\n    \/\/ Ay se\u00e7eneklerini olu\u015ftur\r\n    for (let i = 1; i <= 12; i++) {\r\n        const option = document.createElement(\"option\");\r\n        option.value = i.toString().padStart(2, \"0\");\r\n        option.textContent = i.toString().padStart(2, \"0\");\r\n        monthSelect.appendChild(option);\r\n    }\r\n\r\n    \/\/ Ay se\u00e7ildi\u011finde y\u0131l se\u00e7eneklerini g\u00fcncelle\r\n    monthSelect.addEventListener(\"change\", function () {\r\n        const selectedMonth = parseInt(monthSelect.value);\r\n        yearSelect.innerHTML = \"\"; \/\/ Y\u0131l se\u00e7eneklerini temizle\r\n\r\n        \/\/ Varsay\u0131lan se\u00e7enek\r\n        const defaultOption = document.createElement(\"option\");\r\n        defaultOption.value = \"\";\r\n        defaultOption.textContent = \"Select Year\";\r\n        yearSelect.appendChild(defaultOption);\r\n\r\n        \/\/ E\u011fer ay se\u00e7ilmi\u015fse\r\n        if (selectedMonth) {\r\n            for (let i = currentYear; i <= currentYear + 20; i++) {\r\n                \/\/ E\u011fer se\u00e7ilen ay mevcut aydan k\u00fc\u00e7\u00fckse, bu y\u0131l se\u00e7ilemez\r\n                if (i === currentYear && selectedMonth < currentMonth) {\r\n                    continue;\r\n                }\r\n                const option = document.createElement(\"option\");\r\n                option.value = i;\r\n                option.textContent = i;\r\n                yearSelect.appendChild(option);\r\n            }\r\n\r\n            yearSelect.disabled = false; \/\/ Y\u0131l se\u00e7im kutusunu aktif et\r\n        } else {\r\n            yearSelect.disabled = true; \/\/ Ay se\u00e7ilmezse y\u0131l kutusu devre d\u0131\u015f\u0131 kal\u0131r\r\n        }\r\n    });\r\n\r\n    document.getElementById(\"payButton\").addEventListener(\"click\", function() {\r\n        const cardName = document.getElementById(\"paymentCardName\").value;\r\n        const cardType = document.getElementById(\"cardTypeArea\").value;\r\n        const cardNumber = document.getElementById(\"paymentCardNumber\").value;\r\n        const month = document.getElementById(\"month\").value;\r\n        const year = document.getElementById(\"year\").value;\r\n        const cvv = document.getElementById(\"paymentCardCvv\").value;\r\n        const originalCardNumber = cardNumber.replaceAll(\"-\",\"\");\r\n        const formattedDate = month + year.slice(-2);\r\n\r\n        if (!cardName || !cardNumber || !month || !year || !cvv) {\r\n            alert(\"Please fill in all fields!\");\r\n            return;\r\n        }\r\n\r\n        formData.append(\"cardName\", cardName);\r\n        formData.append(\"cardType\", cardType);\r\n        formData.append(\"cardNumber\", originalCardNumber);\r\n        formData.append(\"expiration_date\", formattedDate);\r\n        formData.append(\"cvv\", cvv);\r\n        formData.append(\"lng\",\"en\");\r\n        formData.append(\"app_id\",\"tt-online-appointment\");\r\n\r\n        for (let pair of formData.entries()) {\r\n            console.log(pair[0] + ': ' + pair[1]);\r\n        }\r\n\r\n        fetch(\"https:\/\/console.turanturan.com.tr\/api\/tt-kt-payment.php\", {\r\n            method: \"POST\",\r\n            \/\/ headers: {\r\n            \/\/     \"Content-Type\": \"application\/json\" \/\/ Bu ba\u015fl\u0131\u011f\u0131 mutlaka belirtin\r\n            \/\/ },\r\n            \/\/ mode: 'cors',\r\n            body: formData\r\n        })\r\n        .then((response) => {\r\n            if (!response.ok) {\r\n                throw new Error(\"\u00d6deme i\u015flemi ba\u015far\u0131s\u0131z oldu1.\");\r\n            }\r\n            const contentType = response.headers.get(\"Content-Type\");\r\n            if (contentType && contentType.includes(\"application\/json\")) {\r\n                return response.json(); \/\/ JSON yan\u0131t\u0131 i\u015fleyin\r\n            } else {\r\n                return response.text(); \/\/ HTML veya metin yan\u0131t\u0131 i\u015fleyin\r\n            }\r\n        })\r\n        .then((data) => {\r\n            console.log(data); \/\/ Ba\u015far\u0131l\u0131 yan\u0131t\u0131 konsola yazd\u0131r\r\n            \/\/ openModal(data);\r\n            let win = window.open(\"\", \"_self\");\r\n            \r\n            \/\/ \/\/ Gelen HTML i\u00e7eri\u011fini popup penceresine yaz\r\n            win.document.open();\r\n            win.document.write(data); \/\/ API'den d\u00f6nen HTML i\u00e7eri\u011fi\r\n            win.document.close();\r\n            \/\/ alert(\"\u00d6deme ba\u015far\u0131l\u0131!\"); \/\/ Kullan\u0131c\u0131ya bilgi ver\r\n        })\r\n        .catch((error) => {\r\n            console.error(\"Hata:\", error);\r\n            alert(\"\u00d6deme s\u0131ras\u0131nda bir hata olu\u015ftu2.\");\r\n        });\r\n\r\n    });\r\n\r\n    \r\n    const today = new Date();\r\n    today.setDate(today.getDate() + 2);  \r\n    const weekdays = getWeekdays(today, 10);\r\n    \/\/ createDateButtons(weekdays);\r\n\r\n<\/script>\n<\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Online Consultation<\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-38596","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/pages\/38596","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/comments?post=38596"}],"version-history":[{"count":1,"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/pages\/38596\/revisions"}],"predecessor-version":[{"id":53850,"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/pages\/38596\/revisions\/53850"}],"wp:attachment":[{"href":"https:\/\/turanturan.com.tr\/en\/wp-json\/wp\/v2\/media?parent=38596"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}