/* SKH Mission Control – Bug Report Frontend CSS */
.skhmc-br-hp { position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }

/* Trigger-knapp */
.skhmc-br-trigger {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9998;
  background: #1e293b;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background .15s, transform .15s;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.skhmc-br-trigger:hover { background: #0f172a; transform: translateY(-2px); }

/* Modal overlay */
.skhmc-br-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.55);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.skhmc-br-modal.is-open { display: flex; }

.skhmc-br-modal-inner {
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 28px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Stäng-knapp */
.skhmc-br-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none; border: none;
  font-size: 20px; color: #64748b;
  cursor: pointer; padding: 4px 8px;
  line-height: 1;
}
.skhmc-br-close:hover { color: #0f172a; }

.skhmc-br-title { font-size: 20px; font-weight: 800; color: #0f172a; margin: 0 0 6px; }
.skhmc-br-desc  { font-size: 13px; color: #64748b; margin: 0 0 20px; }

/* Formulärfält */
.skhmc-br-field { margin-bottom: 16px; }
.skhmc-br-field label {
  display: block;
  font-size: 13px; font-weight: 600; color: #374151;
  margin-bottom: 5px;
}
.skhmc-br-req  { color: #ef4444; }
.skhmc-br-opt  { color: #9ca3af; font-weight: 400; }

.skhmc-br-field input[type="text"],
.skhmc-br-field input[type="email"],
.skhmc-br-field select,
.skhmc-br-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
  transition: border-color .15s;
  font-family: inherit;
}
.skhmc-br-field input:focus,
.skhmc-br-field select:focus,
.skhmc-br-field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.skhmc-br-field textarea { resize: vertical; min-height: 100px; }

.skhmc-br-counter { font-size: 11px; color: #9ca3af; text-align: right; margin-top: 3px; }

/* Meddelanden */
.skhmc-br-msg {
  padding: 10px 14px; border-radius: 8px;
  font-size: 13px; font-weight: 600; margin-bottom: 12px;
}
.skhmc-br-msg--err { background: #fee2e2; color: #991b1b; border: 1px solid #fca5a5; }

/* Skicka-knapp */
.skhmc-br-submit {
  width: 100%;
  padding: 12px;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.skhmc-br-submit:hover:not(:disabled) { background: #1d4ed8; }
.skhmc-br-submit:disabled { opacity: .6; cursor: default; }

/* Tackmeddelande */
.skhmc-br-success {
  text-align: center;
  padding: 20px 0 8px;
}
.skhmc-br-success-icon { font-size: 36px; display: block; margin-bottom: 10px; }
.skhmc-br-success strong { display: block; font-size: 18px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.skhmc-br-success p { font-size: 14px; color: #64748b; margin: 0 0 16px; }
.skhmc-br-close-success {
  background: #f1f5f9; border: none; border-radius: 8px;
  padding: 9px 24px; font-size: 14px; font-weight: 600;
  color: #374151; cursor: pointer;
}
.skhmc-br-close-success:hover { background: #e2e8f0; }

@media (max-width: 480px) {
  .skhmc-br-trigger { bottom: 16px; right: 16px; font-size: 13px; padding: 9px 16px; }
  .skhmc-br-modal-inner { padding: 24px 18px 20px; }
}
