SUBMIT AN INQUIRY.

DENVER | CO

<script>
(function () {
const firedLeadTypes = new Set();

function fireLead(leadType) {
if (!leadType || firedLeadTypes.has(leadType)) return;

if (typeof fbq === 'function') {
  firedLeadTypes.add(leadType);

  fbq('track', 'Lead', {
    content_name: leadType,
    content_category: 'Tattoo Inquiry'
  });

  console.log('META LEAD FIRED:', leadType);
}

}

function checkForLeadSuccess() {

// Preserve existing Pet Portrait setup
const petPortraitMarker = document.getElementById('pet-portrait-lead-success');
if (petPortraitMarker) {
  fireLead('Pet Portrait');
}

// Generic system for current/future landing pages
const genericMarkers = document.querySelectorAll('.meta-lead-success');

genericMarkers.forEach(function(marker) {
  fireLead(marker.getAttribute('data-lead-type'));
});

}

const observer = new MutationObserver(checkForLeadSuccess);

observer.observe(document.body, {
childList: true,
subtree: true
});

checkForLeadSuccess();
})();
</script>

<script>
(function () {
const oldText = 'Sign up for news and updates';
const newText = 'Yes — I’d like to join the Studio List for early booking access, new work, and occasional updates.';

function replaceSignupText(root) {
const walker = document.createTreeWalker(
root || document.body,
NodeFilter.SHOW_TEXT
);

const nodes = [];

while (walker.nextNode()) {
  nodes.push(walker.currentNode);
}

nodes.forEach(function(node) {
  if (
    node.nodeValue &&
    node.nodeValue.trim() === oldText
  ) {
    node.nodeValue = node.nodeValue.replace(oldText, newText);
  }
});

}

function init() {
replaceSignupText(document.body);

const observer = new MutationObserver(function(mutations) {
  mutations.forEach(function(mutation) {
    mutation.addedNodes.forEach(function(node) {
      if (node.nodeType === 1) {
        replaceSignupText(node);
      }
    });
  });
});

observer.observe(document.body, {
  childList: true,
  subtree: true
});

}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();
</script>

<style id="zig-sms-consent-ui">
.zig-sms-consent-field legend .description {
display: none !important;
}

.zig-sms-consent-field {
margin-bottom: 12px !important;
}

.zig-sms-consent-field .option label {
align-items: flex-start !important;
}

.zig-sms-consent-field .zig-sms-consent-copy {
display: block;
max-width: 720px;
color: currentColor;
font-size: 11px !important;
font-weight: 400 !important;
line-height: 1.4 !important;
letter-spacing: 0 !important;
opacity: 0.74;
}

.zig-sms-consent-field .zig-sms-consent-copy a {
color: inherit;
text-decoration: underline;
text-underline-offset: 2px;
}

@media (max-width: 767px) {
.zig-sms-consent-field .zig-sms-consent-copy {
font-size: 10px !important;
line-height: 1.35 !important;
opacity: 0.76;
}
}
</style>

<script>
(function () {
var signals = [
'text message consent',
'you can text me about my tattoo inquiry',
'yes, you may text me',
'yes, zig tattoos may text me'
];

var disclosure =
'Yes, I agree to receive conversational SMS/MMS messages from Zig Tattoos about my tattoo inquiry, project, and appointment. Message frequency varies. Message and data rates may apply. Reply STOP to opt out or HELP for help. Consent is not a condition of purchase. <a href="/privacy-policy">Privacy Policy</a> · <a href="/sms-terms">SMS Terms</a>.';

function applyConsentDisclosure() {
document
.querySelectorAll('fieldset.form-item.field.checkbox')
.forEach(function (field) {
var text = (field.innerText || field.textContent || '').toLowerCase();

    if (!signals.some(function (signal) { return text.includes(signal); })) {
      return;
    }

    field.classList.add('zig-sms-consent-field');

    var copy = field.querySelector('.option label span');
    if (!copy || copy.getAttribute('data-zig-sms-ready') === 'true') {
      return;
    }

    copy.classList.add('zig-sms-consent-copy');
    copy.innerHTML = disclosure;
    copy.setAttribute('data-zig-sms-ready', 'true');
  });

}

function startConsentDisclosure() {
applyConsentDisclosure();

new MutationObserver(applyConsentDisclosure).observe(document.body, {
  childList: true,
  subtree: true
});

}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', startConsentDisclosure);
} else {
startConsentDisclosure();
}
})();
</script>

<script>
(function(){
const allowedPaths=new Set(['/inquireopen','/contactflrealism','/contactpetportrait','/contactmr','/contactlf']);
const origin='https://zig-tattoos-reference-uploader.johnnyfive-1325.chatgpt.site';
const containerId='zig-reference-uploader-container';

function inquiryForm(){
return Array.from(document.querySelectorAll('.sqs-block-form form')).find(form=>
form.querySelector('input[type="email"]') &&
(form.querySelector('input[name="fname"]') || form.querySelector('input[name*="first" i]'))
);
}

function emailInput(){return inquiryForm()?.querySelector('input[type="email"]')||null}

function sendEmail(){
const iframe=document.getElementById('zig-reference-uploader');
const email=emailInput()?.value?.trim();
if(email&&iframe?.contentWindow){
iframe.contentWindow.postMessage({type:'zig-reference-email',email},origin);
}
}

function mount(){
const path=window.location.pathname.replace(//$/,'')||'/';
const existing=document.getElementById(containerId);

if(!allowedPaths.has(path)){
  existing?.remove();
  return;
}

const form=inquiryForm();
if(!form)return;

if(existing){
  if(existing.previousElementSibling!==form){
    form.insertAdjacentElement('afterend',existing);
  }
  sendEmail();
  return;
}

const container=document.createElement('div');
container.id=containerId;
container.style.cssText='width:100%;margin:28px 0 0;clear:both;';

const iframe=document.createElement('iframe');
iframe.id='zig-reference-uploader';
iframe.src=origin+'/';
iframe.title='Upload tattoo reference images';
iframe.loading='lazy';
iframe.referrerPolicy='strict-origin-when-cross-origin';
iframe.style.cssText='width:100%;height:560px;border:0;border-radius:0;display:block;background:transparent;';

container.appendChild(iframe);
form.insertAdjacentElement('afterend',container);
iframe.addEventListener('load',sendEmail);

}

document.addEventListener('input',event=>{if(event.target===emailInput())sendEmail()});
document.addEventListener('change',event=>{if(event.target===emailInput())sendEmail()});
window.addEventListener('message',event=>{
if(event.origin===origin&&event.data?.type==='zig-reference-uploader-ready')sendEmail();
});
new MutationObserver(mount).observe(document.documentElement,{childList:true,subtree:true});
window.addEventListener('popstate',mount);
document.addEventListener('DOMContentLoaded',mount);
mount();
})();
</script>
<style>
#zig-reference-uploader-container{box-sizing:border-box}
@media(max-width:767px){
#zig-reference-uploader-container{margin-top:24px!important}
#zig-reference-uploader{height:570px!important}
}
</style><script>
(function () {
const firedLeadTypes = new Set();

function fireLead(leadType) {
if (!leadType || firedLeadTypes.has(leadType)) return;

if (typeof fbq === 'function') {
  firedLeadTypes.add(leadType);

  fbq('track', 'Lead', {
    content_name: leadType,
    content_category: 'Tattoo Inquiry'
  });

  console.log('META LEAD FIRED:', leadType);
}

}

function checkForLeadSuccess() {

// Preserve existing Pet Portrait setup
const petPortraitMarker = document.getElementById('pet-portrait-lead-success');
if (petPortraitMarker) {
  fireLead('Pet Portrait');
}

// Generic system for current/future landing pages
const genericMarkers = document.querySelectorAll('.meta-lead-success');

genericMarkers.forEach(function(marker) {
  fireLead(marker.getAttribute('data-lead-type'));
});

}

const observer = new MutationObserver(checkForLeadSuccess);

observer.observe(document.body, {
childList: true,
subtree: true
});

checkForLeadSuccess();
})();
</script>

<script>
(function () {
const oldText = 'Sign up for news and updates';
const newText = 'Yes — I’d like to join the Studio List for early booking access, new work, and occasional updates.';

function replaceSignupText(root) {
const walker = document.createTreeWalker(
root || document.body,
NodeFilter.SHOW_TEXT
);

const nodes = [];

while (walker.nextNode()) {
  nodes.push(walker.currentNode);
}

nodes.forEach(function(node) {
  if (
    node.nodeValue &&
    node.nodeValue.trim() === oldText
  ) {
    node.nodeValue = node.nodeValue.replace(oldText, newText);
  }
});

}

function init() {
replaceSignupText(document.body);

const observer = new MutationObserver(function(mutations) {
  mutations.forEach(function(mutation) {
    mutation.addedNodes.forEach(function(node) {
      if (node.nodeType === 1) {
        replaceSignupText(node);
      }
    });
  });
});

observer.observe(document.body, {
  childList: true,
  subtree: true
});

}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', init);
} else {
init();
}
})();
</script>

<style id="zig-sms-consent-ui">
.zig-sms-consent-field legend .description {
display: none !important;
}

.zig-sms-consent-field {
margin-bottom: 12px !important;
}

.zig-sms-consent-field .option label {
align-items: flex-start !important;
}

.zig-sms-consent-field .zig-sms-consent-copy {
display: block;
max-width: 720px;
color: currentColor;
font-size: 11px !important;
font-weight: 400 !important;
line-height: 1.4 !important;
letter-spacing: 0 !important;
opacity: 0.74;
}

.zig-sms-consent-field .zig-sms-consent-copy a {
color: inherit;
text-decoration: underline;
text-underline-offset: 2px;
}

@media (max-width: 767px) {
.zig-sms-consent-field .zig-sms-consent-copy {
font-size: 10px !important;
line-height: 1.35 !important;
opacity: 0.76;
}
}
</style>

<script>
(function () {
var signals = [
'text message consent',
'you can text me about my tattoo inquiry',
'yes, you may text me',
'yes, zig tattoos may text me'
];

var disclosure =
'Yes, I agree to receive conversational SMS/MMS messages from Zig Tattoos about my tattoo inquiry, project, and appointment. Message frequency varies. Message and data rates may apply. Reply STOP to opt out or HELP for help. Consent is not a condition of purchase. <a href="/privacy-policy">Privacy Policy</a> · <a href="/sms-terms">SMS Terms</a>.';

function applyConsentDisclosure() {
document
.querySelectorAll('fieldset.form-item.field.checkbox')
.forEach(function (field) {
var text = (field.innerText || field.textContent || '').toLowerCase();

    if (!signals.some(function (signal) { return text.includes(signal); })) {
      return;
    }

    field.classList.add('zig-sms-consent-field');

    var copy = field.querySelector('.option label span');
    if (!copy || copy.getAttribute('data-zig-sms-ready') === 'true') {
      return;
    }

    copy.classList.add('zig-sms-consent-copy');
    copy.innerHTML = disclosure;
    copy.setAttribute('data-zig-sms-ready', 'true');
  });

}

function startConsentDisclosure() {
applyConsentDisclosure();

new MutationObserver(applyConsentDisclosure).observe(document.body, {
  childList: true,
  subtree: true
});

}

if (document.readyState === 'loading') {
document.addEventListener('DOMContentLoaded', startConsentDisclosure);
} else {
startConsentDisclosure();
}
})();
</script>

<script>
(function(){
const allowedPaths=new Set(['/inquireopen','/contactflrealism','/contactpetportrait','/contactmr','/contactlf']);
const origin='https://zig-tattoos-reference-uploader.johnnyfive-1325.chatgpt.site';
const containerId='zig-reference-uploader-container';

function inquiryForm(){
return Array.from(document.querySelectorAll('.sqs-block-form form')).find(form=>
form.querySelector('input[type="email"]') &&
(form.querySelector('input[name="fname"]') || form.querySelector('input[name*="first" i]'))
);
}

function emailInput(){return inquiryForm()?.querySelector('input[type="email"]')||null}

function sendEmail(){
const iframe=document.getElementById('zig-reference-uploader');
const email=emailInput()?.value?.trim();
if(email&&iframe?.contentWindow){
iframe.contentWindow.postMessage({type:'zig-reference-email',email},origin);
}
}

function mount(){
const path=window.location.pathname.replace(//$/,'')||'/';
const existing=document.getElementById(containerId);

if(!allowedPaths.has(path)){
  existing?.remove();
  return;
}

const form=inquiryForm();
if(!form)return;

if(existing){
  if(existing.previousElementSibling!==form){
    form.insertAdjacentElement('afterend',existing);
  }
  sendEmail();
  return;
}

const container=document.createElement('div');
container.id=containerId;
container.style.cssText='width:100%;margin:28px 0 0;clear:both;';

const iframe=document.createElement('iframe');
iframe.id='zig-reference-uploader';
iframe.src=origin+'/';
iframe.title='Upload tattoo reference images';
iframe.loading='lazy';
iframe.referrerPolicy='strict-origin-when-cross-origin';
iframe.style.cssText='width:100%;height:560px;border:0;border-radius:0;display:block;background:transparent;';

container.appendChild(iframe);
form.insertAdjacentElement('afterend',container);
iframe.addEventListener('load',sendEmail);

}

document.addEventListener('input',event=>{if(event.target===emailInput())sendEmail()});
document.addEventListener('change',event=>{if(event.target===emailInput())sendEmail()});
window.addEventListener('message',event=>{
if(event.origin===origin&&event.data?.type==='zig-reference-uploader-ready')sendEmail();
});
new MutationObserver(mount).observe(document.documentElement,{childList:true,subtree:true});
window.addEventListener('popstate',mount);
document.addEventListener('DOMContentLoaded',mount);
mount();
})();
</script>
<style>
#zig-reference-uploader-container{box-sizing:border-box}
@media(max-width:767px){
#zig-reference-uploader-container{margin-top:24px!important}
#zig-reference-uploader{height:570px!important}
}
</style>