/* =============================================
   PAYMENT PAGE — Shopner Pathshala
   css/payment.css
   ============================================= */

/* ---- Body ---- */
.payment-body {
  background: #f1f5f9;
  min-height: 100vh;
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
}

/* ---- Mini Header ---- */
.payment-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.payment-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
}

.ph-logo img {
  height: 36px;
  width: 36px;
  object-fit: contain;
  border-radius: 8px;
}

.ph-logo span {
  font-size: 1rem;
  font-weight: 700;
  color: #ff695f;
}

.ph-secure-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  color: #10b981;
  font-weight: 600;
  background: #ecfdf5;
  padding: 5px 14px;
  border-radius: 50px;
  border: 1px solid #d1fae5;
}

/* ---- Main Layout ---- */
.payment-main {
  padding: 2rem 1rem 4rem;
}

.payment-container {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 1.8rem;
  align-items: start;
}

/* =========================================
   ORDER SUMMARY (LEFT)
   ========================================= */
.order-summary {
  background: #fff;
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 80px;
}

.os-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.os-header i {
  font-size: 1.2rem;
  color: #ff695f;
}

.os-header h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  font-family: 'Hind Siliguri', sans-serif;
}

.os-course-info {
  display: flex;
  gap: 12px;
  margin-bottom: 1.4rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #f1f5f9;
}

.os-course-img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f1f5f9;
}

.os-course-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.os-course-details h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 5px;
  line-height: 1.35;
}

