*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:"Segoe UI", Arial, sans-serif;
}

:root{
  --primary:#0b4ea2;
  --primary-dark:#072f6f;
  --accent:#f8b400;
  --green:#21883a;
  --red:#c62828;
  --bg:#eef6ff;
  --card:#ffffff;
  --text:#182033;
  --muted:#667085;
  --border:#d9e3f0;
}

body{
    min-height:100vh;
    background:
      radial-gradient(circle at top left, rgba(255,255,255,0.75), transparent 35%),
      linear-gradient(135deg, #fff4ec, #ffe8dc, #fff7f2);
    padding:0 15px 35px;
    font-family:"Segoe UI", Arial, sans-serif;
}

.ns-official-header{
  width:100%;
  background:#fff;
  margin-bottom:22px;
  box-shadow:0 8px 24px rgba(0,0,0,.16);
}

.ns-top-strip{
  min-height:42px;
  background:var(--primary-dark);
  display:flex;
  align-items:center;
  padding:0 35px;
  color:#fff;
  font-size:14px;
  font-weight:800;
}

.ns-top-strip::before{
  content:"NationScholars Counselling Portal 2026 | Online Registration • Academic Verification • Document Upload • Fee Payment";
}

.ns-gov-strip{
  min-height:34px;
  background:#ede9df;
  display:flex;
  align-items:center;
  gap:28px;
  padding:7px 35px;
  font-size:12px;
  border-bottom:1px solid #d7d7d7;
}

.ns-access{
  margin-left:auto;
  display:flex;
  gap:14px;
  font-weight:800;
  flex-wrap:wrap;
}

.ns-main-header{
  min-height:108px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 35px;
}

.ns-logo-box{
  display:flex;
  align-items:center;
  gap:20px;
}

.ns-logo-box img{
  width:92px;
  height:92px;
  object-fit:contain;
  border-radius:16px;
  background:#fff;
}

.ns-logo-box h1{
  font-size:31px;
  line-height:1.15;
  font-weight:900;
  color:#111827;
}

.ns-logo-box p{
  margin-top:7px;
  color:#3f4a5f;
  font-size:16px;
  font-weight:650;
}

.ns-menu{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 35px;
  gap:2px;
  background:#f5efe3;
  border-top:1px solid #ddd;
  overflow-x:auto;
}

.ns-menu a{
  min-height:44px;
  display:flex;
  align-items:center;
  padding:0 18px;
  color:#1f2937;
  text-decoration:none;
  font-size:14px;
  font-weight:800;
  white-space:nowrap;
}

.ns-menu a.active,
.ns-menu a:hover{
  background:var(--accent);
  color:#111827;
}

.page-wrapper{
  width:min(1220px, calc(100% - 26px));
  margin:0 auto 45px;
  display:grid;
  grid-template-columns:300px 1fr;
  gap:24px;
  align-items:start;
}

.stage-sidebar{
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.55);
  backdrop-filter:blur(10px);
  border-radius:22px;
  padding:24px 20px;
  box-shadow:0 18px 44px rgba(6,34,74,.18);
  position:sticky;
  top:18px;
}

.stage-sidebar{
  background:rgba(255,255,255,0.94);
  border-radius:22px;
  padding:24px 20px;
  box-shadow:0 16px 35px rgba(0,0,0,0.10);
  position:sticky;
  top:20px;
  border:1px solid #f3d8ca;
}

.stage-step{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 13px;
  margin-bottom:12px;
  border-radius:16px;
  background:#f3f7ff;
  color:#5c6b80;
  font-weight:800;
  border:1px solid #e5ecf8;
}

.stage-step span{
  width:34px;
  height:34px;
  border-radius:50%;
  background:#dde8f6;
  display:grid;
  place-items:center;
  font-weight:950;
  flex:0 0 auto;
}

.stage-step.completed{
  background:#e9f8ee;
  color:#155c29;
  border-color:#c8ecd2;
}

.stage-step.completed span{
  background:var(--green);
  color:#fff;
}

.stage-step.active{
  background:#e4f0ff;
  color:var(--primary);
  border-color:#b9d4ff;
}

