/* ============================================================
   BitHuB — Feedback Page Styles
   Professional Enterprise v4.0
   ============================================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #f0f0f0;
  background: #0c0c0c;
  min-height: 100vh;
}

/* ── Page Layout ──────────────────────────────────────────── */
.feedback-page-wrapper {
  min-height: 100vh;
  padding-top: 0;
  display: flex;
  flex-direction: column;
}

/* ── Page Header — slim, flat ─────────────────────────────── */
.feedback-hero {
  padding: 40px 40px 32px;
  border-bottom: 1px solid #1e1e1e;
  background: #0c0c0c;
}

.feedback-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #444;
  margin-bottom: 10px;
  display: block;
}

.feedback-hero h1 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #f0f0f0;
  margin-bottom: 6px;
}

.feedback-hero p {
  font-size: 13px;
  color: #555;
  max-width: 52ch;
  line-height: 1.6;
}

/* ── Form Layout ──────────────────────────────────────────── */
.feedback-body {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 720px;
  margin: 0;
  flex: 1;
}

#contact-section {
  background: #0c0c0c;
  border: none;
  border-right: 1px solid #1e1e1e;
  border-radius: 0;
  padding: 32px 40px 40px;
  box-shadow: none;
  backdrop-filter: none;
  animation: none;
}

#contact-section::before { display: none; }

/* ── Form section labels ─────────────────────────────────── */
.form-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #1e1e1e;
  display: flex;
  align-items: center;
}

.form-section-label::after { display: none; }

/* ── Input Groups ────────────────────────────────────────── */
.input-group {
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: start;
  gap: 0;
  border: 1px solid #1e1e1e;
  border-bottom: none;
}

