/* Shared "Suggest a feature" modal — used by index.html + roadmap.html */

.suggest-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 25, 41, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.suggest-overlay.visible { display: flex; }

.suggest-modal {
  background: white;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 460px;
  padding: 24px 24px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #0a1929;
}

.suggest-modal h2 {
  margin: 0 0 4px;
  color: #1976d2;
  font-size: 1.3rem;
}
.suggest-modal .suggest-sub {
  color: #666;
  font-size: 0.9rem;
  margin: 0 0 16px;
}

.suggest-modal label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  color: #0a1929;
  margin: 12px 0 6px;
}
.suggest-modal input[type="text"],
.suggest-modal textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  padding: 10px 12px;
  border: 1px solid #cfd8dc;
  border-radius: 8px;
  background: #f9fbfd;
  color: #0a1929;
  resize: vertical;
}
.suggest-modal input[type="text"]:focus,
.suggest-modal textarea:focus {
  outline: none;
  border-color: #1976d2;
  background: white;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15);
}
.suggest-modal textarea { min-height: 110px; }

/* Honeypot — hide from real users */
.suggest-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.suggest-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
}
.suggest-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 9px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}
.suggest-btn-primary {
  background: #1976d2;
  color: white;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}
.suggest-btn-primary:hover { background: #1565c0; }
.suggest-btn-primary:disabled {
  background: #90caf9;
  cursor: wait;
  box-shadow: none;
}
.suggest-btn-ghost {
  background: transparent;
  color: #1976d2;
}
.suggest-btn-ghost:hover { background: #e3f2fd; }

.suggest-status {
  margin-top: 12px;
  font-size: 0.88rem;
  min-height: 1.2em;
}
.suggest-status.error { color: #c62828; }
.suggest-status.success { color: #2e7d32; }

/* Button that opens the modal — neutral so each page's existing
   wrapper styling decides colour. */
button.suggest-trigger {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
}
