/* مجتمع إبريم — نموذج الانضمام. هوية إبريم: كحلي #00285A، فيروزي #00A8A4، أخضر #4CC05C */
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-400.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 600; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-600.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-arabic-arabic-700.woff2") format("woff2"); unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "Plex Arabic"; font-weight: 400; font-display: swap; src: url("/static/fonts/plex-arabic-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Plex Arabic"; font-weight: 700; font-display: swap; src: url("/static/fonts/plex-arabic-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }

:root { --navy: #00285A; --teal: #00A8A4; --green: #4CC05C; --grad: linear-gradient(135deg, #00A8A4 0%, #4CC05C 100%);
  --mint: #F2FAF6; --line: #D9E8E2; --muted: #5A6B7E; --bad: #C9372C; --white: #fff; }
* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; font-family: "Plex Arabic", "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif; color: var(--navy); line-height: 1.8;
  background: radial-gradient(60% 50% at 100% 0%, rgba(76, 192, 92, .14), transparent 60%), radial-gradient(60% 60% at 0% 100%, rgba(0, 168, 164, .12), transparent 60%), var(--mint);
  min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
.eb-wrap { width: min(760px, 100% - 32px); margin-inline: auto; }
.eb-top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.eb-top-in { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.eb-brand { display: flex; align-items: center; gap: 10px; }
.eb-brand img { width: 40px; height: auto; }
.eb-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.eb-brand b { font-size: 18px; }
.eb-brand small { font-size: 12px; color: var(--teal); font-weight: 600; }
.eb-steps-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.eb-progress { height: 4px; background: #E3EFEA; }
.eb-progress i { display: block; height: 100%; width: 25%; background: var(--grad); transition: width .35s ease; }
.eb-main { flex: 1; padding: 26px 0 40px; }
.eb-banner { background: #E7F7EF; border: 1px solid #BDE5CC; color: #1E6B3A; border-radius: 14px; padding: 10px 14px; margin-bottom: 14px; font-size: 14.5px; }
.eb-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 30px; box-shadow: 0 24px 50px -34px rgba(0, 40, 90, .45); }
h1, h2 { margin: 0 0 10px; line-height: 1.4; }
h1 { font-size: clamp(24px, 4vw, 32px); }
h2 { font-size: 22px; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.eb-hero { text-align: center; margin-bottom: 10px; }
.eb-hero img { width: 92px; height: auto; margin-bottom: 6px; }
.eb-lead { font-size: 17.5px; font-weight: 600; }
.eb-guide { display: inline-flex; gap: 6px; align-items: center; margin: 2px 0 16px; color: var(--teal); font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(0, 168, 164, .3); }
.eb-guide:hover { border-color: var(--teal); }
em { color: #E1782A; font-style: normal; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.f { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; min-width: 0; }
.grid .f { margin: 0; }
.f-full { grid-column: 1 / -1; }
.f > span, legend { font-weight: 600; font-size: 15px; }
.hint { color: var(--muted); font-size: 12.5px; }
input, textarea { width: 100%; font: inherit; font-size: 16px; color: var(--navy); background: #F7FBF9; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 50px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.7; }
input:focus, textarea:focus { outline: none; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(0, 168, 164, .14); }
input[dir="ltr"] { text-align: left; }
input[dir="ltr"]::placeholder { text-align: right; }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.choice { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.choice legend { width: 100%; margin-bottom: 6px; }
.choice.col .opt { flex: 1 1 100%; }
.opt, .track, .cm { position: relative; flex: 1 1 120px; cursor: pointer; }
.opt input, .track input, .cm input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 12px; background: #F7FBF9; font-weight: 600; }
.choice.col .opt span { justify-content: flex-start; text-align: right; }
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.track span { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 20px; border: 2px solid var(--line); border-radius: 18px; background: #F7FBF9; transition: all .15s; }
.track i { font-style: normal; font-size: 28px; }
.track b { font-size: 18px; }
.track small { color: var(--muted); font-size: 14px; line-height: 1.7; }
.committees { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.committees legend { grid-column: 1 / -1; margin-bottom: 4px; }
.cm span { display: flex; flex-direction: column; height: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #F7FBF9; transition: all .15s; }
.cm b { font-size: 15.5px; }
.cm small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.opt input:checked + span, .track input:checked + span, .cm input:checked + span { border-color: var(--teal); background: linear-gradient(135deg, rgba(0, 168, 164, .09), rgba(76, 192, 92, .1)); box-shadow: inset 0 0 0 1px var(--teal); color: var(--navy); }
.opt input:focus-visible + span, .track input:focus-visible + span, .cm input:focus-visible + span { outline: 3px solid #E1782A; outline-offset: 2px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); background: #F7FBF9; border-radius: 12px; padding: 12px 14px; cursor: pointer; margin-top: 6px; }
.consent input { width: 20px; height: 20px; min-height: 0; flex: none; margin-top: 3px; accent-color: var(--teal); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.track-member, .track-lead { display: none; }
form[data-track="member"] .track-member, form[data-track="lead"] .track-lead { display: block; }
.invalid input, .invalid textarea, .invalid .opt span, .invalid.track span, .invalid .track span, .invalid .cm span { border-color: var(--bad); background: #FFF6F5; }
.invalid.consent { box-shadow: inset 0 0 0 1.5px var(--bad); }
.err { color: var(--bad); font-size: 13px; font-weight: 600; grid-column: 1 / -1; width: 100%; }
.form-msg { min-height: 1.3em; margin: 12px 0 8px; color: var(--bad); font-weight: 600; }
.nav { display: flex; gap: 10px; justify-content: space-between; }
.eb-btn { flex: 1; font: 700 17px/1 inherit; font-family: inherit; color: var(--white); background: var(--grad); border: 0; border-radius: 999px; padding: 16px 24px; cursor: pointer;
  box-shadow: 0 10px 22px -12px rgba(0, 168, 164, .9); transition: transform .15s, filter .2s; }
.eb-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.eb-btn.ghost { flex: 0 0 auto; background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 2px var(--line); }
.eb-btn[disabled] { opacity: .6; cursor: wait; }
.eb-btn:focus-visible, a:focus-visible { outline: 3px solid #E1782A; outline-offset: 3px; }
.eb-done { text-align: center; padding: 44px 28px; }
.eb-done img { width: 86px; height: auto; margin-bottom: 8px; }
.eb-done p { color: var(--muted); max-width: 32em; margin-inline: auto; }
.eb-tag { font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent !important; font-size: 18px; }
.eb-foot { border-top: 1px solid var(--line); background: var(--white); font-size: 13px; color: var(--muted); }
.eb-foot .eb-wrap { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 14px 0; }
.eb-foot a { color: var(--teal); text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 600px) {
  .eb-card { padding: 22px 16px; border-radius: 18px; }
  .grid, .tracks, .committees { grid-template-columns: 1fr; }
  .eb-steps-label { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
/* شعار إبريم الأصلي بخلفية بيضاء: يُعرض داخل بطاقة بيضاء مستديرة كما في لوحة الهوية */
.eb-brand img, .eb-hero img, .eb-done img { background: #fff; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(0, 40, 90, .45); }
.eb-hero img, .eb-done img { border-radius: 22px; padding: 8px; }
