/* Registration page – designer's original styles.
   Scoped to .rg-page so they don't touch the site menu/footer,
   and classes shared with style.css are prefixed with rg-. */
      .rg-page {
        --ink: #22292d;
        --green: #1b7142;
        --green-deep: #0f4a2b;
        --green-soft: #e6f2ea;
        --gold: #c9a24a;
        --paper: #f7faf8;
        --radius: 18px;
      }
      html {
        scroll-behavior: smooth;
      }
      .rg-page {
        font-family: "DM Sans", system-ui, sans-serif;
        color: var(--ink);
        background: var(--paper);
        overflow-x: hidden;
      }
      .rg-page h1,
.rg-page h2,
.rg-page h3,
.rg-page .btn,
.rg-page label {
        font-family: "Outfit", sans-serif;
      }

      /* ---------- Hero ---------- */
      .rg-page .rg-hero {
        position: relative;
        background:
          radial-gradient(
            circle at 15% 20%,
            rgba(201, 162, 74, 0.22),
            transparent 45%
          ),
          radial-gradient(
            circle at 85% 30%,
            rgba(27, 113, 66, 0.2),
            transparent 50%
          ),
          linear-gradient(180deg, #fff 0%, #e9f4ed 55%, #cfe6d7 100%);
        padding: 2.5rem 0 9rem;
        text-align: center;
        overflow: hidden;
      }
      .rg-page .rg-hero .rg-logo {
        mix-blend-mode: multiply;
        filter: drop-shadow(0 10px 18px rgba(15, 74, 43, 0.12));
      }
      .rg-page .rg-orb {
        position: absolute;
        border-radius: 50%;
        filter: blur(40px);
        pointer-events: none;
        animation: floaty 9s ease-in-out infinite;
      }
      .rg-page .rg-orb.o1 {
        width: 260px;
        height: 260px;
        left: -80px;
        bottom: 10%;
        background: rgba(27, 113, 66, 0.22);
      }
      .rg-page .rg-orb.o2 {
        width: 220px;
        height: 220px;
        right: -60px;
        top: 12%;
        background: rgba(201, 162, 74, 0.28);
        animation-delay: -4s;
      }
      @keyframes floaty {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-26px);
        }
      }
      .rg-page .rg-spark {
        position: absolute;
        width: 12px;
        height: 12px;
        background: var(--gold);
        clip-path: polygon(
          50% 0,
          62% 38%,
          100% 50%,
          62% 62%,
          50% 100%,
          38% 62%,
          0 50%,
          38% 38%
        );
        animation: twinkle 3.2s ease-in-out infinite;
        pointer-events: none;
      }
      @keyframes twinkle {
        0%,
        100% {
          opacity: 0.15;
          transform: scale(0.6) rotate(0);
        }
        50% {
          opacity: 1;
          transform: scale(1.2) rotate(45deg);
        }
      }
      .rg-page .skyline {
        position: absolute;
        left: 0;
        bottom: 0;
        width: 100%;
        height: clamp(90px, 16vw, 170px);
        pointer-events: none;
      }
      .rg-page .badge-line {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.65rem;
        font-family: "Outfit", sans-serif;
        font-weight: 700;
        color: #3a2a00;
        background: linear-gradient(
          110deg,
          #f4d77f,
          #fff3c4,
          #e4b94c,
          #fff3c4,
          #f4d77f
        );
        background-size: 250% 100%;
        border-radius: 50px;
        padding: 0.55rem 1.4rem;
        font-size: 1.05rem;
        box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.4);
        animation:
          badgeflow 3s linear infinite,
          badgepop 2.4s ease-in-out infinite;
      }
      .rg-page .badge-line::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50px;
        border: 2px solid #f4d77f;
        animation: ring 2.4s ease-out infinite;
      }
      .rg-page .badge-line i {
        color: #b8860b;
        animation: spin360 4s linear infinite;
      }
      .rg-page .badge-line .live {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #e02424;
        box-shadow: 0 0 0 0 rgba(224, 36, 36, 0.7);
        animation: livepulse 1.4s infinite;
      }
      @keyframes badgeflow{to{background-position:-250% 0}}
