/* ========================================================================
     CONTACT PAGE — WHITE CANVAS, NEUTRAL HAIRLINES & SELECTIVE BRAND BLUE
     (Strict Zero-Blue-Border Architecture)
     ======================================================================== */
  body.tg-contact-page {
    background: #FFFFFF !important;
    color: #0F172A;
  }

  /* Keep header light border strictly neutral gray, zero blue border */
  body.tg-contact-page .header.light {
    background: rgba(255, 255, 255, 0.94) !important;
    border-bottom: 1px solid #E2E8F0 !important;
  }

  body.tg-contact-page .header.light.stuck,
  body.tg-contact-page .header.light.tg-nav-condensed {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom-color: #E2E8F0 !important;
    box-shadow: 0 8px 28px -18px rgba(15, 23, 42, 0.12) !important;
  }

  body.tg-contact-page .btn-primary {
    border-color: transparent !important;
  }

  body.tg-contact-page .header.light .burger {
    border-color: #E2E8F0 !important;
    box-shadow: none !important;
  }

  body.tg-contact-page .burger.open {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
  }

  body.tg-contact-page .burger.open span {
    background: #64748B !important;
  }

  /* Header alignment on Contact page: match all other pages cleanly on desktop & mobile */
  body.tg-contact-page .header .nav {
    width: min(1200px, 80%);
    max-width: 1200px;
    margin-inline: auto;
    gap: 2rem;
  }

  @media (max-width: 1024px) {
    body.tg-contact-page .header .nav {
      width: min(1200px, 88%);
      gap: 1rem;
    }
  }

  @media (max-width: 768px) {
    body.tg-contact-page .header {
      padding: 10px 14px !important;
      padding-left: 14px !important;
      padding-right: 14px !important;
      box-sizing: border-box !important;
    }

    body.tg-contact-page .tg-audit-section,
    body.tg-contact-page .footer {
      padding-left: 14px !important;
      padding-right: 14px !important;
      box-sizing: border-box !important;
    }

    body.tg-contact-page .header .nav {
      width: 100%;
      max-width: 100%;
      padding-left: 0 !important;
      padding-right: 0 !important;
      gap: 8px;
    }

    body.tg-contact-page .header .logo {
      min-width: 0;
      flex-shrink: 1;
    }

    body.tg-contact-page .header .nav-actions {
      flex-shrink: 0;
      gap: 6px;
    }
  }

  @media (max-width: 430px) {
    body.tg-contact-page .header .logo-img {
      height: 28px;
      max-width: 126px;
    }

    body.tg-contact-page .header .nav-actions .btn-primary {
      padding: 0.42rem 0.72rem;
      font-size: 0.74rem;
      min-height: 34px;
    }

    body.tg-contact-page .header .burger {
      width: 40px;
      height: 40px;
      min-width: 40px;
      min-height: 40px;
    }

    body.tg-contact-page .header .burger span:nth-child(1) { top: 13px; }
    body.tg-contact-page .header .burger span:nth-child(2) { top: 18.5px; }
    body.tg-contact-page .header .burger span:nth-child(3) { top: 24px; }
    body.tg-contact-page .header .burger.open span:nth-child(1),
    body.tg-contact-page .header .burger.open span:nth-child(3) { top: 18.5px; }
  }

  /* ========================================================================
     MOBILE-FIRST LAYOUT BASE (320px+)
     ======================================================================== */
  .tg-audit-main {
    background: #FFFFFF;
    padding-top: 64px;
    overflow-x: hidden;
  }

  /* Override styles.css global mobile padding-left/right cleanly so there is zero double-padding */
  .tg-audit-section {
    background: #FFFFFF;
    border-bottom: 1px solid #F1F5F9;
    padding: 28px 14px 56px !important;
    box-sizing: border-box;
  }

  .tg-audit-container {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }

  .tg-audit-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .tg-audit-sticky {
    position: static;
    padding-top: 0;
    min-width: 0;
  }

  .tg-audit-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1D5CFF;
  }

  .tg-audit-eyebrow::before {
    content: "";
    width: 18px;
    height: 1.5px;
    background: #1D5CFF;
    display: inline-block;
  }

  .tg-audit-heading {
    margin: 0 0 14px;
    font-family: var(--font-heading, "DM Sans", sans-serif);
    font-size: clamp(1.95rem, 8.2vw, 2.45rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: #0F172A;
    text-wrap: balance;
  }

  .tg-audit-heading-accent {
    color: #1D5CFF;
  }

  .tg-audit-lead {
    margin: 0 0 24px;
    font-size: 0.96rem;
    line-height: 1.62;
    color: #475569;
    max-width: 48ch;
  }

  /* Editorial numbered value list */
  .tg-audit-points {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #E2E8F0;
    margin-bottom: 22px;
  }

  .tg-audit-point {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 14px 0;
    border-bottom: 1px solid #F1F5F9;
  }

  .tg-audit-point-num {
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-variant-numeric: tabular-nums;
    color: #1D5CFF;
    padding-top: 2px;
  }

  .tg-audit-point-title {
    margin: 0 0 3px;
    font-size: 0.94rem;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.35;
    letter-spacing: -0.01em;
  }

  .tg-audit-point-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: #64748B;
  }

  /* Quiet direct Email button card (strict neutral hairline border) */
  .tg-direct-channels {
    display: flex;
    flex-direction: column;
  }

  .tg-channel-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
  }

  .tg-channel-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }

  .tg-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tg-channel-icon svg {
    width: 16px;
    height: 16px;
    stroke: #1D5CFF;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tg-channel-text {
    min-width: 0;
    display: flex;
    flex-direction: column;
  }

  .tg-channel-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748B;
    line-height: 1.25;
  }

  .tg-channel-value {
    font-size: 0.88rem;
    font-weight: 600;
    color: #0F172A;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .tg-channel-arrow {
    width: 16px;
    height: 16px;
    stroke: #64748B;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 160ms ease, stroke 160ms ease;
  }

  .tg-channel-link:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
  }

  .tg-channel-link:hover .tg-channel-arrow {
    stroke: #0F172A;
    transform: translate(2px, -2px);
  }

  /* Form wrapper & stack matching reference HTML (ZERO blue borders, ZERO card shadow) */
  .tg-audit-form-wrap {
    width: 100%;
    min-width: 0;
  }

  .tg-audit-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }

  .tg-hp-trap {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
  }

  .tg-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tg-field-group {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .tg-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #475569;
  }

  .tg-req {
    color: #0F172A;
    font-weight: 600;
  }

  .tg-field-optional {
    font-weight: 400;
    color: #94A3B8;
    font-size: 0.78rem;
  }

  /* Matching reference HTML .field — 16px on mobile prevents iOS Safari auto-zoom */
  .tg-input,
  .tg-select,
  .tg-textarea {
    width: 100%;
    padding: 13px 18px;
    border-radius: 12px;
    border: 1.5px solid #CBD5E1;
    background: #FFFFFF;
    color: #0F172A;
    font-family: inherit;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    outline: none;
    transition: border-color 150ms ease;
    appearance: none;
    -webkit-appearance: none;
  }

  .tg-input::placeholder,
  .tg-textarea::placeholder {
    color: #94A3B8;
  }

  .tg-input:hover,
  .tg-select:hover,
  .tg-textarea:hover {
    border-color: #94A3B8;
  }

  /* Focus state uses crisp dark slate — ZERO blue border */
  .tg-input:focus,
  .tg-select:focus,
  .tg-textarea:focus {
    outline: none;
    border-color: #0F172A;
    box-shadow: none;
  }

  .tg-input.is-invalid,
  .tg-select.is-invalid,
  .tg-textarea.is-invalid {
    border-color: #DC2626 !important;
    background: #FEF2F2 !important;
  }

  .tg-select {
    cursor: pointer;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
  }

  .tg-textarea {
    resize: vertical;
    min-height: 112px;
  }

  /* Reference HTML service pill toggles (neutral hairline border -> blue fill on select) */
  .tg-services-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 4px;
  }

  .tg-service-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    max-width: 100%;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid #E2E8F0;
    background: transparent;
    color: #475569;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    transition: all 150ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tg-service-chip:hover {
    border-color: #CBD5E1;
    color: #0F172A;
  }

  .tg-service-chip:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 2px;
  }

  .tg-service-chip.is-selected {
    background: #1D5CFF;
    border-color: transparent;
    color: #FFFFFF;
  }

  .tg-service-chip.is-selected:hover {
    background: #134BDF;
    border-color: transparent;
    color: #FFFFFF;
  }

  .tg-form-error {
    display: none;
    padding: 12px 14px;
    border-radius: 12px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #B91C1C;
    font-size: 0.85rem;
    font-weight: 500;
    line-height: 1.45;
  }

  .tg-form-error.is-visible {
    display: block;
  }

  /* Reference HTML .btn.btn-primary.btn-lg pill CTA button */
  .tg-submit-btn {
    width: 100%;
    padding: 16px 38px;
    border-radius: 999px;
    border: none;
    background: #1D5CFF;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    white-space: nowrap;
    box-shadow: 0 12px 32px -12px rgba(29, 92, 255, 0.35);
    transition: transform 150ms ease, background-color 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
    -webkit-tap-highlight-color: transparent;
  }

  .tg-submit-btn:hover:not(:disabled) {
    background: #134BDF;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px -12px rgba(29, 92, 255, 0.45);
  }

  .tg-submit-btn:focus-visible {
    outline: 2px solid #0F172A;
    outline-offset: 3px;
  }

  .tg-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
  }

  /* Minimal Inline Confirmation View */
  /* Animated Check + 3-Step Timeline Confirmation View (exact Free Audit design, Email CTA only, ZERO blue borders) */
  .tg-success-view {
    display: none;
    text-align: center;
    padding: 6px 0;
  }

  .tg-success-view.is-visible {
    display: block;
  }

  .tg-anim-check {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
  }

  .tg-anim-check svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }

  .tg-anim-check .ring {
    fill: none;
    stroke: #16a34a;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    transform: rotate(-90deg);
    transform-origin: 40px 40px;
    animation: tgRingDraw 0.7s ease-out forwards;
  }

  .tg-anim-check .disc {
    fill: #16a34a;
    transform: scale(0);
    transform-origin: 40px 40px;
    animation: tgDiscPop 0.4s 0.5s cubic-bezier(0.2, 1.5, 0.4, 1) forwards;
  }

  .tg-anim-check .tick {
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: tgDraw 0.4s 0.85s ease-out forwards;
  }

  .tg-anim-check::before,
  .tg-anim-check::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid #16a34a;
    opacity: 0;
    animation: tgRipple 1.8s 1.1s ease-out 2;
  }

  .tg-anim-check::after {
    animation-delay: 1.7s;
  }

  @keyframes tgRingDraw { to { stroke-dashoffset: 0; } }
  @keyframes tgDiscPop { to { transform: scale(1); } }
  @keyframes tgRipple {
    0% { opacity: 0.5; transform: scale(0.9); }
    100% { opacity: 0; transform: scale(1.7); }
  }
  @keyframes tgDraw { to { stroke-dashoffset: 0; } }
  @keyframes tgRise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes tgRingPulse { 50% { box-shadow: 0 0 0 9px rgba(15, 23, 42, 0.04); } }
  @keyframes tgGrow { from { transform: scaleY(0); } }

  .tg-pill-id {
    display: inline-block;
    font: 600 11px ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #F1F5F9;
    color: #0F172A;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
    animation: tgRise 0.5s 0.2s both;
  }

  .tg-success-title {
    margin: 0 0 6px;
    font-family: var(--font-heading, "DM Sans", sans-serif);
    font-weight: 800;
    font-size: 21px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #0F172A;
    animation: tgRise 0.5s 0.25s both;
  }

  .tg-success-desc {
    color: #475569;
    max-width: 500px;
    margin: 0 auto;
    font-size: 13.5px;
    line-height: 1.5;
    animation: tgRise 0.5s 0.3s both;
  }

  .tg-success-desc strong {
    color: #0F172A;
    font-weight: 600;
  }

  .tg-tl {
    list-style: none;
    padding: 0;
    margin: 20px auto 20px;
    text-align: left;
    max-width: 100%;
  }

  .tg-tl li {
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    padding-bottom: 16px;
    position: relative;
    animation: tgRise 0.5s both;
  }

  .tg-tl li:nth-child(1) { animation-delay: 0.5s; }
  .tg-tl li:nth-child(2) { animation-delay: 0.7s; }
  .tg-tl li:nth-child(3) { animation-delay: 0.9s; }

  .tg-tl li::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 0;
    width: 2px;
    background: #E2E8F0;
    transform-origin: top;
  }

  .tg-tl li.done::before {
    background: #0F172A;
    animation: tgGrow 0.5s 1.1s both;
  }

  .tg-tl li:last-child { padding-bottom: 0; }
  .tg-tl li:last-child::before { display: none; }

  .tg-tl-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #E2E8F0;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 700;
    color: #64748B;
    background: #FFFFFF;
    z-index: 1;
  }

  .tg-tl .done .tg-tl-dot {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
  }

  .tg-tl-dot svg {
    width: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .tg-tl-dot path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
    animation: tgDraw 0.5s 0.4s ease-out forwards;
  }

  .tg-tl li:first-child .tg-tl-dot path {
    animation-delay: 0.9s;
  }

  .tg-tl .now .tg-tl-dot {
    border-color: #0F172A;
    color: #0F172A;
    box-shadow: 0 0 0 5px rgba(15, 23, 42, 0.1);
    animation: tgRingPulse 2s 1.4s infinite;
  }

  .tg-tl b {
    display: block;
    font-size: 13.5px;
    color: #0F172A;
  }

  .tg-tl small {
    display: block;
    color: #64748B;
    font-size: 12px;
    line-height: 1.4;
  }

  .tg-wa-primary {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    border: none;
    background: #138a43;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 150ms ease, transform 150ms ease;
    animation: tgRise 0.5s 1.1s both;
  }

  .tg-wa-primary:hover {
    background: #0f7a3a;
    color: #FFFFFF;
    transform: translateY(-1px);
  }

  .tg-wa-note {
    margin: 8px auto 0;
    font-size: 12px;
    color: #64748B;
  }

  .tg-success-footer-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
  }

  .tg-link-btn {
    background: none;
    border: 0;
    color: #64748B;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    white-space: nowrap;
    padding: 6px 4px;
  }

  .tg-link-btn:hover {
    color: #0F172A;
  }

  @media (prefers-reduced-motion: reduce) {
    .tg-success-view * {
      animation-duration: 0.01s !important;
      animation-delay: 0s !important;
    }
  }

  /* ========================================================================
     PROGRESSIVE ENHANCEMENT: TABLET (>= 640px) & DESKTOP (>= 769px / 960px)
     ======================================================================== */
  @media (min-width: 640px) {
    .tg-form-row {
      grid-template-columns: 1fr 1fr;
      gap: 16px;
    }

    .tg-anim-check {
      width: 92px;
      height: 92px;
      margin: 0 auto 22px;
    }

    .tg-pill-id {
      font-size: 12px;
      padding: 5px 12px;
      margin-bottom: 14px;
    }

    .tg-success-title {
      font-size: clamp(26px, 4vw, 32px);
      margin-bottom: 10px;
    }

    .tg-success-desc {
      font-size: 15px;
      line-height: 1.55;
    }

    .tg-tl {
      margin: 32px auto 30px;
      max-width: 480px;
    }

    .tg-tl li {
      grid-template-columns: 34px 1fr;
      gap: 14px;
      padding-bottom: 26px;
    }

    .tg-tl li::before {
      left: 16px;
      top: 34px;
    }

    .tg-tl-dot {
      width: 34px;
      height: 34px;
      font-size: 13px;
    }

    .tg-tl-dot svg {
      width: 16px;
    }

    .tg-tl b {
      font-size: 15px;
    }

    .tg-tl small {
      font-size: 13px;
      line-height: 1.45;
    }

    .tg-wa-primary {
      width: auto;
      padding: 14px 26px;
      border-radius: 14px;
      font-size: 15px;
    }

    .tg-wa-note {
      margin-top: 12px;
      font-size: 13px;
    }

    .tg-success-footer-actions {
      margin-top: 16px;
      gap: 16px;
    }
  }

  @media (min-width: 769px) {
    body.tg-contact-page .header {
      padding: 0.7rem 0;
    }

    .tg-audit-main {
      padding-top: 84px;
    }

    .tg-audit-section {
      padding: 64px 0 96px !important;
    }

    .tg-audit-container {
      width: min(1200px, 88%);
      max-width: 1200px;
    }

    .tg-input,
    .tg-select,
    .tg-textarea {
      font-size: 0.95rem;
    }
  }

  @media (min-width: 960px) {
    .tg-audit-grid {
      grid-template-columns: 1fr 1fr;
      gap: 88px;
    }

    .tg-audit-sticky {
      position: sticky;
      top: 120px;
      padding-top: 0;
    }

    .tg-audit-eyebrow {
      margin-bottom: 16px;
      font-size: 0.78rem;
    }

    .tg-audit-eyebrow::before {
      width: 22px;
    }

    .tg-audit-heading {
      font-size: clamp(2.45rem, 4.1vw, 3.5rem);
      line-height: 1.04;
      margin-bottom: 20px;
    }

    .tg-audit-lead {
      font-size: 1.06rem;
      line-height: 1.7;
      margin-bottom: 36px;
    }

    .tg-audit-points {
      margin-bottom: 32px;
    }

    .tg-audit-point {
      grid-template-columns: 34px minmax(0, 1fr);
      gap: 10px;
      padding: 18px 0;
    }
  }