.stage-step.active span{
  background:var(--primary);
  color:#fff;
}
.important-box{
  margin-top:18px;
  background:#fff5eb;
  border:1px solid #f0c08d;
  border-radius:16px;
  padding:16px;
  color:#6b3d11;
}

.important-box p{
  margin-top:7px;
  line-height:1.5;
  font-size:13px;
}

.form-card{
    width:100%;
    max-width:980px;
    background:rgba(255,255,255,0.96);
    border-radius:24px;
    padding:35px;
    box-shadow:0 20px 45px rgba(0,0,0,0.10);
    border:1px solid #f1ddd2;
}
.form-header{
  text-align:center;
  margin-bottom:22px;
}

.form-header h1{
  color:var(--primary-dark);
  font-size:31px;
  font-weight:950;
  letter-spacing:-.5px;
}

.stage-box{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:13px;
  padding:11px 18px;
  color:var(--primary-dark);
  background:#e8f2ff;
  border:1px solid #bdd7ff;
  border-left:6px solid var(--primary);
  border-radius:14px;
  font-weight:900;
}

.stage-box h2{
  font-size:17px;
}

.timeline{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:0 0 28px;
}

.timeline-item{
  min-height:76px;
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px;
  border:1px solid #dbe7f7;
  border-radius:16px;
  background:#f8fbff;
  color:#536174;
  font-weight:800;
}

.timeline-item .circle{
  width:34px;
  height:34px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:#e2eaf6;
  color:#59677a;
  font-weight:950;
  flex:0 0 auto;
}

.timeline-item small{
  display:block;
  margin-top:2px;
  font-weight:700;
  color:#718096;
}

.timeline-item.completed{
  background:#ecfbf1;
  border-color:#c6efcf;
  color:#155c29;
}

.timeline-item.completed .circle{
  background:var(--green);
  color:#fff;
}

.timeline-item.active{
  background:#eaf3ff;
  border-color:#a9ceff;
  color:var(--primary-dark);
  box-shadow:0 10px 22px rgba(11,78,162,.12);
}

.timeline-item.active .circle{
  background:var(--primary);
  color:#fff;
}

.section-heading{
  width:100%;
  margin:28px 0 18px;
  padding:14px 18px;
  background:linear-gradient(90deg,#e8f2ff 0%,#fff 70%);
  border-left:6px solid var(--primary);
  border-radius:14px;
  color:var(--primary-dark);
  font-size:20px;
  font-weight:950;
  box-shadow:0 6px 14px rgba(11,78,162,.10);
}

.grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:19px 21px;
}

