/* ==========================================================================
   Coming-soon mode: holding page (/) and standalone registration form (/join/).
   Ported from the static comingsoon/index.html. Loaded instead of main.css
   (see inc/coming-soon.php). Tokens match main.css :root.
   ========================================================================== */

:root {
  --navy: #2c3178;
  --navy-900: #1b1f52;
  --red-600: #c8161d;
  --red-700: #a51217;
  --yellow: #f4ea0b;
  --green: #24743a;
  --wa: #1f8f4e;
  --paper: #fbf7ef;
  --ink: #1e2140;
  --ink-soft: #4c5170;
  --font-body: "Tajawal", "IBM Plex Sans Arabic", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --font-display: "Cairo", "Tajawal", "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cs {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: #fff;
  background: var(--navy-900);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}
.cs img, .cs svg { display: block; max-width: 100%; }
.cs a { color: inherit; }
.cs :focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
body.admin-bar.cs { min-height: calc(100svh - 32px); }

/* Full-bleed troop photo with navy shade */
.cs-bg { position: fixed; inset: 0; z-index: -2; }
.cs-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.cs-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(90% 70% at 50% 45%, rgba(22, 25, 70, .45), rgba(22, 25, 70, .82) 75%),
    linear-gradient(to bottom, rgba(22, 25, 70, .25), rgba(22, 25, 70, .55) 55%, rgba(22, 25, 70, .9));
}
.cs-pattern {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-repeat: repeat;
  background-size: 300px;
  opacity: .07;
}

.cs-wrap {
  flex: 1;
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding: max(40px, env(safe-area-inset-top)) 16px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cs-logo {
  width: 104px; height: 104px;
  padding: 6px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
  margin-bottom: 20px;
}
.cs-brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; margin: 0; line-height: 1.4; }
.cs-brand-sub { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; opacity: .78; margin: 0 0 28px; direction: ltr; }

.cs-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  color: var(--yellow);
  font-weight: 700; font-size: .95rem;
  backdrop-filter: blur(6px);
  margin-bottom: 16px;
}
.cs-tag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }

.cs h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 8vw, 4rem);
  line-height: 1.25;
  margin: 0 0 16px;
  text-wrap: balance;
}
.cs h1 .hl { color: var(--yellow); }
.cs-lead { font-size: clamp(1.05rem, 2.6vw, 1.2rem); max-width: 34em; margin: 0 auto 8px; opacity: .92; text-wrap: pretty; }
.cs-motto { font-family: var(--font-display); font-weight: 700; color: var(--yellow); margin: 0 0 28px; }

/* Primary "enrol now" call to action */
.cs-enroll {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 60px;
  padding: 12px 30px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy-900) !important;
  font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; line-height: 1.3;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(244, 234, 11, .28), 0 4px 12px rgba(0, 0, 0, .2);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.cs-enroll svg { width: 22px; height: 22px; flex: none; transition: transform .2s var(--ease); }
.cs-enroll:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 255, 255, .25), 0 4px 12px rgba(0, 0, 0, .2); }
.cs-enroll:hover svg { transform: translateX(-4px); }
.cs-enroll-note { font-size: .92rem; opacity: .8; margin: 0 0 32px; }

