/* Single-page self-learning landing + checkout (/self-learning/{slug}-course). Scoped to #slEnroll. Buttons reuse main.css .redBtn / .yellowBtn. */
#slEnroll {
    --sl-navy: #0e3560; --sl-blue: #136AAB; --sl-red: #d52b1e; --sl-green: #1e7e34; --sl-ink: #1a2b49; --sl-muted: #6b7a90; --sl-line: #e3e9f2;
    background: #EAF3FA; padding: 56px 0; color: var(--sl-ink); scroll-margin-top: 110px;
}
#slEnroll .sl-head { text-align: center; margin-bottom: 28px; }
#slEnroll .sl-head h2 { margin: 0 0 6px; }
#slEnroll .sl-head p { margin: 0; color: var(--sl-muted); }

#slEnroll .sl-steps { list-style: none; display: flex; gap: 8px; margin: 0 0 18px; padding: 0; }
#slEnroll .sl-steps li { flex: 1; display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--sl-line); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--sl-muted); }
#slEnroll .sl-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e9eef6; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
#slEnroll .sl-steps li.is-active { color: var(--sl-ink); border-color: var(--sl-blue); box-shadow: 0 2px 10px rgba(32, 99, 155, .12); }
#slEnroll .sl-steps li.is-active .n { background: var(--sl-blue); color: #fff; }
#slEnroll .sl-steps li.is-done { color: var(--sl-green); }
#slEnroll .sl-steps li.is-done .n { background: var(--sl-green); color: #fff; }

#slEnroll .sl-card { background: #fff; border: 1px solid var(--sl-line); border-radius: 16px; padding: 24px; margin-bottom: 18px; box-shadow: 0 4px 18px rgba(14, 53, 96, .05); position: relative; }
#slEnroll .sl-card > h3 { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
#slEnroll .sl-card > .sl-sub { margin: 0 0 18px; font-size: 14px; color: var(--sl-muted); }

#slEnroll .sl-field { margin-bottom: 14px; }
#slEnroll .sl-field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sl-muted); margin-bottom: 6px; }
#slEnroll .sl-field input, #slEnroll .sl-field select { width: 100%; height: 48px; border: 1px solid #d5deeb; border-radius: 10px; padding: 0 14px; font-size: 15px; background: #fff; outline: none; }
#slEnroll .sl-field input:focus, #slEnroll .sl-field select:focus { border-color: var(--sl-blue); box-shadow: 0 0 0 3px rgba(32, 99, 155, .15); }
#slEnroll .sl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
#slEnroll .sl-row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
#slEnroll .sl-msg { min-height: 20px; margin: 4px 0 10px; font-size: 14px; }
#slEnroll .sl-msg.is-err { color: var(--sl-red); }
#slEnroll .sl-msg.is-ok { color: var(--sl-green); }
#slEnroll .sl-btn { display: block; width: 100%; cursor: pointer; text-align: center; border: 0; }
#slEnroll .sl-btn[disabled] { opacity: .6; cursor: not-allowed; }
#slEnroll .sl-legal { font-size: 12px; color: var(--sl-muted); margin: 12px 0 0; }
#slEnroll .sl-legal a { color: var(--sl-blue); }
#slEnroll .sl-link { background: none; border: 0; padding: 0; color: var(--sl-blue); font-weight: 700; cursor: pointer; font-size: 14px; }

#slEnroll .sl-otp-sent { display: flex; align-items: center; gap: 10px; background: #eef6ff; border: 1px solid #cfe2f7; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
#slEnroll .sl-otp-boxes { display: flex; gap: 10px; margin: 6px 0 14px; }
#slEnroll .sl-otp-boxes input { width: 100%; max-width: 54px; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 1px solid #d5deeb; border-radius: 10px; outline: none; padding: 0; }
#slEnroll .sl-otp-boxes input:focus { border-color: var(--sl-blue); box-shadow: 0 0 0 3px rgba(32, 99, 155, .15); }
#slEnroll .sl-otp-foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--sl-muted); margin-top: 12px; }
#slEnroll .sl-dev { background: #fff8e1; border: 1px dashed #f0aa12; border-radius: 8px; padding: 6px 10px; font-size: 13px; margin-bottom: 10px; }

#slEnroll .sl-verified { display: flex; align-items: center; gap: 14px; }
#slEnroll .sl-verified .tick { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e3f5e8; color: var(--sl-green); display: grid; place-items: center; font-size: 20px; font-weight: 700; }
#slEnroll .sl-verified .em { font-size: 14px; color: var(--sl-muted); }

