/* ================================================================
   css/pages/join-member.css
   ParkieVault V2 — Join Member Page
   Page-specific styles only.
   Depends on: css/base.css, css/nav.css, css/buttons.css, css/cards.css, css/footer.css
   ================================================================ */

/* ----------------------------------------------------------------
   DESIGN TOKENS (page-scoped overrides / additions)
   ---------------------------------------------------------------- */
:root {
  --jm-gold:          #c9a84c;
  --jm-gold-muted:    #a07830;
  --jm-gold-glow:     rgba(201, 168, 76, 0.18);
  --jm-gold-text:     #e8c97a;
  --jm-accent:        #f0d080;
  --jm-surface:       rgba(255, 255, 255, 0.045);
  --jm-surface-hover: rgba(255, 255, 255, 0.075);
  --jm-border:        rgba(255, 255, 255, 0.08);
  --jm-border-gold:   rgba(201, 168, 76, 0.25);
  --jm-text-primary:  #f0ece4;
  --jm-text-muted:    rgba(240, 236, 228, 0.85);
  --jm-text-dim:      rgba(240, 236, 228, 0.75);
  --jm-red-muted:     rgba(240,236,228,.85);
  --jm-red-border:    rgba(220, 80, 80, 0.35);
  --jm-input-bg:      rgba(255, 255, 255, 0.055);
  --jm-input-focus:   rgba(201, 168, 76, 0.3);
  --jm-radius-card:   18px;
  --jm-radius-input:  10px;
  --jm-radius-btn:    50px;
  --jm-container-max: 860px;
  --jm-section-gap:   80px;
}

/* ----------------------------------------------------------------
   BODY & BACKGROUND
   ---------------------------------------------------------------- */
.page-join-member {
  background-color: #0a0a0c;
  color: var(--jm-text-primary);
  font-family: inherit;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-join-member::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("../images/form.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background-size: contain;
  opacity: 0.30;
  pointer-events: none;
}

/* Ambient background layer */
.jm-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.jm-bg-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  opacity: 0.4;
}

.jm-bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.12;
}

.glow-top-left {
  width: 600px;
  height: 600px;
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, #c9a84c 0%, transparent 70%);
}

.glow-bottom-right {
  width: 500px;
  height: 500px;
  bottom: -150px;
  right: -150px;
  background: radial-gradient(circle, #6644aa 0%, transparent 70%);
}

/* All sections sit above background */
.jm-nav,
.jm-hero,
.jm-section,
.jm-footer {
  position: relative;
  z-index: 1;
}

/* ----------------------------------------------------------------
   CONTAINER
   ---------------------------------------------------------------- */
.jm-container {
  max-width: var(--jm-container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ----------------------------------------------------------------
   BACK BUTTON — inside hero container, above hero content
   ---------------------------------------------------------------- */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--jm-border);
  color: var(--jm-text-primary);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 8px 16px;
  border-radius: 50px;
  text-decoration: none;
  margin-bottom: 28px;
  transition: background 0.2s, border-color 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--jm-border-gold);
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   HERO SECTION
   ---------------------------------------------------------------- */
.jm-hero {
  padding: 32px 0 60px;
  text-align: center;
}

.jm-hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.jm-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--jm-gold);
  margin: 0;
}

.jm-hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--jm-text-primary);
  margin: 0;
  line-height: 1.1;
}

.jm-hero-subtitle {
  font-size: 1rem;
  color: var(--jm-text-muted);
  max-width: 520px;
  line-height: 1.65;
  margin: 0;
}

.jm-hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.jm-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  text-transform: uppercase;
}

.badge-live {
  background: rgba(50, 180, 100, 0.15);
  border: 1px solid rgba(50, 180, 100, 0.3);
  color: #6ddb90;
}

.badge-ref {
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid var(--jm-border-gold);
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   SECTION SCAFFOLDING
   ---------------------------------------------------------------- */
.jm-section {
  padding: var(--jm-section-gap) 0;
}

.jm-section-alt {
  background: rgba(255, 255, 255, 0.015);
}

.jm-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.jm-section-title {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 700;
  color: var(--jm-text-primary);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}

.jm-section-sub {
  font-size: 0.9rem;
  color: var(--jm-text-muted);
  margin: 0;
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   GLASSMORPHISM BASE CARD
   ---------------------------------------------------------------- */
.jm-glass-card {
  background: var(--jm-surface);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-card);
  padding: 28px;
  transition: border-color 0.25s;
}

.jm-glass-card:hover {
  border-color: var(--jm-border-gold);
}

/* ----------------------------------------------------------------
   SECTION 4 — STEPS / PROCESS
   ---------------------------------------------------------------- */
.jm-steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 0 8px;
}

.jm-step-card {
  background: var(--jm-surface);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-card);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.25s;
}

.jm-step-card:hover {
  border-color: var(--jm-border-gold);
}

.jm-step-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--jm-gold);
  opacity: 0.7;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.jm-step-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.jm-step-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--jm-text-primary);
  margin: 0;
}

.jm-step-body {
  font-size: 0.8rem;
  color: var(--jm-text-muted);
  line-height: 1.6;
  margin: 0;
}

.jm-step-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--jm-gold-muted);
  font-size: 1.2rem;
  padding-top: 32px;
  opacity: 0.5;
  user-select: none;
}

/* ----------------------------------------------------------------
   SECTION 5 (renumbered) — APPLICATION FORM
   ---------------------------------------------------------------- */
