/* Terminal Contact Form — SSH ウィザード風 */
.ct-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s;
}
.ct-overlay.is-open {
  opacity: 1;
  visibility: visible;
}
body.ct-lock {
  overflow: hidden;
}

.ct-window {
  width: min(680px, 100%);
  height: min(560px, 88vh);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border: 1px solid #2a2a2a;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d0d0d0;
  overflow: hidden;
}

.ct-titlebar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #141414;
  border-bottom: 1px solid #2a2a2a;
  flex-shrink: 0;
}
.ct-dots {
  display: flex;
  gap: 0.4rem;
}
.ct-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.ct-dot-close { background: #ff5f56; }
.ct-dot-min { background: #ffbd2e; }
.ct-dot-max { background: #28c843; }
.ct-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #a0a0a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-close {
  background: none;
  border: none;
  color: #a0a0a0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}
.ct-close:hover { color: #ff5f56; }

.ct-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.1rem;
  white-space: pre-wrap;
  word-break: break-word;
}
.ct-line { min-height: 1.2em; }
.ct-dim { color: #6a6a6a; }
.ct-ok { color: #28c843; }
.ct-err { color: #ff5f56; }

.ct-prompt { display: flex; flex-wrap: wrap; }
.ct-ps1 { color: #e8720c; white-space: pre; }
.ct-typed { color: #d0d0d0; }
.ct-cursor {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: #e8720c;
  animation: ct-blink 1s steps(1) infinite;
}
@keyframes ct-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

.ct-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}
.ct-input:focus { outline: none; }

/* honeypot: 人間には見えない、ボットだけ埋める */
.ct-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.ct-statusbar {
  display: flex;
  justify-content: space-between;
  padding: 0.35rem 0.9rem;
  background: #141414;
  border-top: 1px solid #2a2a2a;
  font-size: 11px;
  color: #a0a0a0;
  flex-shrink: 0;
}
.ct-status-right {
  display: flex;
  gap: 1rem;
}

@media (max-width: 640px) {
  .ct-window { height: 92vh; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ct-cursor { animation: none; }
}
