/* =========================================================
   Githiga SHG — Membership Registration (public)
   Matches the public site design system.
   ========================================================= */
:root{
  --red:#ed3326;
  --purple:#6b52a2;
  --lilac:#b1a4ce;
  --lilac-soft:#f6f3fb;
  --red-soft:#fff4f2;
  --ink:#2a2432;
  --muted:#6f6779;
  --line:#e9e4ef;
  --bg:#faf9fc;
  --card:#ffffff;
  --shadow:0 16px 42px rgba(48,32,65,.08);
  --radius:22px;
  --dark:#27205d;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.5;
}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button{font:inherit;cursor:pointer}

.wrap{width:min(980px,calc(100% - 30px));margin:0 auto}

/* ---- top strip ---- */
.reg-top{
  background:var(--dark);
  color:#fff;
  font-size:11px;
}
.reg-top .wrap{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:8px 0;
}
.reg-top .partner{
  display:flex;
  align-items:center;
  gap:12px;
}
.reg-top .partner img{height:38px;width:auto}
.reg-top .partner span{opacity:.92;line-height:1.4}
.reg-top .contact{display:flex;gap:16px;flex-wrap:wrap;opacity:.92}
.reg-top .contact a:hover{color:#fff;text-decoration:underline}

/* ---- brand header ---- */
header.site-header{
  position:sticky;
  top:0;
  z-index:30;
  background:#fff;
  border-bottom:1px solid var(--line);
}
.header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:250px;
}
.brand .logo{
  width:52px;height:52px;
  border-radius:14px;
  background:#fff;
  border:1px solid var(--line);
  display:grid;place-items:center;
  flex:0 0 52px;
}
.brand .logo img{width:100%;height:100%;object-fit:contain;padding:8px}
.brand-copy{display:grid;line-height:1.1}
.brand-copy small{font-size:10px;font-weight:900;letter-spacing:.14em;text-transform:uppercase;color:var(--red)}
.brand-copy strong{font-size:14px}
.brand-copy span{font-size:10px;color:var(--muted);margin-top:4px}
nav.links{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:24px;
  flex-wrap:wrap;
}
nav.links a{
  font-size:12px;
  font-weight:800;
  color:#5b5463;
  padding:8px 0;
  position:relative;
}
nav.links a:hover,nav.links a.active{color:var(--purple)}
nav.links a.active::after{
  content:"";
  position:absolute;left:0;right:0;bottom:0;
  height:3px;border-radius:999px;background:var(--red);
}
.nav-btn{
  border:0;
  background:var(--red);
  color:#fff;
  padding:12px 16px;
  border-radius:12px;
  font-size:12px;
  font-weight:900;
 }
.menu-btn{
  display:none;
  width:42px;height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  color:var(--purple);
  font-size:18px;
}
.mobile-menu{
  display:none;
  border-top:1px solid var(--line);
  padding:10px 0 16px;
}
.mobile-menu.open{display:grid}
.mobile-menu a{
  padding:10px 0;
  font-size:12px;
  font-weight:800;
  color:#5b5463;
}

/* ---- page intro ---- */
.reg-intro{
  text-align:center;
  padding:34px 0 8px;
}
.reg-intro .eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-transform:uppercase;
  font-size:10px;
  letter-spacing:.14em;
  font-weight:900;
  color:var(--red);
}
.reg-intro h1{
  margin:12px 0 6px;
  font-size:30px;
  line-height:1.12;
  letter-spacing:-.035em;
}
.reg-intro p{margin:0;color:var(--muted);font-size:13px}

/* ---- steps ---- */
.steps{
  display:flex;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  padding:24px 0 6px;
}
.step{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  font-size:11px;
  font-weight:800;
  color:var(--muted);
}
.step b{
  width:20px;height:20px;
  border-radius:50%;
  background:var(--lilac-soft);
  color:var(--purple);
  display:grid;place-items:center;
  font-size:10px;
}

