{"id":10,"date":"2026-08-29T23:22:59","date_gmt":"2026-08-29T23:22:59","guid":{"rendered":"https:\/\/crm.o-cut.com\/?page_id=10"},"modified":"2026-08-29T23:22:59","modified_gmt":"2026-08-29T23:22:59","slug":"crm-o-cut","status":"publish","type":"page","link":"https:\/\/crm.o-cut.com\/index.php\/crm-o-cut\/","title":{"rendered":"CRM O-CUT"},"content":{"rendered":"    <div id=\"ocut-form-box\" style=\"max-width: 620px; margin: 0 auto; background: #ffffff; padding: 28px; border-radius: 16px; border: 1px solid #e2e8f0; font-family: sans-serif; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05);\">\n        <div style=\"margin-bottom: 20px;\">\n            <span style=\"background: #0f172a; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase;\">O-CUT<\/span>\n            <h3 style=\"margin: 8px 0 4px 0; font-size: 20px; font-weight: 800; color: #0f172a;\">Pedido de Or\u00e7amento de Vinil<\/h3>\n            <p style=\"margin: 0; font-size: 13px; color: #64748b;\">Especialistas em Vinil de Recorte, Fosco, Microperfurado e Impresso. Resposta em 24h.<\/p>\n        <\/div>\n\n        <form id=\"ocut-lead-form-ajax\" style=\"display: grid; gap: 14px;\">\n            <div>\n                <label style=\"display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px;\">Nome \/ Empresa *<\/label>\n                <input type=\"text\" name=\"name\" required style=\"width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;\">\n            <\/div>\n\n            <div style=\"display: grid; grid-template-columns: 1fr 1fr; gap: 12px;\">\n                <div>\n                    <label style=\"display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px;\">Email *<\/label>\n                    <input type=\"email\" name=\"email\" required style=\"width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;\">\n                <\/div>\n                <div>\n                    <label style=\"display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px;\">Telefone \/ WhatsApp *<\/label>\n                    <input type=\"tel\" name=\"phone\" required style=\"width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;\">\n                <\/div>\n            <\/div>\n\n            <div>\n                <label style=\"display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px;\">Tipo de Vinil Pretendido<\/label>\n                <select name=\"service_interest\" style=\"width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px; background: #fff;\">\n                    <option value=\"vinil_recorte\">1 - Vinil de recorte<\/option>\n                    <option value=\"vinil_fosco\">2 - Vinil Fosco \/ Jateado<\/option>\n                    <option value=\"vinil_microperfurado\">3 - Vinil Microperfurado Impresso<\/option>\n                    <option value=\"vinil_impresso_laminado\">4 - Vinil Impresso laminado a Matte ou Brilho<\/option>\n                    <option value=\"vinil_transparente_branco\">5 - Vinil Transparente impresso e laminado a branco<\/option>\n                    <option value=\"outros_pontuais\">6 - Outros Pontuais<\/option>\n                <\/select>\n            <\/div>\n\n            <div>\n                <label style=\"display: block; font-size: 12px; font-weight: 700; color: #334155; margin-bottom: 4px;\">Dimens\u00f5es e Descri\u00e7\u00e3o do Trabalho<\/label>\n                <textarea name=\"message\" rows=\"3\" placeholder=\"Ex: Montra comercial de 3m x 2m com log\u00f3tipo em vinil fosco recortado...\" style=\"width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 14px;\"><\/textarea>\n            <\/div>\n\n            <button type=\"submit\" style=\"background: #2563eb; color: #fff; font-weight: 700; font-size: 14px; padding: 12px; border: none; border-radius: 8px; cursor: pointer; transition: background 0.2s;\">\n                Submeter Pedido de Or\u00e7amento\n            <\/button>\n\n            <div id=\"ocut-form-result\" style=\"display: none; padding: 12px; border-radius: 8px; font-size: 13px; text-align: center;\"><\/div>\n        <\/form>\n\n        <script>\n        document.getElementById('ocut-lead-form-ajax').addEventListener('submit', function(e) {\n            e.preventDefault();\n            const form = e.target;\n            const btn = form.querySelector('button');\n            const result = document.getElementById('ocut-form-result');\n            btn.disabled = true;\n            btn.innerText = 'A enviar...';\n\n            fetch(\"https:\\\/\\\/crm.o-cut.com\\\/index.php\\\/wp-json\\\/ocut-crm\\\/v1\\\/leads\", {\n                method: 'POST',\n                headers: { 'Content-Type': 'application\/json' },\n                body: JSON.stringify({\n                    name: form.name.value,\n                    email: form.email.value,\n                    phone: form.phone.value,\n                    service_interest: form.service_interest.value,\n                    message: form.message.value,\n                    origin_url: window.location.href\n                })\n            })\n            .then(res => {\n                if (!res.ok) { throw new Error('HTTP ' + res.status); }\n                return res.json();\n            })\n            .then(data => {\n                result.style.display = 'block';\n                if (data.success) {\n                    result.style.background = '#dcfce7';\n                    result.style.color = '#166534';\n                    result.innerText = 'Obrigado! O seu pedido foi registado e enviado para a equipa O-CUT.';\n                    form.reset();\n                } else {\n                    result.style.background = '#fee2e2';\n                    result.style.color = '#991b1b';\n                    result.innerText = data.message || 'Erro ao enviar. Tente novamente.';\n                }\n            })\n            .catch((err) => {\n                result.style.display = 'block';\n                result.style.background = '#fee2e2';\n                result.style.color = '#991b1b';\n                result.innerText = 'Erro ao ligar ao servidor WordPress (' + err.message + '). Verifique se o URL REST est\u00e1 acess\u00edvel.';\n            })\n            .finally(() => {\n                btn.disabled = false;\n                btn.innerText = 'Submeter Pedido de Or\u00e7amento';\n            });\n        });\n        <\/script>\n    <\/div>\n    \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-10","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/pages\/10","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/comments?post=10"}],"version-history":[{"count":1,"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/pages\/10\/revisions"}],"predecessor-version":[{"id":12,"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/pages\/10\/revisions\/12"}],"wp:attachment":[{"href":"https:\/\/crm.o-cut.com\/index.php\/wp-json\/wp\/v2\/media?parent=10"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}