diff --git a/site/public/tools/dot-compliance-check/index.html b/site/public/tools/dot-compliance-check/index.html
index 5e43e1f..44ea316 100644
--- a/site/public/tools/dot-compliance-check/index.html
+++ b/site/public/tools/dot-compliance-check/index.html
@@ -227,6 +227,7 @@ Send reset link
html += '
';
});
@@ -255,14 +256,29 @@ Send reset link
// CTA
var redCount = (s.red || 0);
if (redCount > 0) {
- // Map red checks to recommended service slugs
+ // Map red + yellow checks to recommended service slugs
var recommendedServices = [];
(data.checks || []).forEach(function(c) {
- if (c.status !== "red") return;
- if (c.id === "mcs150") recommendedServices.push("mcs150-update");
- if (c.id === "insurance_bipd" || c.id === "insurance_cargo") recommendedServices.push("dot-full-compliance");
- if (c.id === "insurance_bond") recommendedServices.push("boc3-filing");
- if (c.id === "authority") recommendedServices.push("mc-authority");
+ if (c.status === "red") {
+ if (c.id === "mcs150") recommendedServices.push("mcs150-update");
+ if (c.id === "insurance_bipd" || c.id === "insurance_cargo") recommendedServices.push("dot-full-compliance");
+ if (c.id === "insurance_bond") recommendedServices.push("boc3-filing");
+ if (c.id === "authority") recommendedServices.push("mc-authority");
+ }
+ // State-level yellow checks → recommend state services
+ if (c.status === "yellow") {
+ if (c.id === "irp") recommendedServices.push("irp-registration");
+ if (c.id === "ifta") recommendedServices.push("ifta-application");
+ if (c.id === "weight_distance_tax") {
+ if (data.phy_state === "OR") recommendedServices.push("or-weight-mile-tax");
+ else if (data.phy_state === "NY") recommendedServices.push("ny-hut-registration");
+ else if (data.phy_state === "KY") recommendedServices.push("ky-kyu-registration");
+ else if (data.phy_state === "NM") recommendedServices.push("nm-weight-distance");
+ else if (data.phy_state === "CT") recommendedServices.push("ct-highway-use-fee");
+ }
+ if (c.id === "state_carrier_permit" && data.phy_state === "CA") recommendedServices.push("ca-mcp-carb");
+ if (c.id === "intrastate_authority") recommendedServices.push("intrastate-authority");
+ }
});
// Always suggest MCS-150 if overdue
if ((data.checks || []).some(function(c) { return c.id === "mcs150" && c.status === "red"; }) && recommendedServices.indexOf("mcs150-update") < 0) {
@@ -270,6 +286,7 @@ Send reset link
}
var svcParam = recommendedServices.length > 0 ? "&services=" + recommendedServices.join(",") : "";
if (hasInsuranceIssue) svcParam += "&ins=1";
+ if (data.phy_state) svcParam += "&state=" + data.phy_state;
html += '';
html += '
' + redCount + ' compliance issue' + (redCount > 1 ? 's' : '') + ' found
';
@@ -277,6 +294,15 @@ Send reset link
html += '
Fix My DOT Filings →';
html += '
Or call (888) 411-0383
';
html += '
';
+ } else if (s.yellow > 0) {
+ // No red issues but yellow state-level warnings — show softer CTA
+ var yellowSvcParam = recommendedServices.length > 0 ? "&services=" + recommendedServices.join(",") : "";
+ if (data.phy_state) yellowSvcParam += "&state=" + data.phy_state;
+ html += '';
+ html += '
Federal filings look good!
';
+ html += '
Your FMCSA filings are current, but you may have state-level obligations to address.
';
+ html += '
Review State Compliance →';
+ html += '
';
} else {
html += '';
html += '
Looking good!
';