/* ═══════════════════════════════════════════════════
   join.css — Creator registration page
   Inherits design tokens from styles.css
═══════════════════════════════════════════════════ */

/* ── Page wrapper ── */
.jn-main {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 28px 100px;
  display: flex;
  flex-direction: column;
}

/* ── Back link in topbar ── */
.jn-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.8);
  transition: .2s;
  margin-right: auto;
  flex: none;
}
.jn-back:hover { color: var(--ink); border-color: var(--gold-soft); }
.jn-back svg { width:15px; height:15px; flex:none; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
.jn-hero {
  order: 1;
  text-align: center;
  padding: 80px 24px 70px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}
.jn-hero .eyebrow { display: block; margin-bottom: 20px; font-size: 13px; }
.jn-hero h1 {
  font-size: 76px;
  line-height: 1.1;
  letter-spacing: -.045em;
  font-weight: 800;
  margin: 0 0 24px;
  color: var(--ink);
}
.jn-hero h1 em { font-style: normal; color: var(--gold); }
.jn-hero p {
  font-size: 20px;
  line-height: 2;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 38px;
}
.jn-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 18px;
  padding: 20px 44px;
  border-radius: 18px;
}
.jn-hero-cta svg { width:18px; height:18px; stroke-width:2.2; }

/* ══════════════════════════════════
   SECTIONS — shared
══════════════════════════════════ */
.jn-section { padding: 70px 0 0; width: 100%; }
.jn-section-head { text-align: center; margin-bottom: 44px; }
.jn-section-head .eyebrow { display: block; margin-bottom: 12px; font-size: 13px; }
.jn-section-head h2 {
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0;
  color: var(--ink);
}

/* ══════════════════════════════════
   HOW IT WORKS — 3 steps
══════════════════════════════════ */
.jn-steps-wrap { order: 2; }
.jn-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
}
.jn-step {
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 38px 30px 34px;
  text-align: center;
  box-shadow: 0 14px 40px rgba(120,100,70,.07);
  position: relative;
  overflow: hidden;
  transition: .25s;
}
.jn-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jn-step::before {
  content: '';
  position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(184,139,70,.5), transparent);
}
.jn-step-badge {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-deep), #ca9e59);
  color: #fff;
  font-size: 26px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 10px 28px rgba(156,115,56,.28);
  font-family: Georgia, serif;
}
.jn-step-icon {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg,#f1e6d4,#fff);
  border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(196,173,139,.4);
}
.jn-step-icon svg { width: 32px; height: 32px; stroke: var(--gold); stroke-width: 1.6; fill: none; }
.jn-step h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; color: var(--ink); }
.jn-step p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0; }

/* Step connector arrows between cards */
.jn-steps-connector {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 18px 0 0;
}

