/* =============================================
    REGISTRATION PAGE — Inline Styles
    Consistent with price-table.css design language
    ============================================= */

html {
  min-height: 100%;
}

body {
  /*font-family: 'Roboto', sans-serif;*/
  /* background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%); */
  background: linear-gradient(156deg, #00180f 0%, #43568a 50%, #001769 100%);
  margin: 0;
  padding: 50px 0 0; /* remove large bottom padding so footer can sit flush */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #fff;
  /* background image */
  /* background-image: url('../img/banner/cover_5.jpg') ;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat; */
}

/* ---------- Page Header ---------- */
.reg-page-header {
  text-align: center;
  margin-bottom: 40px;
  color: #fff;
}

.reg-page-header h1 {
  font-size: 2.2rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.reg-page-header h1 span {
  color: #e94560;
}

.reg-page-header p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0;
}

/* ---------- Membership Badge ---------- */
.membership-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 35px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.membership-badge .badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* tier colours */
.tier-1 .badge-dot {
  background: #cd7f32;
  box-shadow: 0 0 8px rgba(205, 127, 50, 0.7);
}
.tier-2 .badge-dot {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.7);
}
.tier-3 .badge-dot {
  background: #c0c0c0;
  box-shadow: 0 0 8px rgba(192, 192, 192, 0.7);
}
.tier-4 .badge-dot {
  background: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.7);
}

.tier-1 {
  border-color: rgba(205, 127, 50, 0.4);
}
.tier-2 {
  border-color: rgba(255, 215, 0, 0.4);
}
.tier-3 {
  border-color: rgba(192, 192, 192, 0.4);
}
.tier-4 {
  border-color: rgba(212, 175, 55, 0.4);
}

/* ---------- Step Indicator ---------- */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 40px;
  gap: 0;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.step-circle {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.4s ease;
}

.step-circle.active {
  background: linear-gradient(135deg, #e94560, #c0392b);
  border-color: #e94560;
  color: #fff;
  box-shadow: 0 0 20px rgba(233, 69, 96, 0.5);
}

.step-circle.completed {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border-color: #27ae60;
  color: #fff;
  box-shadow: 0 0 16px rgba(39, 174, 96, 0.4);
}

.step-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 8px;
  white-space: nowrap;
  transition: color 0.4s;
}

.step-label.active {
  color: #e94560;
}
.step-label.completed {
  color: #27ae60;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin: 0 6px;
  margin-bottom: 28px;
  transition: background 0.4s;
  flex-shrink: 0;
}

.step-connector.completed {
  background: #27ae60;
}

/* ---------- Form Card ---------- */
.form-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  /* backdrop-filter: blur(12px); */
  /* -webkit-backdrop-filter: blur(12px); */
  backdrop-filter: blur(150px);
  -webkit-backdrop-filter: blur(150px);
  overflow: hidden;
}

/* ---------- Form Section Header ---------- */
.form-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 30px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 28px;
}

/* When a section header is placed inside the padded .form-body,
    remove the header's horizontal padding so the text lines up
    with the form fields (which are padded by .form-body). */
.form-body > .form-section-header {
  padding-left: 0;
  padding-right: 0;
  margin-bottom: 18px;
  padding-top: 12px;
  padding-bottom: 12px;
}

/* Small inline variant for slightly tighter spacing */
.form-section-header.inline {
  padding-top: 12px;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.form-section-header .section-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e94560;
  font-size: 1rem;
  flex-shrink: 0;
}

.form-section-header h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #fff;
  margin: 0;
}

.form-section-header p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 2px 0 0;
}

/* ---------- Form Body ---------- */
.form-body {
  padding: 0 30px 30px;
}

/* ---------- Form Group / Label / Input ---------- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 7px;
  display: block;
}

.form-group label .required {
  color: #e94560;
  margin-left: 3px;
}

.form-control-reg {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: "Roboto", sans-serif;
  font-size: 0.92rem;
  color: #fff;
  outline: none;
  transition:
    border-color 0.3s,
    background 0.3s,
    box-shadow 0.3s;
  -webkit-appearance: none;
}

.form-control-reg::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.form-control-reg:focus {
  border-color: #e94560;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(233, 69, 96, 0.15);
}

.form-control-reg.is-invalid {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-control-reg.is-valid {
  border-color: #27ae60;
  box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.12);
}

select.form-control-reg option {
  background: #16213e;
  color: #fff;
}

.invalid-feedback-reg {
  font-size: 0.75rem;
  color: #e74c3c;
  margin-top: 5px;
  display: none;
}

.was-validated .form-control-reg:invalid ~ .invalid-feedback-reg,
.form-control-reg.is-invalid ~ .invalid-feedback-reg {
  display: block;
}

/* ---------- Input with Icon ---------- */
.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
  pointer-events: none;
}

