/* DevOpser step-by-step contact modal - one question per screen.
   Uses the shared 2026 tokens from devopser-2026.css. */

.cm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(4, 6, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.cm-backdrop.is-open { opacity: 1; visibility: visible; }

.cm-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 340px;
  background: linear-gradient(180deg, var(--ink-3, #161d33), var(--ink-2, #0f1424));
  border: 1px solid var(--rule-2, #2d3858);
  border-radius: var(--radius-card, 8px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(237, 22, 108, 0.08);
  padding: 30px 32px 34px;
  display: flex;
  flex-direction: column;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  overflow: hidden;
}
.cm-backdrop.is-open .cm-card { transform: translateY(0) scale(1); }

/* accent hairline at the top edge */
.cm-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pink, #ED166C), transparent);
  opacity: 0.7;
}

.cm-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 30px; height: 30px;
  border: 0;
  background: transparent;
  color: var(--text-3, #6b7388);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.cm-close:hover { color: var(--text, #f7f8fb); background: rgba(255, 255, 255, 0.05); }

/* progress dots */
.cm-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}
.cm-dots i {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--rule-2, #2d3858);
  transition: background 0.3s ease, width 0.3s ease;
}
.cm-dots i.on { background: var(--pink, #ED166C); width: 34px; }
.cm-dots i.done { background: var(--pink-2, #c41058); }

/* stage - the swapping content region */
.cm-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.cm-stage.cm-out { opacity: 0; transform: translateX(-14px); }

.cm-eyebrow {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--pink-3, #ff3d8b);
  margin: 0 0 10px;
}
.cm-q {
  font-family: var(--font-display, 'Saira Condensed', sans-serif);
  font-weight: 800;
  font-size: clamp(1.5rem, 5vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text, #f7f8fb);
  margin: 0 0 20px;
  text-transform: uppercase;
}

.cm-input,
.cm-area {
  width: 100%;
  box-sizing: border-box;
  background: var(--ink, #0a0e1a);
  border: 1px solid var(--rule-2, #2d3858);
  border-radius: var(--radius-button, 3px);
  color: var(--text, #f7f8fb);
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 16px;
  padding: 13px 15px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.cm-input:focus,
.cm-area:focus {
  outline: none;
  border-color: var(--pink, #ED166C);
  box-shadow: 0 0 0 3px var(--pink-soft, rgba(237, 22, 108, 0.18));
}
.cm-input::placeholder,
.cm-area::placeholder { color: var(--text-4, #4a526a); }
.cm-input.cm-bad { border-color: #f0506e; box-shadow: 0 0 0 3px rgba(240, 80, 110, 0.2); }
.cm-area { margin-top: 12px; resize: vertical; min-height: 64px; font-size: 15px; }

/* reason chips */
.cm-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.cm-reason {
  text-align: left;
  background: var(--ink, #0a0e1a);
  border: 1px solid var(--rule-2, #2d3858);
  border-radius: var(--radius-button, 3px);
  color: var(--text-2, #aab2c7);
  font-family: var(--font-body, 'Public Sans', sans-serif);
  font-size: 13.5px;
  font-weight: 500;
  padding: 13px 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.cm-reason:hover { border-color: var(--rule-2, #2d3858); color: var(--text, #f7f8fb); background: var(--ink-3, #161d33); }
.cm-reason.sel {
  border-color: var(--pink, #ED166C);
  color: var(--text, #f7f8fb);
  background: var(--pink-soft, rgba(237, 22, 108, 0.18));
}

/* action row */
.cm-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 22px;
}
.cm-next {
  margin-left: auto;
  background: var(--pink, #ED166C);
  border: 0;
  border-radius: var(--radius-button, 3px);
  color: #fff;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 12px 22px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 20px -6px var(--pink-glow, rgba(237, 22, 108, 0.45));
}
.cm-next:hover { background: var(--pink-3, #ff3d8b); }
.cm-next:active { transform: translateY(1px); }
.cm-next:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.cm-back {
  background: transparent;
  border: 0;
  color: var(--text-3, #6b7388);
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 12px;
  padding: 10px 6px;
  cursor: pointer;
  transition: color 0.15s ease;
}
.cm-back:hover { color: var(--text, #f7f8fb); }

.cm-err {
  color: #ff7a95;
  font-size: 12.5px;
  margin-top: 12px;
  min-height: 16px;
}

/* success */
.cm-done {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
}
.cm-check {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--ink, #0a0e1a);
  background: var(--good, #34d399);
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 18px;
  box-shadow: 0 0 26px rgba(52, 211, 153, 0.4);
}
.cm-done .cm-q { margin-bottom: 8px; }
.cm-sub {
  color: var(--text-2, #aab2c7);
  font-size: 14.5px;
  margin: 0 0 22px;
}
.cm-sub b { color: var(--text, #f7f8fb); }
.cm-done .cm-next { margin-left: 0; }

/* honeypot - visually hidden, still submittable */
.cm-gotcha {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
}

@media (max-width: 480px) {
  .cm-card { padding: 26px 20px 28px; min-height: 320px; }
  .cm-reasons { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .cm-backdrop, .cm-card, .cm-stage, .cm-dots i, .cm-next { transition: none; }
  .cm-card { transform: none; }
}