/* ══════════════════════════════════
   CATEGORIES
══════════════════════════════════ */
.jn-cats-wrap { order: 3; }
.jn-cats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.jn-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
  padding: 24px 22px 20px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--line);
  border-radius: 24px;
  min-width: 116px;
  box-shadow: 0 8px 24px rgba(120,100,70,.06);
  transition: .25s;
  cursor: default;
}
.jn-cat:hover {
  transform: translateY(-4px);
  border-color: var(--gold-soft);
  box-shadow: 0 18px 44px rgba(120,100,70,.12);
}
.jn-cat-icon {
  width: 54px; height: 54px;
  background: linear-gradient(135deg,#f1e6d4,#fff);
  border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(196,173,139,.35);
}
.jn-cat-icon svg { width: 27px; height: 27px; stroke: var(--gold); stroke-width: 1.6; fill: none; }
.jn-cat span { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ══════════════════════════════════
   BENEFITS
══════════════════════════════════ */
.jn-benefits-wrap { order: 4; }
.jn-benefits {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.jn-benefit {
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 36px 30px;
  box-shadow: 0 14px 40px rgba(120,100,70,.07);
  position: relative; overflow: hidden;
  transition: .25s;
}
.jn-benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jn-benefit::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, transparent, rgba(184,139,70,.5), transparent);
}
.jn-benefit-icon {
  width: 58px; height: 58px;
  background: linear-gradient(135deg,#f1e6d4,#fff);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  box-shadow: inset 0 0 0 1px rgba(196,173,139,.4);
}
.jn-benefit-icon svg { width: 28px; height: 28px; stroke: var(--gold); stroke-width: 1.6; fill: none; }
.jn-benefit h3 { font-size: 22px; font-weight: 700; margin: 0 0 12px; }
.jn-benefit p { font-size: 15px; line-height: 1.85; color: var(--muted); margin: 0; }

.jn-disclaimer {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 28px;
  line-height: 1.85;
}
.jn-disclaimer strong { color: var(--gold-deep); }

/* ══════════════════════════════════
   FORM SECTION
══════════════════════════════════ */
.jn-form-wrap {
  order: 5;
  max-width: 940px;
  margin: 0 auto;
  width: 100%;
}
.jn-form-card {
  background: rgba(255,253,249,.98);
  border: 1px solid rgba(214,190,155,.55);
  border-radius: 38px;
  padding: 56px 56px 60px;
  box-shadow: 0 34px 90px rgba(120,100,70,.12);
  position: relative; overflow: hidden;
}
.jn-form-card::before {
  content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--gold), #ca9e59, transparent);
}
.jn-form-header {
  text-align: center;
  margin-bottom: 50px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(220,200,168,.4);
}
.jn-form-header .eyebrow { display: block; margin-bottom: 12px; }
.jn-form-header h2 {
  font-size: 52px; font-weight: 800; letter-spacing: -.04em; margin: 0 0 14px;
}
.jn-form-header p { font-size: 17px; color: var(--muted); line-height: 1.85; max-width: 580px; margin: 0 auto; }

/* Form groups */
.jn-group {
  margin-bottom: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(220,200,168,.35);
}
.jn-group:last-of-type { border-bottom: 0; margin-bottom: 32px; }

.jn-group-title {
  font-size: 22px; font-weight: 700;
  color: var(--gold-deep);
  margin: 0 0 26px;
  display: flex; align-items: center; gap: 12px;
}
.jn-group-title::before {
  content: ''; width: 4px; height: 26px;
  background: linear-gradient(180deg, var(--gold-deep), #ca9e59);
  border-radius: 4px; flex: none;
}
.jn-group-optional .jn-group-title { color: var(--muted); }
.jn-group-optional .jn-group-title::before { background: linear-gradient(180deg, var(--muted), #c0b8ad); }

/* Grid rows */
.jn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.jn-row:last-child { margin-bottom: 0; }
.jn-row-1 { grid-template-columns: 1fr; }
.jn-row-3 { grid-template-columns: 1fr 1fr 1fr; }

/* Field */
.jn-field { display: flex; flex-direction: column; gap: 9px; }
.jn-label {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
}
.req { color: var(--gold); font-size: 17px; line-height: 1; }
.opt-tag {
  font-size: 11px; font-weight: 500; color: var(--muted);
  background: rgba(200,185,162,.18);
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid rgba(200,185,162,.45);
}

/* Inputs */
.jn-input, .jn-select, .jn-textarea {
  border: 1.5px solid var(--line);
  border-radius: 15px;
  padding: 16px 18px;
  font-size: 16px;
  background: #fff;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  font-family: 'Montserrat','Noto Sans Arabic',sans-serif;
}
.jn-input::placeholder, .jn-textarea::placeholder { color: #c8bfb4; }
.jn-input:focus, .jn-select:focus, .jn-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,139,70,.12);
}
.jn-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b88b46' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 15px center;
  padding-left: 42px;
  cursor: pointer;
}
.jn-textarea { resize: vertical; min-height: 120px; line-height: 1.75; }

/* Hint text */
.jn-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* Submit */
.jn-submit {
  width: 100%;
  padding: 22px;
  font-size: 19px; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-deep), #ca9e59);
  color: #fff;
  border: 0;
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 16px 38px rgba(156,115,56,.28);
  transition: .25s;
  margin-top: 12px;
  font-family: 'Montserrat','Noto Sans Arabic',sans-serif;
  letter-spacing: .01em;
}
.jn-submit:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(156,115,56,.38); }
.jn-submit:active { transform: scale(.99); }
.jn-submit:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* Error state */
.jn-input.error, .jn-select.error { border-color: #d04444; box-shadow: 0 0 0 3px rgba(208,68,68,.1); }
.jn-err { font-size: 12px; color: #c03c3c; margin-top: 4px; display: none; }
.jn-field.has-error .jn-err { display: block; }

/* ── Success ── */
.jn-success {
  text-align: center;
  padding: 70px 20px 60px;
}
.jn-success-check {
  width: 88px; height: 88px;
  background: linear-gradient(135deg, var(--gold-deep), #ca9e59);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: #fff;
  margin: 0 auto 30px;
  box-shadow: 0 16px 40px rgba(156,115,56,.32);
}
.jn-success h2 { font-size: 40px; font-weight: 800; margin: 0 0 18px; color: var(--ink); }
.jn-success p { font-size: 18px; line-height: 1.95; color: var(--muted); max-width: 560px; margin: 0 auto; }

/* ── Floating badge for index.html ── */
.jn-float-badge {
  position: fixed;
  bottom: 28px; left: 28px;
  z-index: 200;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 22px;
  background: linear-gradient(135deg, var(--gold-deep), #ca9e59);
  color: #fff;
  text-decoration: none;
  font-size: 14px; font-weight: 700;
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(156,115,56,.38);
  transition: .25s;
  letter-spacing: .01em;
}
.jn-float-badge:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(156,115,56,.46); }
.jn-float-badge svg { width:16px; height:16px; stroke-width:2.2; flex:none; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width:1100px) {
  .jn-form-card { padding: 44px 40px 48px; }
  .jn-hero h1 { font-size: 62px; }
  .jn-section-head h2 { font-size: 46px; }
}

@media (max-width:860px) {
  .jn-steps  { grid-template-columns: 1fr; gap: 16px; }
  .jn-benefits { grid-template-columns: 1fr; gap: 16px; }
  .jn-hero h1 { font-size: 50px; }
  .jn-section-head h2 { font-size: 38px; }
  .jn-form-header h2 { font-size: 40px; }
}

@media (max-width:640px) {
  .jn-main { padding: 0 16px 80px; }

  /* Reorder: hero → form → steps → cats → benefits on mobile */
  .jn-hero         { order: 1; padding: 40px 0 32px; }
  .jn-form-wrap    { order: 2; padding-top: 44px; }
  .jn-steps-wrap   { order: 3; }
  .jn-cats-wrap    { order: 4; }
  .jn-benefits-wrap{ order: 5; }

  .jn-hero h1 { font-size: 38px; letter-spacing: -.025em; }
  .jn-hero p  { font-size: 16px; }
  .jn-hero-cta { font-size: 16px; padding: 16px 32px; }

  .jn-section { padding: 52px 0 0; }
  .jn-section-head h2 { font-size: 30px; }
  .jn-section-head .eyebrow { font-size: 11px; }

  .jn-form-card { padding: 26px 18px 32px; border-radius: 26px; }
  .jn-form-header h2 { font-size: 30px; }
  .jn-form-header p  { font-size: 15px; }
  .jn-form-header { margin-bottom: 34px; padding-bottom: 26px; }

  .jn-group { margin-bottom: 32px; padding-bottom: 32px; }
  .jn-group-title { font-size: 18px; }

  .jn-row   { grid-template-columns: 1fr; gap: 16px; }
  .jn-row-3 { grid-template-columns: 1fr; }

  .jn-input, .jn-select, .jn-textarea {
    font-size: 16px; /* prevent iOS zoom */
    padding: 15px 16px;
    border-radius: 13px;
  }
  .jn-submit { font-size: 17px; padding: 19px; border-radius: 15px; }

  .jn-success h2 { font-size: 28px; }
  .jn-success p  { font-size: 16px; }

  .jn-step-badge { width: 50px; height: 50px; font-size: 22px; }
  .jn-step { padding: 30px 22px 26px; }

  .jn-cat { min-width: 96px; padding: 18px 14px 16px; }
  .jn-cat span { font-size: 13px; }
  .jn-cat-icon { width: 46px; height: 46px; }
  .jn-cat-icon svg { width: 22px; height: 22px; }

  .jn-float-badge { bottom: 18px; left: 18px; font-size: 13px; padding: 12px 18px; }
}
