Contact Us

Coach Transformation Academy

Contact form

'267', 'Aland Islands' => '767', 'Albania' => '269', 'Algeria' => '271', 'American Samoa' => '653', 'Andorra' => '273', 'Angola' => '275', 'Anguilla' => '655', 'Antarctica' => '657', 'Antigua and Barbuda' => '277', 'Argentina' => '279', 'Armenia' => '281', 'Aruban' => '659', 'Australia' => '283', 'Austria' => '285', 'Azerbaijan' => '287', 'Bahamas' => '289', 'Bahrain' => '291', 'Bangladesh' => '293', 'Barbados' => '295', 'Belarus' => '297', 'Belgium' => '299', 'Belize' => '301', 'Benin' => '303', 'Bermuda' => '661', 'Bhutan' => '305', 'Bolivia' => '307', 'Bosnia and Herzegovina' => '309', 'Botswana' => '311', 'Bouvet Island' => '663', 'Brazil' => '313', 'British Indian Ocean Territory' => '665', 'British Virgin Islands' => '667', 'Brunei' => '315', 'Bulgaria' => '317', 'Burkina Faso' => '319', 'Burundi' => '321', 'Cabo Verde' => '323', 'Cambodia' => '325', 'Cameroon' => '327', 'Canada' => '329', 'Cape Verde' => '669', 'Cayman Islands' => '671', 'Central African Republic' => '331', 'Chad' => '333', 'Chile' => '335', 'China' => '337', 'Christmas Island' => '673', 'Cocos Islands' => '675', 'Colombia' => '339', 'Comoros' => '341', 'Congo' => '343', 'Cook Islands' => '679', 'Costa Rica' => '345', 'Cote d\'Ivoire' => '681', 'Croatia' => '347', 'Cuba' => '349', 'Cyprus' => '351', 'Czech Republic' => '353', 'Democratic Republic of the Congo' => '355', 'Denmark' => '357', 'Djibouti' => '359', 'Dominica' => '361', 'Dominican Republic' => '363', 'Ecuador' => '365', 'Egypt' => '367', 'El Salvador' => '369', 'Equatorial Guinea' => '371', 'Eritrea' => '373', 'Estonia' => '375', 'Eswatini' => '377', 'Ethiopia' => '379', 'Falkland Islands' => '683', 'Faroe Islands' => '685', 'Fiji' => '381', 'Finland' => '383', 'France' => '385', 'French Guiana' => '687', 'French Polynesia' => '689', 'French Southern Territories' => '691', 'Gabon' => '387', 'Gambia' => '389', 'Georgia' => '391', 'Germany' => '393', 'Ghana' => '395', 'Gibraltar' => '693', 'Greece' => '397', 'Greenland' => '695', 'Grenada' => '399', 'Guadeloupe' => '697', 'Guam' => '699', 'Guatemala' => '401', 'Guernsey' => '701', 'Guinea' => '403', 'Guinea-Bissau' => '405', 'GuineaBissau' => '703', 'Guyana' => '407', 'Haiti' => '409', 'Heard Island and McDonald Islands' => '705', 'Honduras' => '411', 'Hong Kong' => '707', 'Hungary' => '413', 'Iceland' => '415', 'India' => '417', 'Indonesia' => '419', 'Iran' => '421', 'Iraq' => '423', 'Ireland' => '425', 'Israel' => '427', 'Italy' => '429', 'Jamaica' => '431', 'Japan' => '433', 'Jersey' => '709', 'Jordan' => '435', 'Kazakhstan' => '437', 'Kenya' => '439', 'Kiribati' => '441', 'Kosovo' => '711', 'Kuwait' => '443', 'Kyrgyzstan' => '445', 'Laos' => '447', 'Latvia' => '449', 'Lebanon' => '451', 'Lesotho' => '453', 'Liberia' => '455', 'Libya' => '457', 'Liechtenstein' => '459', 'Lithuania' => '461', 'Luxembourg' => '463', 'Macao' => '713', 'Madagascar' => '465', 'Malawi' => '467', 'Malaysia' => '469', 'Maldives' => '471', 'Mali' => '473', 'Malta' => '475', 'Marshall Islands' => '477', 'Martinique' => '715', 'Mauritania' => '479', 'Mauritius' => '481', 'Mayotte' => '717', 'Mexico' => '483', 'Micronesia' => '485', 'Moldova' => '487', 'Monaco' => '489', 'Mongolia' => '491', 'Montenegro' => '493', 'Montserrat' => '719', 'Morocco' => '495', 'Mozambique' => '497', 'Myanmar' => '499', 'Namibia' => '501', 'Nauru' => '503', 'Nepal' => '505', 'Netherlands' => '507', 'Netherlands Antilles' => '721', 'New Caledonia' => '723', 'New Zealand' => '509', 'Nicaragua' => '511', 'Niger' => '513', 'Nigeria' => '515', 'Niue' => '725', 'Norfolk Island' => '727', 'North Korea' => '517', 'North Macedonia' => '519', 'Northern Ireland' => '729', 'Northern Mariana Islands' => '731', 'Norway' => '521', 'Oman' => '523', 'Pakistan' => '525', 'Palau' => '527', 'Palestine' => '733', 'Panama' => '529', 'Papua New Guinea' => '531', 'Paraguay' => '533', 'Peru' => '535', 'Philippines' => '537', 'Pitcairn' => '735', 'Poland' => '539', 'Portugal' => '541', 'Puerto Rico' => '737', 'Qatar' => '543', 'Republic of the Congo' => '677', 'Reunion' => '739', 'Romania' => '545', 'Russia' => '547', 'Rwanda' => '549', 'Saint Helena' => '741', 'Saint Kitts and Nevis' => '551', 'Saint Lucia' => '553', 'Saint Pierre and Miquelon' => '743', 'Saint Vincent and the Grenadines' => '555', 'Samoa' => '557', 'San Marino' => '559', 'Sao Tome and Principe' => '561', 'Saudi Arabia' => '563', 'Senegal' => '565', 'Serbia' => '567', 'Serbia and Montenegro' => '745', 'Seychelles' => '569', 'Sierra Leone' => '571', 'Singapore' => '573', 'Slovakia' => '575', 'Slovenia' => '577', 'Solomon Islands' => '579', 'Somalia' => '581', 'South Africa' => '583', 'South Georgia and the South Sandwich Islands' => '747', 'South Korea' => '585', 'South Sudan' => '587', 'Spain' => '589', 'Sri Lanka' => '591', 'Sudan' => '593', 'Suriname' => '595', 'Svalbard And Jan Mayen' => '749', 'Sweden' => '597', 'Switzerland' => '599', 'Sychelles' => '769', 'Syria' => '601', 'Taiwan' => '751', 'Tajikistan' => '603', 'Tanzania' => '605', 'Thailand' => '607', 'Timor-Leste' => '609', 'Togo' => '611', 'Tokelau' => '753', 'Tonga' => '613', 'Trinidad and Tobago' => '615', 'Tunisia' => '617', 'Turkey' => '619', 'Turkmenistan' => '621', 'Turks And Caicos Islands' => '755', 'Tuvalu' => '623', 'Uganda' => '625', 'Ukraine' => '627', 'United Arab Emirates' => '629', 'United Kingdom' => '631', 'United States' => '633', 'United States Minor Outlying Islands' => '759', 'Uruguay' => '635', 'Uzbekistan' => '637', 'Vanuatu' => '639', 'Vatican' => '761', 'Vatican City (Holy See)' => '641', 'Venezuela' => '643', 'Vietnam' => '645', 'Virgin Islands' => '757', 'Wallis and Futuna' => '763', 'Western Sahara' => '765', 'Yemen' => '647', 'Zambia' => '649', 'Zimbabwe' => '651' ]; ksort($country_ids, SORT_NATURAL | SORT_FLAG_CASE); $country_dial_codes = [ 'Bahrain' => '+973', 'Canada' => '+1', 'India' => '+91', 'Kuwait' => '+965', 'Oman' => '+968', 'Pakistan' => '+92', 'Qatar' => '+974', 'Saudi Arabia' => '+966', 'United Arab Emirates' => '+971', 'United Kingdom' => '+44', 'United States' => '+1' ]; $countries = []; foreach ($country_ids as $country_name => $country_id) { $countries[$country_name] = [ 'country' => $country_name, 'code' => $country_dial_codes[$country_name] ?? '' ]; } /* |-------------------------------------------------------------------------- | Auto Detect Country |-------------------------------------------------------------------------- */ $default_country = 'United Arab Emirates'; $default_code = '+971'; /* |---------------------------------------------------------------------- | 1. Cloudflare detection (fastest) |---------------------------------------------------------------------- */ $ip_country = null; if (!empty($_SERVER['HTTP_CF_IPCOUNTRY']) && $_SERVER['HTTP_CF_IPCOUNTRY'] !== 'XX') { $ip_country = strtoupper($_SERVER['HTTP_CF_IPCOUNTRY']); } /* |---------------------------------------------------------------------- | 2. Fallback: IP API (if Cloudflare not available) |---------------------------------------------------------------------- */ if (!$ip_country) { $ip = $_SERVER['REMOTE_ADDR'] ?? ''; if (!empty($ip)) { $api = @file_get_contents("http://ip-api.com/json/{$ip}?fields=status,countryCode"); if ($api) { $data = json_decode($api, true); if (!empty($data['countryCode'])) { $ip_country = strtoupper($data['countryCode']); } } } } /* |---------------------------------------------------------------------- | 3. Match country |---------------------------------------------------------------------- */ $ip_country_names = [ 'AE' => 'United Arab Emirates', 'BH' => 'Bahrain', 'CA' => 'Canada', 'GB' => 'United Kingdom', 'IN' => 'India', 'KW' => 'Kuwait', 'OM' => 'Oman', 'PK' => 'Pakistan', 'QA' => 'Qatar', 'SA' => 'Saudi Arabia', 'US' => 'United States' ]; if ($ip_country && isset($ip_country_names[$ip_country])) { $detected_country = $ip_country_names[$ip_country]; if (isset($countries[$detected_country])) { $default_country = $detected_country; $default_code = $countries[$detected_country]['code']; } } /* |-------------------------------------------------------------------------- | Form Submit |-------------------------------------------------------------------------- */ if ($_SERVER['REQUEST_METHOD'] === 'POST') { if (!empty($_POST['website'])) { exit; } $first_name = trim($_POST['first_name'] ?? ''); $last_name = trim($_POST['last_name'] ?? ''); $email = trim($_POST['email'] ?? ''); $phone_code = trim($_POST['phone_code'] ?? ''); $phone = trim($_POST['phone'] ?? ''); $country = trim($_POST['country'] ?? ''); $state = trim($_POST['state'] ?? ''); $city = trim($_POST['city'] ?? ''); $course = trim($_POST['course_name'] ?? ''); $start_time = trim($_POST['start_course'] ?? ''); $message = trim($_POST['message'] ?? ''); $utm_source = trim($_POST['utm_source'] ?? ''); $utm_medium = trim($_POST['utm_medium'] ?? ''); $utm_campaign = trim($_POST['utm_campaign'] ?? ''); $start_course_ids = [ 'Immediately' => '2805', '1 Week' => '2807', '2 Weeks' => '2809', 'Not Sure' => '2811' ]; $course_ids = [ 'IMC Accredited Mentor Certification' => '1919', 'Professional Coach Certification Course' => '1921', 'NLP Certification Course' => '1923', 'Team Coach Certification Course' => '1925', 'Coaching for Corporate' => '1927', 'Mentor Coaching for ICF' => '1929' ]; $start_course_id = $start_course_ids[$start_time] ?? ''; $course_id = $course_ids[$course] ?? ''; $country_id = $country_ids[$country] ?? ''; if ( empty($first_name) || empty($last_name) || empty($email) || empty($phone) ) { $error_message = 'Please complete all required fields.'; } else { $subject = 'New Callback Request'; $email_body = " New Callback Request Name: {$first_name} {$last_name} Email: {$email} Phone: {$phone_code} {$phone} Country: {$country} State: {$state} City: {$city} Preferred Start: {$start_time} Course: {$course} Message: {$message} IP: {$_SERVER['REMOTE_ADDR']} "; $headers = []; $headers[] = "From: Website "; $headers[] = "Reply-To: {$email}"; $headers[] = "Content-Type: text/plain; charset=UTF-8"; if (!empty($bitrix_webhook_url)) { $bitrix_fields = [ 'NAME' => $first_name, 'LAST_NAME' => $last_name, 'SOURCE_ID' => '99498356', 'EMAIL' => [ [ 'VALUE' => $email, 'VALUE_TYPE' => 'WORK' ] ], 'PHONE' => [ [ 'VALUE' => trim($phone_code . ' ' . $phone), 'VALUE_TYPE' => 'WORK' ] ], 'ADDRESS_COUNTRY' => $country, 'UF_CRM_6E2324D6' => $country_id, 'UF_CRM_LEAD_1780652546921' => $state, 'ADDRESS_CITY' => $city, 'UF_CRM_1782405576174' => $start_course_id, 'UF_CRM_LEAD_1780472137324' => $course_id, 'COMMENTS' => $message, 'UTM_SOURCE' => $utm_source, 'UTM_MEDIUM' => $utm_medium, 'UTM_CAMPAIGN' => $utm_campaign ]; $ch = curl_init($bitrix_webhook_url); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query(['FIELDS' => $bitrix_fields])); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_exec($ch); curl_close($ch); } if (mail( $admin_email, $subject, $email_body, implode("\r\n", $headers) )) { $success_message = 'Thank you. We will contact you shortly.'; } else { $error_message = 'Unable to send your request.'; } } } ?>

Request a Callback

Our team will contact you shortly.

Book an Appointment