/* Cognexaa Book a Demo page. Loaded after css/contact.css, which provides the shared form styles. */

/* Two engagement paths */
.cx-paths { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.5rem; }
.cx-path { display: flex; flex-direction: column; align-items: flex-start; padding: 2.25rem; border-radius: 1.25rem; }
.cx-path h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem); margin-bottom: .6rem; }
.cx-path.demo { color: #fff; background: linear-gradient(165deg, var(--cx-ink), var(--cx-navy-2)); }
.cx-path.demo > p { color: rgba(255,255,255,.78); }
.cx-path.talk { border: 1px solid var(--cx-line); background: #fff; }
.cx-path.talk > p { color: var(--cx-muted); }
.cx-path-products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; width: 100%; margin: .75rem 0 1.5rem; }
.cx-path-products > div { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.cx-path-products img { height: 36px; width: auto; margin-bottom: 1rem; }
.cx-path-products .cx-path-list { flex: 1; }
.cx-path-products .btn-light { color: var(--cx-navy); }
.cx-path-list { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.cx-path-list li { position: relative; padding-left: 1.05rem; margin-bottom: .4rem; font-size: .93rem; line-height: 1.45; }
.cx-path-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: .4rem; height: .4rem; border-radius: 50%; background: var(--cx-azure-light); }
.cx-path.talk .cx-path-list li { color: var(--cx-text); }
.cx-path.talk .cx-path-list li::before { background: var(--cx-indigo); }
.cx-path-label { font-weight: 700; color: var(--cx-text) !important; margin-bottom: .6rem; }
.cx-path .btn { white-space: normal; }
.cx-path.talk .btn { margin-top: auto; }
.cx-path-try { margin-top: .7rem; font-size: .88rem; color: #fff; text-underline-offset: 3px; }
.cx-path-try:hover, .cx-path-try:focus { color: #fff; }

/* Form */
.cx-anchor { display: block; height: 0; scroll-margin-top: 80px; }
#request { position: relative; }
#request .cx-anchor { position: absolute; top: 0; }
.cx-choice, .cx-step { min-width: 0; margin: 0 0 2rem; padding: 0; border: 0; }
.cx-choice legend, .cx-step > legend { float: none; width: auto; margin-bottom: .85rem; padding: 0; font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; }
.cx-step > legend span { font-size: .92rem; font-weight: 500; color: var(--cx-muted); }
#fBody { counter-reset: step; }
.cx-step > legend::before { counter-increment: step; content: "Step " counter(step) ": "; color: var(--cx-indigo); }
.cx-step[hidden], [data-show][hidden] { display: none; }
.cx-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.cx-seg.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-seg label { position: relative; display: block; margin: 0; cursor: pointer; }
.cx-seg input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.cx-seg span { display: flex; align-items: center; justify-content: center; min-height: 3.1rem; padding: .5rem .75rem; text-align: center; font-weight: 700; border: 1.5px solid #8d94aa; border-radius: .6rem; background: #fff; color: var(--cx-text); }
.cx-seg input:hover + span { border-color: var(--cx-indigo); }
.cx-seg input:checked + span { background: var(--cx-indigo); border-color: var(--cx-indigo); color: #fff; }
.cx-seg input:focus-visible + span { outline: 3px solid var(--cx-indigo); outline-offset: 2px; }
.cx-product-note { margin: .75rem 0 0; font-size: .93rem; color: var(--cx-muted); }
.cx-checks-group { margin: 0; padding: 0; border: 0; }
.cx-checks-group legend { float: none; width: auto; margin-bottom: .4rem; padding: 0; font-size: .92rem; font-weight: 700; }
.cx-checks-group label { display: inline-flex; align-items: center; gap: .4rem; margin: 0 1.1rem .5rem 0; font-weight: 500; min-height: 1.75rem; }
.cx-checks-group input { width: 1.15rem; height: 1.15rem; min-height: 0; margin: 0; padding: 0; accent-color: var(--cx-indigo); }
.cf input[type="checkbox"] { display: inline-block; width: 1.15rem; min-height: 0; }
.cx-unsent { margin-top: 1.5rem; padding: 1.25rem; border: 1px solid #e6dcae; border-radius: .7rem; background: #fffbea; }
.cx-unsent h3 { font-size: 1.1rem; margin-bottom: .4rem; color: #443800; }
.cx-unsent h3:focus { outline: none; }
.cx-unsent p { font-size: .95rem; color: #443800; }
.cx-unsent label { display: block; margin-bottom: .3rem; font-size: .9rem; font-weight: 700; color: #443800; }
.cx-unsent textarea { display: block; width: 100%; padding: .6rem .8rem; border: 1px solid #8d94aa; border-radius: .55rem; background: #fff; color: var(--cx-text); font: inherit; font-size: .9rem; }
.cx-copy-status { display: inline-block; margin-left: .75rem; font-size: .9rem; font-weight: 600; color: #443800; }

/* Focus links */
.cx-focus-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; list-style: none; margin: 0; padding: 0; }
.cx-focus-links li { padding-block: 1rem; border-top: 1px solid var(--cx-line); }
.cx-focus-links a { display: block; font-weight: 700; text-underline-offset: 3px; }
.cx-focus-links span { font-size: .9rem; color: var(--cx-muted); }

.cx-flow.three.soft .node { box-shadow: 0 0 0 8px var(--cx-bg-soft); }

@media (max-width: 991.98px) {
  .cx-paths { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .cx-flow.three.soft .node { box-shadow: 0 0 0 6px var(--cx-bg-soft); }
}
@media (max-width: 575.98px) {
  .cx-path { padding: 1.5rem 1.25rem; }
  .cx-path-products { grid-template-columns: minmax(0, 1fr); }
  .cx-path .btn { width: 100%; }
  .cx-path .cx-path-try { align-self: flex-start; }
  .cx-seg.three { grid-template-columns: minmax(0, 1fr); }
  .cx-focus-links { grid-template-columns: minmax(0, 1fr); }
  .cx-copy-status { display: block; margin: .5rem 0 0; }
}
