/* Contact page refresh, DESIGN ONLY ([david:contact-form-penta-redesign-1118], IB-T5-O 11-18-26).
   Linked from Views/Home/Contact.cshtml and Views/Home/ContactEs.cshtml only, right after styleNew.css. The page already
   styles this form with !important in two places: styleNew.css ('.main.mian_contact input, select, textarea') and the
   view's own later <style> ('#formblock176 ...', '.contact-form-wrapper .fields ...', '.main.mian_contact
   input.btn.btn-primary'), and the card has an inline style attribute. So every declaration below is !important and
   every selector starts '.main.mian_contact #formblock176' or '.main.mian_contact #miniSurveyView176', which out-ranks
   each of those rules by specificity; nothing here depends on the order of sheets. The PR body carries the proof: on
   the live page with this file in its real position, each declaration is removed in turn and the computed value read,
   so every line below is shown to change what renders (en and es, 1440 and 390 px, hover and focus states included;
   a line that a later line of this file overrides by design, the phone padding and the reduced-motion rules, changes
   it everywhere else).
   It changes no markup: every field name and id, the hidden inputs, the honeypot, the form's post action, the Turnstile
   widget and every tracking script stay exactly as they were. Folds of the PENTA run 20261118T170754Z (both judges
   REWORK): submit contrast, select alignment, the SMS consent checkbox beside its text, the mobile image swap, the
   duplicate BBB badge. The cookie bar (site-wide consent) is not touched. This file sets no box-shadow, transform or
   opacity on the card, so the view's entrance and glow animations (ib-card-in, ib-card-glow) run as before; its two
   transitions stop under prefers-reduced-motion. Declarations that only repeated what the page already renders
   (measured by the same proof) are left out, so each line here is one the page shows.
   PASS 2 (PENTA 20261118T175934Z, both judges REWORK; ruling [david:contact-form-penta-redesign-1118], 11-18-26) adds
   two blocks at the end of this file, outside the form: (1) the section tops (both columns start on one line below
   real breathing room, and the two section headings share one face, weight and size) and (2) the hero (the stock video
   is gone from the views; the heading and an illustrative product view, .ibc-hero-visual, sit side by side on wide
   screens and stack, text first, below 992 px). Those selectors start 'body.contact_page' or 'main.main.mian_contact'
   so they out-rank the view's head <style>, which loads after this file and uses !important. The hero view's one
   animation (its bars fill once, done in under two seconds, the finished figure is the default paint) is off under
   prefers-reduced-motion. Still no markup, field, id, script or tracking change outside the hero block. */

:root {
  --ibc-ink: #0d2b44;
  --ibc-blue: #1d63b8;
  --ibc-blue-2: #3b78ce;
  --ibc-green: #3eae54;
  --ibc-line: #d5e3f7;
  --ibc-focus: rgba(29, 99, 184, .18);
}

/* The form card: a gradient edge. */
.main.mian_contact #formblock176 {
  border: 1.5px solid transparent !important;
  padding: 28px 26px 24px !important;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, var(--ibc-blue-2), var(--ibc-green) 45%, var(--ibc-blue) 100%) border-box !important;
}

/* The view's own grid (two columns, one under 640 px) stays; the controls line up by their bottom edge. */
.main.mian_contact #miniSurveyView176 .fields { align-items: end !important; }
.main.mian_contact #miniSurveyView176 .fields > .form-group { margin: 0 0 18px !important; }