#slEnroll .sl-lock { position: absolute; inset: 0; z-index: 5; background: rgba(244, 247, 252, .88); border-radius: 16px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-weight: 700; color: var(--sl-muted); }
#slEnroll .sl-lock span { display: block; font-size: 28px; margin-bottom: 6px; }

#slEnroll .sl-methods { display: grid; gap: 10px; margin-bottom: 16px; }
#slEnroll .sl-method { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--sl-line); border-radius: 12px; padding: 12px 14px; cursor: pointer; font-weight: 700; }
#slEnroll .sl-method.is-on { border-color: var(--sl-blue); background: #f0f7ff; box-shadow: 0 0 0 2px rgba(32, 99, 155, .12); }
#slEnroll .sl-method input { margin: 0; }
#slEnroll .sl-panel { display: none; }
#slEnroll .sl-panel.is-on { display: block; }
#slEnroll .sl-tc { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--sl-muted); margin: 4px 0 14px; }

#slEnroll .sl-summary { position: sticky; top: 130px; }
#slEnroll .sl-course { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--sl-line); margin-bottom: 14px; }
#slEnroll .sl-course img { width: 84px; height: 62px; object-fit: cover; border-radius: 10px; flex: none; background: #eef2f8; }
#slEnroll .sl-course .nm { font-weight: 700; line-height: 1.3; }
#slEnroll .sl-course .st { font-size: 13px; color: var(--sl-muted); margin-top: 4px; }
#slEnroll .sl-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 15px; }
#slEnroll .sl-line.total { border-top: 1px solid var(--sl-line); margin-top: 6px; padding-top: 14px; font-size: 18px; font-weight: 700; }
#slEnroll .sl-line.total b { color: var(--sl-red); }
#slEnroll .sl-line .off { color: var(--sl-green); }
#slEnroll .sl-trust { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sl-line); font-size: 13px; color: var(--sl-muted); display: grid; gap: 8px; }
#slEnroll .sl-trust li::before { content: "\2713"; color: var(--sl-green); font-weight: 700; margin-right: 8px; }

