/* AI Chatbot Development — Stitch design integration and mobile hardening */
@layer base {
  html, body { margin: 0; padding: 0; }
  .hs-stitch-template { overflow-x: clip; }
}

.hs-stitch-template .hs-stitch-existing-form {
  width: 100%;
  min-width: 0;
}

.hs-stitch-template .hs-stitch-existing-form .wpcf7,
.hs-stitch-template .hs-stitch-existing-form .wpcf7-form {
  width: 100%;
}

.hs-stitch-template img { max-width: 100%; height: auto; }
.hs-stitch-template table { min-width: 680px; }

/* Keep the Stitch comparison tables usable on phones without squeezing columns. */
.hs-stitch-template .overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

@media (max-width: 1023px) {
  .hs-stitch-template main { max-width: 100%; }
  .hs-stitch-template .text-display-hero {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
  .hs-stitch-template .font-display-hero {
    font-size: 42px !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 767px) {
  .hs-stitch-template {
    width: 100%;
    overflow-x: clip;
  }
  .hs-stitch-template section {
    max-width: 100%;
  }
  .hs-stitch-template .text-display-hero,
  .hs-stitch-template .font-display-hero {
    font-size: 32px !important;
    line-height: 1.12 !important;
    letter-spacing: -0.02em !important;
  }
  .hs-stitch-template .text-headline-lg,
  .hs-stitch-template .font-headline-lg {
    font-size: 28px !important;
    line-height: 1.2 !important;
  }
  .hs-stitch-template .text-body-lg,
  .hs-stitch-template .font-body-lg {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }
  .hs-stitch-template [class*="px-gutter-desktop"],
  .hs-stitch-template [class*="px-margin-desktop"] {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  .hs-stitch-template [class*="py-space-xxl"] {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }
  .hs-stitch-template .grid {
    min-width: 0;
  }
  .hs-stitch-template .hs-stitch-existing-form {
    min-width: 0;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-grid--2 {
    grid-template-columns: 1fr !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-mandates {
    grid-template-columns: 1fr !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone {
    align-items: stretch;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone-prefix {
    min-width: 86px;
  }
  .hs-stitch-template .hs-cf7-form input[type="text"],
  .hs-stitch-template .hs-cf7-form input[type="email"],
  .hs-stitch-template .hs-cf7-form input[type="tel"],
  .hs-stitch-template .hs-cf7-form select,
  .hs-stitch-template .hs-cf7-form textarea {
    max-width: 100%;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-submit-wrap input[type="submit"] {
    width: 100%;
    min-height: 52px;
    white-space: normal;
  }
  .hs-stitch-template .overflow-x-auto {
    max-width: 100%;
    overflow-x: auto !important;
  }
}

@media (max-width: 420px) {
  .hs-stitch-template .text-display-hero,
  .hs-stitch-template .font-display-hero {
    font-size: 29px !important;
  }
  .hs-stitch-template .text-headline-lg,
  .hs-stitch-template .font-headline-lg {
    font-size: 25px !important;
  }
  .hs-stitch-template .hs-cf7-form .hs-cf7-phone-prefix {
    min-width: 74px;
    padding-left: .6rem;
    padding-right: .6rem;
  }
}
