/* MReach web registration (join.html). Same tokens as styles.css; the steps look like the app's
   registration form: one question per card, big tappable options, one purple button. */

.jp { background: var(--page); min-height: 100vh; display: flex; flex-direction: column; }
.jp-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; max-width: 760px; width: 100%; margin: 0 auto; }
.jp-out { background: none; border: 0; color: var(--ink-mute); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; padding: 8px; }
.jp-out:hover { color: var(--primary); }

.jp-main { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px 48px; }
.jp-progress { height: 6px; border-radius: 6px; background: var(--high); overflow: hidden; margin: 4px 4px 18px; }
.jp-progress span { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width .35s ease; }

.jp-card { background: var(--lowest); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.jp-card h1 { font-size: clamp(26px, 4.6vw, 34px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 800; color: var(--ink); }
.jp-card .jp-sub { margin-top: 10px; color: var(--ink-v); font-size: 16px; }
.jp-step { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--primary-c); margin-bottom: 12px; }

.jp-field { display: grid; gap: 8px; margin-top: 20px; }
.jp-field label, .jp-label { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--ink-v); }
.jp-field input, .jp-field select, .jp-field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--low); border: 0; border-radius: 14px;
  padding: 15px 16px; -webkit-appearance: none; appearance: none;
}
.jp-field textarea { min-height: 96px; resize: vertical; }
.jp-field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink-mute) 50%), linear-gradient(135deg, var(--ink-mute) 50%, transparent 50%); background-position: calc(100% - 22px) 24px, calc(100% - 17px) 24px; background-size: 5px 5px; background-repeat: no-repeat; }
.jp-field input:focus, .jp-field select:focus, .jp-field textarea:focus { outline: none; background-color: var(--lowest); box-shadow: inset 0 0 0 2px rgba(109, 79, 163, 0.45); }
.jp-count { font-size: 12px; color: var(--ink-mute); text-align: right; }

/* Big options (single choice) and chips (several). */
.jp-options { display: grid; gap: 10px; margin-top: 22px; }
.jp-opt {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 16px; font-weight: 600;
  color: var(--ink); background: var(--low); border: 0; border-radius: 16px; padding: 17px 18px; cursor: pointer;
  transition: background .15s, box-shadow .15s, transform .1s;
}
.jp-opt:hover { background: var(--high); }
.jp-opt:active { transform: scale(.99); }
.jp-opt small { display: block; font-weight: 500; font-size: 14px; color: var(--ink-mute); margin-top: 2px; }
.jp-opt[aria-pressed="true"] { background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary-c); color: var(--primary); }
.jp-opt__dot { flex: none; width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--ghost); background: var(--lowest); }
.jp-opt[aria-pressed="true"] .jp-opt__dot { box-shadow: inset 0 0 0 7px var(--primary-c); }

.jp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.jp-chip {
  font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-v); background: var(--low); border: 0; border-radius: 999px;
  padding: 12px 18px; min-height: 46px; cursor: pointer; transition: background .15s, color .15s;
}
.jp-chip:hover { background: var(--high); }
.jp-chip[aria-pressed="true"] { background: var(--grad); color: #fff; }
.jp-group { margin-top: 26px; }
.jp-group:first-of-type { margin-top: 18px; }

.jp-actions { display: flex; gap: 12px; margin-top: 28px; align-items: center; }
.jp-actions .btn { flex: 1; border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.jp-back { flex: none !important; }
.jp-link { background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--primary-c); cursor: pointer; padding: 6px 0; }
.jp-link:hover { text-decoration: underline; }
.jp-switch { margin-top: 18px; font-size: 15px; color: var(--ink-v); text-align: center; }

.jp-msg { min-height: 1.4em; margin-top: 14px; font-size: 14px; font-weight: 600; }
.jp-msg.err { color: #a2213a; }
.jp-msg.ok { color: #2c6a3e; }

.jp-tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--low); border-radius: 16px; padding: 5px; margin-top: 22px; }
.jp-tab { font: inherit; font-size: 16px; font-weight: 700; color: var(--ink-v); background: none; border: 0; border-radius: 12px; padding: 14px 10px; cursor: pointer; }
.jp-tab[aria-selected="true"] { background: var(--lowest); color: var(--primary); box-shadow: var(--shadow-sm); }

.jp-done { text-align: center; }
.jp-done__mark { width: 84px; height: 84px; margin: 4px auto 18px; border-radius: 26px; background: var(--grad); display: grid; place-items: center; box-shadow: 0 18px 40px rgba(69, 39, 110, .28); }
.jp-done__mark img { width: 52px; height: 52px; filter: brightness(0) invert(1); }
.jp-summary { margin-top: 22px; text-align: left; background: var(--low); border-radius: 16px; padding: 16px 18px; display: grid; gap: 6px; font-size: 15px; }
.jp-summary b { color: var(--ink); }
.jp-summary span { color: var(--ink-v); }

.jp-fine { margin-top: 16px; text-align: center; font-size: 12px; color: var(--ink-mute); }

@media (max-width: 560px) {
  .jp-top { padding: 14px 16px; }
  .jp-card { padding: 24px 18px; border-radius: 20px; }
  .jp-opt { padding: 15px 16px; }
}