/* ---- form ---- */
.registration{max-width:980px;margin:0 auto;padding:0 0 130px}
.reg-section{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:24px;
  margin-top:18px;
}
.reg-section h2{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 18px;
  font-size:18px;
  letter-spacing:-.02em;
}
.reg-section h2 .num{
  width:26px;height:26px;
  border-radius:9px;
  background:var(--purple);
  color:#fff;
  display:grid;place-items:center;
  font-size:12px;
  font-weight:900;
  flex:0 0 26px;
}
.hint{margin:8px 0 12px;font-size:11px;color:var(--muted)}
.section-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px 16px;
}
label{
  display:grid;
  gap:6px;
  font-size:11px;
  font-weight:800;
  color:#5e5765;
}
label.wide{grid-column:1/-1}
input,select{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  padding:12px 13px;
  font-size:13px;
  font-family:inherit;
  outline:none;
  color:var(--ink);
}
input:focus,select:focus{
  border-color:var(--purple);
  box-shadow:0 0 0 3px rgba(107,82,162,.08);
}
input[type="file"]{padding:9px 10px;font-size:12px;color:var(--muted)}
input[type="checkbox"]{width:auto}
input[type="date"]{font-family:inherit}

.kin{
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--bg);
  padding:16px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 16px;
  margin-bottom:12px;
  position:relative;
}
.kin .full{grid-column:1/-1}
.kin .remove{
  grid-column:1/-1;
  justify-self:end;
  border:1px solid var(--red);
  color:var(--red);
  background:#fff;
  border-radius:10px;
  padding:8px 12px;
  font-size:11px;
  font-weight:800;
}

.check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  font-weight:600;
  color:var(--ink);
  background:var(--red-soft);
  border:1px solid rgba(237,51,38,.18);
  border-radius:14px;
  padding:14px;
  line-height:1.6;
  grid-column:1/-1;
}
.check input{margin-top:2px}

.small-btn{
  border:1px solid var(--purple);
  color:var(--purple);
  background:#fff;
  border-radius:10px;
  padding:9px 13px;
  font-size:11px;
  font-weight:800;
}
.add-kin{display:flex;justify-content:flex-end;margin-bottom:10px}

/* ---- submit bar ---- */
.submit{
  position:fixed;
  left:0;right:0;bottom:0;
  background:rgba(255,255,255,.96);
  border-top:1px solid var(--line);
  backdrop-filter:blur(8px);
  z-index:50;
}
.submit .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  padding:14px 0;
}
.submit button{
  border:0;
  background:var(--red);
  color:#fff;
  padding:14px 22px;
  border-radius:14px;
  font-size:13px;
  font-weight:900;
  box-shadow:0 12px 26px rgba(237,51,38,.28);
}
.submit button:disabled{opacity:.7;cursor:default}
#result{
  font-size:13px;
  font-weight:700;
  color:var(--muted);
}
#result.ok{color:var(--purple)}
#result.err{color:var(--red)}

/* ---- footer ---- */
.reg-foot{
  border-top:1px solid var(--line);
  background:#fff;
  margin-top:10px;
  padding:26px 0 20px;
  text-align:center;
}
.reg-foot .partner{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:11px;
}
.reg-foot .partner img{height:34px;width:auto}
.reg-foot .brand-line{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:10px;
  color:var(--muted);
  margin-top:14px;
}
.reg-foot .brand-line img{height:26px;width:auto}
.reg-foot a:hover{color:var(--purple)}

@media (max-width:760px){
  .reg-top{display:none}
  .brand-copy{display:none}
  .brand{min-width:0;margin-right:auto}
  .grid,.kin{grid-template-columns:1fr}
  .submit .wrap{justify-content:center;text-align:center}
  .reg-intro h1{font-size:25px}
  .header-inner{min-height:66px}
  nav.links{display:none}
  .menu-btn{display:block}
  .mobile-menu a{border-bottom:1px solid var(--line)}
}