/* ============================================================
   VoltaAI v3 - Feedback page
   Editorial split: intro + tips on the left, double-bezel form
   shell on the right. Inline field errors, success state.
   ============================================================ */

.fb-section { padding: clamp(24px, 5vw, 72px) 0 clamp(24px, 4vw, 48px); }

.fb-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}

.fb-intro { position: sticky; top: calc(var(--nav-offset) + 24px); }
.fb-title { font-size: clamp(44px, 6vw, 84px); }
.fb-intro .lede { margin-top: 20px; }

.fb-tips {
  list-style: none;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  display: grid;
  gap: 4px;
  max-width: 46ch;
}
.fb-tips li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-500);
}
.fb-tips li + li { border-top: 1px solid var(--line); }
.fb-tips strong { display: block; font-weight: 560; color: var(--ink-900); margin-bottom: 2px; }
.fb-tips a {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--dur-base) var(--ease-out);
}
.fb-tips a:hover { text-decoration-color: var(--ink-900); }
.fb-tip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  background: var(--wash-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-700);
}
[data-surface] .fb-tip-icon svg.lucide { width: 16px; height: 16px; }

/* Form shell */
.fb-core {
  padding: clamp(24px, 3.4vw, 44px);
  background:
    radial-gradient(90% 60% at 100% 0%, var(--signal-glow), transparent 65%),
    var(--paper-100);
}
[data-surface] .fb-core .v2-textarea { min-height: 168px; }

.fb-field-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 18px;
}
.fb-count {
  margin-left: auto;
  font: 400 12px/1.45 var(--font-mono);
  color: var(--ink-400);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
[data-surface] .v2-textarea[aria-invalid="true"] {
  box-shadow: inset 0 0 0 1px var(--danger), 0 0 0 4px var(--danger-soft);
}

/* Honeypot: off-screen for people, still in the DOM for bots */
.fb-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.fb-msg { font-size: 14px; line-height: 1.5; }
.fb-msg:empty { display: none; }
.fb-msg.err {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--danger-soft);
  color: var(--danger);
}
.fb-msg.ok { color: var(--ok); }

[data-surface] .fb-submit {
  width: 100%;
  justify-content: space-between;
  padding-left: 26px;
}
[data-surface] .v2-btn.fb-submit[aria-busy="true"] { opacity: 0.8; }
.fb-submit[aria-busy="true"] .btn-icon svg { animation: fbSend 1s var(--ease-fluid) infinite; }
@keyframes fbSend {
  0%   { transform: translate(0, 0); opacity: 1; }
  60%  { transform: translate(6px, -6px); opacity: 0; }
  61%  { transform: translate(-6px, 6px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

/* Success state */
.fb-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(32px, 5vw, 64px) 8px;
  text-align: center;
  outline: none;
}
.fb-done:not([hidden]) { animation: fbDone var(--dur-reveal) var(--ease-out) both; }
@keyframes fbDone { from { opacity: 0; transform: translate3d(0, 12px, 0); } }
.fb-done-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 8px;
  border-radius: var(--r-pill);
  background: var(--ok-soft);
  color: var(--ok);
  box-shadow: inset 0 0 0 1px var(--line);
}
[data-surface] .fb-done-icon svg.lucide { width: 28px; height: 28px; stroke-width: 1.75; }
.fb-done h2 {
  font: 560 clamp(28px, 3vw, 40px)/1.1 var(--font-sans);
  letter-spacing: -0.04em;
  color: var(--ink-900);
}
.fb-done p { color: var(--ink-500); max-width: 36ch; }
.fb-done-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }

/* Narrow screens (most testers arrive from the app): form straight after
   the heading, tips underneath it. */
@media (max-width: 900px) {
  .fb-grid { grid-template-columns: 1fr; gap: 0; }
  .fb-intro { display: contents; }
  .fb-title { order: 1; }
  .fb-intro .lede { order: 2; }
  .fb-shell { order: 3; margin-top: 28px; }
  .fb-tips { order: 4; margin-top: 28px; max-width: none; }
}

@media (max-width: 767px) {
  .fb-section { padding-top: 8px; }
}
