/* MudraReady Order Form v6 — Professional Design */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

#mr5 {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  font-size: 14px;
  color: #1a1f2e;
  padding: 24px 12px 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #f8faff 50%, #f0f7f4 100%);
  min-height: 100vh;
}

.mr-wrap {
  max-width: 620px !important;
  margin: 0 auto !important;
  width: 100%;
}

/* ── Page Title ─────────────────────────────────────────────────── */
.mr-page-title {
  text-align: center;
  margin-bottom: 24px;
}
.mr-page-title h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1b3a5c;
  margin-bottom: 6px;
}
.mr-page-title p {
  font-size: 13px;
  color: #6b7a8d;
}

/* ── Progress bar ─────────────────────────────────────────────── */
.mr-prog {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 0 20px;
  gap: 0;
  position: relative;
}

.mr-prog::before {
  content: '';
  position: absolute;
  top: 13px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #dce4ee;
  z-index: 0;
}

.mr-pitem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.mr-pdot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #dce4ee;
  color: #9aa5b4;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.mr-pitem.active .mr-pdot {
  background: #1b3a5c;
  border-color: #1b3a5c;
  color: #fff;
  box-shadow: 0 4px 12px rgba(27,58,92,.35);
  transform: scale(1.1);
}

.mr-pitem.done .mr-pdot {
  background: #1a6b45;
  border-color: #1a6b45;
  color: #fff;
  font-size: 0;
}
.mr-pitem.done .mr-pdot::after {
  content: '✓';
  font-size: 13px;
}