/* Labels and fields. */
.main.mian_contact #miniSurveyView176 label.control-label {
  display: inline-block !important;
  margin: 0 0 6px !important;
  font: 600 14px/1.35 "Open Sans", Arial, sans-serif !important;
  letter-spacing: .01em !important;
}
/* The required mark sits beside its label, on the same line (the view puts it in a span right after the label). */
.main.mian_contact #miniSurveyView176 label.control-label + span.text-muted.small {
  display: inline !important;
  margin-left: 3px !important;
  font: 700 14px/1.35 "Open Sans", Arial, sans-serif !important;
  color: var(--ibc-blue) !important;
}
.main.mian_contact #miniSurveyView176 input.form-control,
.main.mian_contact #miniSurveyView176 select,
.main.mian_contact #miniSurveyView176 textarea {
  min-height: 50px !important;
  padding: 12px 14px !important;
  border-radius: 12px !important;
  font: 400 16px/1.4 "Open Sans", Arial, sans-serif !important;
  color: var(--ibc-ink) !important;
  box-shadow: inset 0 1px 2px rgba(4, 56, 93, .05) !important;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease !important;
}
.main.mian_contact #miniSurveyView176 textarea { min-height: 132px !important; resize: vertical !important; }
.main.mian_contact #miniSurveyView176 select {
  -webkit-appearance: none !important;
  appearance: none !important;
  padding-right: 42px !important;
  /* The caret is drawn with two gradients, never an image: the site's CSP img-src allows no data: URL, so an inline SVG
     chevron is blocked and the select would show no arrow at all. */
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ibc-blue) 50%),
    linear-gradient(135deg, var(--ibc-blue) 50%, transparent 50%) !important;
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50% !important;
  background-size: 6px 6px, 6px 6px !important;
  background-repeat: no-repeat !important;
}
.main.mian_contact #miniSurveyView176 input.form-control:hover,
.main.mian_contact #miniSurveyView176 select:hover,
.main.mian_contact #miniSurveyView176 textarea:hover { border-color: #b9d0ee !important; }
.main.mian_contact #miniSurveyView176 input.form-control:focus,
.main.mian_contact #miniSurveyView176 select:focus,
.main.mian_contact #miniSurveyView176 textarea:focus {
  border-color: var(--ibc-blue) !important;
  box-shadow: 0 0 0 4px var(--ibc-focus) !important;
}

/* The SMS consent: the box is SHOWN before its text, beside the first line, at every width. This is a visual change only:
   the markup order (label, then input) and the tab order are unchanged; the input is the only focusable element here. */
.main.mian_contact #miniSurveyView176 .form-group.check-box {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--ibc-line) !important;
  border-radius: 12px !important;
  background: #f6f9fe !important;
}
.main.mian_contact #miniSurveyView176 .form-group.check-box label.control-label {
  flex: 1 1 auto !important;
  margin: 0 !important;
  font: 400 13.5px/1.5 "Open Sans", Arial, sans-serif !important;
  color: #3d5468 !important;
}
.main.mian_contact #miniSurveyView176 .form-group.check-box input[type="checkbox"] {
  flex: 0 0 auto !important;
  width: 22px !important;
  min-height: 22px !important;
  margin: 1px 0 0 !important;
  accent-color: var(--ibc-blue) !important;
  box-shadow: none !important;
}

/* The submit: white on brand blue, full width, a clear focus ring. */
.main.mian_contact #miniSurveyView176 .form-actions { margin-top: 6px !important; }
.main.mian_contact #miniSurveyView176 input[type="submit"].btn.btn-primary {
  width: 100% !important;
  min-height: 56px !important;
  padding: 14px 24px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--ibc-blue) 0%, var(--ibc-blue-2) 100%) !important;
  color: #ffffff !important;
  font: 700 18px/1 "Open Sans", Arial, sans-serif !important;
  letter-spacing: .02em !important;
  box-shadow: 0 10px 24px -10px rgba(29, 99, 184, .75) !important;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease !important;
}
.main.mian_contact #miniSurveyView176 input[type="submit"].btn.btn-primary:hover {
  filter: brightness(1.06) !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px -10px rgba(29, 99, 184, .85) !important;
}
.main.mian_contact #miniSurveyView176 input[type="submit"].btn.btn-primary:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 4px var(--ibc-focus), 0 10px 24px -10px rgba(29, 99, 184, .75) !important;
}

