/* =========================================================
   HOSTECH — PAYMENT METHODS PAGE STYLES
   Loaded only on payment-methods.php (via $pageCss).
   All selectors are prefixed with .pm- so no other page is affected.
   ========================================================= */

/* ---------- HERO (compact, light) ---------- */
.pm-hero {
  padding: 56px 0 40px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(86, 89, 216, 0.12), transparent 55%),
    linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
}
.pm-hero-inner {
  max-width: 760px;
}
.pm-kicker {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid #d5d8fb;
  border-radius: 999px;
  background: #eef0ff;
  color: var(--purple);
  font-size: 13px;
  font-weight: 700;
}
.pm-hero h1 {
  margin: 16px 0 12px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--ink);
}
.pm-hero p {
  margin: 0 auto 20px;
  max-width: 620px;
  font-size: 16px;
  color: #475467;
}
.pm-hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.pm-hero-badges span {
  padding: 7px 14px 7px 30px;
  position: relative;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e4e7ec;
  font-size: 13px;
  font-weight: 600;
  color: #344054;
}
.pm-hero-badges span::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #079455;
  border-bottom: 2px solid #079455;
  transform: rotate(-45deg);
}

/* ---------- PAYMENT CARDS ---------- */
.pm-methods {
  padding-top: 24px;
}
.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.pm-card {
  --pm-accent: var(--purple);
  --pm-tint: #eef0ff;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e4e7ec;
  border-top: 4px solid var(--pm-accent);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(16, 24, 40, 0.06);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pm-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(16, 24, 40, 0.1);
}
.pm-card.pm-jazzcash {
  --pm-accent: #d71920;
  --pm-tint: #fff1f1;
}
.pm-card.pm-easypaisa {
  --pm-accent: #13a538;
  --pm-tint: #ecfbf0;
}
.pm-card-top {
  padding: 26px 24px 18px;
}
.pm-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 10px 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: var(--pm-tint);
}
.pm-logo img {
  position: relative;
  z-index: 1;
  max-height: 60px;
  max-width: 170px;
  object-fit: contain;
}
/* Icon + name badge, shown when no logo image is uploaded */
.pm-logo-text {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 800;
  color: var(--pm-accent);
  letter-spacing: -0.01em;
}
.pm-logo-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--pm-accent);
}
.pm-logo-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pm-logo img + .pm-logo-text {
  display: none;
}
.pm-card h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink);
}
.pm-card-top p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
}
.pm-details {
  margin: 0;
  padding: 6px 24px 22px;
  flex: 1;
}
.pm-row {
  padding: 11px 0;
  border-top: 1px solid #eef0f4;
}
.pm-row dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #98a2b3;
}
.pm-row dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  word-break: break-word;
}
.pm-copy {
  flex: 0 0 auto;
  padding: 5px 11px;
  border: 1px solid #d0d5dd;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: #344054;
  cursor: pointer;
  transition: all 0.2s ease;
}
.pm-copy:hover {
  border-color: var(--pm-accent);
  color: var(--pm-accent);
}
.pm-copy.is-done {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}
.pm-row.is-ref dd {
  color: var(--pm-accent);
}

/* ---------- STEPS (dark band for section variety) ---------- */
.pm-steps-section {
  padding: 64px 0;
  color: #fff;
  background: radial-gradient(circle at 80% 20%, #173d74 0, #0b2547 35%, #071628 100%);
}
.pm-head {
  text-align: center;
  margin-bottom: 34px;
}
.pm-eyebrow {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8fb2ff;
}
.pm-head h2 {
  margin: 8px 0 0;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.02em;
}
.pm-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: none;
}
.pm-steps li {
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
}
.pm-steps b {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple2), var(--blue));
  font-size: 17px;
}
.pm-steps strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}
.pm-steps span {
  font-size: 14px;
  line-height: 1.55;
  color: #b9c7dc;
}

/* ---------- NOTES + HELP ---------- */
.pm-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}
.pm-note,
.pm-help {
  padding: 30px;
  border-radius: 20px;
}
.pm-note {
  background: #fffaeb;
  border: 1px solid #fedf89;
}
.pm-note h2,
.pm-help h2 {
  margin: 0 0 14px;
  font-size: 20px;
  color: var(--ink);
}
.pm-note ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pm-note li {
  position: relative;
  padding: 6px 0 6px 24px;
  font-size: 15px;
  color: #344054;
}
.pm-note li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc6803;
}
.pm-note a,
.pm-help small a {
  color: var(--purple);
  font-weight: 700;
}
.pm-help {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #f1f0ff;
  border: 1px solid #e0defc;
}
.pm-help p {
  margin: 0 0 18px;
  color: #475467;
}
.pm-help-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 14px;
}
.pm-link {
  font-weight: 700;
  color: var(--purple);
}
.pm-help small {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1000px) {
  .pm-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pm-info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .pm-hero {
    padding: 30px 0 24px;
  }
  .pm-hero h1 {
    font-size: 26px;
  }
  .pm-hero p {
    font-size: 15px;
  }
  .pm-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .pm-card:hover {
    transform: none;
  }
  .pm-steps-section {
    padding: 44px 0;
  }
  .pm-steps {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pm-steps li {
    display: grid;
    grid-template-columns: 40px 1fr;
    column-gap: 14px;
    padding: 18px;
  }
  .pm-steps b {
    grid-row: span 2;
    margin: 0;
  }
  .pm-note,
  .pm-help {
    padding: 22px 18px;
  }
}
