/* Register dialog: phone -> OTP -> details -> payment -> success */
.rg-lock, .rg-lock body { overflow: hidden; scroll-snap-type: none; }
.rg { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.rg[hidden] { display: none; }
.rg__backdrop { position: absolute; inset: 0; background: rgba(11, 20, 64, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s; }
.rg.is-open .rg__backdrop { opacity: 1; }
.rg__dialog { position: relative; width: min(480px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 36px 32px 30px; background: #fff; border-radius: 28px; box-shadow: 0 40px 80px -30px rgba(10, 30, 100, .6); outline: 0; opacity: 0; transform: translateY(18px) scale(.97); transition: opacity .25s, transform .3s cubic-bezier(.2, .7, .2, 1); font-family: inherit; }
.rg.is-open .rg__dialog { opacity: 1; transform: none; }
.rg__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #eef4fd; color: #1b1f5e; cursor: pointer; }
.rg__x:hover { background: #dfeafb; }
.rg__title { margin: 0; padding-right: 36px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.02em; color: #0b1440; }
.rg__title--c, .rg__sub--c { text-align: center; padding-right: 0; }
.rg__sub { margin: 8px 0 0; font-size: 15.5px; line-height: 1.55; color: #4a5266; }
.rg__label { display: block; margin: 22px 0 8px; padding: 0; font-size: 14px; font-weight: 700; color: #1a1f3a; }
.rg__input, .rg__phone { width: 100%; height: 56px; border: 1.5px solid #cfe3fc; border-radius: 16px; background: #fff; font-family: inherit; font-size: 17px; font-weight: 500; color: #0b1440; transition: border-color .15s, box-shadow .15s; }
.rg__input { padding: 0 16px; }
select.rg__input { appearance: none; padding-right: 44px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='m1 1.5 6 6 6-6' fill='none' stroke='%231b1f5e' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 18px center; }
select.rg__input:disabled { background-color: #f3f6fb; color: #8a93a8; }
.rg__input:focus, .rg__phone:focus-within { outline: 0; border-color: #0079fd; box-shadow: 0 0 0 4px rgba(0, 121, 253, .15); }
.rg__input::placeholder, .rg__phone input::placeholder { color: #98a1b6; }
.rg__phone { display: flex; align-items: center; overflow: hidden; }
.rg__phone span { align-self: stretch; display: grid; place-items: center; padding: 0 14px; background: #eef4fd; font-weight: 700; color: #1b1f5e; }
.rg__phone input { flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 16px; font: inherit; letter-spacing: .02em; outline: 0; background: transparent; color: inherit; }
.rg [aria-invalid="true"] { border-color: #e5484d; }
.rg__err { min-height: 1.4em; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; color: #d02a30; }
.rg__cta { width: 100%; height: 58px; margin-top: 14px; font-size: 17px; }
.rg__cta:disabled { cursor: progress; filter: saturate(.7) brightness(1.05); transform: none; }
.rg__spin { display: none; width: 20px; height: 20px; border: 3px solid rgba(255, 255, 255, .4); border-top-color: #fff; border-radius: 50%; animation: rgspin .7s linear infinite; }
.is-busy .rg__spin { display: block; }
@keyframes rgspin { to { transform: rotate(360deg); } }
.rg__fine { margin: 14px 0 0; text-align: center; font-size: 13.5px; color: #5a6275; }
.rg__back { margin: -6px 0 14px; padding: 6px 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: #0079fd; cursor: pointer; }
.rg__otp { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; }
.rg__otp input { width: 100%; height: 60px; padding: 0; border: 1.5px solid #cfe3fc; border-radius: 14px; text-align: center; font-family: inherit; font-size: 24px; font-weight: 700; color: #0b1440; }
.rg__otp input:focus { outline: 0; border-color: #0079fd; box-shadow: 0 0 0 4px rgba(0, 121, 253, .15); }
.rg__resend { margin: 16px 0 0; text-align: center; font-size: 14px; color: #5a6275; }
.rg__link { padding: 0; border: 0; background: none; font-family: inherit; font-size: 14px; font-weight: 700; color: #0079fd; cursor: pointer; }
.rg__fs { margin: 0; padding: 0; border: 0; min-width: 0; }
.rg__courses { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rg__course { position: relative; display: block; }
.rg__course input { position: absolute; inset: 0; opacity: 0; }
.rg__course span { display: grid; place-items: center; min-height: 60px; padding: 10px 12px; text-align: center; border: 1.5px solid #cfe3fc; border-radius: 16px; font-size: 14.5px; font-weight: 700; line-height: 1.25; color: #1a1f3a; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.rg__course:hover span { border-color: #8fbdf7; }
.rg__course input:checked + span { border-color: #0079fd; background: #eaf3ff; color: #0a4fb8; box-shadow: 0 0 0 3px rgba(0, 121, 253, .14); }
.rg__course input:focus-visible + span { outline: 3px solid #0079fd; outline-offset: 2px; }
.rg__sum { margin-top: 22px; padding: 6px 20px; border: 1.5px solid #dbe8fa; border-radius: 20px; background: linear-gradient(135deg, #f7fbff, #edf5ff); }
.rg__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; font-size: 15px; color: #1a1f3a; }
.rg__row + .rg__row { border-top: 1px solid #dbe8fa; }
.rg__row b { font-weight: 800; text-align: right; }
.rg__row small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: #5a6275; }
.rg__row--tot { font-size: 17px; font-weight: 800; }
.rg__row--tot b { font-size: 26px; color: #0079fd; }
.rg__row--meta { padding: 11px 0; font-size: 14px; color: #4a5266; }
.rg__ok { display: grid; place-items: center; margin-bottom: 14px; }
.rg__okc { fill: #eaf6ee; stroke: #22a55b; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: rgdraw .6s ease-out forwards; }
.rg__okp { fill: none; stroke: #22a55b; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: rgdraw .4s ease-out .5s forwards; }
@keyframes rgdraw { to { stroke-dashoffset: 0; } }
.rg__rec { margin: 22px 0 0; padding: 4px 20px; border: 1.5px solid #dbe8fa; border-radius: 20px; background: #f7fbff; }
.rg__rec div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; font-size: 14.5px; }
.rg__rec div + div { border-top: 1px solid #dbe8fa; }
.rg__rec dt { color: #4a5266; }
.rg__rec dd { margin: 0; font-weight: 800; color: #0b1440; text-align: right; word-break: break-all; }
.rg__demo { margin: 22px -32px -30px; padding: 12px 32px; background: #fff8e1; border-top: 1px solid #f6e3a6; border-radius: 0 0 28px 28px; font-size: 13px; line-height: 1.5; color: #6b4e00; }
@media (max-width: 559.98px) {
  .rg { align-items: end; padding: 0; }
  .rg__dialog { width: 100%; max-height: 94svh; padding: 30px 20px 26px; border-radius: 28px 28px 0 0; transform: translateY(40px); }
  .rg__demo { margin: 20px -20px -26px; padding: 12px 20px; border-radius: 0; }
  .rg__title { font-size: 23px; }
  .rg__otp { gap: 7px; }
  .rg__otp input { height: 54px; font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .rg__dialog, .rg__backdrop { transition: none; } .rg__okc, .rg__okp { animation: none; stroke-dashoffset: 0; } }

/* progress bar: starts partly filled */
.rg__prog { margin: 0 52px 22px 0; }
.rg__track { height: 8px; border-radius: 99px; background: #e3edfb; overflow: hidden; }
.rg__track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #19c0f8, #0079fd); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.rg__prog.is-done .rg__track i { background: linear-gradient(90deg, #34c46f, #22a55b); }
.rg__prog span { display: block; margin-top: 8px; font-size: 12.5px; font-weight: 700; color: #4a5266; }
.rg__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rg__input--lg { height: 62px; margin-top: 22px; font-size: 19px; }
.rg__opts { display: grid; gap: 10px; margin-top: 22px; }
.rg__opts--2 { grid-template-columns: 1fr; }
.rg__opts--4 { grid-template-columns: repeat(4, 1fr); }
.rg__opt { min-height: 60px; padding: 12px 16px; border: 1.5px solid #cfe3fc; border-radius: 16px; background: #fff; font-family: inherit; font-size: 16.5px; font-weight: 700; line-height: 1.25; color: #1a1f3a; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
.rg__opt:hover { border-color: #8fbdf7; background: #f5faff; }
.rg__opt:active { transform: scale(.985); }
.rg__opt[aria-pressed="true"] { border-color: #0079fd; background: #eaf3ff; color: #0a4fb8; box-shadow: 0 0 0 3px rgba(0, 121, 253, .14); }
.rg__opt:focus-visible { outline: 3px solid #0079fd; outline-offset: 2px; }
.rg__opt--chip { text-align: center; padding: 12px 4px; font-size: 15px; }
.rg__opt--wide { grid-column: 1 / -1; text-align: center; }
@media (max-width: 559.98px) { .rg__prog { margin-right: 50px; } .rg__opts--4 { grid-template-columns: repeat(2, 1fr); } }

/* "By continuing you agree to the Terms and Privacy Policy" under Send OTP */
.rg__consent { margin-top: 12px; font-size: 12.5px; line-height: 1.45; }
.rg__consent a { color: #0079fd; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
