
/* =========================
   Screen 5 (Pre-Form Reminder)
   FINAL · Scoped & UEESHOP Safe
   Mobile rule:
   1) "1. + first sentence" must be a single text unit
   2) button may wrap, but never pulls the number away
   3) mobile-only behavior; desktop unchanged
   ========================= */

#ps-screen5-cta{
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color:#333;
}
#ps-screen5-cta *{ box-sizing:border-box; }

/* Outer spacing */
#ps-screen5-cta{ padding:56px 0; }
@media (max-width:768px){
  #ps-screen5-cta{ padding:44px 0; }
}

/* Card */
#ps-screen5-cta .ps5-card{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:32px 48px;

  background:#f8f9fa;
  border:1px solid #eee;
  border-radius:12px;
  box-shadow:0 2px 14px rgba(0,0,0,.04);

  text-align:center;
}
@media (max-width:768px){
  #ps-screen5-cta .ps5-card{ padding:26px 22px; }
}

/* Title */
#ps-screen5-cta .ps5-title{
  margin:0 0 22px 0;
  font-size:28px;
  font-weight:700;
  line-height:1.25;
  color:#1a2530;
}
@media (max-width:768px){
  #ps-screen5-cta .ps5-title{ font-size:24px; }
}

/* Tip base */
#ps-screen5-cta .ps5-tip{
  margin:12px auto;
  max-width:980px;
  padding:0 6px;
  text-align:left;

  font-size:17px;
  line-height:1.8;
  color:#495057;
}

/* Number */
#ps-screen5-cta .ps5-num{
  color:#1a2530;
  font-weight:700;
  white-space:nowrap;
}

/* ===== Point 1: Desktop layout (unchanged) ===== */
/* On desktop we keep the original inline feel */
#ps-screen5-cta .ps5-row--inline{
  max-width:980px;
  margin:12px auto;
  padding:0 6px;
  text-align:left;

  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap; /* desktop can wrap naturally */
}

/* "unit" paragraph reset so it aligns inside the flex row */
#ps-screen5-cta .ps5-tip--unit{
  margin:0;
  padding:0;
  max-width:none;
}

/* ===== Button ===== */
#ps-screen5-cta .ps5-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  cursor:pointer;
  user-select:none;

  padding:12px 22px;
  border-radius:10px;

  font-size:15px;
  font-weight:700;
  line-height:1;

  transition:transform .18s ease, background-color .18s ease, box-shadow .18s ease;
  white-space:nowrap;
}
#ps-screen5-cta .ps5-btn--register{
  background:#8B5A2B;
  color:#fff;
  border:1px solid transparent;
  box-shadow:0 3px 10px rgba(139,90,43,.14);
}
#ps-screen5-cta .ps5-btn--register:hover{
  transform:translateY(-1px);
  background:#7b4f26;
}

/* Point 2 */
#ps-screen5-cta .ps5-tip--block{ display:block; }
#ps-screen5-cta .ps5-block-text{ display:inline; }

/* Down arrows */
#ps-screen5-cta .ps5-arrows{
  margin:18px 0 0;
  font-size:28px;
  color:#8B5A2B;
  display:inline-block;
  opacity:.7;
  animation:ps5Bounce 2.4s infinite ease-in-out;
}
@keyframes ps5Bounce{
  0%, 20%, 50%, 80%, 100%{ transform:translateY(0); }
  40%{ transform:translateY(-6px); }
  60%{ transform:translateY(-3px); }
}

/* =========================
   Mobile ONLY: enforce the 3 rules
   1) "1. + first sentence" becomes ONE unit via inline-flex (non-splittable)
   2) button can wrap to next line, but number stays with sentence
   3) only affects <=768px
   ========================= */
@media (max-width:768px){
  /* Stack unit and button cleanly on small screens */
  #ps-screen5-cta .ps5-row--inline{
    gap:10px;
  }

  /* ✅ Rule #1: number + first sentence = ONE non-breakable unit */
  #ps-screen5-cta .ps5-tip--unit{
    display:inline-flex;         /* makes it one unit in the flex container */
    align-items:flex-start;
    gap:8px;
    flex:1 1 auto;
    min-width:0;
  }

  /* keep number from shrinking */
  #ps-screen5-cta .ps5-num{
    flex:0 0 auto;
  }

  /* allow text to wrap inside the unit, but never detach from number */
  #ps-screen5-cta .ps5-unit-text{
    flex:1 1 auto;
    min-width:0;
  }

  /* ✅ Rule #2: button may wrap, but never pulls number away */
  #ps-screen5-cta .ps5-btn{
    flex:0 0 auto;
    padding:12px 18px;
    font-size:15px;

    /* align under sentence start (after "1.") */
    margin-left:calc(1.2em + 8px);
  }
}