.field{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.full{
  grid-column:1/-1;
}

label{
  font-weight:850;
  color:#1f2937;
  font-size:14px;
}

label .req{
  color:var(--red);
}

input,
select,
textarea{
  width:100%;
  min-height:48px;
  border:1px solid #ccd9ea;
  border-radius:13px;
  padding:13px 14px;
  font-size:15px;
  color:#101828;
  background:#fbfdff;
  outline:none;
  transition:.22s ease;
}

textarea{
  min-height:92px;
  resize:vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color:var(--primary);
  background:#fff;
  box-shadow:0 0 0 4px rgba(11,78,162,.12);
}

input.valid,
select.valid{
  border-color:#2e7d32;
  background:#fbfffc;
}

input.invalid,
select.invalid{
  border-color:#c62828;
  background:#fffafa;
}

.hint{
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}

.captcha-area{
  margin-top:28px;
  padding:18px;
  border-radius:18px;
  background:#f7fbff;
  border:1px dashed #abcaf2;
}

.captcha-area label{
  color:var(--primary-dark);
}

.captcha-row{
  display:flex;
  align-items:center;
  gap:12px;
  margin:11px 0 12px;
}

.captcha-code{
  min-width:175px;
  padding:14px 18px;
  text-align:center;
  border-radius:12px;
  background:
    linear-gradient(135deg, rgba(248,180,0,.18), rgba(11,78,162,.12)),
    #fff;
  border:1px solid #d8e4f5;
  color:#9c174d;
  font-size:27px;
  font-weight:950;
  letter-spacing:5px;
  user-select:none;
  text-decoration:line-through;
}

.refresh-captcha{
  width:48px;
  height:48px;
  border-radius:50%;
  margin:0;
  padding:0;
  border:none;
  cursor:pointer;
  color:#136a2a;
  background:#e8f8ed;
  font-size:24px;
  font-weight:950;
}

button,
.btn{
  width:100%;
  min-height:52px;
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:26px;
  padding:15px 18px;
  border:none;
  border-radius:15px;
  background:linear-gradient(135deg,#083b86,#0b67d2);
  color:#fff;
  text-decoration:none;
  font-size:17px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(11,78,162,.22);
  transition:.22s ease;
}

button:hover,
.btn:hover{
  transform:translateY(-2px);
  box-shadow:0 16px 28px rgba(11,78,162,.30);
}

.btn-secondary{
  background:linear-gradient(135deg,#4a5568,#1f2937);
}

.btn-success{
  background:linear-gradient(135deg,#1b7d38,#10a248);
}

.alert{
  padding:13px 15px;
  border-radius:14px;
  margin-bottom:18px;
  line-height:1.5;
  font-weight:800;
}

.alert-error{
  background:#fff1f1;
  color:#a11919;
  border:1px solid #ffc9c9;
}

.alert-info{
  background:#eef6ff;
  color:#0b4ea2;
  border:1px solid #c2dcff;
}

.payment-card{
  text-align:center;
  padding:26px 16px;
}

.payment-amount{
  font-size:42px;
  font-weight:950;
  color:var(--primary-dark);
  margin:12px 0 4px;
}

.badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-weight:950;
  font-size:13px;
  background:#e8f2ff;
  color:var(--primary-dark);
}

.success-check{
  width:84px;
  height:84px;
  border-radius:50%;
  display:grid;
  place-items:center;
  margin:0 auto 18px;
  background:#e8f8ed;
  color:var(--green);
  font-size:44px;
  font-weight:950;
}

.table-box{
  width:100%;
  margin-top:20px;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
  border:1px solid var(--border);
}

.table-box th,
.table-box td{
  padding:14px;
  border-bottom:1px solid var(--border);
  text-align:left;
  font-size:14px;
}

.table-box th{
  width:34%;
  background:#f5f9ff;
  color:#334155;
}

.table-box tr:last-child th,
.table-box tr:last-child td{
  border-bottom:none;
}

.hidden{
  display:none !important;
}

@media(max-width:980px){
  .page-wrapper{
    grid-template-columns:1fr;
  }
  .stage-sidebar{
    position:static;
  }
  .timeline{
    grid-template-columns:repeat(2,1fr);
  }
}

@media(max-width:720px){
  body{
    background:linear-gradient(180deg,#0a377a 0%,#eaf5ff 45%,#f6fbff 100%);
  }
  .ns-top-strip,
  .ns-gov-strip,
  .ns-main-header,
  .ns-menu{
    padding-left:14px;
    padding-right:14px;
  }
  .ns-gov-strip{
    flex-wrap:wrap;
    gap:10px;
  }
  .ns-access{
    margin-left:0;
  }
  .ns-main-header{
    text-align:center;
    justify-content:center;
  }
  .ns-logo-box{
    flex-direction:column;
    gap:9px;
  }
  .ns-logo-box img{
    width:76px;
    height:76px;
  }
  .ns-logo-box h1{
    font-size:22px;
  }
  .ns-logo-box p{
    font-size:13px;
  }
  .page-wrapper{
    width:min(100% - 18px, 1220px);
    gap:14px;
  }
  .form-card,
  .stage-sidebar{
    border-radius:18px;
    padding:19px 15px;
  }
  .form-header h1{
    font-size:24px;
  }
  .stage-box h2{
    font-size:14px;
  }
  .grid{
    grid-template-columns:1fr;
    gap:16px;
  }
  .timeline{
    grid-template-columns:1fr;
  }
  .timeline-item{
    min-height:58px;
  }
  .captcha-row{
    align-items:stretch;
  }
  .captcha-code{
    min-width:0;
    flex:1;
    font-size:21px;
    letter-spacing:3px;
  }
}