@keyframes badgepop{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
@keyframes ring{0%{transform:scale(1);opacity:.9}100%{transform:scale(1.35,1.9);opacity:0}}
@keyframes livepulse{70%{box-shadow:0 0 0 10px rgba(224,36,36,0)}100%{box-shadow:0 0 0 0 rgba(224,36,36,0)}}
@keyframes spin360{to{transform:rotate(360deg)}}
      .rg-page .rg-hero .pattern {
        position: absolute;
        left: 50%;
        top: 50%;
        width: min(900px, 160vw);
        aspect-ratio: 1;
        transform: translate(-50%, -50%);
        opacity: 0.1;
        pointer-events: none;
        animation: spin 140s linear infinite;
      }
      .rg-page .rg-hero .pattern.two {
        width: min(560px, 110vw);
        opacity: 0.12;
        animation-direction: reverse;
        animation-duration: 100s;
      }
      @keyframes spin {
        to {
          transform: translate(-50%, -50%) rotate(360deg);
        }
      }
      .rg-page .rg-hero .rg-logo {
        width: min(340px, 86vw);
        height: auto;
        position: relative;
      }
      .rg-page .rg-hero h1 {
        font-weight: 800;
        font-size: clamp(1.9rem, 5vw, 3.2rem);
        letter-spacing: -0.02em;
        margin: 1rem 0 0.5rem;
      }
      .rg-page .rg-hero p.lead {
        max-width: 34rem;
        margin: 0 auto;
        color: #4a5559;
        font-size: clamp(1rem, 2.2vw, 1.15rem);
      }
      .rg-page .lantern {
        position: absolute;
        top: -6px;
        width: 2px;
        background: linear-gradient(var(--gold), transparent);
        transform-origin: top;
        animation: sway 5s ease-in-out infinite;
      }
      .rg-page .lantern::after {
        content: "";
        position: absolute;
        bottom: -14px;
        left: -9px;
        width: 20px;
        height: 26px;
        background: var(--gold);
        clip-path: polygon(50% 0, 100% 30%, 80% 100%, 20% 100%, 0 30%);
        opacity: 0.85;
      }
      .rg-page .lantern.l1 {
        left: 8%;
        height: 70px;
      }
      .rg-page .lantern.l2 {
        left: 16%;
        height: 110px;
        animation-delay: -1.5s;
      }
      .rg-page .lantern.l3 {
        right: 8%;
        height: 80px;
        animation-delay: -3s;
      }
      .rg-page .lantern.l4 {
        right: 16%;
        height: 120px;
        animation-delay: -2s;
      }
      @keyframes sway {
        0%,
        100% {
          transform: rotate(-4deg);
        }
        50% {
          transform: rotate(4deg);
        }
      }

      /* ---------- Form card ---------- */
      .rg-page .form-wrap {
        margin-top: -5.5rem;
        position: relative;
        z-index: 2;
        padding-bottom: 4rem;
      }
      .rg-page .form-card {
        background: #fff;
        border-radius: var(--radius);
        padding: clamp(1.4rem, 4vw, 2.8rem);
        box-shadow: 0 30px 70px -25px rgba(15, 74, 43, 0.35);
        border-top: 6px solid var(--green);
        position: relative;
        overflow: hidden;
      }
      .rg-page .form-card::before {
        content: "";
        position: absolute;
        right: -60px;
        top: -60px;
        width: 180px;
        height: 180px;
        background: conic-gradient(
          from 0deg,
          var(--green-soft),
          #fff,
          var(--green-soft)
        );
        border-radius: 50%;
        opacity: 0.8;
      }
      .rg-page .form-card h2 {
        font-weight: 700;
        font-size: clamp(1.4rem, 3vw, 1.9rem);
        position: relative;
      }
      .rg-page .form-card .sub {
        color: #667378;
        position: relative;
      }
      .rg-page .form-label {
        font-weight: 600;
        font-size: 0.95rem;
        margin-bottom: 0.35rem;
      }
      .rg-page .input-group-text {
        background: var(--green-soft);
        color: var(--green);
        border-color: #d3e3d9;
        border-radius: 12px 0 0 12px;
      }
      .rg-page .form-control,
.rg-page .form-select {
        border: 1.5px solid #d3e3d9;
        border-radius: 12px;
        padding: 0.7rem 0.9rem;
        transition:
          border-color 0.2s,
          box-shadow 0.2s,
          transform 0.2s;
      }
      .rg-page .input-group > .form-control,
.rg-page .input-group > .form-select {
        border-radius: 0 12px 12px 0;
      }
      .rg-page .form-control:focus,
.rg-page .form-select:focus {
        border-color: var(--green);
        box-shadow: 0 0 0 0.25rem rgba(27, 113, 66, 0.18);
        transform: translateY(-1px);
      }
      .rg-page .btn-hikma {
        background: var(--green);
        color: #fff;
        border: 0;
        border-radius: 14px;
        padding: 0.95rem 2rem;
        font-weight: 700;
        font-size: 1.1rem;
        position: relative;
        overflow: hidden;
        transition:
          transform 0.2s,
          box-shadow 0.2s,
          background 0.2s;
      }
      .rg-page .btn-hikma:hover,
.rg-page .btn-hikma:focus-visible {
        background: var(--green-deep);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 14px 28px -10px rgba(27, 113, 66, 0.7);
      }
      .rg-page .btn-hikma::after {
        content: "";
        position: absolute;
        top: 0;
        left: -80%;
        width: 50%;
        height: 100%;
        background: linear-gradient(
          100deg,
          transparent,
          rgba(255, 255, 255, 0.35),
          transparent
        );
        transform: skewX(-20deg);
        animation: shine 3.6s infinite;
      }
      @keyframes shine {
        0%,
        60% {
          left: -80%;
        }
        100% {
          left: 140%;
        }
      }
      .rg-page .form-check-label {
        font-family: "DM Sans", sans-serif;
        font-weight: 400;
        font-size: 0.9rem;
        color: #556267;
      }

      /* ---------- Success ---------- */
      .rg-page .success {
        display: none;
        text-align: center;
        padding: 2rem 0;
      }
      .rg-page .success .rg-tick {
        width: 92px;
        height: 92px;
        margin: 0 auto 1rem;
      }
      .rg-page .success .rg-tick circle {
        stroke: var(--green);
        stroke-width: 4;
        fill: none;
        stroke-dasharray: 260;
        stroke-dashoffset: 260;
        animation: draw 0.8s ease forwards;
      }
      .rg-page .success .rg-tick path {
        stroke: var(--green);
        stroke-width: 5;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-dasharray: 60;
        stroke-dashoffset: 60;
        animation: draw 0.5s 0.7s ease forwards;
      }
      @keyframes draw {
        to {
          stroke-dashoffset: 0;
        }
      }

      .rg-page :focus-visible {
        outline: 3px solid var(--gold);
        outline-offset: 2px;
      }
      @media (max-width: 575px) {
        .rg-page .lantern.l2,
.rg-page .lantern.l4 {
          display: none;
        }
        .rg-page .rg-hero {
          padding-bottom: 7rem;
        }
      }
      @media (prefers-reduced-motion: reduce) {
        .rg-page *,
.rg-page *::before,
.rg-page *::after {
          animation: none !important;
          transition: none !important;
        }
      }

/* ---- keep the site theme (style.css) from changing the designer's page ---- */
.rg-page {
  /* style.css changes these two Bootstrap variables; put back Bootstrap's defaults */
  --bs-body-color: #212529;
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
/* style.css restyles every h1 (tighter line-height); keep Bootstrap's heading defaults here */
.rg-page h1 {
  line-height: 1.2;
  letter-spacing: normal;
}
/* style.css also restyles .lead; keep Bootstrap's light intro text */
.rg-page .lead {
  font-weight: 300;
  letter-spacing: normal;
}
.rg-page :focus-visible {
  outline: 3px solid var(--gold) !important;
  outline-offset: 2px;
}
/* a little space before the site footer's gold "Ready to ignite" box */
.rg-page {
  padding-bottom: 3rem;
}
/* site menu sits on top of the designer's hero */
.rg-topbar {
  position: relative;
  z-index: 5;
  background: #fff;
}

/* =========================================================
   Registration + payment states (added with form processing).
   Same colours and shapes as the designer's form card.
   ========================================================= */
.rg-page .rg-hp {
  position: absolute !important;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.rg-page .form-card .alert {
  position: relative;
  border-radius: 12px;
  font-size: 0.95rem;
}
.rg-page .form-card .alert a {
  font-weight: 600;
}
.rg-page .rg-pay-pending {
  position: relative;
  text-align: center;
  padding: 1rem 0 0.5rem;
}
.rg-page .rg-pay-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--green);
  background: var(--green-soft);
}
.rg-page .rg-pay-pending h2 {
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.rg-page .rg-pay-pending .sub {
  margin-bottom: 1.25rem;
}
.rg-page .rg-pay-help {
  position: relative;
  margin: 1rem 0 0;
  font-size: 0.9rem;
  color: #667378;
}
.rg-page .rg-pay-link {
  display: block;
  margin-top: 0.25rem;
  word-break: break-all;
  color: var(--green);
}
.rg-page .rg-edit-link {
  margin-top: 0.5rem;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
}
.rg-page .rg-summary {
  position: relative;
  margin: 0 0 1.5rem;
  border: 1.5px solid #d3e3d9;
  border-radius: 14px;
  overflow: hidden;
}
.rg-page .rg-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #e6efe9;
}
.rg-page .rg-summary > div:last-child {
  border-bottom: 0;
}
.rg-page .rg-summary dt {
  font-family: "Outfit", sans-serif;
  font-weight: 600;
  color: #556267;
  font-size: 0.9rem;
}
.rg-page .rg-summary dd {
  margin: 0;
  text-align: right;
  font-weight: 500;
  word-break: break-word;
}
.rg-page .rg-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
}
.rg-page .success.rg-success {
  display: block;
  padding-top: 0.5rem;
}
.rg-page .rg-regno {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  margin: 0.25rem 0 1.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 14px;
  background: var(--green-soft);
  border: 1.5px dashed var(--green);
}
.rg-page .rg-regno span {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #556267;
}
.rg-page .rg-regno strong {
  font-family: "Outfit", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: var(--green-deep);
  letter-spacing: 0.04em;
}
.rg-page .rg-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.rg-page .rg-success-actions .btn {
  border-radius: 12px;
}
@media (max-width: 575px) {
  .rg-page .rg-summary > div {
    flex-direction: column;
    gap: 0.1rem;
  }
  .rg-page .rg-summary dd {
    text-align: left;
  }
}
.rg-print-only {
  display: none;
}

