/* IPPB — India Post Payments Bank guide.
   Ported from the PostPay Android app (#ippbModal) and sized for the website.
   Everything is scoped under .ippb-page / .ippb-hero so it never leaks into other pages. */

.page-hero.ippb-hero {
  background: linear-gradient(135deg, #6A1B9A 0%, #8B0E0F 60%, #C0392B 100%) !important;
  border-bottom: 3px solid #F6B600;
}
.page-hero.ippb-hero::before { background: radial-gradient(circle, rgba(255,255,255,0.20) 0%, transparent 70%); }
.ippb-hero-badge { display: inline-block; font-size: 34px; line-height: 1; margin-bottom: 8px; }
.page-hero.ippb-hero p { color: rgba(255,255,255,0.92); font-weight: 600; }

.ippb-page {
  max-width: 980px;
  margin: 0 auto 30px;
  padding: 26px 24px 30px;
  background: #F8F9FA;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  font-size: 14px;
  line-height: 1.5;
  color: #2C3E50;
}
.ippb-page a { text-decoration: none; }
.ippb-page a:hover { text-decoration: underline; }

.ippb-tagline {
  font-size: 15px;
  line-height: 1.55;
  color: #34495E;
  padding: 13px 16px;
  background: linear-gradient(135deg, #FFF8E1, #FFECB3);
  border-left: 4px solid #F1C40F;
  border-radius: 8px;
  margin-bottom: 20px;
}

.ippb-section-head {
  font-size: 19px;
  font-weight: 800;
  color: #6A1B9A;
  margin: 22px 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #E8DAEF;
}
.ippb-section-head:first-of-type { margin-top: 0; }

/* ---- Key features ---- */
.ippb-feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 12px; }
.ippb-feature { padding: 15px 15px; border-radius: 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.06); }
.ippb-feature-icon { font-size: 28px; margin-bottom: 5px; }
.ippb-feature-title { font-size: 15.5px; font-weight: 800; color: #2C3E50; margin-bottom: 5px; line-height: 1.3; }
.ippb-feature-desc { font-size: 13.5px; line-height: 1.5; color: #4A5568; }

/* ---- Account limit ---- */
.ippb-limit-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #FFF3CD, #FFE082);
  border: 2px solid #F39C12;
  border-radius: 12px;
}
.ippb-limit-icon { font-size: 26px; flex-shrink: 0; }
.ippb-limit-title { font-size: 15.5px; font-weight: 800; color: #7E5109; margin-bottom: 3px; }
.ippb-limit-desc { font-size: 14px; line-height: 1.5; color: #6E2C00; }

/* ---- Missed call banking ---- */
.ippb-missed-call {
  margin-top: 16px;
  overflow: hidden;
  border: 1.5px solid #A8D5CA;
  border-radius: 14px;
  background: #FFF;
  box-shadow: 0 4px 14px rgba(11,112,91,.09);
}
.ippb-missed-call-head { display: flex; align-items: center; gap: 10px; padding: 14px 15px; background: linear-gradient(135deg,#087A63,#0B6685); color: #FFF; }
.ippb-missed-call-head > span:first-child { font-size: 24px; }
.ippb-missed-call-head > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ippb-missed-call-head strong { font-size: 16px; }
.ippb-missed-call-head small { color: #D9FFF6; font-size: 12.5px; }
.ippb-missed-call-free { padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,.18); font-size: 12px; font-weight: 900; white-space: nowrap; }
.ippb-missed-call-register { padding: 12px 14px; background: #ECFDF8; color: #315F55; font-size: 13px; line-height: 1.55; }
.ippb-missed-call-register b { color: #076B55; }
.ippb-missed-call-register a { color: #075985; font-weight: 900; }
.ippb-missed-call-table { border-top: 1px solid #D5EAE5; }
.ippb-missed-call-row { display: grid; grid-template-columns: minmax(130px,.8fr) minmax(0,1.2fr); align-items: center; gap: 10px; padding: 12px 14px; color: #334E49; }
.ippb-missed-call-row + .ippb-missed-call-row { border-top: 1px solid #E2EEEB; }
.ippb-missed-call-labels { padding-top: 8px; padding-bottom: 8px; background: #F4F8F7; color: #6B7C78; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .25px; }
.ippb-missed-call-row > span:first-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.ippb-missed-call-row > span:first-child small { color: #71827E; font-size: 12.5px; }
.ippb-missed-call-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 5px; }
.ippb-missed-call-numbers a { padding: 8px 10px; border-radius: 8px; background: #E8F4FF; color: #075985; font-size: 14px; font-weight: 900; }
.ippb-missed-call-numbers em { color: #8A9693; font-size: 12px; font-style: normal; }
.ippb-missed-call-note { margin: 0; padding: 10px 14px; background: #FFF9E9; color: #735B20; font-size: 12.5px; line-height: 1.5; }

/* ---- SMS banking ---- */
.ippb-sms-banking { margin-top: 14px; overflow: hidden; border: 1.5px solid #C8B6E8; border-radius: 14px; background: #FFF; box-shadow: 0 4px 14px rgba(91,33,182,.08); }
.ippb-sms-head { display: flex; align-items: center; gap: 10px; padding: 14px 15px; background: linear-gradient(135deg,#5B21B6,#7C3AED); color: #FFF; }
.ippb-sms-head > span { font-size: 23px; }
.ippb-sms-head > div { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ippb-sms-head strong { font-size: 16px; }
.ippb-sms-head small { color: #EEE7FF; font-size: 12.5px; }
.ippb-sms-head > a { padding: 7px 10px; border-radius: 8px; background: #FFF; color: #5B21B6; font-size: 12.5px; font-weight: 900; white-space: nowrap; }
.ippb-sms-register { padding: 12px 14px; background: #F4F0FF; color: #54436E; font-size: 13px; line-height: 1.55; }
.ippb-sms-register b { color: #5B21B6; }
.ippb-sms-register a { color: #5B21B6; font-weight: 900; }
.ippb-sms-register code, .ippb-sms-row code { font-family: inherit; font-weight: 900; }
.ippb-sms-list { border-top: 1px solid #E5DDF2; }
.ippb-sms-row { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ippb-sms-row + .ippb-sms-row { border-top: 1px solid #EEE8F7; }
.ippb-sms-row > span { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; color: #483B58; font-size: 14px; }
.ippb-sms-row small { color: #7B7087; font-size: 12.5px; }
.ippb-sms-row code { max-width: 48%; padding: 8px 9px; border-radius: 8px; background: #EFE8FF; color: #5B21B6; font-size: 13px; line-height: 1.4; text-align: right; overflow-wrap: anywhere; }
.ippb-sms-note { margin: 0; padding: 10px 14px; background: #FFF8E8; color: #725820; font-size: 12.5px; line-height: 1.5; }

/* ---- Why IPPB ---- */
.ippb-why { background: #FFF; border-radius: 12px; padding: 14px 16px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.ippb-why-row { display: flex; align-items: flex-start; gap: 11px; padding: 8px 0; font-size: 14.5px; line-height: 1.5; color: #2C3E50; }
.ippb-why-row + .ippb-why-row { border-top: 1px solid #F1F3F5; }
.ippb-why-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #27AE60;
  color: #FFF;
  font-size: 14px;
  font-weight: 800;
  margin-top: 1px;
}

/* ---- Restriction / freeze help ---- */
.ippb-restriction-help { margin-top: 22px; }
.ippb-help-hero { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 15px 15px 10px 10px; background: linear-gradient(135deg,#312E81,#6D28D9); color: #FFF; }
.ippb-help-hero-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; background: rgba(255,255,255,.16); font-size: 22px; }
.ippb-help-hero h3 { margin: 0 0 5px; font-size: 19px; line-height: 1.3; font-weight: 800; }
.ippb-help-hero p { margin: 0; color: #E9E5FF; font-size: 13.5px; line-height: 1.5; }
.ippb-status-guide { overflow: hidden; border: 1px solid #D9D7EE; border-top: 0; border-radius: 0 0 14px 14px; background: #FFF; }
.ippb-status-row { display: grid; grid-template-columns: minmax(150px,.8fr) minmax(0,1.25fr) minmax(0,1.35fr); gap: 12px; padding: 13px 14px; }
.ippb-status-row:nth-child(even) { background: #F8F7FC; }
.ippb-status-row + .ippb-status-row { border-top: 1px solid #ECEAF4; }
.ippb-status-name { color: #2D235A; font-size: 14.5px; font-weight: 900; line-height: 1.4; }
.ippb-status-reason { color: #5F6673; font-size: 13.5px; line-height: 1.5; }
.ippb-status-action { padding-left: 11px; border-left: 3px solid #8B5CF6; color: #3D4855; font-size: 13.5px; line-height: 1.5; }
.ippb-status-action b { color: #5B21B6; }

.ippb-freeze-form-link {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 14px 0 0;
  padding: 15px;
  border: 1.5px solid #5B4BC4;
  border-radius: 14px;
  background: linear-gradient(135deg,#F3F1FF,#FFF);
  color: #29215D;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(72,55,160,.13);
}
.ippb-freeze-form-link:hover { background: #ECE9FF; text-decoration: none; }
.ippb-freeze-form-link:active { transform: scale(.985); }
.ippb-freeze-form-icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 46px; border-radius: 12px; background: #5B4BC4; color: #FFF; font-size: 23px; }
.ippb-freeze-form-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ippb-freeze-form-badge { align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: #DCD7FF; color: #4338A2; font-size: 11.5px; line-height: 1.4; font-weight: 900; letter-spacing: .35px; }
.ippb-freeze-form-copy strong { font-size: 15.5px; line-height: 1.3; color: #29215D; }
.ippb-freeze-form-copy small { font-size: 13px; line-height: 1.45; color: #605B78; }
.ippb-freeze-form-action { flex: 0 0 auto; display: flex; align-items: center; gap: 3px; color: #4C3DB3; font-size: 13px; font-weight: 900; white-space: nowrap; }
.ippb-freeze-form-action b { font-size: 26px; line-height: 1; }

.ippb-customer-steps { margin-top: 14px; padding: 16px; border: 1px solid #CFE0F0; border-radius: 14px; background: linear-gradient(135deg,#F5FAFF,#EDF6FF); }
.ippb-customer-steps h4 { margin: 0 0 11px; color: #164E78; font-size: 17px; font-weight: 800; }
.ippb-step { display: flex; align-items: flex-start; gap: 11px; padding: 9px 0; }
.ippb-step + .ippb-step { border-top: 1px dashed #CCDDEB; }
.ippb-step > span { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #1673A8; color: #FFF; font-size: 13px; font-weight: 900; }
.ippb-step p { margin: 2px 0 0; color: #3E5668; font-size: 14px; line-height: 1.55; }
.ippb-step a { color: #075985; font-weight: 900; }

.ippb-fraud-alert { display: flex; gap: 12px; margin-top: 12px; padding: 15px; border: 1.5px solid #E69A9A; border-radius: 13px; background: #FFF1F1; color: #7F1D1D; }
.ippb-fraud-icon { font-size: 25px; flex-shrink: 0; }
.ippb-fraud-alert strong { display: block; margin-bottom: 5px; font-size: 15.5px; }
.ippb-fraud-alert p { margin: 0; font-size: 13.5px; line-height: 1.55; }
.ippb-fraud-alert a { color: #B91C1C; font-weight: 900; }
.ippb-help-note { margin-top: 10px; padding: 10px 12px; border-radius: 9px; background: #F3F4F6; color: #6B7280; font-size: 13px; line-height: 1.5; }

/* ---- Email help ---- */
.ippb-email-help { margin-top: 18px; padding: 16px; border: 1.5px solid #B8D5CC; border-radius: 15px; background: linear-gradient(145deg,#F3FFFB,#F7FBFF); box-shadow: 0 5px 16px rgba(20,96,78,.09); }
.ippb-email-help-top { display: flex; align-items: flex-start; gap: 12px; }
.ippb-email-help-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 11px; background: #087A63; color: #FFF; font-size: 21px; }
.ippb-email-help-top strong { display: block; margin: 1px 0 5px; color: #115E4E; font-size: 17px; }
.ippb-email-help-top p { margin: 0; color: #4B635E; font-size: 13.5px; line-height: 1.5; }
.ippb-email-privacy { margin: 13px 0; padding: 11px 12px; border-left: 4px solid #E59B21; border-radius: 8px; background: #FFF8E8; color: #71501A; font-size: 13.5px; line-height: 1.5; }
.ippb-email-privacy b { color: #9A5C00; }
.ippb-email-help-btn { display: flex; align-items: center; gap: 11px; padding: 13px 14px; border-radius: 11px; background: linear-gradient(135deg,#087A63,#075985); color: #FFF; box-shadow: 0 4px 11px rgba(7,89,133,.22); }
.ippb-email-help-btn:hover { text-decoration: none; }
.ippb-email-help-btn:active { transform: scale(.985); }
.ippb-email-help-btn > span:first-child { font-size: 21px; }
.ippb-email-help-btn > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ippb-email-help-btn b { font-size: 15px; }
.ippb-email-help-btn small { overflow: hidden; color: #DDF7F0; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.ippb-email-help-btn > strong { font-size: 24px; }
.ippb-email-attach-note { margin-top: 9px; color: #667A75; font-size: 13px; line-height: 1.45; text-align: center; }

/* ---- CTA ---- */
.ippb-cta { margin-top: 20px; }
.ippb-cta-btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6A1B9A, #8B0E0F);
  color: #FFF;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(106,27,154,0.3);
}
.ippb-cta-btn:hover { text-decoration: none; filter: brightness(1.06); }
.ippb-cta-btn:active { transform: scale(0.98); }
.ippb-cta-btn + .ippb-cta-btn { margin-top: 10px; background: linear-gradient(135deg, #5B21B6, #7C3AED); box-shadow: 0 4px 10px rgba(91,33,182,0.3); }

.ippb-bottom-nav { margin-top: 20px; padding-top: 18px; border-top: 1px solid #E5E5E5; text-align: center; }
.ippb-back-link { display: inline-flex; align-items: center; gap: 5px; padding: 11px 24px; background: #F2EAFE; color: #6D35B5; border-radius: 10px; font-size: 14px; font-weight: 800; }
.ippb-back-link:hover { background: #E8DAEF; text-decoration: none; }

/* ---- Related tools ---- */
.ippb-related { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 22px; }
.ippb-related a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FFF;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.ippb-related a:hover { text-decoration: none; border-color: #C7B6E8; background: #FBF9FF; }
.ippb-related span { font-size: 21px; }

/* ---- Phone-sized layouts (matches the app's mobile stacking) ---- */
@media (max-width: 760px) {
  .ippb-page { padding: 18px 14px 22px; border-radius: 16px; }
  .ippb-section-head { font-size: 17px; }
  .ippb-feature-grid { grid-template-columns: 1fr; }
  .ippb-missed-call-row { grid-template-columns: 1fr; gap: 7px; }
  .ippb-missed-call-numbers { justify-content: flex-start; }
  .ippb-sms-row { flex-wrap: wrap; }
  .ippb-sms-row code { max-width: 100%; text-align: left; }
  .ippb-status-row { grid-template-columns: 1fr; gap: 6px; }
  .ippb-status-action { padding: 8px 0 0; border-left: 0; border-top: 2px solid #DDD6FE; }
  .ippb-freeze-form-link { flex-wrap: wrap; }
  .ippb-freeze-form-action b { font-size: 22px; }
}
