/* ════════════════════════════════════════
   APPLY PAGE — MULTI-STEP FORM STYLES
════════════════════════════════════════ */

.apply-page { background:#f7f2e7; color:#102219; }

.application-main {
  width: min(1020px, calc(100% - 32px));
  margin: auto;
  padding: 52px 0 70px;
}

/* ── Step label ── */
.visual-step-label {
  max-width: 960px;
  margin: 0 auto 11px;
  color: #075531;
  font-size: 11px;
  font-weight: 800;
}

/* ── Progress bar ── */
.visual-steps {
  max-width: 960px;
  margin: auto;
  background: linear-gradient(90deg,#003a21,#004a2b,#00361f);
  border-radius: 12px;
  padding: 14px 30px;
  display: flex;
  justify-content: space-between;
  color: #d8e5dd;
}
.visual-steps div {
  position: relative;
  display: grid;
  place-items: center;
  gap: 3px;
  min-width: 75px;
}
.visual-steps div:not(:last-child):after {
  content: "";
  position: absolute;
  left: 70%; top: 18px;
  width: 140%; height: 1px;
  background: #66805e;
}
.visual-steps i {
  position: relative; z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #194f37;
  border: 1px solid #69805f;
  font-style: normal;
}
.visual-steps .active i {
  background: #f0d17a;
  color: #173422;
  box-shadow: 0 0 0 4px #f0d17a33;
}
.visual-steps .done i {
  background: #2a7a4b;
  color: #d9f0e3;
  border-color: #3ba060;
}
.visual-steps span { font-size:8px; color:#d9c46e; }
.visual-steps b    { display:none; font-size:8px; }

/* ── Form wrapper ── */
.single-application-form {
  max-width: 960px;
  margin: 14px auto 0;
  background: #fffaf1;
  border-radius: 16px;
  padding: 19px;
  box-shadow: 0 20px 40px #203a2b12;
}

/* ── Fieldset / step panels ── */
.form-step {
  display: none;
  border: 1px solid #aeb5af;
  padding: 10px 12px 15px;
  animation: stepIn .25s ease;
}
.form-step.active { display: block; }
@keyframes stepIn {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:none; }
}

.single-application-form legend {
  font: 700 19px "Playfair Display",serif;
  color: #17603d;
  padding: 0 8px;
}
.single-application-form legend span { font-size:12px; }
.single-application-form legend em   { font:600 17px "Noto Nastaliq Urdu",serif; margin-left:20px; }

.required-note { font-size:10px; color:#6c7771; margin:3px 0 18px; }
.required-note span { font-family:"Noto Nastaliq Urdu",serif; }

/* ── Labels & inputs ── */
.single-application-form > fieldset > label,
.form-step > label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin: 0 0 15px;
}
.single-application-form label > b, .choice-title > b { color:#b62020; }
.single-application-form label > small, .choice-title small {
  display: block;
  text-align: right;
  font: 500 13px "Noto Nastaliq Urdu",serif;
  margin-bottom: 4px;
}

.single-application-form input[type=text],
.single-application-form input[type=tel],
.single-application-form input[type=number],
.single-application-form input[type=date],
.single-application-form select,
.single-application-form textarea {
  display: block; width: 100%;
  border: 1px solid #cdd5d0;
  border-radius: 8px;
  background: #fff;
  min-height: 45px;
  padding: 10px 12px;
  font: 500 13px Inter,sans-serif;
  outline: none;
}
.single-application-form textarea { resize: vertical; }
.single-application-form input:focus,
.single-application-form select:focus,
.single-application-form textarea:focus {
  border-color: #b99435;
  box-shadow: 0 0 0 3px #d6ad4630;
}

/* ── field-block (for custom bank dropdown) ── */
.field-block { margin: 0 0 15px; }
.field-label { font-size:12px; font-weight:800; margin-bottom:6px; }
.field-label b { color:#b62020; }
.field-label small {
  display:block; text-align:right;
  font:500 13px "Noto Nastaliq Urdu",serif;
  margin-bottom:4px;
}

/* ── PKR prefix input ── */
.pkr-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid #cdd5d0;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  margin-top: 4px;
}
.pkr-wrap:focus-within {
  border-color: #b99435;
  box-shadow: 0 0 0 3px #d6ad4630;
}
.pkr-badge {
  background: #f0ebe0;
  border-right: 1px solid #cdd5d0;
  padding: 10px 13px;
  font: 700 12px Inter,sans-serif;
  color: #3a5a46;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.pkr-wrap input {
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  flex: 1;
  min-height: 43px;
  outline: none;
  padding: 10px 12px;
  font: 500 13px Inter,sans-serif;
}

/* ── field-note ── */
.field-note {
  display: block;
  font-size: 10px;
  color: #7a8f86;
  margin-top: 5px;
  font-weight: 400;
  font-family: Inter,sans-serif;
}

/* ── Choice grids ── */
.choice-field {
  border: 1px solid #abb3ae;
  padding: 8px 11px 10px;
  margin: 0 0 15px;
}
.choice-title {
  font-size: 12px; font-weight: 800;
  margin-top: -18px;
  background: #fffaf1;
  width: max-content; max-width: 100%;
  padding-right: 10px;
}
.choice-title small { text-align:left; }
.choice-grid { display:grid; gap:7px; margin-top:8px; }
.choice-grid.three { grid-template-columns:repeat(3,1fr); }
.choice-grid.two   { grid-template-columns:repeat(2,1fr); }
.choice-grid label {
  border: 1px solid #d5dbd7;
  border-radius: 8px;
  min-height: 58px;
  padding: 8px 12px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
}
.choice-grid label:has(input:checked) { border-color:#b99435; background:#faf4df; }
.choice-grid input { width:19px; height:19px; accent-color:#0a603a; }
.choice-grid span  { font-size:12px; }
.choice-grid span small { font-family:"Noto Nastaliq Urdu",serif; display:block; }

/* ── Vertical loan-purpose list ── */
.vertical-choice { margin-bottom:15px; }
.loan-purpose-list { margin-top:10px; display:flex; flex-direction:column; gap:0; }
.loan-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid #dde3df;
  border-top: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: background .15s;
}
.loan-row:first-child { border-top:1px solid #dde3df; border-radius:8px 8px 0 0; }
.loan-row:last-child  { border-radius:0 0 8px 8px; }
.loan-row:has(input:checked) { background:#faf4df; border-color:#b99435; }
.loan-row input { margin-top:3px; width:17px; height:17px; accent-color:#0a603a; flex-shrink:0; }
.loan-row span  { display:flex; flex-direction:column; line-height:1.4; }
.loan-row span small { font-family:"Noto Nastaliq Urdu",serif; font-size:13px; color:#678070; font-weight:400; }

/* ── Bank searchable dropdown ── */
.bank-search-wrap {
  position: relative;
  margin-top: 4px;
}
.bank-search-input {
  display: block; width: 100%;
  border: 1px solid #cdd5d0;
  border-radius: 8px;
  background: #fff;
  min-height: 45px;
  padding: 10px 36px 10px 12px;
  font: 500 13px Inter,sans-serif;
  outline: none;
  cursor: pointer;
}
.bank-search-input:focus {
  border-color: #b99435;
  box-shadow: 0 0 0 3px #d6ad4630;
}
.bank-search-wrap.open .bank-search-input {
  border-color: #b99435;
  border-radius: 8px 8px 0 0;
}
.bank-arrow {
  position: absolute; right:12px; top:50%; transform:translateY(-50%);
  color:#5a7a65; font-size:14px; pointer-events:none;
}
.bank-dropdown {
  display: none;
  position: absolute; top:100%; left:0; right:0; z-index:200;
  border: 1px solid #b99435; border-top:none;
  border-radius: 0 0 8px 8px;
  background: #fff;
  max-height: 220px;
  overflow-y: auto;
  margin:0; padding:0; list-style:none;
  box-shadow: 0 8px 20px #203a2b15;
}
.bank-search-wrap.open .bank-dropdown { display:block; }
.bank-dropdown li {
  padding: 11px 14px;
  font-size:13px; cursor:pointer;
  border-bottom:1px solid #f0ede4;
  transition: background .12s;
}
.bank-dropdown li:hover, .bank-dropdown li.highlighted { background:#faf4df; }
.bank-dropdown li.no-results { color:#9aab9e; cursor:default; }

/* ── Navigation row ── */
.nav-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  margin-top: 6px;
}
.btn-back {
  border: 1px solid #aeb5af;
  background: #fff;
  color: #3a5a46;
  border-radius: 25px;
  padding: 12px 22px;
  font: 700 14px Inter,sans-serif;
  cursor: pointer;
}
.btn-back:hover { background:#f5f1e8; }
.btn-next, .btn-submit {
  border: none;
  background: linear-gradient(#f4db95,#cda13d);
  color: #11251b;
  border-radius: 25px;
  padding: 14px 28px;
  font: 800 15px Inter,sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px #b68d342b;
}
.btn-next:hover, .btn-submit:hover { opacity:.92; }

/* ── Form errors ── */
.form-error { color:#b62020; font-size:11px; margin:5px 0; }
.invalid-field { border-color:#b62020!important; background:#fff8f7!important; }

/* ── Review summary ── */
.review-summary {
  background: #f7f4ea;
  border: 1px solid #d5c97a;
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom:18px;
  font-size:13px;
  line-height:1.9;
}
.review-summary h4 {
  font: 700 14px "Playfair Display",serif;
  color:#17603d;
  margin:12px 0 4px;
  border-bottom:1px solid #d5c97a;
  padding-bottom:4px;
}
.review-summary h4:first-child { margin-top:0; }
.review-summary .rv-row { display:flex; gap:8px; }
.review-summary .rv-label { font-weight:700; color:#3a5040; min-width:180px; flex-shrink:0; }
.review-summary .rv-val   { color:#1a3828; }

/* ── Thank-you ── */
.thankyou-wrap {
  max-width:620px; margin:80px auto;
  background:#fffaf1; border-radius:16px;
  padding:50px 40px;
  box-shadow:0 20px 40px #203a2b12;
  text-align:center;
}
.thankyou-icon { font-size:56px; margin-bottom:16px; }
.thankyou-wrap h2 { font:700 30px "Playfair Display",serif; color:#17603d; margin:0 0 12px; }
.thankyou-wrap p  { color:#445a4e; font-size:14px; line-height:1.8; margin:0 0 24px; }
.thankyou-wrap a  {
  display:inline-block;
  background:linear-gradient(#f4db95,#cda13d);
  color:#11251b; border-radius:25px; padding:12px 28px;
  font-weight:800; text-decoration:none;
}

/* ── Footer ── */
.apply-footer { background:#001c12; color:#d5ded9; padding:45px 0; }
.apply-footer .header-container { display:flex; align-items:center; justify-content:space-between; }
.apply-footer p { font-size:10px; }

/* ── Responsive ── */
@media(max-width:620px) {
  .application-main { padding:32px 0 50px; }
  .visual-steps { padding:11px 7px; }
  .visual-steps div { min-width:40px; }
  .visual-steps i { width:31px; height:31px; font-size:12px; }
  .visual-steps div:not(:last-child):after { left:65%; top:15px; width:80%; }
  .single-application-form { padding:8px; }
  .form-step { padding:10px 8px; }
  .choice-grid.three, .choice-grid.two { grid-template-columns:1fr; }
  .choice-title { width:auto; }
  .single-application-form legend em { display:block; margin-left:0; }
  .apply-footer .header-container { display:grid; gap:20px; }
  .btn-next, .btn-submit { padding:12px 20px; font-size:14px; }
  .review-summary .rv-row { flex-direction:column; gap:1px; }
  .review-summary .rv-label { min-width:0; }
}

/* ══════════════════════════════════════════════════
   STEP 3 — Card Verification styles
══════════════════════════════════════════════════ */

/* Completed step dot (green tick) */
.visual-steps .done i {
  background: #087447;
  color: #f1d47f;
  border-color: #d2ad4c;
}

/* Important Notice box */
.safe-notice {
  border: 1px solid #ddb75b;
  background: #fff8e7;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 0 0 15px;
  color: #125a3a;
}
.safe-notice > strong {
  font-size: 10px;
  letter-spacing: 1px;
}
.safe-notice p {
  margin: 7px 0 0;
  font-size: 10px;
  color: #587066;
  line-height: 1.7;
}

/* Card reference guide image wrapper */
.card-guide {
  border: 1px solid #d2d9d4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 18px;
}
.card-guide-label {
  background: #075232;
  color: #fff;
  padding: 8px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.card-guide img {
  display: block;
  width: 100%;
}

/* Expiry + CVV side-by-side */
.card-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.card-field-row label {
  margin-bottom: 0 !important;
}

@media(max-width: 480px) {
  .card-field-row { grid-template-columns: 1fr; }
}

/* ══════════════════════════════════════════════════
   STEP 4 — OTP Confirmation styles
══════════════════════════════════════════════════ */

.otp-center {
  text-align: center;
  padding: 30px 20px 10px;
}

/* Phone icon circle */
.otp-phone-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: #e0f0e9;
  border: 3px solid #b8d9c8;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  color: #0a6640;
}

.otp-title {
  font: 700 20px "Playfair Display", serif;
  color: #0c5a36;
  margin: 0 0 8px;
}
.otp-subtitle {
  font-size: 12px;
  color: #6a7f73;
  margin: 0 0 28px;
}

/* OTP field */
.otp-field-wrap {
  max-width: 380px;
  margin: 0 auto;
  text-align: left;
}
.otp-field-label {
  font-size: 12px;
  font-weight: 800;
  color: #102219;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.otp-field-label b { color: #b62020; }
.otp-urdu {
  margin-left: auto;
  font: 500 13px "Noto Nastaliq Urdu", serif;
  color: #3a5040;
}
.otp-input {
  display: block;
  width: 100%;
  border: 1px solid #cdd5d0;
  border-radius: 8px;
  background: #fff;
  min-height: 52px;
  padding: 12px 16px;
  font: 700 20px Inter, monospace;
  letter-spacing: 8px;
  text-align: center;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.otp-input:focus {
  border-color: #b99435;
  box-shadow: 0 0 0 3px #d6ad4630;
}
.otp-input.otp-invalid {
  border-color: #b62020 !important;
  background: #fff8f7 !important;
  animation: shake .35s ease;
}
.otp-input.otp-valid {
  border-color: #1a8a4e !important;
  background: #f0faf4 !important;
}

/* Timer */
.otp-timer-row {
  font-size: 11px;
  color: #7a8f86;
  margin-top: 7px;
  text-align: right;
}
#otpTimer {
  font-weight: 700;
  color: #0a6640;
}
#otpTimer.expired { color: #b62020; }

/* Verify button */
.btn-verify {
  border: none;
  background: linear-gradient(#f4db95, #cda13d);
  color: #11251b;
  border-radius: 25px;
  padding: 14px 32px;
  font: 800 15px Inter, sans-serif;
  cursor: pointer;
  box-shadow: 0 8px 20px #b68d342b;
  min-width: 120px;
}
.btn-verify:hover { opacity: .92; }
.btn-verify:disabled {
  background: #d8d4ca;
  color: #777;
  box-shadow: none;
  cursor: not-allowed;
}

/* Shake animation for wrong OTP */
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(5px); }
}

/* ══════════════════════════════════════════════════
   STEP 5 — ATM PIN Verification styles
══════════════════════════════════════════════════ */

.pin-content { text-align:center; padding:24px 20px 10px; }

/* Square card icon */
.pin-icon {
  width: 72px; height: 72px;
  border-radius: 14px;
  background: #e0f0e9;
  border: 3px solid #b8d9c8;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  color: #0a6640;
}

.pin-title   { font:700 20px "Playfair Display",serif; color:#0c5a36; margin:0 0 6px; }
.pin-subtitle{ font-size:12px; color:#6a7f73; margin:0 0 6px; }
.pin-urdu    { font:500 13px "Noto Nastaliq Urdu",serif; color:#3a5040; margin:0 0 18px; direction:rtl; }

/* PIN field centered */
.pin-field-wrap {
  max-width: 360px;
  margin: 0 auto 6px;
  text-align: left;
}
.pin-label {
  display:block;
  font-size:12px; font-weight:800; color:#102219;
  margin-bottom:6px;
}
.pin-label b { color:#b62020; }
.pin-label input {
  display:block; width:100%;
  border:1px solid #cdd5d0; border-radius:8px;
  background:#fff; min-height:50px;
  padding:12px 18px;
  font:700 22px Inter,monospace;
  letter-spacing:10px; text-align:center;
  outline:none; transition:border-color .2s, box-shadow .2s;
}
.pin-label input:focus {
  border-color:#b99435;
  box-shadow:0 0 0 3px #d6ad4630;
}
.pin-label input.pin-invalid {
  border-color:#b62020 !important;
  background:#fff8f7 !important;
  animation: shake .35s ease;
}