.input-group:last-of-type { border-bottom: 1px solid #1e1e1e; }

.input-group label {
  display: flex;
  align-items: center;
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #111;
  border-right: 1px solid #1e1e1e;
  min-height: 42px;
}

/* ── Text Inputs ─────────────────────────────────────────── */
input[type="text"],
input:not([type="radio"]):not([type="submit"]):not([type="button"]) {
  flex-grow: 1;
  padding: 11px 14px;
  border: none;
  border-radius: 0;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  transition: background 0.14s ease;
  background: #0c0c0c;
  color: #f0f0f0;
  outline: none;
  width: 100%;
}

input[type="text"]::placeholder { color: #3a3a3a; }

input[type="text"]:focus,
input:not([type="radio"]):not([type="submit"]):not([type="button"]):focus {
  background: #111;
  outline: 1px solid #2a2a2a;
  outline-offset: -1px;
}

/* ── Roll Input ──────────────────────────────────────────── */
.roll-input-container {
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  background: #0c0c0c;
  border: none;
  overflow: visible;
  position: relative;
}

.roll-input-container:focus-within { background: #111; }

.roll-prefix, .roll-suffix {
  color: #3a3a3a;
  font-size: 12px;
  font-weight: 600;
  padding: 11px 12px;
  background: #111;
  border: none;
  border-right: 1px solid #1e1e1e;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.roll-suffix {
  border-right: none;
  border-left: 1px solid #1e1e1e;
}

.roll-input-container select {
  background: #111;
  border: none;
  border-right: 1px solid #1e1e1e;
  color: #888;
  padding: 11px 10px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  transition: background 0.14s;
  appearance: none;
  -webkit-appearance: none;
}

.roll-input-container select:focus { background: #161616; }
.roll-input-container select option { background: #111; color: #f0f0f0; }

.roll-input-container input[type="text"] {
  border: none !important;
  background: transparent !important;
  padding: 11px 10px;
  flex: 1;
  min-width: 0;
}

/* ── Recipient Select ────────────────────────────────────── */
.recipient-input-container {
  display: flex;
  align-items: stretch;
  flex-grow: 1;
  background: #0c0c0c;
  border: none;
  position: relative;
}

.recipient-input-container::after {
  content: '▾';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #333;
  font-size: 11px;
  pointer-events: none;
}

.recipient-input-container:focus-within { background: #111; }

.recipient-input-container select {
  background: transparent;
  border: none;
  color: #f0f0f0;
  padding: 11px 32px 11px 14px;
  font-size: 13px;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  outline: none;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.recipient-input-container select option { background: #111; color: #f0f0f0; }

/* ── Mood Pills — flat toggle ────────────────────────────── */
.feedback-mood-group {
  margin-bottom: 20px;
  border: 1px solid #1e1e1e;
  padding: 14px 16px;
  background: #0c0c0c;
}

.feedback-mood-label-text {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
  display: block;
  margin-bottom: 12px;
}

.mood-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.mood-pills input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}

.mood-pill-label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border: 1px solid #222;
  background: #111;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.14s ease;
  user-select: none;
}

.mood-pill-label:hover { border-color: #3a3a3a; color: #999; background: #161616; }

.mood-pill-label .pill-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #333;
  transition: all 0.14s ease;
}

.mood-pill-label:hover .pill-dot {
  background: #555;
}

.mood-pills input[value="Positive"]:checked + .mood-pill-label {
  background: rgba(76, 175, 128, 0.08);
  border-color: rgba(76, 175, 128, 0.35);
  color: #4caf80;
}
.mood-pills input[value="Positive"]:checked + .mood-pill-label .pill-dot {
  background: #4caf80;
}

.mood-pills input[value="Negative"]:checked + .mood-pill-label {
  background: rgba(224, 82, 82, 0.08);
  border-color: rgba(224, 82, 82, 0.35);
  color: #e05252;
}
.mood-pills input[value="Negative"]:checked + .mood-pill-label .pill-dot {
  background: #e05252;
}

.mood-pills input[value="Neutral"]:checked + .mood-pill-label {
  background: rgba(212, 145, 58, 0.08);
  border-color: rgba(212, 145, 58, 0.35);
  color: #d4913a;
}
.mood-pills input[value="Neutral"]:checked + .mood-pill-label .pill-dot {
  background: #d4913a;
}

/* ── Message container ───────────────────────────────────── */
#messageContainer {
  border: 1px solid #1e1e1e;
  border-top: none;
  font-size: 13px;
  line-height: 1.65;
  padding: 14px 16px;
  background: #0c0c0c;
  color: #f0f0f0;
  min-height: 160px;
  outline: none;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  transition: background 0.14s;
}

#messageContainer:focus-within { background: #0f0f0f; }

.message-input-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #3a3a3a;
  display: block;
  padding: 10px 16px;
  border: 1px solid #1e1e1e;
  background: #111;
  border-bottom: none;
}

#prefixSpan {
  user-select: none;
  pointer-events: none;
  color: #333;
  font-size: 12px;
  display: block;
}

#userSpan {
  padding: 0; margin: 0;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  display: block;
  width: 100%;
  color: #f0f0f0;
  min-height: 80px;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  flex: 1;
}

#userSpan:focus { outline: none; }

/* ── Note ───────────────────────────────────────────────── */
.form-note {
  font-size: 11px;
  color: #333;
  margin: 16px 0 20px;
  line-height: 1.6;
  padding: 0;
}

/* ── Submit Button — flat enterprise CTA ────────────────── */
.submit-btn-wrap { text-align: left; }

button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  background: #f0f0f0;
  color: #0c0c0c;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 0.14s ease, color 0.14s ease;
  position: relative;
}

button[type="submit"]:hover {
  background: #cccccc;
}

button[type="submit"]:active {
  background: #aaaaaa;
}

/* ── Response Message ────────────────────────────────────── */
#responseMessage {
  font-size: 12px;
  font-weight: 600;
  color: #4caf80;
  padding: 10px 14px;
  margin-top: 16px;
  border: 1px solid rgba(76, 175, 128, 0.2);
  background: rgba(76, 175, 128, 0.06);
  letter-spacing: 0.02em;
  display: none;
}

#responseMessage:not(:empty) { display: block; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .feedback-hero { padding: 28px 20px 24px; }
  #contact-section { padding: 24px 20px 28px; }
  .input-group { grid-template-columns: 1fr; }
  .input-group label { border-right: none; border-bottom: 1px solid #1e1e1e; }
  button[type="submit"] { width: 100%; }
}