/* The trust card keeps one BBB badge on the page (the footer's). */
.main.mian_contact .ib-trust-badges a[href*="bbb"] { display: none !important; }

@media (max-width: 767px) {
  .main.mian_contact #formblock176 { padding: 22px 18px 18px !important; border-radius: 18px !important; }
  /* Phone: the "Why people talk to us" card comes back; the lifestyle cut-out goes. */
  .main.mian_contact .mob_show { display: none !important; }
  .main.mian_contact .mob_hide.contact_img1 { display: block !important; margin-top: 28px !important; }
  /* Phone: the form comes first, the card follows it. */
  main.mian_contact > .container > .row > .main_contact_form { order: 1 !important; }
  main.mian_contact > .container > .row > .mob_hide.contact_img1 { order: 2 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .main.mian_contact #miniSurveyView176 input.form-control,
  .main.mian_contact #miniSurveyView176 select,
  .main.mian_contact #miniSurveyView176 textarea,
  .main.mian_contact #miniSurveyView176 input[type="submit"].btn.btn-primary { transition: none !important; }
  .main.mian_contact #miniSurveyView176 input[type="submit"].btn.btn-primary:hover { transform: none !important; }
}

/* ===================== PASS 2 (11-18-26) ===================== */

/* (1) SECTION TOPS. The view sets '.main.mian_contact { padding: 8px 0 44px !important }' (the form hugged the hero) and
   '.ib-trust-card { margin-top: 8px }' (the card sat 8 px lower than the form column). Both columns now start on the
   row's top line, 56 px below the hero (32 px on a phone): the card's top edge and the "Get in touch" line meet it. */
main.main.mian_contact { padding-top: 56px !important; }
.main.mian_contact .ib-trust-card { margin-top: 0 !important; }
/* One heading style for both columns ("Why people talk to us" was Open Sans 300, "Get in touch" 700): the hero's own
   weight (600), smaller than the hero, white. The "Get in touch" line is a <p> with an inline style, so !important. */
.main.mian_contact .ib-trust-card > h2,
.main.mian_contact .main_contact_form > .container.interior > p:first-child {
  font: 600 28px/1.25 "Open Sans", Arial, sans-serif !important;
  letter-spacing: -.005em !important;
  color: #ffffff !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
}
@media (max-width: 767px) {
  main.main.mian_contact { padding-top: 32px !important; }
  .main.mian_contact .ib-trust-card > h2,
  .main.mian_contact .main_contact_form > .container.interior > p:first-child { font-size: 23px !important; margin-bottom: 12px !important; }
}

/* (2) THE HERO. The view's head <style> makes the hero a fixed-height box (clamp(380px, 27vw, 540px), line-height 0,
   overflow hidden) and lays the heading block over the picture with position:absolute; under 900 px it adds a dark
   scrim (:after) across the whole box. Here the box is a flex row on the page's content grid (the .container widths
   1230 / 970 / 750 px, 30 px inset), the heading block is in flow, and the scrim is off: the text never sits on the
   picture at any width. */
body.contact_page .mian_banner_video.contact_banner_video {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 56px !important;
  height: auto !important;
  min-height: clamp(420px, 27vw, 520px) !important;
  aspect-ratio: auto !important;
  /* left edge = the card's left edge, right edge = the form card's right edge (the columns' gutters differ by 15 px) */
  padding: 48px max(30px, calc((100% - 1230px) / 2 + 30px)) 48px max(15px, calc((100% - 1230px) / 2 + 15px)) !important;
  box-sizing: border-box !important;
  line-height: 1.5 !important;
  overflow: hidden !important;
  border-bottom: 1px solid rgba(255, 255, 255, .07) !important;
  background:
    radial-gradient(38% 72% at 76% 52%, rgba(61, 139, 255, .30), transparent 70%),
    radial-gradient(22% 44% at 93% 16%, rgba(62, 174, 84, .16), transparent 72%),
    radial-gradient(24% 40% at 62% 92%, rgba(255, 162, 58, .12), transparent 72%),
    linear-gradient(135deg, #04385d 0%, #083761 58%, #15306b 100%) !important;
}
body.contact_page .mian_banner_video.contact_banner_video::after { content: none !important; display: none !important; }
body.contact_page .contact_banner_video .banner_heading {
  position: relative !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: 560px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.contact_page .contact_banner_video .ibc-hero-visual { position: relative; z-index: 1; flex: 0 1 500px; min-width: 0; }
@media (min-width: 992px) and (max-width: 1199px) {
  body.contact_page .mian_banner_video.contact_banner_video { gap: 40px !important; padding-left: calc((100% - 970px) / 2 + 15px) !important; padding-right: calc((100% - 970px) / 2 + 30px) !important; }
  body.contact_page .contact_banner_video .ibc-hero-visual { flex-basis: 440px; }
}
@media (max-width: 991px) {
  body.contact_page .mian_banner_video.contact_banner_video {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 22px !important;
    min-height: 0 !important;
    padding: 30px calc((100% - 750px) / 2 + 30px) 28px calc((100% - 750px) / 2 + 15px) !important;
    background:
      radial-gradient(70% 40% at 70% 78%, rgba(61, 139, 255, .26), transparent 72%),
      linear-gradient(160deg, #04385d 0%, #083761 60%, #15306b 100%) !important;
  }
  body.contact_page .contact_banner_video .banner_heading { flex: none !important; max-width: none !important; }
  body.contact_page .contact_banner_video .ibc-hero-visual { flex: none; width: 100%; max-width: 560px; }
}
/* Phone: the page's content edge is 30 px from each side (the heading and the form card); the hero keeps to it. */
@media (max-width: 767px) {
  body.contact_page .mian_banner_video.contact_banner_video { padding-left: 30px !important; padding-right: 30px !important; }
}

/* The product view: the homepage's "Meet The Brain" panel colours and its "Decision ready" badge; the bars use the
   brain mark's colours. Illustrative: no person, no figure, no record. */
body.contact_page .ibc-pv {
  position: relative;
  padding: 22px 24px 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: radial-gradient(120% 120% at 72% 8%, #0a4470, #04263f 62%, #031f34);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .70), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #ffffff;
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.3;
  text-shadow: none;
}
body.contact_page .ibc-pv-top { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
body.contact_page .ibc-pv-mark { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(61, 139, 255, .7); }
body.contact_page .ibc-pv-name { font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap; }
body.contact_page .ibc-pv-ready {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 107, .55);
  background: rgba(3, 31, 52, .72);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
body.contact_page .ibc-pv-chk,
body.contact_page .ibc-pv-steps li::before,
body.contact_page .ibc-pv-rows li::after {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
body.contact_page .ibc-pv-chk { width: 18px; height: 18px; background: #ffd36b; color: #053353; }

body.contact_page .ibc-pv-steps { list-style: none; display: flex; align-items: center; margin: 18px 0 0; padding: 0; }
body.contact_page .ibc-pv-steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .9); white-space: nowrap; }
body.contact_page .ibc-pv-steps li:not(:last-child) { flex: 1 1 auto; }
body.contact_page .ibc-pv-steps li::before { content: "\2713"; background: #3eae54; color: #ffffff; }
body.contact_page .ibc-pv-steps li:last-child::before { background: #ffd36b; color: #053353; }
body.contact_page .ibc-pv-steps li:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  min-width: 14px;
  height: 2px;
  margin: 0 10px 0 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3eae54, #3d8bff);
}

body.contact_page .ibc-pv-rows { list-style: none; display: grid; gap: 12px; margin: 18px 0 0; padding: 0; }
body.contact_page .ibc-pv-rows li { display: grid; grid-template-columns: 34px 1fr 20px; align-items: center; gap: 12px; }
body.contact_page .ibc-pv-rows svg {
  box-sizing: border-box;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .06);
  fill: none;
  stroke: #9fd0ff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
body.contact_page .ibc-pv-rows li::after { content: "\2713"; background: rgba(62, 174, 84, .20); color: #6fdc89; }
body.contact_page .ibc-pv-bar { position: relative; height: 8px; border-radius: 8px; overflow: hidden; background: rgba(159, 208, 255, .12); }
body.contact_page .ibc-pv-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: left center;
  animation: ibc-pv-fill 1.1s cubic-bezier(.2, .7, .2, 1) backwards;
}
/* the bar reads as data points: thin gaps every 8 px */
body.contact_page .ibc-pv-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 6px, rgba(3, 31, 52, .55) 6px 8px);
}
body.contact_page .ibc-pv-rows li:nth-child(1) .ibc-pv-bar::before { background: linear-gradient(90deg, #ff6b5b, #ffa23a); }
body.contact_page .ibc-pv-rows li:nth-child(2) .ibc-pv-bar::before { background: linear-gradient(90deg, #ffa23a, #ffd36b); animation-delay: .15s; }
body.contact_page .ibc-pv-rows li:nth-child(3) .ibc-pv-bar::before { background: linear-gradient(90deg, #3eae54, #3d8bff); animation-delay: .3s; }
body.contact_page .ibc-pv-rows li:nth-child(4) .ibc-pv-bar::before { background: linear-gradient(90deg, #3d8bff, #8a6cff); animation-delay: .45s; }
@keyframes ibc-pv-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Phone: the same view, compact (the four rows become one line of four). */
@media (max-width: 600px) {
  body.contact_page .ibc-pv { padding: 14px 14px 16px; border-radius: 18px; }
  body.contact_page .ibc-pv-top { gap: 10px; padding-bottom: 12px; }
  body.contact_page .ibc-pv-mark { width: 34px; height: 34px; border-radius: 9px; }
  body.contact_page .ibc-pv-name { font-size: 14px; }
  body.contact_page .ibc-pv-ready { gap: 6px; padding: 5px 10px 5px 6px; font-size: 12px; }
  body.contact_page .ibc-pv-steps { margin-top: 14px; }
  body.contact_page .ibc-pv-steps li { gap: 6px; font-size: 12px; }
  body.contact_page .ibc-pv-steps li::before { width: 18px; height: 18px; font-size: 10px; }
  body.contact_page .ibc-pv-steps li:not(:last-child)::after { min-width: 8px; margin: 0 6px 0 0; }
  body.contact_page .ibc-pv-rows { grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
  body.contact_page .ibc-pv-rows li { grid-template-columns: 24px 1fr; gap: 6px; }
  body.contact_page .ibc-pv-rows li::after { content: none; display: none; }
  body.contact_page .ibc-pv-rows svg { width: 24px; height: 24px; padding: 4px; border-radius: 7px; }
  body.contact_page .ibc-pv-bar { height: 6px; }
}

/* Narrow phones (under 380 px, the 360 px Android width included): the mark alone names the panel, and the steps tighten, so nothing overflows. */
@media (max-width: 379px) {
  body.contact_page .ibc-pv { padding: 12px 12px 14px; }
  body.contact_page .ibc-pv-name { display: none; }
  body.contact_page .ibc-pv-ready { margin-left: auto; }
  body.contact_page .ibc-pv-steps li { gap: 4px; font-size: 11px; }
  body.contact_page .ibc-pv-steps li::before { width: 16px; height: 16px; font-size: 9px; }
  body.contact_page .ibc-pv-steps li:not(:last-child)::after { min-width: 0; margin: 0 4px; }
  body.contact_page .ibc-pv-rows { gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body.contact_page .ibc-pv-bar::before { animation: none !important; }
}
