/* ============================================================
   Rj_Manage — Shared styles for all nomination form demos
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --ink-900: #0f172a;
  --ink-600: #475569;
  --ink-400: #94a3b8;
  --paper: #f8fafc;
  --card: #ffffff;
  --brand-600: #4f46e5;
  --brand-500: #6366f1;
  --brand-50: #eef2ff;
  --green-600: #059669;
  --green-50: #ecfdf5;
  --rose-500: #f43f5e;
  --amber-500: #f59e0b;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-pop: 0 24px 60px -20px rgba(79, 70, 229, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display { font-family: var(--font-display); }

a { color: inherit; }

::selection { background: var(--brand-500); color: #fff; }

/* ---------- Shared form controls ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-600);
  letter-spacing: .01em;
}

.field .hint { font-size: 12px; color: var(--ink-400); margin-top: -3px; }

.input, .select, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 14.5px;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .18s ease, box-shadow .18s ease;
  outline: none;
}

.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, .13);
}

.textarea { resize: vertical; min-height: 96px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, filter .15s ease;
}

.btn:active { transform: translateY(1px) scale(.99); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand-600), var(--brand-500));
  color: #fff;
  padding: 13px 22px;
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, .55);
}

.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-600);
  padding: 12px 18px;
  border: 1.5px solid #e2e8f0;
}

.btn-ghost:hover { border-color: var(--brand-500); color: var(--brand-600); }

/* ---------- Toasts ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(16px);
  background: var(--ink-900);
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 1000;
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .35);
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Themed per-form scopes ---------- */
.section { min-height: 100vh; display: grid; place-items: center; padding: 60px 20px; }

.section--split { grid-template-columns: 1fr 1fr; padding: 0; }

.container { width: 100%; max-width: 1040px; margin: 0 auto; }

.demo-head {
  text-align: center;
  margin-bottom: 36px;
}

.demo-head .eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.demo-head h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.02em; }

.demo-head p { color: var(--ink-600); max-width: 560px; margin: 10px auto 0; font-size: 15.5px; }