/* ---------- Printed receipt (success page): one clean A4 page ---------- */
@media print {
  @page {
    size: A4;
    margin: 12mm;
  }
  * {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  html,
  body {
    background: #fff !important;
  }
  .rg-topbar,
  .rg-hero,
  .foot,
  .hg-off,
  .rg-no-print,
  .rg-success-actions {
    display: none !important;
  }
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
  }
  .rg-page {
    background: #fff !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  .rg-page .form-wrap {
    padding: 0 !important;
    margin: 0 !important;
  }
  .rg-page .form-wrap .container,
  .rg-page .form-wrap .row,
  .rg-page .form-wrap .row > * {
    max-width: none !important;
    width: 100% !important;
    flex: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .rg-page .form-card {
    box-shadow: none !important;
    border: 1px solid #d3e3d9;
    border-top: 6px solid var(--green);
    border-radius: 12px;
    padding: 8mm 10mm !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .rg-page .form-card::before {
    display: none !important;
  }
  .rg-page .rg-print-only {
    display: flex !important;
  }
  .rg-page .rg-print-head {
    align-items: center;
    justify-content: space-between;
    gap: 8mm;
    padding-bottom: 5mm;
    margin-bottom: 5mm;
    border-bottom: 1px solid #e6efe9;
    text-align: left;
  }
  .rg-page .rg-print-head img {
    height: 16mm;
    width: auto;
  }
  .rg-page .rg-print-head div {
    text-align: right;
    font-size: 11px;
    color: #556267;
    line-height: 1.5;
  }
  .rg-page .rg-print-head strong {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    color: var(--ink);
  }
  .rg-page .success.rg-success {
    padding: 0 !important;
  }
  .rg-page .success .rg-tick {
    width: 44px;
    height: 44px;
    margin: 0 auto 6px;
  }
  .rg-page .success .rg-tick circle,
  .rg-page .success .rg-tick path {
    animation: none !important;
    stroke-dashoffset: 0 !important;
  }
  .rg-page .success h2 {
    font-size: 20px !important;
    margin-bottom: 4px;
  }
  .rg-page .success .sub {
    font-size: 12px;
    margin-bottom: 10px !important;
  }
  .rg-page .rg-regno {
    margin: 0 0 12px;
    padding: 6px 22px;
  }
  .rg-page .rg-regno strong {
    font-size: 24px;
  }
  .rg-page .rg-summary {
    margin-bottom: 10px;
    font-size: 12px;
  }
  .rg-page .rg-summary > div {
    flex-direction: row !important;
    padding: 6px 12px;
  }
  .rg-page .rg-summary dt {
    font-size: 11.5px;
  }
  .rg-page .rg-summary dd {
    text-align: right !important;
    font-size: 12px;
  }
  .rg-page .rg-pay-help {
    margin-top: 6px;
    font-size: 11px;
  }
}
/* WhatsApp group call-to-action on the success page */
.rg-page .rg-wa-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  background: #e9f9ef;
  border: 1.5px solid #25d366;
  text-align: left;
}
.rg-page .rg-wa-icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  background: #25d366;
}
.rg-page .rg-wa-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.rg-page .rg-wa-text strong {
  font-family: "Outfit", sans-serif;
  font-size: 1.05rem;
  color: var(--green-deep);
}
.rg-page .rg-wa-text span {
  font-size: 0.9rem;
  color: #556267;
}
.rg-page .rg-wa-btn {
  flex: 0 0 auto;
  background: #25d366;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 0.7rem 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}
.rg-page .rg-wa-btn:hover,
.rg-page .rg-wa-btn:focus-visible {
  background: #1ebe5b;
  color: #fff;
}
@media (max-width: 575px) {
  .rg-page .rg-wa-box {
    flex-direction: column;
    text-align: center;
  }
  .rg-page .rg-wa-text {
    align-items: center;
  }
  .rg-page .rg-wa-btn {
    width: 100%;
  }
}

/* Reduced-motion devices: the tick animation is switched off, so show it fully drawn */
@media (prefers-reduced-motion: reduce) {
  .rg-page .success .rg-tick circle,
  .rg-page .success .rg-tick path {
    stroke-dashoffset: 0;
  }
}

/* ---------- Country / State / District searchable dropdowns (Tom Select) ----------
   The wrapper takes the same look as the other fields (border, rounded right
   corners, arrow); the inner control only carries the text. */
.rg-page .rg-loc > .ts-wrapper.form-select {
  border: 1.5px solid #d3e3d9;
  border-radius: 0 12px 12px 0;
  min-height: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.rg-page .rg-loc > .ts-wrapper .ts-control {
  border: 0;
  border-radius: 0 12px 12px 0;
  background-color: transparent;
  box-shadow: none;
  padding: 0.7rem 2.25rem 0.7rem 0.9rem;
  font-size: 1rem;
  line-height: 1.5;
}
.rg-page .rg-loc > .ts-wrapper .ts-control > input {
  font-size: 1rem;
}
.rg-page .rg-loc > .ts-wrapper.focus {
  border-color: var(--green);
  box-shadow: 0 0 0 0.25rem rgba(27, 113, 66, 0.18);
}
.rg-page .rg-loc > .ts-wrapper.disabled {
  background-color: #f4f7f5;
  opacity: 1;
}
.rg-page .rg-loc > .ts-wrapper.disabled .ts-control {
  background-color: transparent;
}
.rg-page .rg-loc > .ts-wrapper.is-invalid,
.rg-page .was-validated .rg-loc > :invalid + .ts-wrapper {
  border-color: var(--bs-form-invalid-color, #dc3545);
}
/* The column whose list is open sits above the fields after it. */
.rg-page .rg-loc-open {
  position: relative;
  z-index: 1070;
}
.rg-page .rg-loc .ts-dropdown {
  border-radius: 12px;
  border-color: #d3e3d9;
  overflow: hidden;
  margin-top: 4px;
  z-index: 1060;
}
.rg-page .rg-loc .ts-dropdown .active {
  background: var(--green-soft);
  color: var(--green-deep, #12512f);
}
.rg-page .rg-loc .ts-dropdown .option {
  padding: 0.55rem 0.9rem;
}
