{"id":2057,"date":"2026-10-28T11:09:55","date_gmt":"2026-10-28T11:09:55","guid":{"rendered":"https:\/\/pdo.pt\/work-with-us\/"},"modified":"2026-11-13T11:50:14","modified_gmt":"2026-11-13T11:50:14","slug":"work-with-us","status":"publish","type":"page","link":"https:\/\/pdo.pt\/en\/work-with-us\/","title":{"rendered":"Work with us"},"content":{"rendered":"<div class=\"et_pb_section_0 et_pb_section et_section_regular et_flex_section preset--module--divi-section--vzip5hdaxh\">\n<div class=\"et_pb_row_0 et_pb_row et_flex_row preset--module--divi-row--2vd5kblilz\">\n<div class=\"et_pb_column_0 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_text_0 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><p>Working at Palha\u00e7os d'Opital<\/p>\n<\/div><\/div>\n\n<div class=\"et_pb_heading_0 et_pb_heading et_pb_module et_flex_module preset--module--divi-heading--default\"><div class=\"et_pb_heading_container\"><h1 class=\"et_pb_module_header\">Join our team<\/h1><\/div><\/div>\n\n<div class=\"et_pb_text_1 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><p data-pm-slice=\"1 1 []\"><span>Palha\u00e7os d\u2019Opital is a team of professional artists and of people who, behind the scenes, make every visit possible.<\/span><\/p>\n<p><span>If you have training or experience in the arts, or want to put your talents and skills at the service of our mission, we would like to meet you.<\/span><\/p>\n<p><strong><span>Join us and be part of a team that brings joy, art and humanity to those who need it most!<\/span><\/strong><\/p>\n<\/div><\/div>\n\n<div class=\"et_pb_module et_pb_button_module_wrapper et_pb_button_0_wrapper preset--module--divi-button--7sufuuf71s_wrapper\"><a class=\"et_pb_button_0 et_pb_button et_pb_bg_layout_light et_pb_module et_flex_module preset--module--divi-button--7sufuuf71s\" href=\"#formulario-candidatura\"><span class=\"et-pb-parallax-content\">Apply<\/span><\/a><\/div>\n<\/div>\n\n<div class=\"et_pb_column_1 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_image_0 et_pb_image et_pb_module et_flex_module\"><span class=\"et_pb_image_wrap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/equipa-PdO.jpg\" title=\"equipa-PdO\" width=\"1200\" height=\"887\" srcset=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/equipa-PdO.jpg 1200w, https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/equipa-PdO-980x724.jpg 980w, https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/equipa-PdO-480x355.jpg 480w\" sizes=\"(min-width: 0px) and (max-width: 480px) 480px, (min-width: 481px) and (max-width: 980px) 980px, (min-width: 981px) 1200px, 100vw\" class=\"wp-image-2058\" \/><\/span><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_1 et_pb_row et_flex_row preset--module--divi-row--default\">\n<div class=\"et_pb_column_2 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_heading_1 et_pb_heading et_pb_module et_flex_module preset--module--divi-heading--default\"><div class=\"et_pb_heading_container\"><h4 class=\"et_pb_module_header\">Artistic team<\/h4><\/div>\n<div class=\"et_pb_text_2 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><p>The Doutores d'Opital are professional actors, clowns and musicians who always visit partner hospitals in pairs. We do not work with volunteer artists, because the hospital environment requires preparation, sensitivity and regularity. Those who join the team receive specific training for the hospital setting and keep training throughout the year, with more than 250 hours annually.<\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_column_3 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_12_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_heading_2 et_pb_heading et_pb_module et_flex_module preset--module--divi-heading--default\"><div class=\"et_pb_heading_container\"><h4 class=\"et_pb_module_header\">Support team<\/h4><\/div>\n<div class=\"et_pb_text_3 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><p>Behind the visits there are people who take care of communication, management, funding applications, human resources and everything that keeps the organisation running. If your experience is in one of these areas, we would also like to hear from you.<\/p>\n<\/div><\/div>\n<\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_2 et_pb_row et_flex_row preset--module--divi-row--2vd5kblilz\">\n<div class=\"et_pb_column_4 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_text_4 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><p>Application process<\/p>\n<\/div><\/div>\n\n<div class=\"et_pb_text_5 et_pb_text et_pb_bg_layout_light et_pb_module et_flex_module\"><div class=\"et_pb_text_inner\"><h3>How it works.<\/h3>\n<\/div><\/div>\n\n<div class=\"et_pb_row_3 et_pb_row et_pb_row_nested et_flex_row preset--module--divi-row--default\">\n<div class=\"et_pb_column_5 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_6_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_blurb_0 et_pb_blurb et_pb_bg_layout_light et_pb_blurb_position_top et_pb_blurb_image_svg et_pb_module et_flex_module\"><div class=\"et_pb_blurb_content et_flex_module\"><div class=\"et_pb_main_blurb_image\"><span class=\"et_pb_image_wrap et_pb_only_image_mode_wrap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-1.svg\" width=\"48\" height=\"48\" srcset=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-1.svg 48w\" class=\"wp-image-651\" title=\"PdO 1 secondary\" \/><\/span><\/div><div class=\"et_pb_blurb_container\"><h4 class=\"et_pb_module_header\">Application<\/h4><div class=\"et_pb_blurb_description\"><p>Submit your application using the form on this page.<\/p>\n<\/div><\/div><\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_6 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_6_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_blurb_1 et_pb_blurb et_pb_bg_layout_light et_pb_blurb_position_top et_pb_blurb_image_svg et_pb_module et_flex_module\"><div class=\"et_pb_blurb_content et_flex_module\"><div class=\"et_pb_main_blurb_image\"><span class=\"et_pb_image_wrap et_pb_only_image_mode_wrap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-2.svg\" width=\"48\" height=\"48\" srcset=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-2.svg 48w\" class=\"wp-image-650\" title=\"PdO 2 secondary\" \/><\/span><\/div><div class=\"et_pb_blurb_container\"><h4 class=\"et_pb_module_header\">Review<\/h4><div class=\"et_pb_blurb_description\"><p>The management team reviews the application and, if relevant, keeps your details in a secure database.<\/p>\n<\/div><\/div><\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_7 et_pb_column et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_6_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_blurb_2 et_pb_blurb et_pb_bg_layout_light et_pb_blurb_position_top et_pb_blurb_image_svg et_pb_module et_flex_module\"><div class=\"et_pb_blurb_content et_flex_module\"><div class=\"et_pb_main_blurb_image\"><span class=\"et_pb_image_wrap et_pb_only_image_mode_wrap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-3.svg\" width=\"48\" height=\"48\" srcset=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-3.svg 48w\" class=\"wp-image-648\" title=\"PdO 3 secondary\" \/><\/span><\/div><div class=\"et_pb_blurb_container\"><h4 class=\"et_pb_module_header\">Contact<\/h4><div class=\"et_pb_blurb_description\"><p>If there is a suitable opportunity, we will get in touch for a conversation and, for artists, an audition.<\/p>\n<\/div><\/div><\/div><\/div>\n<\/div>\n\n<div class=\"et_pb_column_8 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_6_24 et_flex_column_12_24_tablet et_flex_column_24_24_phone\">\n<div class=\"et_pb_blurb_3 et_pb_blurb et_pb_bg_layout_light et_pb_blurb_position_top et_pb_blurb_image_svg et_pb_module et_flex_module\"><div class=\"et_pb_blurb_content et_flex_module\"><div class=\"et_pb_main_blurb_image\"><span class=\"et_pb_image_wrap et_pb_only_image_mode_wrap\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-4.svg\" width=\"48\" height=\"48\" srcset=\"https:\/\/pdo.pt\/wp-content\/uploads\/2026\/10\/PdO-4.svg 48w\" class=\"wp-image-649\" title=\"PdO 4 secondary\" \/><\/span><\/div><div class=\"et_pb_blurb_container\"><h4 class=\"et_pb_module_header\">Onboarding<\/h4><div class=\"et_pb_blurb_description\"><p>Once recruitment and selection are complete, onboarding begins. New members of the artistic team start with training for the hospital setting.<\/p>\n<\/div><\/div><\/div><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_code_0 et_pb_code et_pb_module\"><div class=\"et_pb_code_inner\"><dialog class=\"pdo-tdm-dialog\" id=\"pdo-tdm-dialog\" aria-labelledby=\"pdo-tdm-titulo\">\n  <div class=\"pdo-tdm-inner\">\n\n    <header class=\"pdo-tdm-head\">\n      <div class=\"pdo-tdm-head-text\">\n        <h2 class=\"pdo-tdm-title\" id=\"pdo-tdm-titulo\">The Palha\u00e7os d'Opital Theory of Change.<\/h2>\n <p class=\"pdo-tdm-sub\">From what we do to what we want to last. The map we follow, designed with MAGNA Consultores.<\/p>\n      <\/div>\n      <button type=\"button\" class=\"pdo-tdm-close\" aria-label=\"Fechar\"><\/button>\n    <\/header>\n\n    <div class=\"pdo-tdm-body\">\n\n      <div class=\"pdo-tdm-cols\">\n\n        <section class=\"pdo-tdm-col pdo-tdm-col--1\" aria-labelledby=\"pdo-tdm-c1\">\n          <span class=\"pdo-tdm-trace\" aria-hidden=\"true\"><\/span>\n          <h3 class=\"pdo-tdm-col-title\" id=\"pdo-tdm-c1\">What we do<\/h3>\n<span class=\"pdo-tdm-col-term\">Activities<\/span>\n <ul class=\"pdo-tdm-list\">\n <li>Regular visits by pairs of professional artists to hospital wards, with music and humour<\/li>\n <li>Moments of sharing with family members, companions and healthcare professionals<\/li>\n <li>Preparing each visit with the nursing teams<\/li>\n <li>Awareness activities on humanising care<\/li>\n <li>Recording and measuring what happens on each visit<\/li>\n <\/ul> \n          <span class=\"pdo-tdm-arrow\" aria-hidden=\"true\"><\/span>\n        <\/section>\n\n        <section class=\"pdo-tdm-col pdo-tdm-col--2\" aria-labelledby=\"pdo-tdm-c2\">\n          <span class=\"pdo-tdm-trace\" aria-hidden=\"true\"><\/span>\n          <h3 class=\"pdo-tdm-col-title\" id=\"pdo-tdm-c2\">During the visit<\/h3>\n<span class=\"pdo-tdm-col-term\">Outputs<\/span>\n <ul class=\"pdo-tdm-list\">\n <li>Regular visits and hours of artistic presence on the wards<\/li>\n <li>People in hospital, family members and healthcare professionals who share the moment<\/li>\n <li>Data recorded on each visit, to measure what changes<\/li>\n <\/ul> \n          <span class=\"pdo-tdm-arrow\" aria-hidden=\"true\"><\/span>\n        <\/section>\n\n        <section class=\"pdo-tdm-col pdo-tdm-col--3\" aria-labelledby=\"pdo-tdm-c3\">\n          <span class=\"pdo-tdm-trace\" aria-hidden=\"true\"><\/span>\n          <h3 class=\"pdo-tdm-col-title\" id=\"pdo-tdm-c3\">Over the following days<\/h3>\n<span class=\"pdo-tdm-col-term\">Outcomes<\/span>\n <ul class=\"pdo-tdm-list\">\n <li>People in hospital feel more cheerful and in better spirits<\/li>\n <li>Healthcare teams with less stress and a lighter working environment<\/li>\n <li>A more humane, less tense hospital environment<\/li>\n <li>Stronger social support around people in hospital<\/li>\n <\/ul> \n          <span class=\"pdo-tdm-arrow\" aria-hidden=\"true\"><\/span>\n        <\/section>\n\n        <section class=\"pdo-tdm-col pdo-tdm-col--4\" aria-labelledby=\"pdo-tdm-c4\">\n          <span class=\"pdo-tdm-trace\" aria-hidden=\"true\"><\/span>\n          <h3 class=\"pdo-tdm-col-title\" id=\"pdo-tdm-c4\">What lasts<\/h3>\n<span class=\"pdo-tdm-col-term\">Impacts<\/span>\n <ul class=\"pdo-tdm-list\">\n <li>A more humane culture of care<\/li>\n <li>Art recognised as a complement to clinical care<\/li>\n <li>Calmer recoveries (indirect contribution)<\/li>\n <li>Less isolation during hospital stays<\/li>\n <li>A model that can be replicated<\/li>\n <\/ul> \n        <\/section>\n\n      <\/div>\n\n      <section class=\"pdo-tdm-base\" aria-labelledby=\"pdo-tdm-b\">\n        <h3 class=\"pdo-tdm-base-title\" id=\"pdo-tdm-b\">What makes this possible<\/h3>\n <ul class=\"pdo-tdm-base-list\">\n <li>Professional artists with specific training for hospitals<\/li>\n <li>Hospitals open to collaboration<\/li>\n <li>Stable funding<\/li>\n <\/ul>\n <ul class=\"pdo-tdm-pills\">\n <li>SDG 3 Good Health and Well-being<\/li>\n <li>SDG 10 Reduced Inequalities<\/li>\n <\/ul> \n      <\/section>\n\n      <p class=\"pdo-tdm-foot\">Developed with MAGNA Consultores, 2026.<\/p>\n\n    <\/div>\n  <\/div>\n<\/dialog>\n\n<script>\n(function () {\n  var dialog = document.getElementById('pdo-tdm-dialog');\n  if (!dialog || typeof dialog.showModal !== 'function') return;\n\n  var closeBtn = dialog.querySelector('.pdo-tdm-close');\n  var HASH = '#teoria-da-mudanca';\n  var LOCK = 'pdo-tdm-lock';\n  var opener = null;\n\n  function openModal(from) {\n    if (dialog.open) return;\n    opener = from || document.activeElement;\n    document.documentElement.classList.add(LOCK);\n    dialog.showModal();\n    dialog.scrollTop = 0;\n    closeBtn.focus();\n    if (location.hash !== HASH) history.replaceState(null, '', HASH);\n  }\n\n  \/\/ Fecha com X, Esc e clique fora: tudo acaba neste evento.\n  dialog.addEventListener('close', function () {\n    document.documentElement.classList.remove(LOCK);\n    if (location.hash === HASH) history.replaceState(null, '', location.pathname + location.search);\n    if (opener && typeof opener.focus === 'function') opener.focus();\n    opener = null;\n  });\n\n  closeBtn.addEventListener('click', function () { dialog.close(); });\n\n  \/\/ Clique no backdrop: fora da \u00e1rea do painel.\n  dialog.addEventListener('click', function (e) {\n    var r = dialog.getBoundingClientRect();\n    var fora = e.clientX < r.left || e.clientX > r.right || e.clientY < r.top || e.clientY > r.bottom;\n    if (fora) dialog.close();\n  });\n\n  \/\/ Bot\u00e3o do Divi (ID no wrapper, link no <a>). Em captura, para o scroll de \u00e2ncoras do Divi n\u00e3o interferir.\n  document.addEventListener('click', function (e) {\n    var alvo = e.target.closest && e.target.closest('#pdo-tdm-abrir, a[href=\"' + HASH + '\"]');\n    if (!alvo) return;\n    e.preventDefault();\n    e.stopPropagation();\n    openModal(alvo.closest('a, button') || alvo);\n  }, true);\n\n  \/\/ P\u00e1gina aberta j\u00e1 com #teoria-da-mudanca no URL.\n  function porHash() { if (location.hash === HASH) openModal(null); }\n  window.addEventListener('hashchange', porHash);\n  porHash();\n})();\n<\/script>\n<\/div><\/div>\n<\/div>\n<\/div>\n\n<div class=\"et_pb_row_4 et_pb_row et_flex_row preset--module--divi-row--2vd5kblilz\" id=\"formulario-candidatura\">\n<div class=\"et_pb_column_9 et_pb_column et-last-child et_flex_column et_pb_css_mix_blend_mode_passthrough et_flex_column_24_24 et_flex_column_24_24_tablet et_flex_column_24_24_phone\">\n<div class=\"de_form_builder_form_0 de_form_builder_form de_fb_form et_pb_contact de_fb_mid_de-form-builderform-0 has-hide-until-loaded et_pb_module et_flex_module\"><form method=\"POST\" enctype=\"multipart\/form-data\" action=\"\" id=\"fb_form_2057-1\" class=\"et_pb_contact fb_form   hide_until_loaded \"  aria-label=\"Contact form\" data-ajax-btn=\"Sending...\" data-ajax-hide-sub=\"on\" data-reset-form-on-submit=\"false\" data-scrollto-form-after-submit=\"on\" data-scrollto-form-offset=\"0px\" data-form-key=\"2057-1\" data-form-id=\"candidatura_pdo\" data-form-type=\"contact\" data-auto-login=\"off\" data-unique-id=\"candidatura_pdo\" data-page-id=\"2057\" style=\"display: none;\"><h2 class=\"form-title\">Contact form<\/h2><div class=\"divi-form-wrapper\"><div class=\"dfb-form-fields et_flex_row\" style=\"flex-wrap:wrap;\">\n<div class=\"de_form_builder_form_field_0 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_nome_completo_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_nome_completo_label\" >\n        <label id=\"de_fb_nome_completo_label\" for=\"de_fb_nome_completo\" class=\"field_label label_position_top\">Full name <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"input\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Full name\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_nome_completo\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_nome_completo\"\/>                    \t\t\n\n\t\t<input type=\"text\"  name=\"de_fb_nome_completo\" id=\"de_fb_nome_completo\" data-calc_default=\"0\" placeholder=\"First and last name\"   class=\"divi-form-builder-field input-field \" required value=\"\"  data-msg-required=\"This field is required.\" data-required_position=\"bottom\" autocomplete=\"on\" aria-required=\"true\" \/>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_1 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_email_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_email_label\" >\n        <label id=\"de_fb_email_label\" for=\"de_fb_email\" class=\"field_label label_position_top\">Email <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"email\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Email\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_email\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_email\"\/>                    \t\t\n\n\t\t<input type=\"email\"  name=\"de_fb_email\" id=\"de_fb_email\"  placeholder=\"mail@example.com\"   class=\"divi-form-builder-field input-field \" required value=\"\"  data-msg-required=\"This field is required.\" data-required_position=\"bottom\" data-msg-email=\"Please input correct email address.\" autocomplete=\"on\" aria-required=\"true\" \/>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_2 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_telefone_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_telefone_label\" >\n        <label id=\"de_fb_telefone_label\" for=\"de_fb_telefone\" class=\"field_label label_position_top\">Phone <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"input\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Phone\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_telefone\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_telefone\"\/>                    \t\t\n\n\t\t<input type=\"text\"  name=\"de_fb_telefone\" id=\"de_fb_telefone\" data-calc_default=\"0\" placeholder=\"+351 912 345 678\"   class=\"divi-form-builder-field input-field \" required value=\"\"  data-msg-required=\"This field is required.\" data-required_position=\"bottom\" autocomplete=\"on\" aria-required=\"true\" \/>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_3 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_localidade_residencia_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_localidade_residencia_label\" >\n        <label id=\"de_fb_localidade_residencia_label\" for=\"de_fb_localidade_residencia\" class=\"field_label label_position_top\">District of residence <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"select\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"District of residence\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_localidade_residencia\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_localidade_residencia\"\/>                    <select class=\"divi-form-builder-field select-field et_pb_contact_select \" required  name=\"de_fb_localidade_residencia\" data-field_type=\"select\" data-msg-required=\"This field is required.\" id=\"de_fb_localidade_residencia\" aria-required=\"true\">\n\t\t<option value=\"\" disabled selected>-- Select district --<\/option>\n\t\t<option value=\"Aveiro\" >Aveiro<\/option><option value=\"Beja\" >Beja<\/option><option value=\"Braga\" >Braga<\/option><option value=\"Bragan\u00e7a\" >Bragan\u00e7a<\/option><option value=\"Castelo Branco\" >Castelo Branco<\/option><option value=\"Coimbra\" >Coimbra<\/option><option value=\"\u00c9vora\" >\u00c9vora<\/option><option value=\"Faro\" >Faro<\/option><option value=\"Guarda\" >Guarda<\/option><option value=\"Leiria\" >Leiria<\/option><option value=\"Lisboa\" >Lisbon<\/option><option value=\"Portalegre\" >Portalegre<\/option><option value=\"Porto\" >Porto<\/option><option value=\"Santar\u00e9m\" >Santar\u00e9m<\/option><option value=\"Set\u00fabal\" >Set\u00fabal<\/option><option value=\"Viana do Castelo\" >Viana do Castelo<\/option><option value=\"Vila Real\" >Vila Real<\/option><option value=\"Viseu\" >Viseu<\/option><option value=\"R.A. A\u00e7ores\" >Azores<\/option><option value=\"R.A. Madeira\" >Madeira<\/option>\n\t\t<\/select>                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_4 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone dfb_radio_default file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_area_candidatura_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_area_candidatura_label\" >\n        <label id=\"de_fb_area_candidatura_label\" for=\"de_fb_area_candidatura\" class=\"field_label label_position_top\">Application area <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"radio\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Application area\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_area_candidatura\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_area_candidatura\"\/>                    \t<span class=\"et_pb_contact_field_options_wrapper\">\n\t\t<span class=\"et_pb_contact_field_options_list required\" data-required_message=\"This field is required.\" data-required_position=\"bottom\">\n\t\t\t\t\t\t<span class=\"et_pb_contact_field_radio et_pb_contact_field_checkbox\">\n\t\t\t\t<input type=\"radio\" id=\"et_pb_contact_de_fb_area_candidatura_radio_1_0\" class=\"divi-form-builder-field radio-field\" name=\"de_fb_area_candidatura\" value=\"Equipa Art\u00edstica\" data-id=\"Equipa Art\u00edstica\">\n\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_area_candidatura_radio_1_0\">\n\t\t\t\t\t<i><\/i>\n\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t<span>Artistic team<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t<\/label>\n\t\t\t<\/span>\n\t\t\t\t\t\t<span class=\"et_pb_contact_field_radio et_pb_contact_field_checkbox\">\n\t\t\t\t<input type=\"radio\" id=\"et_pb_contact_de_fb_area_candidatura_radio_1_1\" class=\"divi-form-builder-field radio-field\" name=\"de_fb_area_candidatura\" value=\"Equipa de Suporte\" data-id=\"Equipa de Suporte\">\n\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_area_candidatura_radio_1_1\">\n\t\t\t\t\t<i><\/i>\n\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t<span>Support team<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/span>\n\t\t\t\t<\/label>\n\t\t\t<\/span>\n\t\t\t\t\t<\/span>\n\t<\/span>\n\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_5 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone dfb_radio_default file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_subareas_candidatura_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_subareas_candidatura_label\"  data-conditional-logic=\"[[&quot;de_fb_area_candidatura&quot;,&quot;is&quot;,&quot;Support team&quot;]]\" data-conditional-relation=\"all\">\n        <label id=\"de_fb_subareas_candidatura_label\" for=\"de_fb_subareas_candidatura\" class=\"field_label label_position_top\">Application sub-area(s) <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"checkbox\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Application sub-area(s)\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_subareas_candidatura\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_subareas_candidatura\"\/>                    <span class=\"et_pb_contact_field_options_wrapper\">\n\t\t\t<span class=\"et_pb_contact_field_options_list required\"  data-required_message=\"This field is required.\" data-required_position=\"bottom\"><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_subareas_candidatura_1_0\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_subareas_candidatura[]\" value=\"Comunica\u00e7\u00e3o\" data-id=\"Comunica\u00e7\u00e3o\" required aria-required=\"true\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_subareas_candidatura_1_0\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Communication<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_subareas_candidatura_1_1\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_subareas_candidatura[]\" value=\"Candidaturas e fundraising\" data-id=\"Candidaturas e fundraising\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_subareas_candidatura_1_1\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Funding applications and fundraising<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_subareas_candidatura_1_2\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_subareas_candidatura[]\" value=\"Recursos humanos\" data-id=\"Recursos humanos\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_subareas_candidatura_1_2\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Human resources<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_subareas_candidatura_1_3\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_subareas_candidatura[]\" value=\"Gest\u00e3o e administra\u00e7\u00e3o\" data-id=\"Gest\u00e3o e administra\u00e7\u00e3o\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_subareas_candidatura_1_3\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Management and administration<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_subareas_candidatura_1_4\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_subareas_candidatura[]\" value=\"Outra\" data-id=\"Outra\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_subareas_candidatura_1_4\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Other<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><\/span>\n\t\t<\/span>                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_6 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_1_2 et_flex_column_12_24 et_pb_column grid_et_pb_column_1_2_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone dfb_radio_default file_align_left et_pb_module et_flex_column_24_24\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_valencias_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"50\" role=\"group\" aria-labelledby=\"de_fb_valencias_label\"  data-conditional-logic=\"[[&quot;de_fb_area_candidatura&quot;,&quot;is&quot;,&quot;Artistic team&quot;]]\" data-conditional-relation=\"any\">\n        <label id=\"de_fb_valencias_label\" for=\"de_fb_valencias\" class=\"field_label label_position_top\">Skills <span class=\"de_fb_required\">*<\/span><\/label>                            <p class=\"et_pb_contact_field\" data-type=\"checkbox\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Skills\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_valencias\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_valencias\"\/>                    <span class=\"et_pb_contact_field_options_wrapper\">\n\t\t\t<span class=\"et_pb_contact_field_options_list required\"  data-required_message=\"This field is required.\" data-required_position=\"bottom\"><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_valencias_2_0\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_valencias[]\" value=\"Clown\" data-id=\"Clown\" required aria-required=\"true\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_valencias_2_0\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Clown<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_valencias_2_1\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_valencias[]\" value=\"Teatro\" data-id=\"Teatro\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_valencias_2_1\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Theatre<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_valencias_2_2\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_valencias[]\" value=\"M\u00fasica\" data-id=\"M\u00fasica\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_valencias_2_2\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Music<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_valencias_2_3\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_valencias[]\" value=\"Outra\" data-id=\"Outra\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_valencias_2_3\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>Other<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><\/span>\n\t\t<\/span>                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_7 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_experiencia_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" aria-labelledby=\"de_fb_experiencia_label\"  data-conditional-logic=\"[[&quot;de_fb_area_candidatura&quot;,&quot;is&quot;,&quot;Artistic team&quot;]]\" data-conditional-relation=\"any\">\n        <label id=\"de_fb_experiencia_label\" for=\"de_fb_experiencia\" class=\"field_label label_position_top\">Experience in hospital or social settings, or with older people<\/label>                            <p class=\"et_pb_contact_field\" data-type=\"text\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Experience in hospital or social settings, or with older people\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_experiencia\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_experiencia\"\/>                    \t\t<textarea name=\"de_fb_experiencia\" id=\"de_fb_experiencia\" class=\"divi-form-builder-field textarea-field\"  placeholder=\"\" rows=\"8\"   autocomplete=\"on\"><\/textarea>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_8 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_perfil_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" aria-labelledby=\"de_fb_perfil_label\"  data-conditional-logic=\"[[&quot;de_fb_area_candidatura&quot;,&quot;is&quot;,&quot;Artistic team&quot;]]\" data-conditional-relation=\"any\">\n        <label id=\"de_fb_perfil_label\" for=\"de_fb_perfil\" class=\"field_label label_position_top\">Portfolio, video, social media or website<\/label>                            <p class=\"et_pb_contact_field\" data-type=\"url\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Portfolio, video, social media or website\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_perfil\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_perfil\"\/>                    \t\t\n\n\t\t<input type=\"text\" inputmode=\"url\" name=\"de_fb_perfil\" id=\"de_fb_perfil\"  placeholder=\"\"   class=\"divi-form-builder-field input-field \"  value=\"\"  data-rule-url=\"true\" data-msg-url=\"Please enter a valid URL\" autocomplete=\"on\" \/>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_9 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_motivacao_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" aria-labelledby=\"de_fb_motivacao_label\" >\n        <label id=\"de_fb_motivacao_label\" for=\"de_fb_motivacao\" class=\"field_label label_position_top\">Why do you want to be part of Palha\u00e7os d&#039;Opital?<\/label>                            <p class=\"et_pb_contact_field\" data-type=\"text\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Why do you want to be part of Palha\u00e7os d&#039;Opital?\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_motivacao\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_motivacao\"\/>                    \t\t<textarea name=\"de_fb_motivacao\" id=\"de_fb_motivacao\" class=\"divi-form-builder-field textarea-field\"  placeholder=\"\" rows=\"8\"   autocomplete=\"on\"><\/textarea>\n\t\t                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_10 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_cv_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" >\n                                    <p class=\"et_pb_contact_field\" data-type=\"file\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"CV\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_cv\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_cv\"\/>                    <span id=\"de_fb_cv_fileupload\" class=\"dfb_file_upload_container required\"  data-required_message=\"This field is required.\" data-required_position=\"bottom\" data-single=\"on\">\n\t<span class=\"dropzone fade well upload_field file_upload_wrapper\" id=\"dropzone_de_fb_cv\">\n\t\t<span id=\"de_fb_cv_result\" class=\"image_upload_result\">\n\t\t\t<span class=\"upload_icon\">\n\n\t\t<svg id=\"file_upload\" enable-background=\"new 0 0 483.246 483.246\" viewBox=\"0 0 483.246 483.246\" width=\"0\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><g><g id=\"icon_68_\"><path class=\"primary\" d=\"m424.914 143.074v249.748c.008 1.697-.174 3.389-.542 5.045l-1.621 5.404c-4.026 9.237-13.167 15.189-23.243 15.134h-374.098c-11.723-.033-21.911-8.059-24.687-19.448-.516-2.003-.758-4.067-.719-6.135v-306.177c-.023-12.02 9.703-21.783 21.723-21.805h.083 111.249c7.769.027 14.952 4.133 18.918 10.814l26.308 45.591h224.995c12 .052 21.686 9.822 21.634 21.823z\" \/><path class=\"secondary\" d=\"m461.206 180.939c12.173.001 22.041 9.869 22.04 22.042 0 2.193-.328 4.373-.971 6.47l-57.915 188.416-1.621 5.404c-4.026 9.237-13.167 15.189-23.243 15.134h-374.086c-11.723-.033-21.911-8.059-24.687-19.448l60.701-202.33c2.801-9.306 11.368-15.68 21.086-15.688z\" \/><\/g><\/g><\/svg>\n\t\t\t<\/span>\n\t\t<\/span>\n\t\t<span class=\"upload_desc drop-description\">Drag your CV here or choose a file (max. 5 MB)<\/span>\n\t\t\t\t\t\t<input name=\"file_de_fb_cv[]\" id=\"de_fb_cv\" type=\"file\" class=\"upload_field df-image divi-form-builder-field\" title=\"No file chosen\" aria-label=\"CV\" \/>\n\t<\/span>\n\t\t<input name=\"de_fb_cv\" type=\"hidden\" id=\"de_fb_cv_value\" value=\"\"\/>\n\t<span class=\"file_preview_container files\"><\/span>\t\t          \t\n<\/span>\n\n\t<script id=\"template-upload-de_fb_cv\" type=\"text\/x-tmpl\">\n      \t{% for (var i=0, file; file=o.files[i]; i++) { %}\n          \t<div class=\"file_upload_item template-upload fade{%=o.options.loadImageFileTypes.test(file.type)?' image':''%}\">\n\t\t\t\t<div class=\"file_upload_item_cont\">\n\t\t\t\t\t\t\t\t\t\t<div class=\"preview_image_cont\">\n\t\t\t\t\t\t<span class=\"preview preview_image\"><\/span>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t<div class=\"preview_content\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"name preview_name\">{%=file.name%}<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"upload_size size\">Processing...<\/span>\n\t\t\t\t\t\t\t\t\t\t\t\t<strong class=\"error text-danger\"><\/strong>\n\t\t\t\t\t\t\t\t\t\t\t\t\t<span class=\"progress progress-striped active\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-valuenow=\"0\"><span class=\"progress-bar progress-bar-success\" style=\"width:0%;\"><\/span><\/span>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<button class=\"btn btn-primary start\" style=\"display:none;\"><\/button>\n\t\t\t\t\t<a class=\"btn btn-warning cancel remove_upload\">\n\t\t\t\t\t\t<i class=\"\"><\/i>\n\t\t\t\t\t<\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n      {% } %}\n    <\/script>\n<script>\njQuery(document).ready(function($){\n\tfunction deFbAppendUploadIds_de_fb_cv(newIds) {\n\t\tvar $input = jQuery('#de_fb_cv_value');\n\t\tvar ids = $input.val() ? $input.val().split(',') : [];\n\t\tids = ids.map(function(id) { return String(id).trim(); }).filter(Boolean);\n\t\tjQuery.each(newIds, function(i, id) {\n\t\t\tid = String(id).trim();\n\t\t\tif (id && ids.indexOf(id) === -1) {\n\t\t\t\tids.push(id);\n\t\t\t}\n\t\t});\n\t\t$input.val(ids.join(','));\n\t}\n\n\tfunction deFbResetUploadBatchIfComplete_de_fb_cv($uploadParent) {\n\t\tvar prevFilecnt = parseInt($uploadParent.attr('data-filecnt'), 10) || 0;\n\t\tvar prevUploaded = parseInt($uploadParent.attr('data-uploadedcnt'), 10) || 0;\n\t\tvar prevFailed = parseInt($uploadParent.attr('data-uploadfailcnt'), 10) || 0;\n\t\tif (prevFilecnt > 0 && (prevUploaded + prevFailed) >= prevFilecnt) {\n\t\t\t$uploadParent.attr('data-filecnt', 0);\n\t\t\t$uploadParent.attr('data-uploadedcnt', 0);\n\t\t\t$uploadParent.attr('data-uploadfailcnt', 0);\n\t\t}\n\t}\n\n\tfunction deFbFinalizeUploadBatch_de_fb_cv($fileuploadSpan) {\n\t\tvar $parent = $fileuploadSpan.parent();\n\t\tvar filecnt = parseInt($parent.attr('data-filecnt'), 10) || 0;\n\t\tvar uploadedcnt = parseInt($parent.attr('data-uploadedcnt'), 10) || 0;\n\t\tvar failcnt = parseInt($parent.attr('data-uploadfailcnt'), 10) || 0;\n\n\t\tif ((uploadedcnt + failcnt) < filecnt) {\n\t\t\treturn;\n\t\t}\n\n\t\tvar $form = $fileuploadSpan.closest('form');\n\t\t$form.removeClass('submitting');\n\n\t\tif (failcnt > 0) {\n\t\t\t$parent.attr('data-uploaded', 'false');\n\t\t\t$form.find('.divi-form-submit').prop('disabled', false).removeAttr('disabled');\n\t\t\treturn;\n\t\t}\n\n\t\t$parent.attr('data-uploaded', 'true');\n\n\t\tvar all_uploaded = true;\n\t\t$form.find('.et_pb_contact_field[data-type=\"image\"], .et_pb_contact_field[data-type=\"file\"]').each(function(){\n\t\t\tif (jQuery(this).attr('data-uploaded') == \"false\"){\n\t\t\t\tall_uploaded = false;\n\t\t\t}\n\t\t});\n\n\t\tif (all_uploaded == true){\n\t\t\tif ($form.find('.divi-form-submit').hasClass('de_fb_ajax_submit')) {\n\t\t\t\tde_fb_ajax_form_submit($form[0]);\n\t\t\t} else {\n\t\t\t\tde_fb_submit_with_fresh_nonce($form[0]);\n\t\t\t}\n\t\t}\n\t}\n\n\tjQuery('#de_fb_cv_fileupload').fileupload({\n        url: 'https:\/\/pdo.pt\/wp-admin\/admin-ajax.php',\n        dataType: 'json',\n        dropZone: jQuery('#dropzone_de_fb_cv'),\n        autoUpload: false,\n        acceptFileTypes: \/(\\.|\\\/)(pdf|csv|docx)$\/i,\n        maxFileSize: 5242880,\n        disableImageResize: \/Android(?!.*Chrome)|Opera\/\n            .test(window.navigator.userAgent),\n        previewMaxWidth: 100,\n        previewMaxHeight: 100,\n\t\timageMaxWidth: null,\n\t\timageMaxHeight: null,\n        sequentialUploads: true,\n        singleFileUploads:true,\n        previewCanvas: false,\t\n\t\tmaxNumberOfFiles:1,\t\tloadImageFileTypes: \/^image\\\/(gif|jpeg|png|webp)$\/,\n        uploadTemplateId: 'template-upload-de_fb_cv',\n        downloadTemplateId:'',\n        done: function(e, data) {\n        \t\/\/ Keep upload previews visible; an empty download template would remove them.\n        \tvar files = (data.result && data.result.files) ? data.result.files : [];\n        \tif (data.context) {\n        \t\tdata.context.each(function(index) {\n        \t\t\tvar $row = jQuery(this);\n        \t\t\tvar file = files[index] || {};\n        \t\t\t$row.removeClass('processing');\n        \t\t\t$row.find('.progress').removeClass('active');\n        \t\t\tif (file.error) {\n        \t\t\t\t$row.addClass('error');\n        \t\t\t\t$row.find('.error.text-danger').text(file.error);\n        \t\t\t} else {\n        \t\t\t\t$row.addClass('upload-complete');\n        \t\t\t}\n        \t\t});\n        \t}\n        },\n        messages: {\n\t        maxNumberOfFiles: \"Maximum number of files exceeded.\",\n\t        acceptFileTypes: \"The file uploaded is not one of our accepted file types, please another version.\",\n\t        maxFileSize: \"The file uploaded exceeds the maximum file size allowed, please upload a smaller version.\",\n\t        minFileSize: \"File is too small\"\t    },\n        previewCrop: true,\n        formData: {'action':'de_fb_image_upload', 'fb_nonce': de_fb_obj.fb_nonce, 'uploadPolicy': 'eyJleHQiOiJwZGZ8Y3N2fGRvY3giLCJtYXgiOjUyNDI4ODAsImV4cCI6MTc5NDcyMDY0M30.4ee223d1f639a06733aefd8fe04b60edebb1e8fcbc356b92e79fb05d5fd557f1' },\n    }).on('fileuploadadd', function (e, data) {\n\t\tvar field_type = jQuery(this).closest('.et_pb_contact_field').data('type');\n\t\tvar $fileuploadSpan = jQuery(this);\n\n\t\tvar allowedMimeTypes = ['image\/jpeg', 'image\/png', 'image\/gif', 'image\/webp'];\n\t\tvar allowedExtensions = ['jpg', 'jpeg', 'png', 'gif', 'webp'];\n\t\tvar file = data.files[0];\n\t\tvar fileExtension = file.name.split('.').pop().toLowerCase();\n\n\t\t\/\/ Block dangerous double extensions (e.g. image.jpg.php), not dots in the base name (e.g. receipt.18.05.pdf).\n\t\tif (field_type == 'image' || field_type == 'file') {\n\t\t\tvar deFbDangerousExtensions = ['php','php3','php4','php5','php7','php8','phtml','phar','cgi','pl','asp','aspx','jsp','exe','sh','bash','htaccess'];\n\t\t\tvar deFbBaseName = file.name.split(\/[\/\\\\]\/).pop().toLowerCase();\n\t\t\tvar deFbLastDot = deFbBaseName.lastIndexOf('.');\n\t\t\tvar deFbHasDangerousDoubleExt = false;\n\t\t\tif (deFbLastDot !== -1) {\n\t\t\t\tvar deFbFinalExt = deFbBaseName.substring(deFbLastDot + 1);\n\t\t\t\tif (deFbDangerousExtensions.indexOf(deFbFinalExt) !== -1) {\n\t\t\t\t\tdeFbHasDangerousDoubleExt = true;\n\t\t\t\t} else {\n\t\t\t\t\tvar deFbDoubleExtPattern = new RegExp('\\\\.([a-z0-9]{1,8})\\\\.(' + deFbDangerousExtensions.join('|') + ')$', 'i');\n\t\t\t\t\tdeFbHasDangerousDoubleExt = deFbDoubleExtPattern.test(deFbBaseName);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (deFbHasDangerousDoubleExt) {\n\t\t\t\t\/\/ Reject the file and show error\n\t\t\t\tvar doubleExtMsg = \"File with double extension is not allowed for security reasons.\";\n\t\t\t\tfile.error = doubleExtMsg;\n\t\t\t\t\/\/ Prevent the file from being processed\n\t\t\t\tdata.files = [];\n\t\t\t\t\/\/ Show error message in the UI\n\t\t\t\tvar $fieldWrapper = jQuery(this).closest('.field_wrapper');\n\t\t\t\t$fieldWrapper.find('.upload-error').remove();\n\t\t\t\t$fieldWrapper.find('.dropzone').after('<div class=\"upload-error\" style=\"font-weight: bold; color: #dc3232; padding: 10px; margin-top: 10px;\">' + jQuery('<span\/>').text(doubleExtMsg).html() + '<\/div>');\n\t\t\t\tsetTimeout(function() {\n\t\t\t\t\t$fieldWrapper.find('.upload-error').fadeOut(function() {\n\t\t\t\t\t\tjQuery(this).remove();\n\t\t\t\t\t});\n\t\t\t\t}, 4000);\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\tif(field_type == 'image' || (field_type === 'file' && allowedExtensions.includes(fileExtension))){\n\t\t\t$(this).closest('.field_wrapper').find('.upload-error').remove();\n\t\t\tvar reader = new FileReader();\n\t\t\treader.onloadend = function () {\n\t\t\t\tvar arr = (new Uint8Array(reader.result)).subarray(0, 4);\n\t\t\t\tvar header = \"\";\n\t\t\t\tfor (var i = 0; i < arr.length; i++) {\n\t\t\t\t\theader += arr[i].toString(16);\n\t\t\t\t}\n\n\t\t\t\tvar realMime = \"unknown\";\n\t\t\t\tswitch (header) {\n\t\t\t\t\tcase \"89504e47\": realMime = \"image\/png\"; break;\n\t\t\t\t\tcase \"ffd8ffe0\":\n\t\t\t\t\tcase \"ffd8ffe1\":\n\t\t\t\t\tcase \"ffd8ffe2\":\n\t\t\t\t\tcase \"ffd8ffe3\":\n\t\t\t\t\tcase \"ffd8ffe8\": realMime = \"image\/jpeg\"; break;\n\t\t\t\t\tcase \"47494638\": realMime = \"image\/gif\"; break;\n\t\t\t\t\tcase \"52494646\": realMime = \"image\/webp\"; break;\n\t\t\t\t\tdefault: realMime = \"invalid\"; break;\n\t\t\t\t}\n\n\t\t\t\tif (!allowedMimeTypes.includes(realMime)) {\n\t\t\t\t\tdata.files[0] = [];\n\t\t\t\t\treturn false; \n\t\t\t\t}\n\t\t\t};\n\t\t\treader.readAsArrayBuffer(file.slice(0, 4));\n\t\t}\n\n    \tjQuery(this).parent().attr('data-uploaded', 'false');\n    \tvar $uploadParent = jQuery(this).parent();\n    \tdeFbResetUploadBatchIfComplete_de_fb_cv($uploadParent);\n    \tvar current_cnt = $uploadParent.attr('data-filecnt');\n    \tif (typeof current_cnt == 'undefined') {\n    \t\tcurrent_cnt = 1;\n    \t} else {\n    \t\tcurrent_cnt = parseInt(current_cnt) + 1;\n    \t}\n    \t$uploadParent.attr('data-filecnt', current_cnt);\n\n    \tvar _target = jQuery(e.target);\n    \tlet form_obj = _target.closest('.de_fb_form');\n    \tif (form_obj.find('form').hasClass('disable_submit_for_required')) {\n    \t\tlet required_fields= form_obj.find('.required');\n\t        let required_check = true;\n\t        let submit_btn = form_obj.find('.divi-form-submit');\n\t        if(required_fields.length > 0){\n\t            jQuery.each(required_fields,function (index,required_field){\n\t                if (!$(this).closest('.de_fb_form_field').hasClass('condition-hide')) {\n\t                    var field_type = jQuery(this).closest('.et_pb_contact_field').data('type');\n\t                    if ((field_type == 'checkbox' || field_type == 'radio') &&  jQuery(this).find('input:checked').length == 0) {\n\t                        required_check = false;\n\t                    }\n\n\t                    if ((field_type == 'file' || field_type == 'image') && ((typeof jQuery(this).parent().attr('data-filecnt') == 'undefined') || jQuery(this).parent().attr('data-filecnt') == \"0\" || jQuery(this).parent().attr('data-filecnt') == \"\")) {\n\t                        required_check = false;\n\t                    }\n\t                }\n\t            });\n\t        }\n\t        let form_el = form_obj.find('form');\n\t        let hide_submit = form_el.hasClass('hide_submit_for_required');\n\t        if (hide_submit) {\n\t            if (required_check == true) {\n\t                form_el.addClass('required-fields-complete');\n\t            } else {\n\t                form_el.removeClass('required-fields-complete');\n\t            }\n\t        } else if (required_check == true) {\n\t            submit_btn.removeAttr('disabled');\n\t        } else {\n\t            submit_btn.attr('disabled', true);\n\t        }\n    \t}\n\n\t\t\/\/ Clear required validation error when a valid file is selected (error disappears immediately).\n\t\tvar $contactField = $fileuploadSpan.closest('.et_pb_contact_field');\n\t\t$contactField.siblings('.error').each(function() {\n\t\t\tvar errId = jQuery(this).attr('id');\n\t\t\tif (errId) { $fileuploadSpan.closest('.et_pb_contact_field').parent().find('[aria-describedby=\"' + errId + '\"]').removeAttr('aria-describedby'); }\n\t\t});\n\t\t$contactField.siblings('.error').remove();\n\t\t$fileuploadSpan.removeAttr('aria-describedby');\n\n    \tjQuery(window).trigger('resize');\n\t\n\t\tif (typeof setFormHeight == 'function') {\n\t\t\tsetFormHeight();\n\t\t}\n\n\t}).on('fileuploaddone', function (e, data) {\n\t\n\tif (typeof setFormHeight == 'function') {\n\t\tsetFormHeight();\n\t}\n\n    \tvar $fileuploadSpan = jQuery(this);\n    \tvar $parent = $fileuploadSpan.parent();\n    \tvar $fieldWrapper = $fileuploadSpan.closest('.field_wrapper');\n    \tvar uploadHasError = false;\n    \tvar uploadErrorMessage = '';\n    \tif (!data.result || !data.result.files || !data.result.files.length) {\n    \t\tuploadHasError = true;\n    \t\tuploadErrorMessage = \"The file uploaded is not one of our accepted file types, please another version.\";\n    \t} else {\n    \t\tjQuery.each(data.result.files, function(inx, file) {\n    \t\t\tif (file && file.error) {\n    \t\t\t\tuploadHasError = true;\n    \t\t\t\tuploadErrorMessage = file.error;\n    \t\t\t}\n    \t\t});\n    \t}\n\n    \tif (uploadHasError) {\n    \t\tvar failcnt = parseInt($parent.attr('data-uploadfailcnt'), 10) || 0;\n    \t\t$parent.attr('data-uploadfailcnt', failcnt + 1);\n    \t\t$parent.attr('data-uploaded', 'false');\n    \t\tif (data.context) {\n    \t\t\tjQuery(data.context).addClass('error');\n    \t\t\tjQuery(data.context).find('.error.text-danger').text(uploadErrorMessage);\n    \t\t}\n    \t\t$fieldWrapper.find('.upload-error').remove();\n    \t\t$fieldWrapper.find('.dropzone').after('<div class=\"upload-error\" style=\"font-weight: bold; color: #dc3232; padding: 10px; margin-top: 10px;\">' + jQuery('<span\/>').text(uploadErrorMessage).html() + '<\/div>');\n    \t\tdeFbFinalizeUploadBatch_de_fb_cv($fileuploadSpan);\n    \t\tjQuery(window).trigger('resize');\n    \t\treturn;\n    \t}\n\n    \tvar uploaded_cnt = parseInt($parent.attr('data-uploadedcnt'), 10) || 0;\n    \tuploaded_cnt += 1;\n    \t$parent.attr('data-uploadedcnt', uploaded_cnt);\n\n    \tvar inserted_elem = jQuery(data.context);\n    \tvar inserted_num = inserted_elem.find('canvas').attr('data-insertnum');\n    \tif (jQuery(this).closest('.field_wrapper').find('.existing_image_preview').length > 0) {\n    \t\tjQuery(this).closest('.field_wrapper').find('.inserted_' + inserted_num).attr('data-id', data.result.files[0].attachment_id);\n    \t}\n    \tif (data.result && data.result.files && data.result.files[0] && data.result.files[0].uploadRemovalToken) {\n    \t\tjQuery(this).attr('data-upload-removal-token', data.result.files[0].uploadRemovalToken);\n    \t}\n\n    \tvar file_ids = [];\n    \tjQuery.each(data.result.files, function(inx, file) {\n    \t\tvar attId = '';\n    \t\tif (file) {\n    \t\t\tattId = (file.attachment_id != null ? file.attachment_id :\n    \t\t\t\t(file.attachmentId != null ? file.attachmentId :\n    \t\t\t\t(file.attachmentID != null ? file.attachmentID :\n    \t\t\t\t(file.id != null ? file.id :\n    \t\t\t\t(file.file_id != null ? file.file_id :\n    \t\t\t\t(file.media_id != null ? file.media_id : ''))))));\n    \t\t}\n    \t\tif (attId !== '' && attId !== null && typeof attId !== 'undefined') {\n    \t\t\tfile_ids.push(attId);\n    \t\t}\n    \t});\n\n    \t\/\/ Clear the native file input so AJAX submit does not re-post the binary file.\n    \t$fileuploadSpan.find( 'input[type=\"file\"]' ).val( '' );\n\n    \tif (jQuery(this).attr('data-single') == 'on') {\n    \t\t\/\/ Featured image \/ single file: replace the saved ID. Appending kept the old\n    \t\t\/\/ featured image first, so WordPress never applied the newly uploaded file.\n    \t\tjQuery('#de_fb_cv_value').val(file_ids.join(','));\n    \t} else if (file_ids.length > 0) {\n    \t\tdeFbAppendUploadIds_de_fb_cv(file_ids);\n\n\t    \tif (jQuery(this).closest('.field_wrapper').find('.existing_image_preview').length > 0) {\n\t    \t\tvar current_file_ids = [];\n\t    \t\tjQuery(this).closest('.field_wrapper').find('.existing_image_preview a.existing_image_preview_link').each(function(){\n\t    \t\t\tcurrent_file_ids.push(jQuery(this).attr('data-id'));\n\t    \t\t});\n\t    \t\tif (current_file_ids.length > 0) {\n\t    \t\t\tjQuery('#de_fb_cv_value').val(current_file_ids.join(','));\n\t    \t\t}\n\t    \t}\n    \t}\n\n        jQuery('#de_fb_cv_value').trigger('change');\n        if (typeof window.handle_fb_conditional_fields === 'function') {\n            window.handle_fb_conditional_fields();\n        }\n\n\t\tvar $contactFieldDone = $fileuploadSpan.closest('.et_pb_contact_field');\n\t\t$contactFieldDone.siblings('.error').each(function() {\n\t\t\tvar errId = jQuery(this).attr('id');\n\t\t\tif (errId) { $fileuploadSpan.closest('.et_pb_contact_field').parent().find('[aria-describedby=\"' + errId + '\"]').removeAttr('aria-describedby'); }\n\t\t});\n\t\t$contactFieldDone.siblings('.error').remove();\n\t\t$fileuploadSpan.removeAttr('aria-describedby');\n\n    \tdeFbFinalizeUploadBatch_de_fb_cv($fileuploadSpan);\n    \tjQuery(window).trigger('resize');\n\t\t\n    }).on('fileuploadprocessfail', function(e, data) {\n\n    \tvar _target = jQuery(e.target);\n\t\tlet form_obj = _target.closest('.de_fb_form');\n    \tif (data.files.error == true) {\n    \t\tvar error_elem = _target.find('.template-upload.processing');\n    \t\terror_elem.addClass('error');\n    \t\t\n    \t\t\/\/ Display the error message from the file object\n    \t\tif (data.files && data.files.length > 0) {\n    \t\t\t\/\/ Find the file with an error\n    \t\t\tfor (var i = 0; i < data.files.length; i++) {\n    \t\t\t\tif (data.files[i].error) {\n    \t\t\t\t\tvar error_msg_elem = error_elem.find('.error.text-danger');\n    \t\t\t\t\tif (error_msg_elem.length > 0) {\n    \t\t\t\t\t\terror_msg_elem.text(data.files[i].error);\n    \t\t\t\t\t}\n    \t\t\t\t\tbreak;\n    \t\t\t\t}\n    \t\t\t}\n    \t\t}\n    \t\t\n    \t\tjQuery(this).parent().attr('data-uploaded', 'false');\n\t    \tvar current_cnt = jQuery(this).parent().attr('data-filecnt');\n\t    \tcurrent_cnt = parseInt(current_cnt) - 1;\n\t    \tjQuery(this).parent().attr('data-filecnt', current_cnt);\n    \t\tsetTimeout(function() {\n    \t\t\terror_elem.remove();\n    \t\t\tif (_target.find('.files  .template-upload').length == 0) {\n    \t\t\t\t_target.closest('.et_pb_contact_field').removeAttr('data-uploaded');\n    \t\t\t\t\/\/ Re-show required error when last file is removed due to process failure.\n    \t\t\t\tvar $fileupload = _target;\n    \t\t\t\tif ($fileupload.hasClass('required')) {\n    \t\t\t\t\tvar $contactField = $fileupload.closest('.et_pb_contact_field');\n    \t\t\t\t\tvar valueVal = jQuery('#de_fb_cv_value').val();\n    \t\t\t\t\tif (!valueVal || valueVal === '') {\n    \t\t\t\t\t\tvar required_message = $fileupload.attr('data-required_message') || 'This field is required.';\n    \t\t\t\t\t\tvar required_message_pos = $fileupload.attr('data-required_position') || 'bottom';\n    \t\t\t\t\t\tvar inputId = $fileupload.attr('id');\n    \t\t\t\t\t\tvar errorId = inputId ? inputId + '_error' : null;\n    \t\t\t\t\t\tvar errorAttrs = errorId ? ' id=\"' + errorId + '\" role=\"alert\" aria-live=\"polite\"' : '';\n    \t\t\t\t\t\tif (errorId) { $fileupload.attr('aria-describedby', errorId); }\n    \t\t\t\t\t\tif (required_message_pos === 'top') {\n    \t\t\t\t\t\t\t$contactField.before('<p class=\"error\"' + errorAttrs + '>' + required_message + '<\/p>');\n    \t\t\t\t\t\t} else {\n    \t\t\t\t\t\t\t$contactField.after('<p class=\"error\"' + errorAttrs + '>' + required_message + '<\/p>');\n    \t\t\t\t\t\t}\n    \t\t\t\t\t}\n    \t\t\t\t}\n    \t\t\t}\n\t\t\t}, 4000);\n\n\t\t\tif (form_obj.find('form').hasClass('disable_submit_for_required')) {\n\t\t\t\tlet required_fields = form_obj.find('.required');\n\t\t\t\tlet required_check = true;\n\t\t\t\tlet submit_btn = form_obj.find('.divi-form-submit');\n\t\t\t\tif (required_fields.length > 0) {\n\t\t\t\t\tjQuery.each(required_fields, function(index, required_field) {\n\t\t\t\t\t\tif (!$(this).closest('.de_fb_form_field').hasClass('condition-hide')) {\n\t\t\t\t\t\t\tvar field_type = jQuery(this).closest('.et_pb_contact_field').data('type');\n\t\t\t\t\t\t\tif ((field_type == 'checkbox' || field_type == 'radio') && jQuery(this).find('input:checked').length == 0) {\n\t\t\t\t\t\t\t\trequired_check = false;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif ((field_type == 'file' || field_type == 'image') && ((typeof jQuery(this).parent().attr('data-filecnt') == 'undefined') || jQuery(this).parent().attr('data-filecnt') == \"0\" || jQuery(this).parent().attr('data-filecnt') == \"\")) {\n\t\t\t\t\t\t\t\trequired_check = false;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\t}\n\t\t\t\tlet form_el = form_obj.find('form');\n\t\t\t\tlet hide_submit = form_el.hasClass('hide_submit_for_required');\n\t\t\t\tif (hide_submit) {\n\t\t\t\t\tif (required_check == true) {\n\t\t\t\t\t\tform_el.addClass('required-fields-complete');\n\t\t\t\t\t} else {\n\t\t\t\t\t\tform_el.removeClass('required-fields-complete');\n\t\t\t\t\t}\n\t\t\t\t} else if (required_check == true) {\n\t\t\t\t\tsubmit_btn.removeAttr('disabled');\n\t\t\t\t} else {\n\t\t\t\t\tsubmit_btn.attr('disabled', true);\n\t\t\t\t}\n\t\t\t}\n    \t}\n    \t\n    \tjQuery(window).trigger('resize');\n    }).on('fileuploadfail', function(e, data){\n    \tvar _target = jQuery(e.target);\n    \tvar _clicked_elem = jQuery(data.context);\n    \tlet form_obj = _target.closest('.de_fb_form');\n    \tvar current_cnt = jQuery(this).parent().attr('data-filecnt');\n    \tcurrent_cnt = parseInt(current_cnt) - 1;\n    \tjQuery(this).parent().attr('data-filecnt', current_cnt);\n\n    \tif (jQuery(this).closest('.field_wrapper').find('.existing_image_preview').length > 0) {\n    \t\tvar insertedNum = _clicked_elem.find('canvas').attr('data-insertnum');\n    \t\tif (jQuery(this).attr('data-single') == 'on') {\n    \t\t\tjQuery(this).closest('.field_wrapper').find('.image-preview-cont img').each(function(){\n    \t\t\t\tjQuery(this).attr('src', jQuery(this).attr('data-src'));\n    \t\t\t});\n\t    \t} else {\n\t    \t\tjQuery(this).closest('.field_wrapper').find('.existing_image_preview a.inserted_' + insertedNum).remove();\n\t    \t}\n    \t}\n\n    \tif (form_obj.find('form').hasClass('disable_submit_for_required')) {\n    \t\tlet required_fields= form_obj.find('.required');\n\t        let required_check = true;\n\t        let submit_btn = form_obj.find('.divi-form-submit');\n\t        if(required_fields.length > 0){\n\t            jQuery.each(required_fields,function (index,required_field){\n\t                if (!$(this).closest('.de_fb_form_field').hasClass('condition-hide')) {\n\t                    var field_type = jQuery(this).closest('.et_pb_contact_field').data('type');\n\t                    if ((field_type == 'checkbox' || field_type == 'radio') &&  jQuery(this).find('input:checked').length == 0) {\n\t                        required_check = false;\n\t                    }\n\n\t                    if ((field_type == 'file' || field_type == 'image') && ((typeof jQuery(this).parent().attr('data-filecnt') == 'undefined') || jQuery(this).parent().attr('data-filecnt') == \"0\" || jQuery(this).parent().attr('data-filecnt') == \"\")) {\n\t                        required_check = false;\n\t                    }\n\t                }\n\t            });\n\t        }\n\t        let form_el = form_obj.find('form');\n\t        let hide_submit = form_el.hasClass('hide_submit_for_required');\n\t        if (hide_submit) {\n\t            if (required_check == true) {\n\t                form_el.addClass('required-fields-complete');\n\t            } else {\n\t                form_el.removeClass('required-fields-complete');\n\t            }\n\t        } else if (required_check == true) {\n\t            submit_btn.removeAttr('disabled');\n\t        } else {\n\t            submit_btn.attr('disabled', true);\n\t        }\n    \t}\n\n    \tjQuery(window).trigger('resize');\n    }).on('fileuploadprocessalways', function(e, data) {\n    \tvar _this = jQuery(this);\n    \tvar field_type = jQuery(this).closest('.et_pb_contact_field').data('type');\n    \tvar preview_image_width = '100px';\n    \tvar preview_image_height = '100px';\n    \t\/\/ var preview_bg_color = '';\n    \t\n    \t\/\/ Create file extension preview for file fields when file is not an image\n    \tif (field_type === 'file' && data.files && data.files.length > 0) {\n    \t\tjQuery.each(data.files, function(ind, file) {\n    \t\t\t\/\/ Check if this is not an image file\n    \t\t\tvar isImage = \/^image\\\/(gif|jpeg|png|jpg|webp|bmp|svg)\/i.test(file.type);\n    \t\t\tif (!isImage && !file.preview) {\n    \t\t\t\t\/\/ Function to create preview image\n    \t\t\t\tvar createFilePreview = function($previewImage) {\n    \t\t\t\t\tif (!$previewImage || $previewImage.length === 0) return;\n    \t\t\t\t\tif ($previewImage.find('img, canvas').length > 0 || !$previewImage.is('span')) return;\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Get file extension\n    \t\t\t\t\tvar fileExtension = file.name.split('.').pop().toLowerCase();\n    \t\t\t\t\tif (!fileExtension) fileExtension = 'file';\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Create canvas for file extension preview\n    \t\t\t\t\tvar canvas = document.createElement('canvas');\n    \t\t\t\t\tvar ctx = canvas.getContext('2d');\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Parse width and height, handle units like \"px\", \"em\", etc.\n    \t\t\t\t\tvar widthStr = preview_image_width.toString().replace(\/[^\\d.]\/g, '');\n    \t\t\t\t\tvar heightStr = preview_image_height.toString().replace(\/[^\\d.]\/g, '');\n    \t\t\t\t\tvar width = parseFloat(widthStr) || 100;\n    \t\t\t\t\tvar height = parseFloat(heightStr) || 100;\n    \t\t\t\t\t\n    \t\t\t\t\tcanvas.width = width;\n    \t\t\t\t\tcanvas.height = height;\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Set background color\n    \t\t\t\t\tctx.fillStyle = '#f0f0f0';\n    \t\t\t\t\tctx.fillRect(0, 0, width, height);\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Draw border\n    \t\t\t\t\tctx.strokeStyle = '#ddd';\n    \t\t\t\t\tctx.lineWidth = 1;\n    \t\t\t\t\tctx.strokeRect(0, 0, width, height);\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Draw file extension text\n    \t\t\t\t\tctx.fillStyle = '#666';\n    \t\t\t\t\tvar fontSize = Math.max(12, Math.min(width, height) * 0.2);\n    \t\t\t\t\tctx.font = 'bold ' + fontSize + 'px Arial';\n    \t\t\t\t\tctx.textAlign = 'center';\n    \t\t\t\t\tctx.textBaseline = 'middle';\n    \t\t\t\t\tctx.fillText(fileExtension.toUpperCase(), width \/ 2, height \/ 2);\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Apply styles to canvas (similar to how plugin handles image previews)\n    \t\t\t\t\tcanvas.style.width = preview_image_width;\n    \t\t\t\t\tcanvas.style.height = preview_image_height;\n    \t\t\t\t\tcanvas.style.maxWidth = '100%';\n    \t\t\t\t\tcanvas.style.display = 'block';\n    \t\t\t\t\tcanvas.className = 'preview preview_image';\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Append canvas directly to span (like image previews do)\n    \t\t\t\t\t$previewImage.append(canvas);\n    \t\t\t\t\t\n    \t\t\t\t\t\/\/ Store preview in file object for consistency (same as image previews)\n    \t\t\t\t\tfile.preview = canvas;\n    \t\t\t\t};\n    \t\t\t\t\n    \t\t\t\t\/\/ Try to use data.context first (more reliable)\n    \t\t\t\tif (data.context && jQuery(data.context).length > 0) {\n    \t\t\t\t\tvar $template = jQuery(data.context);\n    \t\t\t\t\tvar $previewImage = $template.find('.preview_image_cont .preview_image');\n    \t\t\t\t\tcreateFilePreview($previewImage);\n    \t\t\t\t} else {\n    \t\t\t\t\t\/\/ Fallback: Use setTimeout to ensure the template is rendered, then find by file name\n    \t\t\t\t\tsetTimeout(function() {\n    \t\t\t\t\t\t\/\/ Find all template-upload elements and match by file name\n    \t\t\t\t\t\tvar $fileUploadContainer = jQuery('#de_fb_cv_fileupload');\n    \t\t\t\t\t\tvar $templates = $fileUploadContainer.find('.template-upload');\n    \t\t\t\t\t\tvar fileProcessed = false;\n    \t\t\t\t\t\t\n    \t\t\t\t\t\t$templates.each(function() {\n    \t\t\t\t\t\t\tif (fileProcessed) return;\n    \t\t\t\t\t\t\t\n    \t\t\t\t\t\t\tvar $template = jQuery(this);\n    \t\t\t\t\t\t\tvar $previewName = $template.find('.preview_name');\n    \t\t\t\t\t\t\t\n    \t\t\t\t\t\t\t\/\/ Match template by file name (handle potential HTML encoding)\n    \t\t\t\t\t\t\tvar templateFileName = $previewName.length > 0 ? $previewName.text().trim() : '';\n    \t\t\t\t\t\t\tif (templateFileName === file.name || (templateFileName !== '' && file.name.indexOf(templateFileName) !== -1)) {\n    \t\t\t\t\t\t\t\tvar $previewImage = $template.find('.preview_image_cont .preview_image');\n    \t\t\t\t\t\t\t\tcreateFilePreview($previewImage);\n    \t\t\t\t\t\t\t\tif ($previewImage.find('img, canvas').length > 0) {\n    \t\t\t\t\t\t\t\t\tfileProcessed = true;\n    \t\t\t\t\t\t\t\t}\n    \t\t\t\t\t\t\t}\n    \t\t\t\t\t\t});\n    \t\t\t\t\t}, 100);\n    \t\t\t\t}\n    \t\t\t}\n    \t\t});\n    \t}\n    \t\n    \tif (jQuery(this).closest('.field_wrapper').find('.existing_image_preview').length > 0) {\n    \t\tif (jQuery(this).attr('data-single') == 'on') {\n    \t\t\tif (data.files[0].preview) {\n\t    \t\t\tvar canvas = data.files[0].preview;\n\t    \t\t\tvar random_num = Math.floor(Math.random() * 100) + 1;\n\t    \t\t\tjQuery(data.files[0].preview).attr('data-insertnum', random_num);\n\t    \t\t\tvar dataURL = canvas.toDataURL();\n\t    \t\t\tjQuery(this).closest('.field_wrapper').find('.image-preview-cont img').each(function(){\n\t    \t\t\t\tjQuery(this).attr('data-src', jQuery(this).attr('src'));\n\t    \t\t\t\tjQuery(this).attr('src', dataURL);\n\t    \t\t\t});\n    \t\t\t}    \t\t\t\n\t    \t} else {\n\t    \t\tif (data.files.length > 0) {\n\t    \t\t\tjQuery.each(data.files, function(ind, file){\n\t    \t\t\t\tif (data.files[ind].preview) {\n\t\t\t    \t\t\tvar canvas = data.files[ind].preview;\n\t\t\t    \t\t\tif (typeof jQuery(data.files[ind].preview).attr('data-insertnum') == 'undefined') {\n\t\t\t    \t\t\t\tvar random_num = Math.floor(Math.random() * 100) + 1;\n\t\t\t\t    \t\t\tjQuery(data.files[ind].preview).attr('data-insertnum', random_num);\n\t\t\t\t    \t\t\tvar dataURL = canvas.toDataURL();\n\t\t\t\t    \t\t\tvar t_width = _this.closest('.field_wrapper').find('.image-preview-cont').find('img').eq(0).width();\n\t\t\t\t    \t\t\t_this.closest('.field_wrapper').find('.image-preview-cont').append('<a class=\"existing_image_preview_link existing_file_link ui-sortable-handle inserted inserted_' + random_num + '\" href=\"' + dataURL + '\" target=\"_blank\"><img decoding=\"async\" class=\"no-lazy\" style=\"max-width: 200px;width:' + t_width + 'px;\" src=\"' + dataURL + '\" title=\"Uploaded Image Preview\"><\/a>');\n\t\t\t    \t\t\t}\n\t\t    \t\t\t}\n\t    \t\t\t});\n\t    \t\t}\n\t    \t}\n    \t}\n\n\t\tsetTimeout(function() {\n\t\t\tif (typeof setFormHeight == 'function') {\n\t\t\t\tsetFormHeight();\n\t\t\t}\n\t\t}, 1000);\n\n    });\n\n\t\/\/ Re-show required validation error when user removes all files (cancel\/remove_upload).\n\tjQuery('#de_fb_cv_fileupload').on('click', '.remove_upload, .cancel', function() {\n\t\tvar $fileupload = jQuery('#de_fb_cv_fileupload');\n\t\tsetTimeout(function() {\n\t\t\tif (!$fileupload.hasClass('required')) return;\n\t\t\tif ($fileupload.find('.files .template-upload').length > 0) return;\n\t\t\tif (jQuery('#de_fb_cv_value').val() !== '') return;\n\t\t\tvar $contactField = $fileupload.closest('.et_pb_contact_field');\n\t\t\tif ($contactField.siblings('.error').length > 0) return;\n\t\t\tvar required_message = $fileupload.attr('data-required_message') || 'This field is required.';\n\t\t\tvar required_message_pos = $fileupload.attr('data-required_position') || 'bottom';\n\t\t\tvar inputId = $fileupload.attr('id');\n\t\t\tvar errorId = inputId ? inputId + '_error' : null;\n\t\t\tvar errorAttrs = errorId ? ' id=\"' + errorId + '\" role=\"alert\" aria-live=\"polite\"' : '';\n\t\t\tif (errorId) { $fileupload.attr('aria-describedby', errorId); }\n\t\t\tif (required_message_pos === 'top') {\n\t\t\t\t$contactField.before('<p class=\"error\"' + errorAttrs + '>' + required_message + '<\/p>');\n\t\t\t} else {\n\t\t\t\t$contactField.after('<p class=\"error\"' + errorAttrs + '>' + required_message + '<\/p>');\n\t\t\t}\n\t\t}, 150);\n\t});\n});\n<\/script>\n\n                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_11 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone dfb_radio_default file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_termos_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" >\n                                    <p class=\"et_pb_contact_field\" data-type=\"checkbox\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"Consent\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_termos\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_termos\"\/>                    <span class=\"et_pb_contact_field_options_wrapper\">\n\t\t\t<span class=\"et_pb_contact_field_options_list required\"  data-required_message=\"This field is required.\" data-required_position=\"bottom\"><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_termos_3_0\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_termos[]\" value=\"Li a Pol\u00edtica de Privacidade e autorizo o tratamento dos meus dados para responder ao meu pedido.*\" data-id=\" Li a Pol\u00edtica de Privacidade e autorizo o tratamento dos meus dados para responder ao meu pedido.*\" required aria-required=\"true\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_termos_3_0\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>I have read the Privacy Policy and consent to my data being processed to handle this request.*<\/span>\n\t\t\t\t\t\t\t <a href=\"\/politica-de-privacidade\" target=\"_blank\"><\/a>\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><\/span>\n\t\t<\/span>                <\/p>\n                                <\/div>\n        <\/div><\/div>\n\n<div class=\"de_form_builder_form_field_12 de_form_builder_form_field de_fb_form_field clearfix et_pb_column_4_4 et_flex_column_24_24 et_pb_column grid_et_pb_column_4_4_12 et_flex_column_24_24_tablet et_flex_column_24_24_phone dfb_radio_default file_align_left et_pb_module\"><div class=\"et_pb_module_inner\">        <div id=\"de_fb_rgpd_wrapper\" class=\"field_wrapper search_filter_cont\" data-count=\"100\" role=\"group\" >\n                                    <p class=\"et_pb_contact_field\" data-type=\"checkbox\">\n                    <input type=\"hidden\" name=\"field_title[]\" value=\"GDPR\"\/><input type=\"hidden\" name=\"field_name[]\" value=\"de_fb_rgpd\"\/><input type=\"hidden\" name=\"field_id[]\" value=\"de_fb_rgpd\"\/>                    <span class=\"et_pb_contact_field_options_wrapper\">\n\t\t\t<span class=\"et_pb_contact_field_options_list required\"  data-required_message=\"This field is required.\" data-required_position=\"bottom\"><span class=\"et_pb_contact_field_checkbox\">\n\t\t\t\t\t<input type=\"checkbox\" id=\"et_pb_contact_de_fb_rgpd_4_0\" class=\"divi-form-builder-field checkbox-field\" name=\"de_fb_rgpd[]\" value=\"Autorizo que a Palha\u00e7os d&#039;Opital guarde a minha candidatura durante 2 anos, para futuras oportunidades.\" data-id=\"Autorizo que a Palha\u00e7os d&#039;Opital guarde a minha candidatura durante 2 anos, para futuras oportunidades.\" required aria-required=\"true\">\n\t\t\t\t\t<label class=\"\" for=\"et_pb_contact_de_fb_rgpd_4_0\">\n\t\t\t\t\t\t<i><\/i>\n\t\t\t\t\t\t<span class=\"label_wrapper\">\n\t\t\t\t\t\t\t<span>I authorise Palha\u00e7os d&#039;Opital to keep my application for 2 years for future opportunities.<\/span>\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/label>\n\t\t\t\t<\/span><\/span>\n\t\t<\/span>                <\/p>\n                                <\/div>\n        <\/div><\/div>\n<\/div><\/div><input type=\"hidden\" value=\"2057-1\" name=\"form_key\"><input type=\"hidden\" value=\"candidatura_pdo\" name=\"unique_id\"><input type=\"hidden\" value=\"off\" name=\"enable_payment\"><input type=\"hidden\" value=\"on\" name=\"save_to_database\"><input type=\"hidden\" value=\"2057\" name=\"dfb_page_id\"><input type=\"hidden\" name=\"fb_nonce\" class=\"fb_nonce\" value=\"c768b5f265\"><div class=\"et_contact_bottom_container\"><div class=\"submit-container\"><input type=\"text\" name=\"form_type_confirm\" style=\"display:none!important;\" tabindex=\"-1\" autocomplete=\"off\"><div class=\"de_fb_submit_container et_pb_button_fullwidth\"><div class=\"divi-form-submit-container\"><button class=\"divi-form-submit et_pb_button et_pb_button_fullwidth de_fb_ajax_submit et_pb_button_fullwidth\" type=\"submit\" aria-label=\"Send application\">Send application<\/button><\/div><input type=\"hidden\" name=\"form_type\" value=\"contact\"><input type=\"hidden\" name=\"divi-form-submit\" value=\"yes\"><input type=\"hidden\" name=\"form_id\" value=\"candidatura_pdo\"><input type=\"hidden\" name=\"form_display_type\" value=\"in_page\"><\/div><\/div><\/div><\/form><script>\n(typeof jQuery !== 'undefined' ? function(cb){ jQuery(document).ready(function(){ cb(jQuery); }); } : function(){ \/* jQuery missing: skip jQuery-dependent init *\/ })(function($){\n    if ($('.message_success').length > 0) {\n        $('#fb_form_2057-1 .form-title').addClass('hidethis');\n        $('#fb_form_2057-1 .df_progressbar_container').addClass('hidethis');\n        $('#fb_form_2057-1 .divi-form-wrapper').addClass('hidethis');\n        $('#fb_form_2057-1 .submit-container').addClass('hidethis');\n        $('#fb_form_2057-1 .bloom_subscribe').addClass('hidethis');\n        $('#fb_form_2057-1 .de_fb_payment_area').addClass('hidethis');\n    }\n});\n<\/script>\n            <script>\njQuery(document).ready(function($) {\n    \/\/ Wait for jQuery validation plugin to be loaded\n    if (typeof $.validator === 'undefined') {\n        console.error('jQuery Validation plugin not loaded');\n        return;\n    }\n    \n    let old_url = jQuery.validator.methods.url;\n    \n    jQuery.validator.addMethod('url', function(value, element) {\n        if (old_url.call(this, value, element)) {\n            return true;\n        }\n        \n        if (value && !value.startsWith('http:\/\/') && !value.startsWith('https:\/\/')) {\n            return old_url.call(this, 'http:\/\/' + value, element);\n        }\n        \n        return false;\n    }, \"Please enter a valid URL\");\n\n    (function($){\n    var trim = function(s){ return (s || '').trim(); };\n    $.validator.methods.email = function (value, element) {\n        if (this.optional(element)) return true;\n        var v = trim(value);\n        return \/^[^\\s@]+@([^\\s@]+\\.)+[^\\s@]{2,}$\/.test(v);\n    };\n    })(jQuery);\n\n    $.validator.setDefaults({\n        highlight: function(element) {\n            $(element).addClass('input-error');\n            $(element).closest('.et_pb_contact_field').addClass('input-field-error');\n        },\n        unhighlight: function(element) {\n            $(element).removeClass('input-error');\n            $(element).removeAttr('aria-describedby');\n            $(element).closest('.et_pb_contact_field').removeClass('input-field-error');\n            $(element).closest('.et_pb_contact_field').find('label.error').remove();\n        }\n    });\n\n    $('#fb_form_2057-1').validate({\n        normalizer: function(value) {\n            return String(value ?? '').trim();\n        },\n        errorPlacement: function(error, element) {\n            var inputType = String(element.attr('type') || '').toLowerCase();\n            if (inputType === 'checkbox' || inputType === 'radio') {\n                \/\/ Checkbox\/radio required messaging is rendered by the wrapper-based custom flow.\n                \/\/ Skip jQuery Validate's inline label to avoid duplicate default messages.\n                return;\n            }\n            var fieldId = element.attr('id');\n            var errorId = fieldId ? fieldId + '_error' : null;\n            if (errorId) {\n                error.attr('id', errorId).attr('role', 'alert').attr('aria-live', 'polite');\n                element.attr('aria-describedby', errorId);\n            }\n            var message_position = element.attr('data-required_position');\n            if ( message_position == 'top' ) {\n                element.before(error);\n            } else {\n                element.after(error);\n            }\n        }\n    });\n\n    if ($('.de_fb_autocomplete').length > 0 && typeof init_autocomplete_fields == 'function') {\n        init_autocomplete_fields();\n    }\n});\n\nif ( window.history.replaceState ) {\n  window.history.replaceState( null, null, window.location.href );\n}\n\nif ( typeof form_grid_columns === 'function' ) {\n    form_grid_columns();\n}\n<\/script>\n        <\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-2057","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/pages\/2057","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/comments?post=2057"}],"version-history":[{"count":4,"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/pages\/2057\/revisions"}],"predecessor-version":[{"id":2218,"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/pages\/2057\/revisions\/2218"}],"wp:attachment":[{"href":"https:\/\/pdo.pt\/en\/wp-json\/wp\/v2\/media?parent=2057"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}