/* ============================================
   Register Page - Finance by Sharique (Light Mode)
   ============================================ */

.register-page {
  background: #f8fafc;
  min-height: 100vh;
}

/* Navbar Override */
.register-page .navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.05);
  z-index: 100;
}
.register-page .nav-container {
  justify-content: space-between;
}
.back-home-btn {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  transition: all 0.2s ease;
}
.back-home-btn:hover {
  color: var(--text-primary);
  border-color: var(--brand-red);
  background: #fef2f2;
}

/* ===== MAIN LAYOUT ===== */
.register-main {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  min-height: 100vh;
  padding-top: 70px;
}

/* ===== LEFT INFO PANEL ===== */
.register-info-panel {
  background: 
    linear-gradient(rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.02) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  border-right: 1px solid var(--border);
  position: sticky;
  top: 70px;
  height: calc(100vh - 70px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.rip-inner {
  padding: 48px 40px;
}
.rip-badge {
  display: inline-block;
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.25);
  color: #c40812;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}
.rip-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.rip-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 28px;
}

/* Webinar Meta Cards */
.webinar-meta-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 28px;
}
.wmc-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.wmc-icon {
  width: 36px;
  height: 36px;
  background: rgba(229, 9, 20, 0.08);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wmc-icon svg {
  display: block;
}
.wmc-item strong { display: block; font-size: 0.83rem; font-weight: 700; color: var(--text-primary); }
.wmc-item small { font-size: 0.7rem; color: var(--text-muted); }

/* Price Box */
.rip-price-box {
  background: linear-gradient(135deg, rgba(229,9,20,0.06), #ffffff);
  border: 1px solid rgba(229,9,20,0.2);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}
.rpb-left { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rpb-old { font-size: 1rem; color: var(--text-muted); text-decoration: line-through; }
.rpb-new {
  font-size: 2.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.rpb-save { font-size: 0.8rem; color: var(--accent-green); font-weight: 700; }
.rpb-tag {
  background: rgba(229,9,20,0.1);
  border: 1px solid rgba(229,9,20,0.25);
  color: #c40812;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
}

/* Testimonial */
.rip-testimonial {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid var(--border);
  border-left: 3.5px solid var(--brand-red);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.03);
}
.rt-avatar {
  width: 40px; height: 40px;
  background: var(--gradient-main);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 0.8rem;
  flex-shrink: 0;
}
.rt-content p {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 6px;
  font-style: italic;
}
.rt-content strong { font-size: 0.78rem; color: var(--brand-red); }

/* Mentor Mini */
.rip-mentor-mini {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.rip-mentor-mini img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  border: 2px solid rgba(229,9,20,0.4);
}
.rip-mentor-mini strong { display: block; font-size: 0.92rem; font-weight: 700; color: var(--text-primary); }
.rip-mentor-mini small { display: block; font-size: 0.7rem; color: var(--text-muted); }

/* ===== RIGHT FORM PANEL ===== */
.register-form-panel {
  background: #f8fafc;
  overflow-y: auto;
}
.rfp-inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
}
.rfp-header { margin-bottom: 36px; order: 1; }
.rfp-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.rfp-header p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.rfp-header p strong { color: var(--brand-red); }

/* ===== STEP PROGRESS ===== */
.step-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
  order: 0;
}
.reg-form { order: 2; flex: 1; }

.sp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.sp-dot {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.sp-step span {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: all 0.3s ease;
}
.sp-step.active .sp-dot {
  background: var(--gradient-main);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 15px rgba(229,9,20,0.35);
}
.sp-step.active span { color: var(--brand-red); font-weight: 700; }
.sp-step.completed .sp-dot {
  background: var(--accent-green);
  border-color: transparent;
  color: white;
}
.sp-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 8px;
  margin-bottom: 22px;
  transition: background 0.3s ease;
}
.sp-line.active { background: var(--gradient-main); }

/* ===== FORM STEPS ===== */
.form-step {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.form-step.active { display: block; }

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.step-number {
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  flex-shrink: 0;
}
.step-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; color: var(--text-primary); }
.step-header p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== FORM GROUPS ===== */
.form-group { margin-bottom: 20px; }
.form-group > label {
  display: block;
  font-size: 0.87rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.required { color: var(--brand-red); margin-left: 2px; }
.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
  color: var(--text-muted);
}
.input-icon.input-prefix {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #f1f5f9;
  padding: 0 10px;
  height: 100%;
  display: flex;
  align-items: center;
  border-right: 1px solid #cbd5e1;
  border-radius: 12px 0 0 12px;
  position: relative;
  left: 0;
}
.input-wrapper input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 14px 16px 14px 44px;
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  outline: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.input-wrapper:has(.input-prefix) input {
  border-radius: 0 12px 12px 0;
  border-left: none;
  padding-left: 16px;
}
.input-wrapper input::placeholder { color: var(--text-muted); }
.input-wrapper input:focus {
  border-color: var(--brand-red);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(229,9,20,0.12);
}
.input-wrapper input.error { border-color: var(--accent-red); }
.input-wrapper input.success { border-color: var(--accent-green); }
.field-error {
  display: block;
  font-size: 0.75rem;
  color: var(--accent-red);
  margin-top: 5px;
  min-height: 16px;
}

/* ===== MCQ OPTIONS ===== */
.mcq-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.5;
}
.mcq-num {
  display: inline-block;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 1px;
  margin-right: 6px;
}
.mcq-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mcq-options.mcq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mcq-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}
.mcq-option:hover {
  border-color: rgba(229,9,20,0.35);
  background: #fef2f2;
}
.mcq-option input[type="radio"] { display: none; }
.mcq-radio {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.mcq-radio::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  opacity: 0;
  transform: scale(0);
  transition: all 0.2s ease;
}
.mcq-option input:checked ~ .mcq-radio {
  border-color: var(--brand-red);
  background: rgba(229,9,20,0.1);
}
.mcq-option input:checked ~ .mcq-radio::after {
  opacity: 1;
  transform: scale(1);
}
.mcq-option input:checked ~ .mcq-text {
  color: var(--text-primary);
  font-weight: 700;
}
.mcq-option.selected {
  border-color: var(--brand-red);
  background: #fff5f5;
}
.mcq-text {
  font-size: 0.87rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

/* ===== BUTTONS ===== */
.btn-next {
  width: 100%;
  background: var(--gradient-main);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(229,9,20,0.3);
  margin-top: 8px;
}
.btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(229,9,20,0.45);
}
.form-nav-btns {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.btn-back {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  color: var(--text-secondary);
  padding: 14px 20px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-back:hover {
  border-color: #94a3b8;
  color: var(--text-primary);
}
.btn-pay {
  flex: 1;
  background: linear-gradient(135deg, #00ba6f, #00aa66);
  color: white;
  border: none;
  padding: 16px 28px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 20px rgba(0,186,111,0.3);
}
.btn-pay:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,186,111,0.45);
}
.btn-pay:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ===== REVIEW CARD ===== */
.review-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.rc-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.87rem;
  gap: 12px;
}
.rc-row:last-child { border-bottom: none; }
.rc-label { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.rc-value { color: var(--text-primary); font-weight: 600; text-align: right; }

/* ===== PAYMENT SUMMARY ===== */
.payment-summary-box {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
}
.psb-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  padding: 6px 0;
  color: var(--text-secondary);
}
.psb-strike { text-decoration: line-through; color: var(--text-muted); }
.psb-discount { color: var(--accent-green); font-weight: 600; }
.psb-divider { height: 1px; background: #f1f5f9; margin: 8px 0; }
.psb-total { color: var(--text-primary) !important; padding-top: 10px !important; }
.psb-amount {
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Razorpay Note */
.razorpay-note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #166534;
  margin-bottom: 20px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 10px 14px;
  border-radius: 8px;
}
.razorpay-note strong { color: #15803d; }

/* ===== SUCCESS MODAL ===== */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(16px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.success-modal.show { display: flex; }
.sm-card {
  background: #ffffff;
  border: 1px solid #bbf7d0;
  border-radius: 24px;
  padding: 48px;
  max-width: 460px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.2);
  animation: fadeInUp 0.5s ease;
}
.sm-icon {
  width: 68px;
  height: 68px;
  background: rgba(0, 217, 126, 0.12);
  border: 2px solid rgba(0, 217, 126, 0.35);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.sm-card h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; color: var(--text-primary); }
.sm-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.sm-details {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  text-align: left;
}
.smd-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 4px 0;
  color: var(--text-secondary);
}
.smd-row strong { color: var(--text-primary); }

/* WhatsApp Share Button in Success Modal */
.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #ffffff !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 15px 24px;
  border-radius: 12px;
  text-decoration: none;
  margin-bottom: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}
.btn-whatsapp svg {
  flex-shrink: 0;
}
.btn-home-link {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}
.btn-home-link:hover {
  color: var(--text-primary);
  background: #f1f5f9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .register-main { grid-template-columns: 1fr; }
  .register-info-panel {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .rip-inner { padding: 32px 24px; }
  .rfp-inner { padding: 32px 20px; }
}
@media (max-width: 600px) {
  .webinar-meta-cards { grid-template-columns: 1fr 1fr; }
  .mcq-options.mcq-grid { grid-template-columns: 1fr; }
  .form-nav-btns { flex-direction: column-reverse; }
  .btn-back { order: 1; }
  .sm-card { padding: 32px 24px; }
}

/* ===== PAYMENT ERROR BOX ===== */
.payment-error-box {
  background: rgba(229,9,20,0.08);
  border: 1px solid rgba(229,9,20,0.3);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #c40812;
  margin-bottom: 16px;
  line-height: 1.5;
}
.payment-error-box strong { color: var(--brand-red); }