.os-course-details p {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.os-course-details i { color: #ff695f; width: 12px; }

/* Price Breakdown */
.os-price-breakdown {
  margin-bottom: 1.2rem;
}

.os-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.9rem;
  color: #475569;
}

.discount-row { color: #10b981; }
.discount-amount { font-weight: 600; }

.os-price-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 8px 0;
}

.total-row {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  padding: 8px 0;
}

.total-amount {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ff695f;
}

/* Offer Timer */
.offer-timer {
  background: linear-gradient(135deg, #fff5f0, #fff);
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.2rem;
  text-align: center;
}

.offer-timer > i { color: #f97316; margin-right: 4px; }
.offer-timer > span {
  font-size: 0.78rem;
  color: #c2410c;
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}

.timer-display {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.timer-unit {
  background: #0f172a;
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  min-width: 44px;
  text-align: center;
}

.timer-unit span {
  display: block;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1;
}

.timer-unit small {
  font-size: 0.6rem;
  color: #94a3b8;
  font-weight: 400;
}

.timer-colon {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
}

/* Guarantees */
.os-guarantees {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.os-guarantee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: #475569;
}

.os-guarantee-item i {
  width: 30px;
  height: 30px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* =========================================
   PAYMENT STEPS (RIGHT)
   ========================================= */
.payment-steps-area {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
  border: 1px solid #e2e8f0;
}

/* Step Indicator */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 2.2rem;
}

.si-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.si-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.si-step.active .si-circle {
  background: linear-gradient(135deg, #ff695f, #ff7b00);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255,105,95,0.4);
}

.si-step.done .si-circle {
  background: #10b981;
  color: #fff;
}

.si-step span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #94a3b8;
  white-space: nowrap;
  font-family: 'Hind Siliguri', sans-serif;
}

.si-step.active span { color: #ff695f; }
.si-step.done span { color: #10b981; }

.si-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 12px;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}

.si-line.done { background: #10b981; }

/* Step Titles */
.ps-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 0.4rem;
}

.ps-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 1.8rem;
}

/* Hidden utility */
.hidden { display: none !important; }

/* ---- Step 1: Method Cards ---- */
.method-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.method-card input[type="radio"] { display: none; }

.method-card-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.method-card input[type="radio"]:checked + .method-card-inner {
  border-color: #ff695f;
  background: #fff5f5;
  box-shadow: 0 4px 14px rgba(255,105,95,0.15);
}

.method-card-inner:hover {
  border-color: #fca5a5;
  background: #fff;
}

.method-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  flex-shrink: 0;
}

.bkash-logo { background: #e2136e; }
.nagad-logo { background: #f7941d; }
.rocket-logo { background: #8b19a0; }
.wa-logo { background: #25d366; }

.method-info strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.method-info span {
  font-size: 0.75rem;
  color: #94a3b8;
}

.method-check {
  margin-left: auto;
  font-size: 1.1rem;
  color: #e2e8f0;
  transition: color 0.3s ease;
}

.method-card input[type="radio"]:checked + .method-card-inner .method-check {
  color: #ff695f;
}

/* Navigation buttons */
.pay-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff695f, #ff7b00);
  color: #fff;
  border: none;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(255,105,95,0.4);
  transition: all 0.3s ease;
  width: 100%;
  justify-content: center;
}

.pay-next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,105,95,0.55);
}

.pay-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #64748b;
  border: 1.5px solid #e2e8f0;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pay-back-btn:hover { border-color: #94a3b8; color: #334155; }

.step2-nav {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.step2-nav .pay-next-btn { flex: 1; }

/* ---- Step 2: Instructions ---- */
.method-instructions { margin-bottom: 1rem; }

.ins-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1rem 1.2rem;
  border-radius: 12px;
  margin-bottom: 1.3rem;
  color: #fff;
  font-size: 1rem;
}

.ins-header h3 { margin: 0; font-size: 1rem; font-family: 'Hind Siliguri', sans-serif; }
.ins-header i { font-size: 1.3rem; }

.bkash-color { background: linear-gradient(135deg, #e2136e, #b5005e); }
.nagad-color { background: linear-gradient(135deg, #f7941d, #e07b00); }
.rocket-color { background: linear-gradient(135deg, #8b19a0, #6b0e7f); }
.wa-color { background: linear-gradient(135deg, #25d366, #128c7e); }

.ins-number-box {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.2rem;
  border: 1px solid #e2e8f0;
}

.ins-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.ins-number {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ins-number span {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 1px;
  font-family: 'Inter', monospace;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #fff;
  border: none;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.copy-btn:hover { background: #ff695f; }
.copy-btn.copied { background: #10b981; }

.ins-steps {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Hind Siliguri', sans-serif;
}

.ins-steps li {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.5;
}

.ins-steps strong { color: #0f172a; }

.ins-desc {
  font-size: 0.93rem;
  color: #64748b;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 1.2rem;
  line-height: 1.65;
}

.wa-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 5px 18px rgba(37,211,102,0.4);
  transition: all 0.3s ease;
  font-family: 'Hind Siliguri', sans-serif;
}

.wa-contact-btn:hover { color: #fff; transform: translateY(-2px); }

/* ---- Step 3: Confirm Form ---- */
.confirm-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.cf-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cf-group label {
  font-size: 0.87rem;
  font-weight: 600;
  color: #334155;
  font-family: 'Hind Siliguri', sans-serif;
}

.cf-group input,
.cf-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.93rem;
  font-family: 'Inter', 'Hind Siliguri', sans-serif;
  color: #334155;
  background: #f8fafc;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
}

.cf-group input:focus,
.cf-group select:focus {
  border-color: #ff695f;
  box-shadow: 0 0 0 3px rgba(255,105,95,0.12);
  background: #fff;
}

.cf-group small {
  font-size: 0.76rem;
  color: #94a3b8;
  font-family: 'Hind Siliguri', sans-serif;
}

.cf-course-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.8rem 1rem;
  font-size: 0.88rem;
  color: #15803d;
  font-family: 'Hind Siliguri', sans-serif;
  font-weight: 600;
}

.cf-course-summary i { font-size: 1.1rem; }

.pay-submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #ff695f, #ff7b00);
  color: #fff;
  border: none;
  padding: 0.9rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  font-family: 'Hind Siliguri', sans-serif;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(255,105,95,0.4);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.pay-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,105,95,0.55); }
.pay-submit-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

/* ---- Step 4: Success ---- */
.payment-success {
  text-align: center;
  padding: 1rem 0;
}

.success-anim {
  margin-bottom: 1.5rem;
}

.success-circle {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 2rem;
  color: #fff;
  animation: success-pop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97);
  box-shadow: 0 8px 28px rgba(16,185,129,0.4);
}

@keyframes success-pop {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}

.payment-success h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 0.5rem;
}

.payment-success p {
  font-size: 0.95rem;
  color: #64748b;
  font-family: 'Hind Siliguri', sans-serif;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.success-info-box {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  padding: 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}

.sib-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sib-item i {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, #ff695f, #ff7b00);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.sib-item small {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 2px;
}

.sib-item strong {
  font-size: 0.88rem;
  color: #0f172a;
  font-family: 'Hind Siliguri', sans-serif;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.success-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  font-family: 'Hind Siliguri', sans-serif;
  transition: all 0.3s ease;
}

.success-wa { background: linear-gradient(135deg, #25d366, #128c7e); color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,0.35); }
.success-wa:hover { color: #fff; transform: translateY(-2px); }
.success-home { background: #f1f5f9; color: #334155; border: 1.5px solid #e2e8f0; }
.success-home:hover { background: #e2e8f0; color: #0f172a; }

/* ---- Trust Strip ---- */
.trust-strip {
  background: #0f172a;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 500;
}

.trust-item i { color: #ff695f; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .payment-container { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .method-cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .method-cards { grid-template-columns: 1fr; }
  .success-info-box { grid-template-columns: 1fr; }
  .step-indicator { gap: 4px; }
  .si-line { margin: 0 4px; margin-bottom: 22px; }
  .si-step span { font-size: 0.65rem; }
}
