/* Neurona V18 — requested contact containment and simulator-page fixes only. */

/* The existing global .container remains the only outer-width controller. */
body.neurona-v18 .contact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 44fr) minmax(0, 56fr) !important;
  gap: clamp(32px, 5vw, 72px) !important;
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

body.neurona-v18 .contact-copy,
body.neurona-v18 .contact-form {
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

/* Higher specificity intentionally clears historical nowrap rules. */
body.neurona-v18 .contact-copy.contact-section__intro .contact-title.contact-section__title {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

body.neurona-v18 .contact-copy.contact-section__intro .contact-title.contact-section__title > span.contact-section__title-line {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

/* Give only the fourth technical panel enough editorial space and allow a safe natural wrap. */
body.neurona-v18.simulators-page .technical-panel-v11:nth-child(4) > div,
body.neurona-v18.simulators-page .technical-panel-v11:nth-child(4) h2 {
  min-width: 0;
  max-width: 100%;
}

body.neurona-v18.simulators-page .technical-panel-v11:nth-child(4) h2 > span:first-child {
  white-space: normal !important;
  overflow-wrap: normal;
  word-break: normal;
}

@media (min-width: 64.01rem) {
  body.neurona-v18.simulators-page .technical-panel-v11:nth-child(4) {
    grid-template-columns: minmax(0, .76fr) minmax(0, 1.24fr);
  }
}

/* Its heading was held at opacity: 0 by the generic reveal observer at the end of the page. */
html.js body.neurona-v18.simulators-page .page-cta--v7 h2[data-reveal] {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}

body.neurona-v18.simulators-page .page-cta--v7 .cta-light { color: #fff !important; }
body.neurona-v18.simulators-page .page-cta--v7 .cta-dark { color: #07101d !important; }

@media (max-width: 820px) {
  body.neurona-v18 .contact-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.neurona-v18 .contact-copy,
  body.neurona-v18 .contact-form,
  body.neurona-v18 .contact-title {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
  }

  body.neurona-v18 .contact-copy.contact-section__intro .contact-title.contact-section__title {
    font-size: clamp(2.8rem, 12vw, 4.3rem) !important;
    line-height: .9;
  }
}