.input-icon-wrap .form-control-reg {
  padding-left: 38px;
}

/* ---------- Card Number Input ---------- */
.card-number-wrap {
  position: relative;
}

.card-number-wrap .card-brand-icon,
.input-icon-wrap .card-brand-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.25);
  pointer-events: none;
  transition: color 0.3s;
}

/* ---------- Expiry / CVV row ---------- */
.card-meta-row {
  display: flex;
  gap: 16px;
}
.card-meta-row .form-group {
  flex: 1;
}

/* ---------- Divider inside form ---------- */
.form-divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  margin: 28px 0;
}

/* ---------- Order Summary Box ---------- */
.order-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 24px;
}

.order-summary .summary-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 14px;
}

.order-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 5px 0;
}

.order-summary .summary-row.total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 10px;
  padding-top: 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.order-summary .summary-row.total .total-amount {
  color: #e94560;
  font-size: 1.3rem;
  font-weight: 900;
}

/* ---------- Secure Badge ---------- */
.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 20px;
}

.secure-badge .fa {
  color: #27ae60;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn-reg-next {
  display: block;
  width: 100%;
  padding: 15px 20px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, #e94560, #c0392b);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(233, 69, 96, 0.4);
}

.btn-reg-next:hover {
  background: linear-gradient(90deg, #ff5577, #e0392b);
  box-shadow: 0 10px 28px rgba(233, 69, 96, 0.55);
  transform: translateY(-2px);
}

.btn-reg-back {
  display: block;
  width: 100%;
  padding: 14px 20px;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.btn-reg-back:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-pay {
  display: block;
  width: 100%;
  padding: 16px 20px;
  font-family: "Roboto", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 50px;
  border: none;
  background: linear-gradient(90deg, #27ae60, #1e8449);
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.btn-pay:hover {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
  box-shadow: 0 10px 28px rgba(39, 174, 96, 0.55);
  transform: translateY(-2px);
}

.btn-pay .fa {
  margin-right: 8px;
}

/* Step panels removed — single continuous form inlined into STEP 1 */

/* ---------- Success Screen ---------- */
.success-screen {
  display: none;
  text-align: center;
  padding: 60px 30px;
  animation: fadeInUp 0.5s ease both;
}

.success-screen.active {
  display: block;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1e8449);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  margin: 0 auto 28px;
  box-shadow: 0 0 40px rgba(39, 174, 96, 0.5);
  animation: successPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  70% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.success-screen h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.success-screen p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.55);
  max-width: 400px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.success-ref {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
}

.success-ref strong {
  color: #fff;
  font-size: 1rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 767.98px) {
  body {
    padding: 30px 0 20px;
  }
  .reg-page-header h1 {
    font-size: 1.6rem;
  }
  .form-body {
    padding: 0 18px 24px;
  }
  .form-section-header {
    padding: 18px 18px 14px;
  }
  .step-connector {
    width: 40px;
  }
  .card-meta-row {
    flex-direction: column;
    gap: 0;
  }
}

@media (max-width: 575.98px) {
  .step-label {
    font-size: 0.62rem;
  }
  .step-connector {
    width: 24px;
  }
}
/* ---------- Membership heading visibility + centering ---------- */
.membership-heading {
  text-align: center;
}
.membership-heading h2 {
  color: #ffffff;
  font-weight: 700;
}
.membership-heading .subtitle {
  color: rgba(255, 255, 255, 0.6);
}

/* ---------- Sticky footer helper ---------- */
#app {
  flex: 1 0 auto;
}
footer.footer {
  flex-shrink: 0;
  margin-top: 0;
}

/* ---------- Fullscreen Spinner ---------- */
.fullscreen-spinner {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 14, 30, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.spinner-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.spinner-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.1);
  border-top-color: #e94560;
  border-right-color: #e94560;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-transform: uppercase;
}

/* ---------- Success Modal ---------- */
.success-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(10, 14, 30, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.success-modal {
  background: linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  padding: 50px 40px 44px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.success-modal .success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #27ae60, #1e8449);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: #fff;
  margin: 0 auto 28px;
  box-shadow: 0 0 50px rgba(39, 174, 96, 0.5);
  animation: successPop 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.success-modal h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}

.success-modal p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin-bottom: 24px;
}

.success-modal .success-ref {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 12px 28px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 1px;
  margin-bottom: 0;
}

.success-modal .success-ref strong {
  color: #fff;
  font-size: 1rem;
}

.success-modal .btn-pay {
  display: inline-block;
  width: auto;
  padding: 14px 36px;
}

/* ---------- Validation banner shown when client-side validation fails ---------- */
.validation-banner {
  background: rgba(231, 76, 60, 0.95);
  color: #fff;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  margin: 18px auto;
  max-width: 720px;
  font-weight: 700;
  letter-spacing: 0.6px;
}
