// WXG official assets — extracted from real WXG marketing collateral
// • Stacked logo (WXG + amber square + WAXMAN GROUP wordmark below)
// • Pastel "squares motif" corner (red + gold + green + blue offset rects)
//   matching the existing customer-satisfaction form

// ─────────────────────────────────────────────────────────────
// WXG official wordmark — path data lifted verbatim from the
// careers page SVG (we already extracted this for DirectionD,
// keeping it here so the "real" concept doesn't depend on the
// older Direction-D file).
// ─────────────────────────────────────────────────────────────
function WXGOfficial({ height = 56, color = '#4D4D4D', accent = '#FCAF17' }) {
  const w = height * (426 / 122);
  return (
    <svg width={w} height={height} viewBox="0 0 426 122" fill="none" xmlns="http://www.w3.org/2000/svg" aria-label="WXG">
      {/* W */}
      <path d="M152.682,0.618L139.042,0.628C138.175,0.628 137.408,1.05 136.849,1.366L136.674,1.466C136.04,1.789 135.423,2.187 134.864,2.643C133.505,3.738 132.412,5.157 131.612,6.857C131.178,7.778 130.836,8.682 130.561,9.628C130.419,10.101 130.302,10.574 130.186,11.097L129.679,13.36C129.608,13.666 129.536,13.978 129.46,14.299C129.413,14.514 129.363,14.729 129.314,14.944L128.71,17.526L128.422,18.726C128.335,19.09 128.248,19.451 128.167,19.807L127.834,21.192L127.208,23.839L127.017,24.659C126.867,25.282 126.716,25.913 126.575,26.543L125.707,30.193C125.568,30.797 125.426,31.398 125.285,31.996L124.74,34.333L124.315,36.141L124.085,37.13C123.917,37.838 123.75,38.542 123.589,39.252L122.08,45.682C121.932,46.325 121.78,46.972 121.626,47.622C121.518,48.077 121.411,48.533 121.304,48.992C121.145,49.682 120.987,50.369 120.82,51.057L115.542,73.48C115.24,74.741 114.944,76.003 114.653,77.267L114.379,78.436C114.147,79.428 113.914,80.419 113.69,81.386C113.558,81.943 113.426,82.509 113.295,83.074L113.015,84.248L112.689,85.621L112.364,86.993L110.655,94.277C110.547,94.752 110.436,95.225 110.321,95.696L110.254,95.986L85.169,0.619L68.031,0.619L42.563,95.48L23.307,11.67L23.248,11.396L23.115,11.156C22.944,10.846 22.81,10.517 22.715,10.176C20.963,3.896 17.344,1.566 14.617,0.72L14.317,0.628L0.557,0.628L0.557,12.268L9.555,12.268L33.956,116.21L50.285,116.21L76.655,20.345L102.032,116.21L118.435,116.21L143.362,12.265L152.682,12.255L152.682,0.618Z" fill={color}/>
      {/* X */}
      <path d="M152.369 116.211h17.757l9.23-11.623h-.133l29.035-36.758 29.027 36.758h-.15l9.246 11.623h16.79v-11.623h-9.388l-37.35-47.385-.009-.008 34.435-44.947h11.29V.618h-18.733l-3.531 4.529c-1.487 1.908-2.368 3.045-2.866 3.808l-.042-.033L208.25 46.75a28224.72 28224.72 0 0 1-27.905-36.783l.016-.025-7.277-9.324-20.715.015V12.27l13.263-.014 34.418 44.946-37.334 47.385h-10.347v11.623Z" fill={color}/>
      {/* G */}
      <path d="m322.744 59.065-1.014 12.203h47.371c-.62 6.802-1.943 13.812-6.014 19.971-7.605 11.453-21.826 18.288-38.04 18.288-14.749 0-27.245-4.726-36.139-13.653-8.376-8.419-12.99-20.23-12.99-33.25s4.304-25.99 12.11-34.9c8.535-9.736 20.88-14.879 35.695-14.879 21.031 0 38.024 11.52 43.292 29.35l1.014 3.417h13.031l-1.834-6.143c-3.492-11.578-10.511-21.339-20.301-28.224C349.059 4.293 336.831.618 323.548.618c-18.476 0-34.021 6.56-44.95 18.97-9.841 11.162-15.26 26.449-15.26 43.036s5.955 30.908 16.767 41.685c11.365 11.32 26.843 17.296 44.774 17.296 14.364 0 30.495-6.135 40.126-15.229 11.315-10.269 16.583-23.789 16.583-42.543v-4.76H322.76l-.016-.008Z" fill={color}/>
      {/* Yellow square */}
      <path d="M425.941 90.01h-31.595v31.595h31.595V90.009Z" fill={accent}/>
    </svg>
  );
}

// ─────────────────────────────────────────────────────────────
// Stacked logo — wordmark on top of "WAXMAN GROUP" label,
// matching the exact treatment from the existing WXG survey.
// ─────────────────────────────────────────────────────────────
function WXGStackedLogo({ height = 72, color = '#4D4D4D', accent = '#FCAF17' }) {
  // wordmark height ≈ 56% of total; "WAXMAN GROUP" label ≈ 14%
  const markH = height * 0.62;
  return (
    <div style={{
      display: 'inline-flex', flexDirection: 'column', alignItems: 'center',
      gap: height * 0.18,
      fontFamily: "'Calibri', 'Carlito', 'Segoe UI', sans-serif",
    }}>
      <WXGOfficial height={markH} color={color} accent={accent} />
      <span style={{
        fontSize: height * 0.13, letterSpacing: height * 0.045,
        fontWeight: 400, color, paddingInlineStart: height * 0.045,
        textTransform: 'uppercase', whiteSpace: 'nowrap',
      }}>
        Waxman Group
      </span>
    </div>
  );
}

// ─────────────────────────────────────────────────────────────
// Pastel squares corner motif — the 4-rectangle cluster from the
// real WXG survey card. Red / Gold / Green / Blue (secondary
// palette) arranged with deliberate offsets and varied sizes.
// ─────────────────────────────────────────────────────────────
function WXGSquaresMotif({ scale = 1, style = {} }) {
  // Base footprint ~ 100 × 60. scale multiplies everything.
  const s = (n) => n * scale;
  return (
    <div style={{
      position: 'relative', width: s(110), height: s(70),
      ...style,
    }} aria-hidden="true">
      {/* Small red (pink) — top-left */}
      <div style={{
        position: 'absolute', insetInlineStart: s(0), top: s(2),
        width: s(16), height: s(10), background: '#E5B2B0',
      }} />
      {/* Medium green — below red */}
      <div style={{
        position: 'absolute', insetInlineStart: s(8), top: s(22),
        width: s(34), height: s(20), background: '#B0E5D0',
      }} />
      {/* Small blue — between green and gold */}
      <div style={{
        position: 'absolute', insetInlineStart: s(34), top: s(38),
        width: s(18), height: s(14), background: '#B0C2E5',
      }} />
      {/* Large gold — top right */}
      <div style={{
        position: 'absolute', insetInlineStart: s(58), top: s(0),
        width: s(46), height: s(28), background: '#E5DEB0',
      }} />
    </div>
  );
}

Object.assign(window, { WXGOfficial, WXGStackedLogo, WXGSquaresMotif });
