html { font-size: 15px; }
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f1f5f9;
  color: #1e293b;
  margin-bottom: 0;
}

/* ===== Header ===== */
.jssc-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 18px 10px;
}
.jssc-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}
.jssc-logo {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #166534;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #0f5a28;
}
.jssc-logo-inner {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid #15803d;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  font-size: 7px;
  color: #14532d;
  font-weight: 700;
  padding: 4px;
}
.jssc-logo-inner span.emblem {
  font-size: 22px;
  margin-bottom: 2px;
}
.jssc-title-block {
  flex: 1;
  text-align: center;
  line-height: 1.25;
}
.jssc-title-en {
  font-size: 20px;
  font-weight: 700;
  color: #0f3b7a;
  letter-spacing: 0.2px;
}
.jssc-title-hi {
  font-size: 19px;
  font-weight: 700;
  color: #0f3b7a;
  margin-top: 2px;
  letter-spacing: 0.15px;
}
.jssc-title-sub {
  font-size: 14px;
  color: #1e293b;
  margin-top: 3px;
  font-weight: 500;
}
.jssc-brand-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.jssc-brand-text {
  line-height: 1.1;
}
.jssc-brand-text .abbr {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: 0.5px;
}
.jssc-brand-text .full {
  font-size: 12px;
  color: #374151;
  font-weight: 500;
}
.jssc-brand-text .full small { display: block; }

/* ===== Nav ===== */
.jssc-nav {
  background: #0e3a6e;
  border-top: 1px solid #143a7a;
  border-bottom: 1px solid #0e3a6e;
}
.jssc-nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 42px;
  padding: 0 12px;
}
.jssc-nav a, .jssc-nav .sep {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  padding: 10px 18px;
}
.jssc-nav a:hover { background: rgba(255,255,255,0.12); }
.jssc-nav .sep { padding: 0 2px; opacity: 0.7; font-weight: 300; }
.jssc-nav .home-icon {
  width: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.15);
  margin-right: 6px;
}

/* ===== Main Layout ===== */
.jssc-main {
  max-width: 1400px;
  margin: 18px auto;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 275px 1fr 335px;
  gap: 18px;
  align-items: start;
}

/* ===== Cards ===== */
.jssc-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.jssc-card-header {
  background: #134484;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  letter-spacing: 0.15px;
}
.jssc-card-body {
  padding: 0;
}

/* Left dates */
.dates-list { padding: 6px 14px 10px; }
.date-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed #e2e8f0;
  align-items: flex-start;
}
.date-item:last-child { border-bottom: none; }
.date-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #1e4a8a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #134484;
  flex-shrink: 0;
  margin-top: 2px;
  background: #f0f7ff;
}
.date-label {
  font-size: 13px;
  color: #334155;
  line-height: 1.35;
}
.date-label strong.label { font-weight: 500; color: #1e293b; display: block; font-size: 13px; }
.date-label .date-val {
  color: #dc2626;
  font-weight: 700;
  font-size: 13px;
  margin-top: 1px;
}

/* Center form */
.login-card { padding: 16px 20px 18px; }
.login-title {
  font-size: 19px;
  font-weight: 700;
  color: #123a6e;
  padding-bottom: 8px;
  border-bottom: 2px solid #123a6e;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.login-title::before {
  content: "";
  width: 3px;
  height: 20px;
  background: #123a6e;
  border-radius: 2px;
  display: inline-block;
}
.form-label {
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 5px;
}
.form-label .req { color: #dc2626; margin-left: 3px; }
.form-control {
  width: 100%;
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  padding: 0 11px;
  font-size: 13.5px;
  color: #1e293b;
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.form-control::placeholder { color: #94a3b8; }
.form-control:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.hint {
  font-size: 11.8px;
  color: #64748b;
  margin-top: 4px;
}
.radio-row {
  display: flex;
  gap: 28px;
  margin-bottom: 6px;
  align-items: center;
}
.radio-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.radio-row input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #134484;
}
.info-box {
  background: #eef6ff;
  border: 1px solid #dbeafe;
  color: #1e40af;
  font-size: 12.5px;
  border-radius: 6px;
  padding: 8px 11px;
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 10px 0 14px;
  line-height: 1.4;
}
.info-box i { color: #1e4a8a; margin-top: 1px; }
.dob-wrap { position: relative; }
.dob-wrap .cal-icon {
  position: absolute;
  right: 9px;
  top: 50%;
  transform: translateY(-50%);
  color: #475569;
  pointer-events: none;
  font-size: 16px;
}
.form-group { margin-bottom: 11px; }
.btn-proceed {
  background: #134484;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: background .15s;
}
.btn-proceed:hover { background: #0f3566; }
.btn-wrap { text-align: center; margin-top: 16px; }
.input-error { border-color: #dc2626 !important; box-shadow: 0 0 0 3px rgba(220,38,38,0.1) !important; }
.field-error { font-size: 12px; color: #dc2626; margin-top: 4px; display: none; }

/* Right instructions */
.instr-card .jssc-card-header { background: #134484; }
.instr-body {
  padding: 14px 16px 12px;
  background: #fffff0;
  background: #fefce8;
  background: #ffffee;
  border-top: 1px solid #e2e8f0;
}
.instr-body ol {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.45;
  color: #1e293b;
}
.instr-body li { margin-bottom: 10px; }
.instr-body li::marker { font-weight: 600; }
.green-box {
  margin-top: 14px;
  background: #e8f5e9;
  background: #d9f0de;
  border: 1px solid #a7d8b0;
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 12.5px;
  color: #14532d;
  line-height: 1.4;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}
.green-box i { color: #15803d; margin-top: 2px; }

/* Footer */
.jssc-footer {
  max-width: 1400px;
  margin: 10px auto 0;
  padding: 14px 14px 18px;
  text-align: center;
  border-top: 2px solid #1e293b;
  margin-top: 18px;
}
.jssc-footer .help {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f3b7a;
}
.jssc-footer .help span { color: #1e293b; font-weight: 500; }
.jssc-footer .sub {
  font-size: 12.5px;
  color: #334155;
  margin-top: 3px;
  line-height: 1.45;
}
.jssc-footer .rights {
  font-size: 12.5px;
  color: #334155;
  margin-top: 14px;
  font-weight: 500;
}

/* Validation banner */
.validation-summary {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 12px;
  display: none;
}

/* Responsive */
@media (max-width: 1100px) {
  .jssc-main { grid-template-columns: 260px 1fr; }
  .instr-card { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .jssc-header-inner { flex-direction: column; text-align: center; }
  .jssc-brand-left { justify-content: center; }
  .jssc-title-block { text-align: center; }
  .jssc-nav-inner { flex-wrap: wrap; justify-content: center; }
  .jssc-main { grid-template-columns: 1fr; }
  .jssc-title-en { font-size: 16px; }
  .jssc-title-hi { font-size: 15px; }
}
