/* Workforce Assemble contact, quick-scan, accessibility, and help controls */

/* Contact page */
.contact-hero { padding-bottom: 48px; }
.contact-page-shell { max-width: 1160px; margin: 0 auto; }
.contact-form-wide {
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--bg-soft);
  box-shadow: var(--sh-lg);
}
.contact-intent-fieldset { border: 0; padding: 0; margin: 0 0 34px; }
.contact-intent-fieldset legend {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  color: var(--text-strong);
  margin-bottom: 16px;
}
.contact-intent-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.contact-intent-card,
.demo-option { position: relative; display: block; cursor: pointer; }
.contact-intent-card input,
.demo-option input { position: absolute; opacity: 0; pointer-events: none; }
.contact-intent-card > span,
.demo-option > span {
  display: block;
  min-height: 108px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.contact-intent-card strong,
.demo-option strong { display: block; color: var(--text-strong); font-size: .92rem; }
.contact-intent-card small,
.demo-option small { display: block; margin-top: 6px; color: var(--text-muted); font-size: .76rem; line-height: 1.45; }
.contact-intent-card:hover > span,
.demo-option:hover > span,
.contact-intent-card input:focus-visible + span,
.demo-option input:focus-visible + span { border-color: var(--c-primary-400); }
.contact-intent-card input:checked + span,
.demo-option input:checked + span {
  border-color: var(--c-primary-500);
  box-shadow: 0 0 0 2px rgba(49, 90, 246, .14);
  transform: translateY(-1px);
}
.demo-preferences {
  margin: 0 0 34px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-muted);
}
.demo-preferences[hidden] { display: none; }
.demo-preferences h3 { margin-top: 10px; font-size: 1.2rem; }
.demo-preferences p { margin-top: 7px; color: var(--text-muted); }
.demo-option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.demo-option > span { min-height: 92px; }
.contact-fields { gap: 24px; }
.contact-fields .field label { margin-bottom: 8px; }
.contact-fields .optional { color: var(--text-muted); font-weight: 500; font-size: .78rem; }
.contact-fields textarea { min-height: 180px; resize: vertical; }
.contact-submit-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.contact-submit-row .form-note { max-width: 700px; }
.contact-submit-row .form-note.subtle { margin-top: 6px; font-size: .75rem; opacity: .78; }
.contact-next-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 22px; }
.contact-next-grid article { padding: 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-soft); }
.contact-next-grid article > span { color: var(--c-secondary-500); font-size: .75rem; font-weight: 800; letter-spacing: .08em; }
.contact-next-grid h3 { margin-top: 8px; font-size: 1rem; }
.contact-next-grid p { margin-top: 7px; color: var(--text-muted); font-size: .84rem; }

/* Homepage fast scan */
.quick-scan-section {
  padding: 30px 0 34px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.quick-scan-head {
  display: flex;
  align-items: end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.quick-scan-head .eyebrow { width: 100%; }
.quick-scan-head h2 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); }
.quick-scan-head p { color: var(--text-muted); font-size: .9rem; margin-bottom: 2px; }
.quick-scan-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.quick-scan-grid a {
  min-height: 76px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  box-shadow: var(--sh-sm);
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.quick-scan-grid a:hover,
.quick-scan-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-primary-400);
  box-shadow: var(--sh-md);
  outline: none;
}
.quick-scan-grid strong { display: block; color: var(--text-strong); font-size: .9rem; }
.quick-scan-grid span { display: block; margin-top: 4px; color: var(--text-muted); font-size: .7rem; line-height: 1.35; }

/* Separate website utility launchers */
.accessibility-launcher,
.help-launcher {
  position: fixed;
  z-index: 190;
  bottom: 18px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text-strong);
  box-shadow: var(--sh-lg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.accessibility-launcher:hover,
.accessibility-launcher:focus-visible,
.help-launcher:hover,
.help-launcher:focus-visible {
  transform: translateY(-2px);
  border-color: var(--c-primary-400);
  box-shadow: var(--sh-xl);
  outline: none;
}
.accessibility-launcher {
  left: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.05rem;
}
.help-launcher {
  right: 18px;
  width: 54px;
  height: 54px;
  padding: 6px;
  border-radius: 16px;
}
.help-launcher img { width: 100%; height: 100%; display: block; border-radius: 11px; }
.help-question-badge {
  position: absolute;
  right: -4px;
  top: -5px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--c-primary-600);
  color: #fff;
  border: 2px solid var(--bg);
  font-size: .72rem;
  line-height: 16px;
  font-weight: 900;
  text-align: center;
}