@media (max-width: 991px) { #slEnroll .sl-summary { position: static; margin-top: 8px; } #slEnroll .sl-steps li span.t { display: none; } #slEnroll .sl-steps li.is-active span.t { display: inline; } }
@media (max-width: 575px) { #slEnroll .sl-card { padding: 18px 16px; } #slEnroll .sl-row, #slEnroll .sl-row3 { grid-template-columns: 1fr; gap: 0; } #slEnroll .sl-otp-boxes { gap: 6px; } #slEnroll .sl-otp-boxes input { height: 50px; font-size: 20px; } }

/* ---- popup wizard (opened from the Enroll / Buy buttons): summary panel on the left, one step at a time on the right, fits one screen ---- */
.slModal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(6, 16, 36, .72); overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px; backdrop-filter: blur(3px); }
.slModal.is-open { display: flex; }
body.slModalOpen { overflow: hidden; }
/* #slEnroll reload: popup + backdrop from the first paint until openModal() takes over (no blink) */
html.sl-enroll-early body { overflow: hidden; }
html.sl-enroll-early body::after { content: ""; position: fixed; inset: 0; z-index: 1999; background: rgba(6, 16, 36, .72); }
html.sl-enroll-early .slModal { display: flex; background: transparent; }
.slModalBox { position: relative; width: 100%; max-width: 940px; margin: auto; background: #fff; border-radius: 24px; box-shadow: 0 30px 90px rgba(0, 0, 0, .45); overflow: hidden; animation: slPop .22s ease-out; }
@keyframes slPop { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.slModalClose { position: absolute; top: 12px; right: 14px; z-index: 6; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #eef2f8; color: #1a2b49; font-size: 24px; line-height: 1; cursor: pointer; transition: background .2s; }
.slModalClose:hover { background: #dfe7f3; }
#slEnroll { background: transparent; padding: 0; scroll-margin-top: 0; }
#slEnroll .slGrid { display: grid; grid-template-columns: 330px minmax(0, 1fr); min-height: 500px; }

/* left panel */
#slEnroll .slSide { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 34px 28px 28px; color: #fff; background: radial-gradient(90% 55% at 100% 0%, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 70%), linear-gradient(135deg, #0A1C3F 0%, #123C6B 60%, #136AAB 100%); }
#slEnroll .slSideKick { color: #f8bd00; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
#slEnroll .slSide h2 { color: #fff; font-size: 1.7rem; line-height: 1.2; font-weight: 700; margin: 6px 0 6px; }
#slEnroll .slSideCourse { color: #e3e9f7; font-size: 14px; line-height: 1.4; margin: 0; }
#slEnroll .slSidePrice { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; }
#slEnroll .slSidePrice b { font-size: 2.5rem; line-height: 1; font-weight: 700; }
#slEnroll .slSidePrice .was { color: #d3dcf0; text-decoration: line-through; font-size: 1rem; }
#slEnroll .slSidePrice .off { background: #f8bd00; color: #0A1C3F; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 20px; }
#slEnroll .slSideSave { margin: -6px 0 0; color: #79e0a6; font-size: 14px; font-weight: 500; }
#slEnroll .slSideList { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
#slEnroll .slSideList li { position: relative; padding-left: 26px; color: #f0f4fc; font-size: 14px; line-height: 1.35; }
#slEnroll .slSideList li::before { content: "\2713"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: rgba(248, 189, 0, .18); color: #f8bd00; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
#slEnroll .slSideList a { color: inherit; text-decoration: underline; }
#slEnroll .slSideSum { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .24); padding-top: 14px; font-size: 14px; color: #e3e9f7; }
#slEnroll .slSideSum > div { display: flex; justify-content: space-between; padding: 3px 0; }
#slEnroll .slSideSum .t { color: #fff; font-weight: 700; font-size: 15px; padding-top: 8px; }
#slEnroll .slCoupon { font-size: 14px; }
#slEnroll .slCouponForm label { display: block; margin: 0 0 6px; color: #e3e9f7; font-size: 13px; font-weight: 500; }
#slEnroll .slCouponRow { display: flex; gap: 8px; }
#slEnroll .slCouponRow input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 14px; text-transform: uppercase; outline: none; }
#slEnroll .slCouponRow input::placeholder { color: #b9c6e0; text-transform: none; }
#slEnroll .slCouponRow input:focus { border-color: #f8bd00; background: rgba(255, 255, 255, .16); }
#slEnroll .slCouponRow button, #slEnroll .slCouponRemove { flex: none; height: 40px; padding: 0 16px; border: 0; border-radius: 10px; background: #f8bd00; color: #0A1C3F; font-weight: 700; font-size: 14px; cursor: pointer; }
#slEnroll .slCouponRow button[disabled], #slEnroll .slCouponRemove[disabled] { opacity: .6; cursor: not-allowed; }
#slEnroll .slCouponOn { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border: 1px dashed #79e0a6; border-radius: 10px; color: #e3e9f7; }
#slEnroll .slCouponOn b { color: #79e0a6; }
#slEnroll .slCouponRemove { height: 32px; padding: 0 12px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 13px; }
#slEnroll .slCouponMsg { min-height: 0; margin: 6px 0 0; font-size: 13px; }
#slEnroll .slCouponMsg.is-err { color: #ffb4ab; }
#slEnroll .slCouponMsg.is-ok { color: #79e0a6; }

/* right panel */
#slEnroll .slMain { padding: 34px 40px 28px; display: flex; flex-direction: column; justify-content: center; }
#slEnroll .sl-wiz { background: transparent; box-shadow: none; border-radius: 0; margin: 0; overflow: visible; }
#slEnroll .sl-steps { list-style: none; display: flex; gap: 0; margin: 0 0 26px; padding: 0 36px 0 0; }
#slEnroll .sl-steps li { position: relative; flex: 1; display: flex; align-items: center; gap: 9px; background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; font-size: 14px; font-weight: 500; color: #8896ad; }
#slEnroll .sl-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; margin: 0 12px; background: #e3e9f2; border-radius: 2px; }
#slEnroll .sl-steps li.is-done:not(:last-child)::after { background: #0E8E7D; }
#slEnroll .sl-steps .n { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #e9eef6; color: #6b7a90; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
#slEnroll .sl-steps li.is-active { color: #0A1C3F; box-shadow: none; border: 0; }
#slEnroll .sl-steps li.is-active .n { background: linear-gradient(135deg, #136aab, #624399); color: #fff; box-shadow: 0 0 0 4px rgba(98, 67, 153, .16); }
#slEnroll .sl-steps li.is-done { color: #1e7e34; }
#slEnroll .sl-steps li.is-done .n { background: #0E8E7D; color: #fff; }

#slEnroll .sl-sec { display: none; padding: 0; border: 0; animation: slStep .25s ease-out; }
#slEnroll .sl-wiz[data-step="1"] .sl-sec[data-sec="1"],
#slEnroll .sl-wiz[data-step="2"] .sl-sec[data-sec="2"],
#slEnroll .sl-wiz[data-step="3"] .sl-sec[data-sec="3"] { display: block; }
@keyframes slStep { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: none; } }
#slEnroll .sl-sec h3 { font-size: 1.35rem; font-weight: 700; color: #0A1C3F; margin: 0 0 4px; }
#slEnroll .sl-sec .sl-sub { margin: 0 0 18px; font-size: 14px; color: #6b7a90; }
#slEnroll .sl-field { margin-bottom: 12px; }
#slEnroll .sl-field input, #slEnroll .sl-field select { height: 44px; border-radius: 10px; font-size: 15px; }
#slEnroll .sl-row { gap: 12px; }
#slEnroll .sl-row3 { gap: 10px; }
#slEnroll .sl-msg { min-height: 18px; margin: 2px 0 8px; font-size: 13px; }
#slEnroll .sl-pay { display: block; width: 100%; padding: 14px; border: 0; border-radius: 12px; background: linear-gradient(135deg, #AF2928, #D8433F); color: #fff; font-weight: 700; font-size: 16px; text-align: center; text-decoration: none; cursor: pointer; box-shadow: 0 8px 18px rgba(217, 38, 28, .22); transition: transform .15s, background .2s; }
#slEnroll .sl-pay:hover { background: linear-gradient(135deg, #8f1f1e, #b8332f); color: #fff; transform: translateY(-1px); }
#slEnroll .sl-pay[disabled] { opacity: .65; cursor: not-allowed; transform: none; }
#slEnroll .sl-legal { margin: 12px 0 0; font-size: 12px; color: #6b7a90; line-height: 1.45; }

#slEnroll .sl-otp-sent, #slEnroll .sl-wiz .sl-otp-sent { display: none; }
#slEnroll .sl-who { margin: 0 0 10px; font-size: 14px; color: #1a2b49; font-weight: 500; }
#slEnroll .sl-otp-boxes { display: flex; gap: 10px; margin: 4px 0 12px; }
#slEnroll .sl-otp-boxes input { flex: 1; max-width: 56px; height: 56px; text-align: center; font-size: 24px; font-weight: 700; border: 1.5px solid #d5deeb; border-radius: 12px; outline: none; padding: 0; background: #f8fafd; }
#slEnroll .sl-otp-boxes input:focus { border-color: #136AAB; background: #fff; box-shadow: 0 0 0 3px rgba(32, 99, 155, .15); }
#slEnroll .sl-otp-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; font-size: 13px; color: #6b7a90; }
#slEnroll .sl-verified-chip { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 20px; background: #e5f6ec; color: #1e7e34; font-size: 13px; font-weight: 500; max-width: 100%; word-break: break-all; }
#slEnroll .sl-verified-chip span { font-weight: 700; }

#slEnroll .sl-chips, #slEnroll .sl-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
#slEnroll .sl-chips span, #slEnroll .sl-method { position: relative; display: inline-flex; padding: 9px 16px; border: 1px solid #cfd8e6; border-radius: 10px; background: #fff; font-size: 14px; font-weight: 500; color: #1a2b49; box-shadow: none; cursor: default; }
#slEnroll .sl-method { cursor: pointer; }
/* India: methods are chosen on PhonePe's page, so these are plain tags, not buttons */
#slEnroll .sl-chips-info { align-items: center; gap: 6px; }
#slEnroll .sl-chips-info b { font-size: 13px; font-weight: 500; color: #6b7a90; margin-right: 2px; }
#slEnroll .sl-chips-info span { padding: 3px 10px; border: 0; border-radius: 20px; background: #EEF4FF; color: #136AAB; font-size: 12.5px; font-weight: 600; pointer-events: none; }
#slEnroll .sl-method input { position: absolute; opacity: 0; pointer-events: none; }
#slEnroll .sl-method.is-on { border-color: #136AAB; background: #EAF3FA; color: #136AAB; }
#slEnroll .sl-tc { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: #6b7a90; margin: 2px 0 6px; }

@media (max-width: 860px) {
    .slModal { padding: 0; align-items: stretch; }
    .slModalBox { border-radius: 0; max-width: none; min-height: 100%; }
    #slEnroll .slGrid { grid-template-columns: 1fr; min-height: 0; }
    #slEnroll .slSide { gap: 6px; padding: 22px 20px 16px; }
    #slEnroll .slSide h2 { font-size: 1.25rem; margin: 2px 0 0; }
    #slEnroll .slSidePrice b { font-size: 1.8rem; }
    #slEnroll .slSideList, #slEnroll .slSideSum { display: none; }
    #slEnroll .slMain { padding: 22px 20px 24px; }
    #slEnroll .sl-steps { padding-right: 0; }
    .slModalClose { background: rgba(255, 255, 255, .16); color: #fff; }
}
@media (max-width: 480px) { #slEnroll .sl-row, #slEnroll .sl-row3 { grid-template-columns: 1fr; gap: 0; } #slEnroll .sl-row3 { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } #slEnroll .sl-otp-boxes { gap: 6px; } #slEnroll .sl-otp-boxes input { height: 50px; font-size: 20px; } }
