/* Community Feedback: the message form beside a navy waitlist card. */

.fb-head { padding: var(--s-12) 0 var(--s-8); }
.fb-head h1 { margin-top: var(--s-4); max-width: 20ch; }
.fb-lead { margin-top: var(--s-5); max-width: 58ch; font-size: var(--fs-17); line-height: 1.6; color: var(--muted); }
.fb-body { padding: var(--s-2) 0 var(--s-20); }
.fb-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.85fr); gap: var(--s-10); align-items: start; }

/* The form */
.fb-form, .fb-done {
  padding: var(--s-8); background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-xl); box-shadow: var(--sh-2);
}
.fb-form { display: grid; gap: var(--s-4); }
.fb-form__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-2); }

/* The sent state */
.fb-done { display: grid; justify-items: start; gap: var(--s-4); padding: var(--s-10) var(--s-8); animation: fb-in var(--t) var(--ease); }
.fb-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--gain-soft); color: var(--gain); }
.fb-done h2:focus { outline: none; }
.fb-done p { max-width: 46ch; color: var(--muted); line-height: 1.6; }
@keyframes fb-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* The rail */
.fb-rail { display: grid; gap: var(--s-6); }
.fb-wait__form { display: grid; gap: var(--s-3); margin-top: var(--s-2); }
.fb-wait .field__error { color: #FFB4B4; }
.fb-wait__msg:empty { display: none; }
.fb-wait .notice--success { background: rgba(255, 255, 255, 0.12); color: #fff; }
.fb-wait .notice--success .i { color: var(--light-blue); }
.fb-wait .notice--error { background: rgba(255, 255, 255, 0.12); color: #FFD3D3; }
.fb-aside { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.fb-aside h2 { font-family: var(--font-body); font-size: var(--fs-17); letter-spacing: 0; }
.fb-steps { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-4); counter-reset: step; }
.fb-steps li { position: relative; padding-left: 36px; color: var(--muted); font-size: var(--fs-15); line-height: 1.5; counter-increment: step; }
.fb-steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--cyan-soft); color: var(--middle-blue);
  font-weight: 700; font-size: var(--fs-12);
}
.fb-links { list-style: none; display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.fb-links li { display: grid; gap: 2px; font-size: var(--fs-14); }
.fb-links span { color: var(--muted); }
.fb-links a { font-weight: 600; word-break: break-word; }

@media (max-width: 960px) {
  .fb-grid { grid-template-columns: 1fr; gap: var(--s-6); }
}
@media (max-width: 600px) {
  .fb-head { padding: var(--s-8) 0 var(--s-6); }
  .fb-body { padding-bottom: var(--s-12); }
  .fb-form, .fb-done { padding: var(--s-5); border-radius: var(--r-lg); }
  .fb-form__foot .btn { width: 100%; }
}
