/* Enrolment and payment page of one class — loaded only on /enroll/…. */

.en-page{padding-block:clamp(26px,3vw,40px) clamp(56px,6vw,86px)}
.en-crumbs{display:flex;align-items:center;gap:6px;flex-wrap:wrap;font-size:14px;color:var(--soft);margin-bottom:clamp(16px,2vw,24px)}
.en-crumbs a:hover{color:var(--brand)}
.en-crumbs .icon{width:16px;height:16px;transform:rotate(90deg)}
.en-crumbs span{color:var(--ink-2);font-weight:600}
.en-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);grid-template-areas:"head buy" "main buy";gap:clamp(18px,2.4vw,30px);align-items:start}
.en-head{grid-area:head}
.en-main{grid-area:main}
.en-buy{grid-area:buy}

.en-main{display:grid;gap:clamp(16px,2vw,22px)}
.en-head{display:grid;grid-template-columns:minmax(0,280px) minmax(0,1fr);gap:clamp(16px,2vw,26px);align-items:center;padding:clamp(16px,2vw,22px);border-radius:28px;background:#fff;border:1px solid var(--line)}
.en-media{position:relative;aspect-ratio:16/10;border-radius:20px;overflow:hidden;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 12%,#fff)}
.en-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.en-media-mark{display:grid;place-items:center;width:44%;height:62%;color:var(--accent)}
.en-media-mark svg{width:100%;height:100%;stroke-width:1.2}
.en-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:10px}
.en-tag{display:inline-flex;align-items:center;gap:5px;padding:3px 12px;border-radius:999px;background:var(--cream);font-size:13px;font-weight:600;color:var(--muted)}
.en-tag .icon{width:15px;height:15px}
.en-tag.is-lang{background:color-mix(in srgb,var(--accent) 14%,#fff);color:color-mix(in srgb,var(--accent) 80%,#000)}
.en-tag.is-mode{background:var(--blush);color:var(--brand)}
.en-title h1{font-size:clamp(21px,2vw,27px);font-weight:800;letter-spacing:-.6px;line-height:1.5}
.en-sub{margin-top:8px;color:var(--muted);font-size:15.5px}

.en-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.en-facts li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:10px;align-items:start;padding:14px 16px;border-radius:20px;background:#fff;border:1px solid var(--line)}
.en-facts .icon{width:20px;height:20px;margin-top:3px;color:var(--soft)}
.en-facts small{display:block;font-size:13px;color:var(--soft);line-height:1.7}
.en-facts b{font-size:15px;font-weight:700;line-height:1.7;overflow-wrap:break-word}

.en-block{padding:clamp(18px,2.2vw,26px);border-radius:26px;background:#fff;border:1px solid var(--line)}
.en-block h2{font-size:19px;font-weight:800;margin-bottom:12px}
.en-list{display:grid;gap:10px}
.en-list div{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;font-size:15px;line-height:1.9}
.en-list dt{color:var(--soft);font-weight:500}
.en-list dd{font-weight:600;display:flex;flex-wrap:wrap;gap:4px 12px}
.en-slot{white-space:nowrap}
.en-note{display:flex;align-items:center;gap:9px;margin-top:14px;padding:11px 14px;border-radius:14px;background:var(--paper);color:var(--muted);font-size:14px}
.en-note .icon{width:18px;height:18px;color:var(--brand);flex:none}

/* Buy card */
.en-buy-card{position:sticky;top:96px;display:grid;gap:14px;padding:clamp(20px,2.2vw,26px);border-radius:28px;background:#fff;border:1px solid var(--line);box-shadow:0 20px 44px #22201e0d}
.en-price{display:flex;align-items:baseline;justify-content:space-between;gap:10px;padding-bottom:14px;border-bottom:1px dashed var(--line)}
.en-price span{font-size:14.5px;color:var(--muted)}
.en-price b{font-family:var(--font-num);font-size:clamp(21px,2vw,26px);font-weight:800;letter-spacing:.4px}
.en-price b.en-price-empty{font-family:var(--font);font-size:15px;font-weight:700;color:var(--ink-2);letter-spacing:0}
.en-seats{display:flex;align-items:center;gap:8px;padding:9px 14px;border-radius:14px;font-size:14.5px;font-weight:700}
.en-seats .icon{width:18px;height:18px}
.en-seats.is-open{background:#edf6f0;color:#2c6446}
.en-seats.is-few{background:#fff4e0;color:#8a5a12}
.en-seats.is-full{background:var(--cream);color:var(--muted)}
.en-buy-card .pill{width:100%;min-height:54px}
.en-step,.en-closed{font-size:14.5px;color:var(--muted);line-height:2}
.en-closed{font-weight:700;color:var(--ink-2)}
.en-signin{display:block;text-align:center;font-size:14.5px;font-weight:700;color:var(--brand)}
.en-signin:hover{text-decoration:underline;text-underline-offset:5px}
.en-error{display:flex;align-items:flex-start;gap:9px;padding:11px 14px;border-radius:14px;background:#fdecea;color:#9b1c17;font-size:14px;font-weight:600;line-height:1.9}
.en-error .icon{width:18px;height:18px;flex:none;margin-top:4px}
.en-enrolled{display:flex;align-items:center;gap:8px;font-size:15px;font-weight:700;color:#2c6446}
.en-enrolled .icon{width:20px;height:20px}
.en-buyer{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:18px;background:var(--paper)}
.en-buyer-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:#fff;color:var(--brand);flex:none}
.en-buyer-mark .icon{width:21px;height:21px}
.en-buyer>span:last-child{display:grid;line-height:1.6;min-width:0}
.en-buyer small{font-size:12.5px;color:var(--soft)}
.en-buyer b{font-size:15px}
.en-hold{display:flex;align-items:center;gap:9px;padding:10px 14px;border-radius:14px;background:#fff4e0;color:#8a5a12;font-size:14px;font-weight:600}
.en-hold .icon{width:18px;height:18px;flex:none}
.en-hold b{font-family:var(--font-num);font-weight:800}
.en-pay .icon{width:20px;height:20px}
.en-gateway{font-size:12.5px;color:var(--soft);line-height:1.9;text-align:center}
.en-assure{display:grid;gap:8px;padding-top:14px;border-top:1px dashed var(--line)}
.en-assure li{display:flex;align-items:flex-start;gap:9px;font-size:13.5px;color:var(--muted);line-height:1.9}
.en-assure .icon{width:17px;height:17px;margin-top:3px;color:#2c6446}
.en-assure li:last-child .icon{color:var(--brand)}
.en-assure a{color:var(--brand);font-weight:700}

/* Payment result */
.en-result-page{padding-block:clamp(50px,6vw,90px) clamp(64px,7vw,100px)}
.en-result{display:grid;justify-items:center;gap:12px;text-align:center;max-width:620px;margin-inline:auto;padding:clamp(28px,3.4vw,44px);border-radius:32px;background:#fff;border:1px solid var(--line);box-shadow:0 22px 50px #22201e0d}
.en-result-mark{display:grid;place-items:center;width:84px;height:84px;border-radius:50%}
.en-result-mark .icon{width:40px;height:40px;stroke-width:2.2}
.en-result.is-paid .en-result-mark{background:#edf6f0;color:#2c6446}
.en-result.is-failed .en-result-mark{background:#fdecea;color:#9b1c17}
.en-result h1{font-size:clamp(24px,2.4vw,31px);font-weight:800}
.en-result p{color:var(--muted);line-height:2.05;max-width:460px}
.en-receipt{display:grid;gap:8px;width:100%;max-width:380px;margin-top:6px;padding:14px 18px;border-radius:18px;background:var(--paper)}
.en-receipt div{display:flex;justify-content:space-between;gap:12px;font-size:14.5px}
.en-receipt dt{color:var(--soft)}
.en-receipt dd{font-weight:700;font-family:var(--font-num)}
.en-result-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:10px}
@media (prefers-reduced-motion:no-preference){.en-result-mark{animation:en-pop .5s var(--ease) both}}
@keyframes en-pop{from{opacity:0;transform:scale(.6)}to{opacity:1;transform:none}}

@media (max-width:1000px){
  /* On a phone the call card comes right after the class, before the details. */
  .en-grid{grid-template-columns:1fr;grid-template-areas:"head" "buy" "main"}
  .en-buy-card{position:relative;top:0}
  .en-facts{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:620px){
  .en-head{grid-template-columns:1fr}
  .en-facts{grid-template-columns:1fr}
  .en-list div{grid-template-columns:1fr;gap:2px}
  .en-result-actions .pill{width:100%}
}

/* Payment switched off: the box is visibly locked and the phone takes over.
   A phone dials on tap; a desktop shows the number to read and type. */
.en-locked{display:grid;gap:6px;padding:14px 16px;border-radius:18px;background:var(--cream);border:1px dashed #d9cab8}
.en-locked-head{display:flex;align-items:center;gap:9px;font-size:14.5px;font-weight:700;color:var(--ink-2)}
.en-locked-head .icon{width:19px;height:19px;color:var(--soft)}
.en-locked-note{font-size:13.5px;color:var(--muted);line-height:1.9}
.en-dial{display:none;align-items:center;gap:12px;min-height:60px}
.en-dial-text{display:grid;justify-items:start;line-height:1.5}
.en-dial-text small{font-size:12.5px;opacity:.9}
.en-dial-text b{font-family:var(--font-num);font-size:19px;font-weight:800;letter-spacing:.6px}
.en-number{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:18px;background:var(--blush);border:1px solid #f4cfcc}
.en-number-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:#fff;color:var(--brand);flex:none}
.en-number-icon .icon{width:21px;height:21px}
.en-number>span:last-child{display:grid;gap:1px;line-height:1.6;min-width:0}
.en-number small{font-size:12.5px;color:var(--muted)}
.en-number b{font-family:var(--font-num);font-size:clamp(20px,2vw,24px);font-weight:800;letter-spacing:.6px;color:var(--brand-deep);text-align:start;user-select:all}
@media (max-width:780px){
  .en-dial{display:flex;gap:10px;width:100%;justify-content:center}
  .en-dial+.en-dial{margin-top:10px}
  .en-number{display:none}
}
