/* ============================================================================
   JU GROUP — partnership programme pages (franchise · distributors · branches)
   Same brand book as the homepage: navy · gold · JU gradient. Scoped to #ju-root.
   ========================================================================== */

#ju-root.pp, #ju-root .pp {
  /* Arabic-first: pin the whole programme page RTL so split words, punctuation
     and flex rows all resolve in the right direction. */
  direction: rtl;
  text-align: right;
  --pp-gold: #f4d77a;
  --pp-grad: linear-gradient(135deg, #4fc3f7 0%, #7b6ce5 50%, #e91e63 100%);
  --pp-line: rgba(255, 255, 255, 0.09);
  --pp-gline: rgba(244, 215, 122, 0.22);
  --pp-ink: #eef0ff;
  --pp-ink2: #c5c9e3;
  --pp-muted: #8c92b8;
  color: var(--pp-ink);
}
#ju-root .pp-wrap { max-width: 1180px; margin-inline: auto; padding-inline: 22px; }

/* ── hero ─────────────────────────────────────────────────────────────── */
#ju-root .pp-hero {
  position: relative; overflow: hidden;
  padding: 104px 0 60px;
  background: linear-gradient(178deg, #0a0e26 0%, #07091c 55%, #0c1030 100%);
}
#ju-root .pp-hero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pp-gline), transparent);
}
#ju-root .pp-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--pp-gline); border-radius: 999px;
  padding: 7px 18px; font-size: 12.5px; font-weight: 600; color: var(--pp-gold);
  background: rgba(244, 215, 122, 0.06);
}
#ju-root .pp-h1 {
  font-size: clamp(30px, 4.6vw, 52px); font-weight: 900; line-height: 1.28;
  margin-top: 20px; letter-spacing: -0.3px;
}
#ju-root .pp-h1 .g {
  background: var(--pp-grad); -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
#ju-root .pp-lede {
  font-size: 16.5px; line-height: 2.05; color: var(--pp-ink2);
  margin-top: 18px; max-width: 760px;
}
#ju-root .pp-hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 30px; }

/* ── quick facts strip ────────────────────────────────────────────────── */
#ju-root .pp-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 34px;
}
#ju-root .pp-fact {
  border: 1px solid var(--pp-line); border-radius: 16px; padding: 18px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  text-align: center;
}
#ju-root .pp-fact b { display: block; font-size: 27px; font-weight: 900; color: var(--pp-gold); }
#ju-root .pp-fact span { display: block; font-size: 12.5px; color: var(--pp-ink2); margin-top: 6px; }

/* ── section shell ────────────────────────────────────────────────────── */
#ju-root .pp-sec { padding: 62px 0; position: relative; }
#ju-root .pp-sec-head { text-align: center; margin-bottom: 44px; }
#ju-root .pp-sec-head h2 { font-size: clamp(24px, 3vw, 35px); font-weight: 900; margin-top: 12px; }
#ju-root .pp-sec-head p { color: var(--pp-ink2); margin-top: 12px; font-size: 15.5px; line-height: 1.9; }
#ju-root .pp-rule {
  width: 60px; height: 3px; border-radius: 3px; background: var(--pp-grad);
  margin: 16px auto 0;
}

/* ── benefit cards ────────────────────────────────────────────────────── */
#ju-root .pp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
#ju-root .pp-card {
  border: 1px solid var(--pp-line); border-radius: 20px; padding: 26px 24px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  position: relative; overflow: hidden;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}
#ju-root .pp-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pp-gline), transparent);
}
#ju-root .pp-ico {
  width: 46px; height: 46px; border-radius: 14px; background: var(--pp-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: #fff; box-shadow: 0 10px 26px rgba(79, 195, 247, 0.32);
}
#ju-root .pp-card h3 { font-size: 18.5px; font-weight: 800; margin-top: 17px; }
#ju-root .pp-card p { font-size: 14px; line-height: 1.95; color: var(--pp-ink2); margin-top: 10px; }

/* ── numbered steps ───────────────────────────────────────────────────── */
#ju-root .pp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
#ju-root .pp-step {
  border: 1px solid var(--pp-line); border-radius: 18px; padding: 24px 20px;
  background: rgba(255, 255, 255, 0.028); position: relative;
}
#ju-root .pp-step b {
  font-family: "Playfair Display", serif; font-size: 40px; font-weight: 700;
  color: rgba(244, 215, 122, 0.16); line-height: 1; display: block;
}
#ju-root .pp-step h4 { font-size: 16px; font-weight: 800; margin-top: 6px; }
#ju-root .pp-step p { font-size: 13.2px; line-height: 1.85; color: var(--pp-ink2); margin-top: 8px; }