.mr-ptxt {
  font-size: 9.5px; font-weight: 600;
  color: #9aa5b4; text-align: center; line-height: 1.2;
}
.mr-ptxt small { font-size: 8.5px; display: block; opacity: .8; }
.mr-pitem.active .mr-ptxt { color: #1b3a5c; }
.mr-pitem.done .mr-ptxt   { color: #1a6b45; }

.mr-pbar {
  display: none; /* handled by ::before */
}

/* ── Card ───────────────────────────────────────────────────────── */
.mr-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 4px 24px rgba(27,58,92,.08), 0 1px 4px rgba(27,58,92,.04);
  border: 1px solid rgba(27,58,92,.06);
  animation: mr-fadein .3s ease;
}

@keyframes mr-fadein {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Step heading ───────────────────────────────────────────────── */
.mr-head {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px; font-weight: 800;
  color: #1b3a5c;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f0f4ff;
}
.mr-head small {
  display: block;
  font-size: 12px; font-weight: 500;
  color: #6b7a8d; margin-top: 2px;
}

.mr-badge {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff;
  border-radius: 10px;
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(27,58,92,.3);
}

/* ── Section label ──────────────────────────────────────────────── */
.mr-sec {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: #2563a8;
  margin: 16px 0 10px;
  padding: 6px 10px;
  background: #f0f4ff;
  border-radius: 6px;
  border-left: 3px solid #2563a8;
}

/* ── Two column grid ────────────────────────────────────────────── */
.mr-row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* ── Field ───────────────────────────────────────────────────────── */
.mr-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.mr-field label {
  font-size: 13px; font-weight: 600;
  color: #2d3748; line-height: 1.4;
}
.mr-field label em {
  font-style: normal;
  font-size: 11.5px; font-weight: 400;
  color: #9aa5b4; margin-left: 3px;
}
.mr-field label small {
  display: block;
  font-size: 11px; font-weight: 400;
  color: #9aa5b4; margin-top: 2px;
}
.req { color: #e53e3e; }

.mr-hint {
  font-size: 11px; color: #9aa5b4; margin-top: 2px;
}

/* Keep Input and Textarea as is */
.mr-field input,
.mr-field textarea {
  padding: 10px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1f2e;
  background: #fafbff;
  width: 100%;
  transition: all .2s;
}

/* Specific fix for the Select dropdown cutting off text  */
.mr-field select {
  padding: 12px 35px 12px 14px !important; /* Increased vertical padding to prevent clipping  */
  height: auto !important;                 /* Removes height restriction  */
  line-height: 1.6 !important;             /* Ensures bottom of letters like 'g' or 'y' show  */
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #1a1f2e;
  background: #fafbff;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.mr-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7a8d' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.mr-field input:focus,
.mr-field select:focus {
  outline: none;
  border-color: #2563a8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,168,.12);
}

.mr-field input::placeholder { color: #b0bec5; }

.mr-err-field {
  border-color: #e53e3e !important;
  background: #fff5f5 !important;
  box-shadow: 0 0 0 3px rgba(229,62,62,.1) !important;
}

/* ── Sub text ───────────────────────────────────────────────────── */
.mr-sub {
  font-size: 13px; color: #718096;
  line-height: 1.6; margin-bottom: 14px;
  padding: 10px 14px;
  background: #f7faff;
  border-radius: 8px;
}

/* ── Alert box ──────────────────────────────────────────────────── */
.mr-alert {
  background: linear-gradient(135deg, #fffbeb, #fef9e7);
  border: 1px solid #f6d860;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: #7d5a00;
  line-height: 1.6; margin-bottom: 14px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.mr-foot {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

button {
  border: none; cursor: pointer;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 700;
  transition: all .2s;
  line-height: 1.3;
}

.mr-btn-primary {
  flex: 1;
  padding: 13px 18px;
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff;
  text-align: center;
  box-shadow: 0 4px 14px rgba(27,58,92,.3);
  letter-spacing: .02em;
}
.mr-btn-primary span {
  display: block;
  font-size: 11px; font-weight: 500;
  opacity: .75; margin-top: 2px;
  letter-spacing: 0;
}
.mr-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27,58,92,.4);
}
.mr-btn-primary:active { transform: translateY(0); }

/* ── PMEGP Subsidy Info Box ─────────────────────────────────────── */
.mr-pmegp-info {
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1.5px solid #93c5fd;
  border-left: 4px solid #2563a8;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 4px 0 14px;
}
.mr-pmegp-title {
  font-size: 13px; font-weight: 700;
  color: #1b3a5c; margin-bottom: 10px;
}
.mr-pmegp-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mr-pmegp-grid div {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
}
.mr-pmegp-grid span {
  display: block;
  font-size: 11px; color: #6b7a8d; font-weight: 500;
  margin-bottom: 3px;
}
.mr-pmegp-grid strong {
  font-size: 15px; font-weight: 800; color: #1b3a5c;
}
.mr-pmegp-note {
  font-size: 11px; color: #6b7a8d;
  margin-top: 8px; line-height: 1.5;
}

/* ── Live total display box ─────────────────────────────────────── */
.mr-total-box {
  display: none;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1.5px solid #86efac;
  border-radius: 10px;
  padding: 12px 16px;
  margin: 4px 0 14px;
  font-size: 13.5px;
  color: #166534;
  font-weight: 600;
}
.mr-total-box strong {
  font-size: 17px;
  font-weight: 800;
  color: #1a6b45;
}

/* Step 1 next button — full width on its own */
#s1 .mr-foot .mr-btn-primary { width: 100%; }

.mr-btn-sec {
  padding: 13px 18px;
  background: #f7faff;
  color: #1b3a5c;
  border: 1.5px solid #dce4f0;
  white-space: nowrap;
  font-weight: 600;
}
.mr-btn-sec:hover {
  background: #ebf3fb;
  border-color: #2563a8;
}

.mr-btn-submit {
  flex: 1;
  padding: 14px 18px;
  background: linear-gradient(135deg, #1a6b45, #22c55e);
  color: #fff;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(26,107,69,.35);
  letter-spacing: .02em;
}
.mr-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(26,107,69,.45);
}
.mr-btn-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── Includes box ───────────────────────────────────────────────── */
.mr-includes {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 14px 0;
}
.mr-inc-title {
  font-size: 13px; font-weight: 700;
  color: #1a6b45; margin-bottom: 10px;
  display: flex; align-items: center; gap: 6px;
}
.mr-inc-title::before { content: '📋'; }
.mr-inc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 10px;
}
.mr-inc-grid span { font-size: 12.5px; color: #166534; }

/* ── Summary box ────────────────────────────────────────────────── */
.mr-sum-box {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 2px 12px rgba(27,58,92,.08);
}
.mr-sum-hd {
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px; font-weight: 700;
  letter-spacing: .02em;
}
.mr-sum-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mr-sum-tbl tr { border-bottom: 1px solid #f0f4f8; }
.mr-sum-tbl tr:last-child { border: none; }
.mr-sum-tbl td { padding: 9px 16px; }
.mr-sum-tbl td:first-child { color: #718096; width: 45%; font-size: 12.5px; }
.mr-sum-tbl td:last-child  { font-weight: 600; color: #1a1f2e; }
.mr-sum-hl td {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5) !important;
  color: #1a6b45 !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  border-top: 2px solid #bbf7d0 !important;
}

/* ── Payment box ────────────────────────────────────────────────── */
.mr-paybox {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: 0 4px 20px rgba(27,58,92,.1);
  border: 1px solid rgba(27,58,92,.08);
}
.mr-payhead {
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff;
  padding: 12px 16px;
  font-size: 14px; font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.mr-payhead::before { content: '💳'; }
.mr-paybody {
  display: grid;
  grid-template-columns: 140px 1fr;
  background: #fff;
}
.mr-qrblock {
  padding: 16px 10px;
  border-right: 1px solid #f0f4f8;
  text-align: center;
  background: linear-gradient(135deg, #f7faff, #f0f4ff);
}
.mr-qrblock img {
  width: 110px; height: 110px;
  border: 3px solid #dce4f0;
  border-radius: 10px;
  display: block; margin: 0 auto 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.mr-no-qr {
  width: 110px; height: 110px;
  background: #f0f4ff;
  border: 2px dashed #dce4f0;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-size: 11px; color: #9aa5b4;
  margin: 0 auto 8px;
}
.mr-upi {
  font-size: 11px; color: #718096; line-height: 1.5;
}
.mr-upi strong {
  font-size: 12px; color: #1b3a5c;
  word-break: break-all; font-weight: 700;
}

.mr-howto {
  padding: 14px 16px;
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mr-howto li {
  counter-increment: step;
  display: flex; gap: 10px;
  font-size: 13px; line-height: 1.5; color: #2d3748;
  align-items: flex-start;
}
.mr-howto li::before {
  content: counter(step);
  width: 22px; height: 22px;
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff;
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  box-shadow: 0 2px 6px rgba(27,58,92,.25);
}

/* ── Messages ───────────────────────────────────────────────────── */
.mr-err {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  border-left: 4px solid #e53e3e;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px; color: #c53030;
  line-height: 1.6; margin: 10px 0;
}
.mr-ok {
  background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13.5px; line-height: 1.7;
  margin: 10px 0;
  box-shadow: 0 2px 12px rgba(26,107,69,.1);
}
.mr-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  background: linear-gradient(135deg, #1b3a5c, #2563a8);
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700; font-size: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(27,58,92,.3);
  transition: all .2s;
}
.mr-dl-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(27,58,92,.4) !important;
}

.mr-helpline {
  text-align: center;
  font-size: 12px; color: #9aa5b4;
  margin-top: 12px; line-height: 1.5;
}

/* ── Trust badge ────────────────────────────────────────────────── */
.mr-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
  padding: 12px;
  background: #f7faff;
  border-radius: 10px;
  font-size: 11.5px;
  color: #718096;
  flex-wrap: wrap;
}
.mr-trust span {
  display: flex; align-items: center; gap: 4px;
}

/* ── Loading overlay ────────────────────────────────────────────── */
#mr-loading {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  z-index: 99999;
}
.mr-loading-box {
  text-align: center; color: #fff;
  background: rgba(27,58,92,.9);
  padding: 32px 40px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.mr-loading-box p { font-size: 15px; line-height: 1.6; margin-top: 16px; font-weight: 600; }
.mr-loading-box small { font-size: 12px; opacity: .7; font-weight: 400; }

.mr-spinner {
  width: 48px; height: 48px;
  border: 4px solid rgba(255,255,255,.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mrspin .7s linear infinite;
  margin: 0 auto;
}
@keyframes mrspin { to { transform: rotate(360deg); } }

/* ── Mobile ─────────────────────────────────────────────────────── */
@media (max-width: 500px) {
  #mr5 { padding: 16px 8px 32px; }
  .mr-card { padding: 18px 14px; border-radius: 12px; }
  .mr-row2 { grid-template-columns: 1fr; }
  .mr-inc-grid { grid-template-columns: 1fr; }
  .mr-paybody { grid-template-columns: 1fr; }
  .mr-qrblock { border-right: none; border-bottom: 1px solid #f0f4f8; }
  .mr-pitem { flex: 1; }
  .mr-ptxt small { display: none; }
  .mr-head { font-size: 15px; }
  .mr-badge { width: 30px; height: 30px; font-size: 12px; }
}