/* ============================================================
   MFF Platform — public form renderer
   Wizard panels, yes/no, option cards, disclaimers, dropzone.
   Builds on theme.css.
   ============================================================ */

/* ---------------- wizard panels ---------------- */
.mff-form__panel { display: none; }
.mff-form__panel.is-active { display: block; animation: mff-fade .3s ease; }
.mff-form__panel-title {
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.2px; line-height: 1.35;
}
.mff-form__panel-desc {
  font-size: 13px; color: var(--mff-text-muted);
  margin: 0 0 22px; line-height: 1.6;
}
.mff-form__cta { margin-top: 22px; }
.mff-form__cta .mff-btn { width: 100%; }
.mff-form__back { margin: 0 0 20px; }

/* ---------------- yes / no ---------------- */
.mff-yn { display: flex; gap: 12px; }
.mff-yn__btn {
  flex: 1 1 0;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px;
  border-radius: var(--mff-radius);
  border: 2px solid var(--mff-border);
  background: var(--mff-bg-glass-soft);
  color: var(--mff-text-muted);
  font: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.mff-yn__btn:hover { border-color: var(--mff-border-strong); color: var(--mff-text); transform: translateY(-1px); }
.mff-yn__btn.is-selected { border-color: var(--mff-accent); background: var(--mff-accent-soft); color: #fff; }

/* ---------------- option cards ---------------- */
.mff-opts { display: flex; flex-direction: column; gap: 10px; }
.mff-opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 15px 18px;
  border-radius: var(--mff-radius);
  border: 2px solid var(--mff-border);
  background: var(--mff-bg-glass-soft);
  color: var(--mff-text);
  font-weight: 500; font-size: 14px;
  cursor: pointer; user-select: none;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.mff-opt:hover { border-color: var(--mff-border-strong); transform: translateY(-1px); }
.mff-opt.is-selected { border-color: var(--mff-accent); background: var(--mff-accent-soft); color: #fff; }
.mff-opt.is-disabled {
  cursor: not-allowed; color: var(--mff-text-faint);
  border-color: var(--mff-border-soft); opacity: .8; transform: none;
}
.mff-opt.is-disabled:hover { border-color: var(--mff-border-soft); transform: none; }
.mff-opt__badge {
  flex-shrink: 0;
  font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mff-text-faint);
  background: var(--mff-bg-glass);
  border: 1px solid var(--mff-border-soft);
  border-radius: 20px; padding: 4px 10px;
}

/* ---------------- disclaimer + confirm ---------------- */
.mff-disc {
  background: var(--mff-danger-soft);
  border: 1px solid rgba(255, 77, 77, 0.28);
  border-radius: var(--mff-radius);
  padding: 15px 17px; margin-top: 14px;
  animation: mff-fade .25s ease;
}
.mff-disc__title {
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: #ff8a8a; margin: 0 0 8px;
}
.mff-disc__text { font-size: 12px; color: var(--mff-text-muted); line-height: 1.7; margin: 0 0 13px; }
.mff-check {
  display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; font-size: 12px; color: var(--mff-text-muted); line-height: 1.6;
}
.mff-check input { margin-top: 3px; width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--mff-accent); cursor: pointer; }

/* ---------------- inline notice ---------------- */
.mff-inline-notice {
  background: var(--mff-accent-soft);
  border: 1px solid rgba(33, 137, 255, 0.3);
  border-radius: var(--mff-radius);
  padding: 12px 15px;
  font-size: 12px; color: var(--mff-text-muted); line-height: 1.65;
  margin-bottom: 22px;
}

/* ---------------- field grid ---------------- */
.mff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
.mff-grid__cell { grid-column: span 2; min-width: 0; }
.mff-grid__cell--half { grid-column: span 1; }
@media (max-width: 480px) { .mff-grid__cell--half { grid-column: span 2; } }

/* ---------------- dropzone + file list ---------------- */
.mff-dropzone {
  border: 2px dashed var(--mff-border);
  border-radius: var(--mff-radius);
  padding: 28px 20px;
  text-align: center;
  background: var(--mff-bg-glass-soft);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.mff-dropzone:hover, .mff-dropzone:focus, .mff-dropzone.is-drag {
  border-color: var(--mff-accent); background: var(--mff-bg-glass);
}
.mff-dropzone svg { color: var(--mff-accent); display: block; margin: 0 auto 8px; }
.mff-dropzone__title { margin: 0 0 4px; font-size: 13px; color: var(--mff-text-muted); }
.mff-dropzone__title strong { color: var(--mff-text); font-weight: 500; }
.mff-dropzone__hint { margin: 0; font-size: 11px; color: var(--mff-text-faint); }

.mff-files { list-style: none; padding: 0; margin: 12px 0 0; }
.mff-files li {
  background: var(--mff-bg-glass);
  border: 1px solid var(--mff-border-soft);
  border-radius: var(--mff-radius);
  padding: 11px 13px; margin-top: 8px;
  display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; align-items: center;
  font-size: 13px;
}
.mff-files__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mff-files__name { font-weight: 500; color: var(--mff-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mff-files__meta { color: var(--mff-text-muted); font-size: 12px; flex-shrink: 0; }
.mff-files__progress { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--mff-border-soft); overflow: hidden; }
.mff-files__progress span { display: block; height: 100%; width: 0; background: var(--mff-success); transition: width .2s; }
.mff-files__remove {
  background: rgba(255, 77, 77, .1);
  border: 1px solid rgba(255, 77, 77, .25);
  cursor: pointer; color: var(--mff-danger);
  font: inherit; font-size: 12px; font-weight: 500;
  padding: 6px 12px; border-radius: 8px;
  transition: background .2s, border-color .2s, transform .15s;
}
.mff-files__remove:hover { background: rgba(255, 77, 77, .22); border-color: rgba(255, 77, 77, .5); color: #ff8a8a; transform: translateY(-1px); }
.mff-files__comment {
  grid-column: 1 / -1; width: 100%;
  border: 1px solid var(--mff-border-soft); border-radius: 8px;
  padding: 8px 11px; font: inherit; font-size: 13px;
  color: var(--mff-text); background: var(--mff-bg-glass-soft);
}
.mff-files__comment::placeholder { color: var(--mff-text-faint); }
.mff-files__comment:focus { outline: none; border-color: var(--mff-accent); background: var(--mff-bg-glass); }

/* terminal screens hide the form + steps */
.mff-form--done .mff-form__form,
.mff-form--done .mff-steps { display: none !important; }