/* Contact dock: one glass panel, two pill CTAs, social chips */
.cs-dock {
  width: 100%;
  max-width: 640px;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 20px 50px rgba(8, 10, 40, .35);
}
.cs-dock-title { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0 0 16px; opacity: .9; }
.cs-dock-main { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 600px) { .cs-dock-main { grid-template-columns: 1fr 1fr; } }
.cs-cta {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  text-align: start;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.cs-cta--wa { background: var(--wa); color: #fff; box-shadow: 0 8px 22px rgba(31, 143, 78, .35); }
.cs-cta--wa:hover { background: #1a7d44; box-shadow: 0 12px 28px rgba(31, 143, 78, .5); }
.cs-cta--mail { background: #fff; color: var(--navy-900) !important; box-shadow: 0 8px 22px rgba(0, 0, 0, .18); }
.cs-cta--mail:hover { background: var(--yellow); }
.cs-cta:hover { transform: translateY(-2px); }
.cs-cta-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.cs-cta--wa .cs-cta-ic { background: rgba(255, 255, 255, .18); }
.cs-cta--mail .cs-cta-ic { background: var(--red-600); color: #fff; }
.cs-cta-ic svg { width: 22px; height: 22px; }
.cs-cta-txt { flex: 1; min-width: 0; }
.cs-cta-label { display: block; font-size: .82rem; line-height: 1.3; opacity: .85; }
.cs-cta-value { display: block; font-weight: 700; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.cs-go { flex: none; width: 20px; height: 20px; opacity: .7; transition: transform .2s var(--ease); }
.cs-cta:hover .cs-go { transform: translateX(-4px); opacity: 1; }

.cs-dock-social {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.cs-social-label { font-size: .9rem; opacity: .75; margin-inline-end: 4px; }
@media (max-width: 599px) { .cs-social-label { flex-basis: 100%; text-align: center; margin: 0 0 -2px; } }
.cs-social {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.cs-social svg { width: 20px; height: 20px; }
.cs-social--fb:hover { background: #1877f2; border-color: #1877f2; }
.cs-social--ig:hover { background: var(--yellow); border-color: var(--yellow); color: var(--navy-900); }

.cs-footer {
  text-align: center;
  font-size: .85rem;
  opacity: .7;
  padding: 16px 16px max(20px, env(safe-area-inset-bottom));
}
.cs-footer p { margin: 0; }

/* ---------- /join/: registration form only ---------- */
.cs--join-form .cs-wrap { justify-content: flex-start; max-width: 720px; padding-top: max(28px, env(safe-area-inset-top)); }
.cs-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-bottom: 28px;
}
.cs-home { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; text-align: start; }
.cs-home img { width: 52px; height: 52px; padding: 3px; background: #fff; border-radius: 50%; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.cs-home b { font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.3; }
.cs-back {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  text-decoration: none; font-weight: 700; font-size: .92rem;
  transition: background .2s var(--ease);
}
.cs-back:hover { background: rgba(255, 255, 255, .2); }
.cs-back svg { width: 18px; height: 18px; transform: scaleX(-1); }
@media (max-width: 420px) { .cs-home b { display: none; } }

.cs--join-form h1 { font-size: clamp(2rem, 6.5vw, 3rem); margin-bottom: 10px; }
.cs--join-form .cs-lead { margin-bottom: 28px; }

.cs-form {
  width: 100%;
  text-align: start;
  color: var(--ink);
  background: var(--paper);
  border-radius: 28px;
  padding: clamp(20px, 5vw, 40px);
  box-shadow: 0 24px 60px rgba(8, 10, 40, .45);
}
.cs-form-note { margin: 0 0 var(--space-5); font-size: .95rem; color: var(--ink-soft); }
.cs-form-note .req { color: var(--red-600); font-weight: 700; }
.cs-form a { color: var(--navy); }
.cs-form .forminator-response-message.forminator-success {
  padding: var(--space-4); border-radius: 14px; background: #e3f0e6;
}

/* Entrance */
@media (prefers-reduced-motion: no-preference) {
  .cs-rise { opacity: 0; transform: translateY(18px); animation: cs-rise .8s var(--ease) forwards; }
  .cs-rise:nth-child(2) { animation-delay: .08s; }
  .cs-rise:nth-child(3) { animation-delay: .16s; }
  .cs-rise:nth-child(4) { animation-delay: .24s; }
  .cs-rise:nth-child(5) { animation-delay: .32s; }
  .cs-rise:nth-child(6) { animation-delay: .4s; }
  .cs-rise:nth-child(7) { animation-delay: .48s; }
  .cs-rise:nth-child(8) { animation-delay: .56s; }
  .cs-rise:nth-child(9) { animation-delay: .64s; }
  .cs-tag .dot { animation: cs-pulse 1.8s ease-in-out infinite; }
  @keyframes cs-rise { to { opacity: 1; transform: none; } }
  @keyframes cs-pulse { 50% { opacity: .35; } }
}
@media (prefers-reduced-motion: reduce) {
  .cs-cta:hover, .cs-cta:hover .cs-go, .cs-enroll:hover, .cs-enroll:hover svg { transform: none; }
}
