/* Cognexaa Contact page. Loaded after css/cognexaa.css, on /contact/ only. */

.cx-routes svg { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; }
.cx-routes text { font-family: inherit; }

/* Enquiry topics */
.cx-help-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
.cx-help { grid-column: span 2; display: flex; flex-direction: column; align-items: flex-start; padding: 1.6rem; border: 1px solid var(--cx-line); border-radius: var(--cx-radius); background: #fff; transition: border-color .2s, box-shadow .2s; }
.cx-help.wide { grid-column: span 3; }
.cx-help:hover { border-color: #cfd3f5; box-shadow: var(--cx-shadow); }
.cx-help.is-selected { border-color: var(--cx-indigo); box-shadow: 0 0 0 1px var(--cx-indigo); }
.cx-help h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.cx-help p { font-size: .95rem; color: var(--cx-muted); }
.cx-help .links { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: auto 0 0; }
.cx-link .ic { width: 1.05em; height: 1.05em; }

/* Form */
.cx-form-card { padding: 2.25rem; border: 1px solid var(--cx-line); border-radius: 1.25rem; background: #fff; box-shadow: 0 18px 40px -30px rgba(13, 18, 48, .35); }
.cx-pending { margin-bottom: 1.25rem; padding: 1rem 1.2rem; border: 1px solid #e6dcae; border-radius: .7rem; background: #fffbea; color: #443800; font-size: .95rem; }
.cx-summary { margin-bottom: 1.25rem; padding: 1rem 1.2rem; border: 1px solid #e3b4b4; border-radius: .7rem; background: #fdf1f1; color: #7a1616; font-size: .95rem; }
.cx-summary:focus { outline: 3px solid var(--cx-indigo); outline-offset: 2px; }
.cx-summary p { margin: 0 0 .35rem; font-weight: 700; }
.cx-summary ul { margin: 0; padding-left: 1.2rem; }
.cx-summary a { color: #7a1616; }
.cx-form-note { font-size: .9rem; color: var(--cx-muted); margin-bottom: 1.25rem; }
.cx-sr-status { font-size: .9rem; font-weight: 600; color: var(--cx-indigo); margin-bottom: 1rem; }
.cx-sr-status:empty { display: none; }
.cx-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 1.5rem; }
.cf { min-width: 0; }
.cf.full { grid-column: 1 / -1; }
.cf label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 700; }
.cf label span { font-weight: 500; color: var(--cx-muted); }
.cf input, .cf select, .cf textarea { display: block; width: 100%; min-height: 2.9rem; padding: .55rem .8rem; border: 1px solid #8d94aa; border-radius: .55rem; background: #fff; color: var(--cx-text); font: inherit; }
.cf textarea { min-height: 9rem; resize: vertical; }
.cf input:focus, .cf select:focus, .cf textarea:focus { border-color: var(--cx-indigo); }
.cf [aria-invalid="true"] { border-color: #b3261e; box-shadow: 0 0 0 1px #b3261e; }
.cf-hint { margin: .3rem 0 0; font-size: .84rem; color: var(--cx-muted); }
.cf-error { margin: .3rem 0 0; font-size: .88rem; font-weight: 600; color: #a31d16; }
.cf-error-consent { margin: -.4rem 0 .75rem 1.85rem; }
.cf-consent { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: .75rem; }
.cf-consent input { flex: none; width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--cx-indigo); }
.cf-consent input[aria-invalid="true"] { outline: 2px solid #b3261e; outline-offset: 1px; }
.cf-consent label { font-size: .93rem; color: var(--cx-text); }
.cf-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: 1.5rem; }
.cf-actions .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.cf-status { flex: 1 1 16rem; margin: 0; font-size: .92rem; font-weight: 600; color: var(--cx-text); }
.cf-status:empty { display: none; }
.cf-status.is-error { color: #a31d16; }
/* Spam trap: moved off-screen rather than display:none so basic bots still fill it. */
.cx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-success { padding: 1rem 0; }
.cf-success:focus { outline: none; }
.cf-success h3 { font-size: 1.4rem; margin-bottom: .5rem; }
.cf-success p { color: var(--cx-muted); }

/* Three steps, reusing the homepage flow */
.cx-flow.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-flow.three::before { left: 16.67%; right: 16.67%; }
.cx-flow.three .node { box-shadow: 0 0 0 8px #fff; }
.cx-flow.three li:last-child .node { background: var(--cx-grad); }
.cx-flow.three h3 { font-size: 1.15rem; letter-spacing: -.01em; }

/* Solutions */
.cx-product h3 { margin-bottom: .8rem; }

/* Partnerships */
.cx-partner-label { font-weight: 700; margin-bottom: .75rem; }
.cx-partner-list { list-style: none; margin: 0; padding: 0; }
.cx-partner-list li { display: flex; gap: .65rem; align-items: flex-start; padding-block: .8rem; border-top: 1px solid #d9ddea; }
.cx-partner-list .ic { color: var(--cx-indigo); margin-top: .15rem; }

/* Direct contact */
.cx-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; padding-block: 2.25rem; border-block: 2px solid var(--cx-text); }
.cx-direct > div { flex: 1 1 24rem; min-width: 0; }
.cx-direct h2 { font-size: 1.45rem; margin-bottom: .45rem; }
.cx-direct p { margin: 0; color: var(--cx-muted); }
.cx-direct-mail { display: inline-flex; align-items: center; gap: .6rem; font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); font-weight: 700; text-underline-offset: 4px; overflow-wrap: anywhere; }

#enquiry { scroll-margin-top: 80px; }
@media (min-width: 992px) { .cx-form-intro { position: sticky; top: 100px; align-self: flex-start; } }

@media (max-width: 991.98px) {
  .cx-help, .cx-help.wide { grid-column: span 3; }
  .cx-help.wide:last-child { grid-column: 1 / -1; }
}
@media (max-width: 767.98px) {
  .cx-help, .cx-help.wide, .cx-help.wide:last-child { grid-column: 1 / -1; }
  .cx-flow.three { grid-template-columns: minmax(0, 1fr); }
  .cx-flow.three::before { left: 2rem; right: auto; bottom: 6rem; }
  .cx-flow.three .node { box-shadow: 0 0 0 6px #fff; }
  .cx-form-grid { grid-template-columns: minmax(0, 1fr); }
  .cf-actions .btn { width: 100%; }
}
@media (max-width: 575.98px) {
  .cx-form-card { padding: 1.35rem; }
  .cx-product .actions .btn { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .cx-help { transition: none; } }