.site-utility-panel {
  position: fixed;
  z-index: 191;
  width: min(340px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 110px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg);
  box-shadow: var(--sh-xl);
}
.site-utility-panel[hidden] { display: none !important; }
/* Explicit top/right resets override the older global accessibility menu placement. */
.accessibility-menu { top: auto !important; right: auto !important; left: 18px; bottom: 76px; }
.help-panel { top: auto !important; left: auto !important; right: 18px; bottom: 82px; }
.site-utility-panel h3 { font-size: 1.05rem; margin-bottom: 4px; color: var(--text-strong); }
.site-utility-panel > p { color: var(--text-muted); font-size: .82rem; margin-bottom: 14px; }
.site-utility-panel button {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-strong);
  margin-top: 8px;
  font-weight: 650;
  font-size: .84rem;
  cursor: pointer;
}
.site-utility-panel button:hover,
.site-utility-panel button:focus-visible { border-color: var(--c-primary-400); outline: none; }
.site-utility-panel button[aria-pressed="true"] {
  border-color: var(--c-primary-400);
  background: var(--c-primary-50);
  color: var(--c-primary-800);
}
.question-links { display: grid; gap: 8px; }
.question-links a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text-strong);
  font-size: .84rem;
  font-weight: 700;
  text-decoration: none;
}
.question-links a:hover,
.question-links a:focus-visible { border-color: var(--c-primary-400); outline: none; }
.question-links a.question-primary { background: var(--c-primary-600); border-color: var(--c-primary-600); color: #fff; }
.question-links a.question-primary:hover,
.question-links a.question-primary:focus-visible { background: var(--c-primary-700); border-color: var(--c-primary-700); }

/* Accessibility behavior. The global design system also provides high-contrast token overrides. */
.a11y-large-text body { font-size: 18px; }
.a11y-reduce-motion *,
.a11y-reduce-motion *::before,
.a11y-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

@media (max-width: 1180px) {
  .quick-scan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .contact-intent-grid { grid-template-columns: repeat(2, 1fr); }
  .quick-scan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .contact-form-wide { padding: 24px 18px; border-radius: 20px; }
  .contact-intent-grid,
  .demo-option-grid,
  .contact-next-grid { grid-template-columns: 1fr; }
  .contact-intent-card > span { min-height: auto; }
  .contact-submit-row { align-items: stretch; flex-direction: column; }
  .contact-submit-row .btn { width: 100%; }
  .quick-scan-section { padding: 24px 0 28px; }
  .quick-scan-head { gap: 8px; }
  .quick-scan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quick-scan-grid a { min-height: 70px; padding: 12px; }
  .accessibility-launcher { left: 12px; bottom: 12px; }
  .help-launcher { right: 12px; bottom: 12px; width: 50px; height: 50px; }
  .accessibility-menu { top: auto !important; right: auto !important; left: 12px; bottom: 68px; width: min(330px, calc(100vw - 24px)); }
  .help-panel { top: auto !important; left: auto !important; right: 12px; bottom: 70px; width: min(330px, calc(100vw - 24px)); }
}

@media (max-width: 460px) {
  .quick-scan-grid { grid-template-columns: 1fr 1fr; }
  .quick-scan-grid strong { font-size: .84rem; }
  .quick-scan-grid span { font-size: .66rem; }
}

/* Public launch controls: pricing and demo are intentionally hidden for now. */
.nav-demo,
.mobile-menu a.btn[href*="#request-demo"],
.hero-cta a[href*="#request-demo"],
.cta-row a[href*="#request-demo"],
.question-links a.question-primary[href*="#request-demo"] {
  display: none !important;
}
.demo-preferences { display: none !important; }

/* Contact currently presents three non-demo paths. */
.contact-intent-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Stronger everyday contrast, including phones used in bright environments. */
html[data-theme="light"] {
  --text-muted: #475569;
  --border: #cbd5e1;
  --border-strong: #94a3b8;
}
html[data-theme="dark"] {
  --text-muted: #c0cadb;
  --border: #40516c;
  --border-strong: #60728f;
}
html[data-theme="light"] .contact-form-wide,
html[data-theme="light"] .contact-intent-card > span,
html[data-theme="light"] .contact-next-grid article,
html[data-theme="light"] .bundle-card,
html[data-theme="light"] .saas-card {
  border-color: #b8c4d2;
}
html[data-theme="dark"] .contact-form-wide,
html[data-theme="dark"] .contact-intent-card > span,
html[data-theme="dark"] .contact-next-grid article,
html[data-theme="dark"] .bundle-card,
html[data-theme="dark"] .saas-card {
  border-color: #465974;
}
.section.dark .lead { color: #cbd5e1; }

@media (max-width: 980px) {
  .contact-intent-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .contact-intent-grid-three { grid-template-columns: 1fr; }
  .lead,
  .contact-intent-card small,
  .contact-next-grid p,
  .bundle-card p,
  .saas-card p { font-weight: 500; }
}

@media (prefers-contrast: more) {
  :root {
    --border: #94a3b8;
    --border-strong: #64748b;
  }
  html[data-theme="dark"] {
    --border: #64748b;
    --border-strong: #94a3b8;
  }
  .btn,
  .contact-intent-card > span,
  .bundle-card,
  .saas-card,
  .site-utility-panel { border-width: 2px; }
}
