.mcg-wrap{
  --mcg-blue:#1297df;
  --mcg-blue-dark:#0878bc;
  --mcg-blue-soft:#eef8ff;
  --mcg-orange:#ff7a1a;
  --mcg-orange-dark:#ed6500;
  --mcg-text:#1f2937;
  --mcg-muted:#64748b;
  --mcg-border:#e8eef5;
  --mcg-card:#ffffff;
  max-width:1050px;
  margin:56px auto;
  padding:0 18px;
  font-family:inherit;
  color:var(--mcg-text);
}
.mcg-wrap *{box-sizing:border-box}

/* Scoped safeguards against theme/builder CSS overrides */
div.mcg-wrap[data-mcg-app] > .mcg-hero{
  padding:54px 64px !important;
  padding-block:54px !important;
  padding-inline:64px !important;
}
div.mcg-wrap[data-mcg-app] > .mcg-form,
div.mcg-wrap[data-mcg-app] > .mcg-output{
  padding:34px !important;
  padding-block:34px !important;
  padding-inline:34px !important;
}
.mcg-wrap b,.mcg-wrap strong{font-weight:800}

.mcg-hero{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(230px,.65fr);
  gap:36px;
  align-items:center;
  overflow:hidden;
  min-height:270px;
  padding:54px 64px;
  border:1px solid var(--mcg-border);
  border-radius:28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(18,151,223,.14), transparent 30%),
    linear-gradient(135deg,#fff 0%,#f8fcff 54%,#eef8ff 100%);
  box-shadow:0 22px 54px rgba(15,23,42,.08);
}
.mcg-hero:after{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:280px;
  height:280px;
  border-radius:999px;
  background:rgba(18,151,223,.10);
}
.mcg-hero-copy{position:relative;z-index:1}
.mcg-eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-bottom:12px;
  color:var(--mcg-blue);
  font-size:13px;
  font-weight:900;
}
.mcg-eyebrow:before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--mcg-orange);
  box-shadow:0 0 0 5px rgba(255,122,26,.12);
}
.mcg-hero h2{
  margin:0;
  color:#172033;
  font-size:clamp(26px,3vw,40px);
  line-height:1.45;
  font-weight:900;
  letter-spacing:-.02em;
}
.mcg-hero p{
  max-width:700px;
  margin:18px 0 0;
  color:var(--mcg-muted);
  font-size:15px;
  line-height:2.05;
}
.mcg-trust-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:20px;
}
.mcg-trust-row span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 12px;
  border:1px solid #d8edf9;
  border-radius:999px;
  background:#fff;
  color:#25627f;
  font-size:12px;
  font-weight:800;
  box-shadow:0 8px 20px rgba(18,151,223,.08);
}
.mcg-hero-art{
  position:relative;
  z-index:1;
  min-height:170px;
}
.mcg-art-card,.mcg-art-lock{position:absolute;display:block}
.mcg-art-card{
  width:170px;
  height:104px;
  border:1px solid #ddecf7;
  border-radius:16px;
  background:#fff;
  box-shadow:0 20px 36px rgba(15,23,42,.08);
}
.mcg-art-card:before,.mcg-art-card:after{
  content:"";
  position:absolute;
  right:18px;
  left:18px;
  height:7px;
  border-radius:99px;
  background:#e8f1f8;
}
.mcg-art-card:before{top:28px}.mcg-art-card:after{top:50px;width:55%;left:auto}
.mcg-art-card-one{top:10px;right:20px;transform:rotate(5deg)}
.mcg-art-card-two{left:8px;bottom:2px;transform:rotate(-7deg)}
.mcg-art-lock{
  top:50%;
  right:50%;
  width:92px;
  height:92px;
  transform:translate(50%,-50%);
  border-radius:28px;
  background:linear-gradient(145deg,var(--mcg-blue),#0b73bd);
  box-shadow:0 22px 44px rgba(18,151,223,.28);
}
.mcg-art-lock:before{
  content:"";
  position:absolute;
  top:22px;
  right:28px;
  width:36px;
  height:30px;
  border:9px solid rgba(255,255,255,.95);
  border-bottom:0;
  border-radius:22px 22px 0 0;
}
.mcg-art-lock:after{
  content:"";
  position:absolute;
  right:25px;
  bottom:20px;
  width:42px;
  height:34px;
  border-radius:10px;
  background:#fff;
}

.mcg-form,.mcg-output{
  margin-top:24px;
  padding:34px;
  border:1px solid var(--mcg-border);
  border-radius:24px;
  background:var(--mcg-card);
  box-shadow:0 18px 48px rgba(15,23,42,.06);
}
.mcg-section-title,.mcg-output-head{
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin-bottom:24px;
}
.mcg-section-title>span,.mcg-output-head>span{
  display:block;
  width:72px;
  height:3px;
  margin-bottom:12px;
  border-radius:999px;
  background:linear-gradient(90deg,transparent,var(--mcg-blue),transparent);
}
.mcg-section-title h3,.mcg-output-head h3{
  margin:0;
  color:#1f2937;
  font-size:22px;
  line-height:1.6;
  font-weight:900;
}
.mcg-section-title p,.mcg-output-head p{
  margin:5px 0 0;
  color:var(--mcg-muted);
  font-size:13px;
  line-height:1.9;
}

.mcg-type-row{
  display:flex;
  gap:14px;
  justify-content:center;
  align-items:center;
  margin-bottom:18px;
  flex-wrap:wrap;
}
.mcg-radio{
  display:inline-flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:8px 14px;
  border:1px solid #d8edf9;
  border-radius:999px;
  background:#f7fcff;
  color:#28475c;
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}
.mcg-radio input{width:18px;height:18px;accent-color:var(--mcg-blue)}


.mcg-wrap[data-person-type="legal_ngo"] .mcg-natural-only,
.mcg-wrap[data-person-type="natural_ngo"] .mcg-legal-only{
  display:none;
}
.mcg-grid select:disabled{
  background:#f8fbfe;
  color:#9aa8b6;
  cursor:not-allowed;
}

.mcg-hint,.mcg-security-note{
  position:relative;
  overflow:hidden;
  margin:0 0 20px;
  padding:14px 18px;
  border:1px solid #d8edf9;
  border-radius:18px;
  background:linear-gradient(135deg,#f6fbff,#fff);
  color:#40566b;
  font-size:13px;
  line-height:2;
}
.mcg-security-note{
  margin:20px 0 0;
  border-color:#ffe0c7;
  background:linear-gradient(135deg,#fff8f2,#fff);
}
.mcg-security-note strong{color:#b45309}

.mcg-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px 22px;
  direction:rtl;
}
.mcg-grid label,.mcg-output label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-size:14px;
  font-weight:850;
  color:#263446;
}
.mcg-grid small{
  font-weight:700;
  font-size:11px;
  color:#7b8794;
}
.mcg-grid em{
  color:#ef4444;
  font-style:normal;
  font-weight:900;
}
.mcg-grid input,.mcg-grid select,.mcg-output textarea{
  width:100%;
  min-height:48px;
  border:1px solid #dbe5ee;
  border-radius:14px;
  background:#fff;
  padding:11px 14px;
  color:#1f2937;
  font:inherit;
  font-size:14px;
  outline:none;
  transition:border-color .16s,box-shadow .16s,background .16s;
}
.mcg-grid input::placeholder,.mcg-grid select:invalid{color:#a1adbb}
.mcg-grid input:focus,.mcg-grid select:focus,.mcg-output textarea:focus{
  border-color:var(--mcg-blue);
  box-shadow:0 0 0 4px rgba(18,151,223,.13);
}
.mcg-grid input[readonly]{
  background:#f8fbfe;
  color:#557086;
  text-align:left;
  direction:ltr;
}
.mcg-input-action{
  display:flex;
  align-items:stretch;
  border:1px solid #dbe5ee;
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition:border-color .16s,box-shadow .16s;
}
.mcg-input-action:focus-within{
  border-color:var(--mcg-blue);
  box-shadow:0 0 0 4px rgba(18,151,223,.13);
}
.mcg-input-action input{
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}
.mcg-input-action button{
  min-width:70px;
  border:0;
  border-right:1px solid #e4edf4;
  background:#f7fbff;
  color:var(--mcg-blue-dark);
  font:inherit;
  font-size:12px;
  font-weight:900;
  cursor:pointer;
}
.mcg-input-action button:hover{background:#eef8ff}

.mcg-main-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:52px;
  margin-top:22px;
  border:0;
  border-radius:16px;
  background:linear-gradient(135deg,var(--mcg-orange),#ff933d);
  color:#fff;
  box-shadow:0 14px 28px rgba(255,122,26,.22);
  padding:14px 18px;
  font:inherit;
  font-size:15px;
  font-weight:950;
  cursor:pointer;
  transition:transform .15s,box-shadow .15s,filter .15s;
}
.mcg-main-btn:hover{
  transform:translateY(-1px);
  box-shadow:0 18px 34px rgba(255,122,26,.27);
  filter:saturate(1.05);
}
.mcg-main-btn:active{transform:translateY(0)}

.mcg-status{
  margin:18px 0 0;
  min-height:0;
  border-radius:16px;
  font-size:14px;
  font-weight:850;
  line-height:2;
}
.mcg-status:not(:empty){padding:13px 16px;border:1px solid #e5e7eb;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.mcg-status.error{color:#b91c1c;border-color:#fecaca!important;background:#fff6f6!important}
.mcg-status.ok{color:#047857;border-color:#bbf7d0!important;background:#f4fff8!important}
.mcg-status.is-loading{color:#075985;border-color:#bae6fd!important;background:#f0f9ff!important}

.mcg-output{
  display:grid;
  gap:16px;
}
.mcg-output[hidden]{display:none}
.mcg-output textarea{
  min-height:150px;
  direction:ltr;
  text-align:left;
  font-family:ui-monospace,SFMono-Regular,Consolas,Monaco,monospace;
  font-size:12px;
  font-weight:600;
  line-height:1.55;
  resize:vertical;
  background:#fbfdff;
}
.mcg-downloads{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px;
}
.mcg-downloads button{
  min-height:78px;
  border:1px solid #d8edf9;
  border-radius:18px;
  background:#fff;
  color:#17577a;
  padding:12px;
  font:inherit;
  cursor:pointer;
  box-shadow:0 12px 26px rgba(15,23,42,.06);
  transition:transform .15s,border-color .15s,box-shadow .15s;
}
.mcg-downloads button span,.mcg-downloads button strong{display:block}
.mcg-downloads button span{font-size:12px;font-weight:800;color:#5c7489;line-height:1.7}
.mcg-downloads button strong{margin-top:3px;font-size:13px;font-weight:950;direction:ltr}
.mcg-downloads button:hover{
  transform:translateY(-2px);
  border-color:var(--mcg-blue);
  box-shadow:0 16px 32px rgba(18,151,223,.12);
}
.mcg-details{
  border:1px solid var(--mcg-border);
  border-radius:16px;
  padding:12px 14px;
  background:#fff;
}
.mcg-details summary{
  cursor:pointer;
  color:#263446;
  font-weight:900;
  margin-bottom:10px;
}

@media(max-width:860px){
  .mcg-wrap{margin:32px auto;padding:0 12px}
  .mcg-hero{grid-template-columns:1fr;padding:34px 26px;border-radius:22px}
  div.mcg-wrap[data-mcg-app] > .mcg-hero{padding:34px 26px !important;padding-block:34px !important;padding-inline:26px !important}
  .mcg-hero-art{display:none}
  .mcg-form,.mcg-output{padding:22px 16px;border-radius:20px}
  div.mcg-wrap[data-mcg-app] > .mcg-form,
  div.mcg-wrap[data-mcg-app] > .mcg-output{padding:22px 16px !important;padding-block:22px !important;padding-inline:16px !important}
  .mcg-grid{grid-template-columns:1fr}
  .mcg-downloads{grid-template-columns:1fr}
  .mcg-type-row{justify-content:flex-start}
}
@media(max-width:520px){
  .mcg-hero h2{font-size:24px}
  .mcg-trust-row span{width:100%;justify-content:center}
  .mcg-radio{width:100%;justify-content:flex-start}
}
