/* Page-specific styles for bug-report.html — the form sits in a static
   console card (same voice as the homepage audit console / country pages).
   Element ids (bugForm/bugText/sendBtn/thanksMsg) are the page's JS
   contract; classes here are presentation only. */
body.tool-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 1.5rem 3rem; /* top padding belongs to the chrome header */
  background: var(--bg);
  color: var(--fg);
}

/* Lit backdrop, same treatment as the other #cortex tool pages
   (contractor/medical/solar/privacy): the reactive canvas sits at the very
   back and a fixed cyan radial glow rides above it. Without this glow the
   page rendered as a flat near-black field — the canvas alone (dark idle
   frame) reads as "no background". */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(0, 255, 255, 0.08), transparent 75%);
  z-index: -1;
  pointer-events: none;
}

#cortex {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

.breadcrumb-trail {
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 2rem;
  color: var(--accent);
  text-transform: none;
}

.breadcrumb-link {
  color: var(--accent);
  text-decoration: none;
}

.breadcrumb-link:hover,
.breadcrumb-link:focus {
  color: var(--accent-hover);
  text-decoration: underline;
}

.breadcrumb-separator {
  color: rgba(255, 255, 255, 0.5);
}

.breadcrumb-current {
  color: var(--fg);
  font-weight: 600;
}

h1 {
  font-family: var(--font-display, system-ui, sans-serif);
  font-size: clamp(2.1rem, 5vw, 3rem);
  color: var(--qc-text-strong, #f1fbff);
  margin: 0 0 0.8rem;
}

p.tagline {
  max-width: 600px;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  color: var(--qc-text-mid, #d4e9f4);
}

/* ── the report console ── */

.bug-console {
  width: min(680px, 100%);
  text-align: left;
  border: 1px solid rgba(47, 233, 255, 0.35);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(47, 233, 255, 0.06), transparent 55%),
    rgba(3, 12, 18, 0.88);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.55),
    0 0 32px rgba(47, 233, 255, 0.14);
}

.bug-console__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: rgba(7, 32, 42, 0.95);
  border-bottom: 1px solid rgba(47, 233, 255, 0.25);
}

.bug-console__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(47, 233, 255, 0.4); }
.bug-console__dot:first-child { background: rgba(255, 107, 107, 0.55); }
.bug-console__dot:nth-child(2) { background: rgba(255, 211, 105, 0.55); }

.bug-console__title {
  margin-left: 0.55rem;
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  color: var(--qc-text-dim, #adcdda);
  text-transform: uppercase;
}

.bug-console__body {
  padding: 1.15rem 1.4rem 1.3rem;
}

.bug-field-label {
  display: block;
  margin: 1rem 0 0.45rem;
  font-size: 0.88rem;
  color: var(--qc-text-strong, #f1fbff);
}

.bug-field-label:first-child { margin-top: 0; }

.bug-field-optional {
  color: var(--qc-text-dim, #adcdda);
  font-size: 0.78rem;
}

/* Shared field chrome — mirrors the audit pages' #metro dropdown */
.bug-console select,
.bug-console textarea,
.bug-console input[type="email"] {
  display: block;
  width: 100%;
  padding: 0.6rem;
  background: rgba(0, 20, 26, 0.85);
  color: var(--accent);
  border: 1px solid rgba(0, 255, 255, 0.35);
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.9rem;
}

.bug-console textarea {
  min-height: 11rem;
  resize: vertical;
}

.bug-console select:focus-visible,
.bug-console textarea:focus-visible,
.bug-console input[type="email"]:focus-visible {
  outline: 2px solid var(--qc-accent, #2fe9ff);
  outline-offset: 1px;
}

.bug-console ::placeholder { color: rgba(173, 205, 218, 0.55); }

/* ── send CTA (bracket style) ── */

.bug-console button {
  margin-top: 1.3rem;
  padding: 0.7rem 1.4rem;
  border: 1px solid rgba(47, 233, 255, 0.55);
  border-radius: 999px;
  background: var(--qc-accent, #2fe9ff);
  color: #041016;
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 24px rgba(47, 233, 255, 0.35);
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bug-console button:hover:enabled {
  background: var(--accent-hover, #00e5cc);
  box-shadow: 0 0 34px rgba(47, 233, 255, 0.5);
  transform: translateY(-1px);
}

.bug-console button:active:enabled { transform: scale(0.97); }

.bug-console button:disabled {
  background: rgba(47, 233, 255, 0.15);
  color: rgba(173, 205, 218, 0.6);
  border-color: rgba(47, 233, 255, 0.2);
  box-shadow: none;
  cursor: not-allowed;
}

@media (prefers-reduced-motion: reduce) {
  .bug-console button { transition: none; }
  .bug-console button:hover:enabled { transform: none; }
}

.bug-console__hint {
  margin: 0.9rem 0 0;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--qc-text-dim, #adcdda);
  text-align: left;
}

/* ── post-send state ── */

.fade-out { opacity: 0; transition: opacity .5s ease; pointer-events: none; }

#thanksMsg {
  font-size: 1.05rem;
  font-family: var(--font);
  color: var(--qc-text-mid, #d4e9f4);
  margin-top: 2rem;
  opacity: 0;
  transition: opacity .5s ease;
}

#thanksMsg.show { opacity: 1; }

.bug-thanks-tick { color: #46d39a; }

/* === Inline Styles Moved to CSS === */
.trouble-note {
  text-align: center;
  margin-top: 1.6rem;
  font-size: 0.9rem;
  color: var(--text-muted, #adcdda);
}

.accent-link { color: var(--accent); }
.underline { text-decoration: underline; }

.return-link { margin-top: 1rem; }