/* ── requirement / included lists ─────────────────────────────────────── */
#ju-root .pp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
#ju-root .pp-list { list-style: none; margin: 0; padding: 0; }
#ju-root .pp-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--pp-line);
  font-size: 14.5px; line-height: 1.85; color: var(--pp-ink2);
}
#ju-root .pp-list li:first-child { border-top: none; }
#ju-root .pp-list li i {
  flex: none; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-size: 11px; font-weight: 800;
  background: rgba(244, 215, 122, 0.14); color: var(--pp-gold);
}

/* ── application form ─────────────────────────────────────────────────── */
#ju-root .pp-form-sec {
  background: linear-gradient(178deg, #090c26 0%, #07091c 60%, #0d1030 100%);
  border-block: 1px solid var(--pp-line);
}
#ju-root .pp-form {
  border: 1px solid var(--pp-gline); border-radius: 24px; padding: 34px 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  max-width: 900px; margin-inline: auto;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
#ju-root .pp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#ju-root .pp-field.full { grid-column: 1 / -1; }
#ju-root .pp-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--pp-ink);
  margin-bottom: 7px;
}
#ju-root .pp-field label .req { color: #ff8f8f; }
#ju-root .pp-form input[type="text"],
#ju-root .pp-form input[type="email"],
#ju-root .pp-form input[type="tel"],
#ju-root .pp-form select,
#ju-root .pp-form textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.13); border-radius: 13px;
  padding: 13px 15px; color: var(--pp-ink); font-size: 14.5px;
  font-family: inherit; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
#ju-root .pp-form textarea { resize: vertical; min-height: 108px; }
#ju-root .pp-form input:focus, #ju-root .pp-form select:focus, #ju-root .pp-form textarea:focus {
  border-color: rgba(244, 215, 122, 0.65);
  box-shadow: 0 0 0 3px rgba(244, 215, 122, 0.13);
  background: rgba(255, 255, 255, 0.06);
}
#ju-root .pp-form input::placeholder, #ju-root .pp-form textarea::placeholder { color: #7d84a8; }
#ju-root .pp-form select option { background: #101433; color: var(--pp-ink); }
#ju-root .pp-submit {
  margin-top: 24px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
#ju-root .pp-submit .note { font-size: 12.5px; color: var(--pp-muted); }
#ju-root .pp-btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  border: none; border-radius: 14px; padding: 15px 34px;
  background: var(--pp-grad); color: #fff; font-size: 15.5px; font-weight: 800;
  font-family: inherit;
  box-shadow: 0 14px 34px -12px rgba(233, 30, 99, 0.55);
  transition: filter 0.25s, transform 0.25s;
}
#ju-root .pp-btn:hover { filter: brightness(1.08); transform: translateY(-2px); }

/* ── US registration strip ────────────────────────────────────────────── */
#ju-root .pp-usa {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; text-align: center;
  border: 1px solid var(--pp-gline); border-radius: 18px; padding: 20px 26px;
  background: linear-gradient(120deg, rgba(79, 195, 247, 0.08), rgba(233, 30, 99, 0.08));
}
#ju-root .pp-usa b { color: var(--pp-gold); font-size: 16px; }
#ju-root .pp-usa span { color: var(--pp-ink2); font-size: 14px; }

/* ── responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  #ju-root .pp-grid, #ju-root .pp-steps { grid-template-columns: 1fr 1fr; }
  #ju-root .pp-facts { grid-template-columns: 1fr 1fr; }
  #ju-root .pp-two { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  #ju-root .pp-grid, #ju-root .pp-steps, #ju-root .pp-fields { grid-template-columns: 1fr; }
  #ju-root .pp-hero { padding: 92px 0 56px; }
  #ju-root .pp-form { padding: 26px 20px; }
}

/* latin/numeric inputs stay LTR inside the RTL page */
#ju-root .pp input[type="tel"], #ju-root .pp input[type="email"] { direction: ltr; text-align: right; }
#ju-root .pp-fact b, #ju-root .pp-step b { direction: ltr; }
#ju-root .pp-sec-head, #ju-root .pp-usa { text-align: center; }