.jm-form-card {
  /* Full-width within .jm-container — same as all other section cards. */
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Alert components (al-err / al-ok) */
.al-err,
.al-ok {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.84rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.al-err {
  background: var(--jm-red-muted);
  border: 1px solid var(--jm-red-border);
  color: #e88080;
}

.al-ok {
  background: rgba(50, 180, 100, 0.12);
  border: 1px solid rgba(50, 180, 100, 0.25);
  color: #6ddb90;
}

/* Form rows */
.jm-form-row {
  margin-bottom: 18px;
}

.jm-form-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.jm-form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}

.jm-form-row .jm-form-group {
  margin-bottom: 0;
}

/* Labels */
.jm-form-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--jm-text-dim);
}

.jm-label-note {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--jm-text-dim);
  font-size: 0.68rem;
}

/* Inputs & Textarea */
.jm-form-input {
  background: var(--jm-input-bg);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-input);
  color: var(--jm-text-primary);
  font-size: 0.88rem;
  padding: 11px 14px;
  width: 100%;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.jm-form-input::placeholder {
  color: var(--jm-text-dim);
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
}

.jm-form-input:focus {
  border-color: var(--jm-gold-muted);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 0 0 3px var(--jm-input-focus);
}

.jm-form-textarea {
  resize: vertical;
  min-height: 80px;
}





/* Password wrap */
.jm-input-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.jm-input-pw-wrap .jm-form-input {
  padding-right: 42px;
}

.jm-pw-toggle {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: var(--jm-text-dim);
  cursor: pointer;
  font-size: 1rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.jm-pw-toggle:hover {
  color: var(--jm-gold-text);
}

/* Form actions */
.jm-form-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
}

/* ----------------------------------------------------------------
   AGREEMENT CHECKBOX ROW
   ---------------------------------------------------------------- */
.jm-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--jm-border);
  border-radius: var(--jm-radius-input);
  padding: 14px 16px;
  cursor: pointer;
  margin-top: 24px;
  transition: border-color 0.2s, background 0.2s;
}

.jm-agreement-row:hover {
  border-color: var(--jm-border-gold);
  background: rgba(201, 168, 76, 0.04);
}

.jm-agreement-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  background: var(--jm-input-bg);
  cursor: pointer;
  margin-top: 1px;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.jm-agreement-checkbox:checked {
  background: var(--jm-gold);
  border-color: var(--jm-gold);
}

.jm-agreement-checkbox:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: 2px solid #1a1208;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.jm-agreement-checkbox:focus {
  outline: none;
  box-shadow: 0 0 0 3px var(--jm-input-focus);
}

.jm-agreement-text {
  font-size: 0.82rem;
  color: var(--jm-text-muted);
  line-height: 1.6;
}

/* ----------------------------------------------------------------
   GATED BUTTON STATE (disabled until checkbox checked)
   ---------------------------------------------------------------- */
.jm-btn-primary.jm-btn-gated {
  opacity: 0.35;
  pointer-events: none;
  cursor: not-allowed;
  box-shadow: none;
}

/* Primary CTA button — matches screenshot warm cream style */
.jm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8d8a0 0%, #c9a84c 100%);
  color: #1a1208;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 15px 36px;
  border-radius: var(--jm-radius-btn);
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.25);
}

.jm-btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(201, 168, 76, 0.38);
}

.jm-btn-primary:active {
  transform: translateY(0);
}

/* Login prompt */
.jm-form-login-prompt {
  font-size: 0.8rem;
  color: var(--jm-text-dim);
  margin: 0;
  font-family: 'Courier New', monospace;
}

.jm-form-login-link {
  color: var(--jm-gold-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.jm-form-login-link:hover {
  color: var(--jm-accent);
  text-decoration: underline;
}

/* ----------------------------------------------------------------
   PENDING STATE
   ---------------------------------------------------------------- */
.jm-pending-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 40px 24px;
}

.jm-pending-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.jm-pending-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--jm-text-primary);
  margin: 0;
}

.jm-pending-body {
  font-size: 0.9rem;
  color: var(--jm-text-muted);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------------
   FOOTER
   ---------------------------------------------------------------- */
.jm-footer {
  padding: 36px 0 40px;
  border-top: 1px solid var(--jm-border);
  margin-top: 20px;
}

.jm-footer .jm-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.jm-footer-copy {
  font-size: 0.78rem;
  color: var(--jm-text-dim);
  margin: 0;
}

.jm-footer-link {
  font-size: 0.78rem;
  color: var(--jm-text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

.jm-footer-link:hover {
  color: var(--jm-gold-text);
}

/* ----------------------------------------------------------------
   RESPONSIVE — TABLET
   ---------------------------------------------------------------- */
@media (max-width: 860px) {
  :root {
    --jm-section-gap: 56px;
  }

  .jm-steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jm-step-connector {
    display: none;
  }

  .jm-step-card {
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
  }

  .jm-step-number {
    font-size: 1.2rem;
    min-width: 32px;
    padding-top: 2px;
  }
}

/* ----------------------------------------------------------------
   RESPONSIVE — MOBILE
   ---------------------------------------------------------------- */
@media (max-width: 560px) {
  .jm-container {
    padding: 0 16px;
  }

  .btn-back {
    margin: 16px 16px;
  }

  .jm-hero {
    padding: 32px 0 44px;
  }

  .jm-hero-title {
    font-size: 2rem;
  }

  .jm-form-row--split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .jm-form-row--split .jm-form-group {
    margin-bottom: 18px;
  }

  .jm-form-card {
    padding: 24px 18px;
  }

  .jm-btn-primary {
    font-size: 0.92rem;
    padding: 14px 24px;
  }

  .jm-footer .jm-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .jm-step-card {
    flex-direction: column;
    gap: 8px;
  }
}