/* ══ HERO ══ */
.nsi-hero {
  background: linear-gradient(135deg, #0b3d6e 0%, #1578be 55%, #d40000 100%);
  padding: 32px 0 38px;
  position: relative;
  overflow: hidden;
}
.nsi-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 300px at 80% 50%, rgba(255,255,255,.06), transparent),
    radial-gradient(ellipse 400px 400px at 10% 80%, rgba(212,0,0,.18), transparent);
  pointer-events: none;
}
.nsi-hero-inner { position: relative; z-index: 1; }
.nsi-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 4px 13px;
  border-radius: 30px;
  margin-bottom: 10px;
}
.nsi-pill .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ff4d4d;
  animation: nsipulse 1.6s infinite;
}
@keyframes nsipulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(1.4); }
}
.nsi-hero h1 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}
.nsi-hero p {
  font-size: 14px;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  line-height: 1.65;
  margin-bottom: 16px;
}
.nsi-hero-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.nsi-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 8px;
  padding: 5px 12px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}
.nsi-chip i { color: rgba(255,255,255,.7); font-size: 12px; }

/* ══ MAIN ══ */
.nsi-main { background: #f5f6f8; padding: 40px 0 72px; }

/* ══ INTRO CARD ══ */
.nsi-intro-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 24px;
}
.nsi-intro-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.05), rgba(212,0,0,.03));
}
.nsi-intro-icon {
  width: 44px; height: 44px;
  flex: 0 0 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 4px 14px rgba(21,120,190,.28);
}
.nsi-intro-head h3 { font-size: 1.1rem; font-weight: 900; color: rgba(11,18,32,.9); margin-bottom: 2px; }
.nsi-intro-head p  { font-size: 12.5px; color: rgba(11,18,32,.42); margin: 0; }
.nsi-intro-body {
  padding: 18px 22px 22px;
  font-size: 14.5px;
  line-height: 1.8;
  color: rgba(11,18,32,.65);
}
.nsi-intro-body p { margin-bottom: 10px; }
.nsi-intro-body p:last-child { margin-bottom: 0; }

/* Note banner */
.nsi-note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(212,0,0,.06);
  border: 1px solid rgba(212,0,0,.15);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  color: #d40000;
}
.nsi-note i { font-size: 15px; flex: 0 0 auto; }

/* ══ MODULE CARDS ══ */
.nsi-module-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  overflow: hidden;
  margin-bottom: 20px;
}
.nsi-module-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(11,18,32,.07);
  background: linear-gradient(135deg, rgba(21,120,190,.06), rgba(212,0,0,.03));
}
.nsi-module-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .5px;
  text-align: center;
  line-height: 1.2;
  box-shadow: 0 4px 14px rgba(21,120,190,.25);
  flex: 0 0 auto;
}
.nsi-module-head h3 { font-size: 1.05rem; font-weight: 900; color: rgba(11,18,32,.88); margin-bottom: 2px; }
.nsi-module-head p  { font-size: 12.5px; color: rgba(11,18,32,.42); margin: 0; }
.nsi-module-body { padding: 22px; }
.nsi-module-body .row { margin-bottom: 0; }

/* Form field styling */
.nsi-module-body .form-group,
.nsi-module-body .col-md-3,
.nsi-module-body .col-md-4 { margin-bottom: 16px; }
.nsi-module-body label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(11,18,32,.72);
  margin-bottom: 5px;
}
.nsi-module-body .form-control,
.nsi-module-body select.form-control {
  border-radius: 8px;
  border: 1.5px solid rgba(11,18,32,.12);
  font-size: 13.5px;
  padding: 8px 12px;
  background: #fafbfc;
  transition: border-color .2s, box-shadow .2s;
}
.nsi-module-body .form-control:focus,
.nsi-module-body select.form-control:focus {
  border-color: #1578be;
  box-shadow: 0 0 0 3px rgba(21,120,190,.1);
  background: #fff;
  outline: none;
}

/* Formset card for each education row */
.nsi-formset-row {
  background: #fafbfc;
  border: 1.5px solid rgba(11,18,32,.07);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
  position: relative;
}
.nsi-formset-row .card { border: none; background: transparent; }
.nsi-formset-row .card-header {
  background: transparent !important;
  border: none;
  padding: 0;
}

/* Add / Delete buttons */
.nsi-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 10px;
  border: none;
  background: rgba(21,120,190,.1);
  border: 1.5px solid rgba(21,120,190,.22);
  color: #1578be;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: background .18s, color .18s;
  margin-top: 6px;
}
.nsi-add-btn:hover { background: #1578be; color: #fff; border-color: transparent; }
.nsi-del-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 8px;
  border: none;
  background: rgba(212,0,0,.08);
  border: 1.5px solid rgba(212,0,0,.18);
  color: #d40000;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  float: right;
  transition: background .18s, color .18s;
}
.nsi-del-btn:hover { background: #d40000; color: #fff; border-color: transparent; }

/* Divider */
.nsi-divider {
  height: 1px;
  background: rgba(11,18,32,.07);
  margin: 8px 0 20px;
}

/* ══ SUBMIT SECTION ══ */
.nsi-submit-card {
  background: #fff;
  border-radius: 16px;
  border: 1.5px solid rgba(11,18,32,.06);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  padding: 24px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.nsi-submit-info {
  font-size: 13.5px;
  color: rgba(11,18,32,.55);
  line-height: 1.6;
}
.nsi-submit-info strong { color: rgba(11,18,32,.75); }
.nsi-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #1578be, #d40000);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 4px 18px rgba(21,120,190,.28);
  white-space: nowrap;
}
.nsi-submit-btn:hover { opacity: .88; transform: translateY(-1px); }
.nsi-loading-area {
  font-size: 13px;
  font-weight: 700;
  color: #d40000;
  margin-top: 8px;
  min-height: 20px;
}

/* Alert styling */
.nsi-module-body .alert { border-radius: 8px; font-size: 13.5px; }

@media (max-width: 768px) {
  .nsi-hero { padding: 28px 0 32px; }
  .nsi-module-body { padding: 16px; }
  .nsi-submit-card { flex-direction: column; text-align: center; }
  .nsi-submit-btn { width: 100%; justify-content: center; }
}