/* Contact page refinement. The existing content, form and handlers stay intact.
   Match the shared Tesla layer's selector weight; keep these overrides local. */
@media screen {
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page {
  --qa-nav: 255, 255, 255;
  --qa-ink: #171a20 !important;
  --qa-body: #393c41 !important;
  --qa-ink2: #5c5e62 !important;
  --qa-link: #171a20 !important;
  --qa-blue: #3e6ae1 !important;
  --qa-blue-h: #3457b1 !important;
  background: #fff !important;
  color: #393c41;
  color-scheme: light;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page :is(#page, #content, #content > .ast-container, #primary, #main) {
  background: #fff !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #lcn {
  --lcn-bar-ink: #171a20;
  --lcn-logo-filter: brightness(0);
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #lcn .lcn-bar {
  background: rgba(255, 255, 255, .96) !important;
  color: #171a20 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #lcn .lcn-bar :is(a, button, span, .lcn-tools) {
  color: #171a20 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #lcn .lcn-logo img {
  filter: brightness(0) !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main {
  --contact-gutter: clamp(24px, 5vw, 80px);
  --qa-ink: #171a20;
  --qa-body: #393c41;
  --qa-ink2: #5c5e62;
  --qa-link: #171a20;
  --qa-soft: #f4f4f4;
  --qa-err: #b42318;
  font-family: var(--t-font), sans-serif;
  color: #393c41 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-wrap {
  width: calc(100% - 2 * var(--contact-gutter));
  max-width: 1280px;
  margin-inline: auto;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(h1, h2, h3, h4, address) {
  color: #171a20 !important;
  font-weight: 500;
  letter-spacing: 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-eyebrow, .qa-sub, .qa-val, .qa-hero-email, .qa-hero-email a, .qa-hero-email span, .qa-contact-label, .qa-note, .qa-legal, .qa-k, .qa-intro > p, .qa-project-scope p, .qa-form-head p, .qa-req-note, .qa-help, .qa-consent, .qa-hint-inline, .qa-privacy p, .qa-cta p) {
  color: #5c5e62 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-eyebrow {
  margin: 0 0 16px !important;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .08em;
}

/* The full headline and introduction sit above the original uncropped image. */
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero {
  padding: 40px 0 0;
  background: #fff !important;
  text-align: center;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
  padding: 0;
  gap: 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-crumb {
  align-self: stretch;
  margin: 0 0 48px;
  text-align: left;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-crumb :is(ol, a),
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-crumb li + li::before {
  color: #5c5e62 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-heading {
  align-self: center;
  width: 100%;
  max-width: 960px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero h1 {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.3;
  text-wrap: balance;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-statement {
  margin: 24px 0 0;
  color: #393c41 !important;
  font-size: clamp(18px, 1.8vw, 23px);
  line-height: 1.6;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero .qa-sub {
  max-width: 40em;
  margin: 12px auto 0;
  font-size: 16px;
  line-height: 1.8;
  text-wrap: balance;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-connect {
  max-width: 100%;
  margin-top: 32px;
  padding: 0;
  border: 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-hero .qa-actions, .qa-hero-email, .qa-cta .qa-actions) {
  justify-content: center;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero .qa-actions {
  margin: 0;
  gap: 20px 32px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-phone {
  color: #171a20 !important;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-phone strong {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-email {
  margin: 20px 0 0;
  font-size: 13px;
  gap: 6px 16px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-media {
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0 !important;
  border: 0;
  border-radius: 4px;
  background: #f4f4f4 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-media img {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-page-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin-block: 32px 0;
  padding: 0;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  overflow: visible;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-page-nav a:nth-child(n) {
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 0 !important;
  border-radius: 4px;
  color: #393c41 !important;
  background: #f4f4f4;
  gap: 12px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-page-nav a:hover {
  background: #e8e8e8 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-sec, .qa-sec + .qa-sec) {
  padding: clamp(64px, 7vw, 104px) 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-head, .qa-intro) h2,
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cta h2 {
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1.4;
  text-wrap: balance;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-head {
  margin: 0 0 48px;
  text-align: center;
}

/* Keep all four channels and the QR code visible, without divider lines. */
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-ways, .qa-visit) {
  background: #fff !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  border: 0 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card:nth-child(n) {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 32px 24px;
  gap: 0;
  border: 0 !important;
  border-radius: 4px;
  background: #f4f4f4 !important;
  box-shadow: none !important;
  transform: none !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card .qa-ico {
  color: #393c41 !important;
  margin: 0 0 24px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card h3 {
  font-size: 19px;
  line-height: 1.5;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card .qa-val {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card .qa-val--key {
  color: #171a20 !important;
  font-size: 18px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card-acts {
  margin-top: auto;
  padding-top: 24px;
  gap: 8px 20px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card--qr .qa-qr {
  width: 160px;
  height: auto;
  max-width: 100%;
  padding: 8px;
  border: 0;
  border-radius: 0;
  background: #fff !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card--qr .qa-qr img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-more, .qa-copy, .qa-office-side a) {
  color: #171a20 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-copy {
  border: 0 !important;
  min-height: 44px;
  background: transparent;
  color: #5c5e62 !important;
}

/* Clear form surfaces; native fields, validation and submission are preserved. */
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main #project-enquiry {
  background: #f4f4f4 !important;
  color: #393c41 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-enquiry-grid {
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-project-scope li {
  border: 0 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-project-scope li a {
  grid-template-columns: 26px minmax(0, 1fr) 16px;
  gap: 12px;
  padding: 16px 0;
  color: #171a20 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-scope-number {
  display: inline;
  color: #5c5e62 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form {
  padding: clamp(28px, 3.5vw, 48px);
  border: 0 !important;
  border-radius: 4px;
  background: #fff !important;
  box-shadow: none !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form-head h3 {
  font-size: 28px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-input--label label {
  color: #393c41 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-control {
  min-height: 52px;
  padding: 12px 16px !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  background: #f4f4f4 !important;
  color: #171a20 !important;
  caret-color: #171a20 !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
  box-shadow: none !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form textarea.ff-el-form-control {
  min-height: 160px;
  resize: vertical;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-control::placeholder {
  color: #5c5e62 !important;
  opacity: 1;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-control:focus {
  border-color: #3e6ae1 !important;
  background: #fff !important;
  outline: 2px solid #3e6ae1;
  outline-offset: 2px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-control:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 100px #f4f4f4 inset !important;
  -webkit-text-fill-color: #171a20 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-check-input {
  accent-color: #3e6ae1 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-form-check-label span {
  background: transparent !important;
  color: #393c41 !important;
  border: 0 !important;
  font-size: 14px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-req-note b, .qa-form .error, .qa-form .text-danger, #qa-email-status[data-state="error"]),
html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .ff-el-input--label.asterisk-right label::after {
  color: #b42318 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form .ff-el-is-error .ff-el-form-control {
  border-color: #b42318 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-privacy {
  margin-top: 28px;
  border: 0 !important;
  color: #5c5e62;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-privacy summary {
  min-height: 48px;
  color: #393c41 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-consent a {
  color: #171a20 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 48px;
  padding: 0;
  border: 0 !important;
  background: transparent;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office-copy {
  padding: 24px 0;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office address {
  font-size: clamp(23px, 2.3vw, 32px);
  font-style: normal;
  line-height: 1.6;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office-side {
  border: 0 !important;
  padding: 32px;
  background: #f4f4f4;
  color: #393c41 !important;
  border-radius: 4px;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office-side .qa-big {
  color: #171a20 !important;
  font-size: clamp(26px, 2.6vw, 36px);
  overflow-wrap: anywhere;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cta {
  padding: clamp(64px, 7vw, 104px) 0;
  background: #f4f4f4 !important;
  color: #171a20 !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cta p {
  font-size: 16px;
  line-height: 1.8;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-btn, .ff-btn-submit) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 220px;
  max-width: 100%;
  padding: 12px 24px !important;
  gap: 16px;
  border: 0 !important;
  border-radius: 4px !important;
  background: #3e6ae1 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0 !important;
  box-shadow: none !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-btn, .ff-btn-submit):hover {
  background: #3457b1 !important;
  color: #fff !important;
}

html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(a, button, summary, input):focus-visible {
  outline: 2px solid #3e6ae1 !important;
  outline-offset: 4px;
}
}

@media screen and (max-width: 1100px) {
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 900px) {
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-enquiry-grid, .qa-office) {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
}

@media screen and (max-width: 600px) {
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero {
    padding-top: 24px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-crumb {
    margin-bottom: 36px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero h1 {
    font-size: clamp(27px, 6.8vw, 36px);
    line-height: 1.4;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero-grid {
    gap: 36px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-hero .qa-actions {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-page-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-page-nav a:nth-child(n) {
    justify-content: space-between;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-card:nth-child(n) {
    min-height: 0;
    padding: 28px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-form {
    padding: 28px 20px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-office-side {
    padding: 28px 24px;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main .qa-nw {
    white-space: normal;
  }
  html:not(#qmT):not(#qmT2):not(#qmT3) body.qa-contact-page #main :is(.qa-btn, .ff-btn-submit) {
    min-width: 0;
    width: 100%;
  }
}
