/**
 * Zapisy.pro – Enrollment Frontend CSS (Sleek & Compact)
 *
 * Elegancki, zwarty interfejs. Szeroki układ, poprawiony Grid 50/33%,
 * dopracowana responsywność (Mobile-first).
 *
 * @package ZP_Pro
 */

.zp-enrollment,
.zp-status-page {
    /* Tokeny pochodzą z assets/shared/zp-tokens.css (jedno źródło designu + przyjazny lift).
       Nazwy --zp-primary/--zp-radius/--zp-shadow-* są tam aliasowane, więc cały CSS działa. */
    font-family: var(--zp-font);
    color: var(--zp-text-main);
    font-size: 15px;
    line-height: 1.6;

    /* GŁÓWNY KONTENER - Szerszy i wyśrodkowany */
    max-width: 1120px;
    margin: 0 auto;
}

.zp-enrollment *, .zp-enrollment *::before, .zp-enrollment *::after { box-sizing: border-box; }
.zp-hidden { display: none !important; }

/* ============================================================
   LAYOUT: Main + Live Cart
   ============================================================ */
.zp-enrollment-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}
.zp-enrollment-layout--full {
    grid-template-columns: 1fr;
}
.zp-enrollment-main { min-width: 0; }

/* ============================================================
   LIVE CART SIDEBAR
   ============================================================ */
.zp-live-cart {
    position: sticky;
    top: 24px;
    background: var(--zp-surface);
    border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius-lg);
    box-shadow: var(--zp-shadow-md);
    overflow: hidden;
}
.zp-cart__header {
    padding: 16px 18px 14px;
    background: linear-gradient(135deg, var(--zp-primary) 0%, var(--zp-primary-light) 100%);
    color: #fff;
}
.zp-cart__type-badge {
    display: inline-block;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    background: rgba(255,255,255,.18); border-radius: 20px;
    padding: 2px 8px; margin-bottom: 6px;
}
.zp-cart__title {
    margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35;
    color: #fff;
}
.zp-cart__empty {
    display: flex; flex-direction: column; align-items: center;
    gap: 10px; padding: 28px 18px; text-align: center;
    color: var(--zp-text-muted);
}
.zp-cart__empty svg { opacity: .4; }
.zp-cart__empty p { margin: 0; font-size: 13px; line-height: 1.45; }
.zp-cart__body { padding: 14px 18px 6px; }
.zp-cart__row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 8px; padding: 7px 0;
    border-bottom: 1px solid var(--zp-border);
    font-size: 13px;
}
.zp-cart__row:last-child { border-bottom: none; }
.zp-cart__row-lbl { color: var(--zp-text-muted); flex-shrink: 0; }
.zp-cart__row-val { text-align: right; font-weight: 500; color: var(--zp-text-main); }
.zp-cart__divider { margin: 10px 0 8px; border-top: 2px solid var(--zp-border); }
.zp-cart__total-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 0 14px;
}
.zp-cart__total-lbl { font-size: 13px; font-weight: 600; color: var(--zp-text-muted); }
.zp-cart__total-val {
    font-size: 18px; font-weight: 700; color: var(--zp-primary);
    transition: color .15s;
}
@keyframes zpCartPulse {
    0%   { transform: scale(1); color: var(--zp-primary); }
    40%  { transform: scale(1.08); color: var(--zp-accent-ink); }
    100% { transform: scale(1); color: var(--zp-primary); }
}
.zp-cart__total-val--pulse { animation: zpCartPulse .5s ease; }
.zp-cart__trust {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 18px;
    background: var(--zp-surface-idle);
    border-top: 1px solid var(--zp-border);
    font-size: 11px; color: var(--zp-text-muted);
}
.zp-cart__trust svg { flex-shrink: 0; opacity: .6; }

/* ============================================================
   MOBILE CART BAR
   ============================================================ */
.zp-cart-bar {
    /* z-index ponad typowe przyklejone nagłówki stron szkół — Elementor/Divi używają 999–9999. */
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 100000;
    background: var(--zp-primary);
    box-shadow: 0 -4px 20px rgba(26,58,92,.25);
}
.zp-cart-bar__toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 14px 20px;
    background: none; border: none; cursor: pointer; color: #fff;
}
.zp-cart-bar__info { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.zp-cart-bar__name { font-size: 12px; opacity: .75; }
.zp-cart-bar__total { font-size: 17px; font-weight: 700; }
.zp-cart-bar__chevron { flex-shrink: 0; transition: transform .25s; }
.zp-cart-bar__sheet {
    max-height: 0; overflow: hidden;
    transition: max-height .3s cubic-bezier(.4,0,.2,1);
    background: var(--zp-surface);
}
.zp-cart-bar__sheet--open { max-height: 300px; }
.zp-cart-bar__sheet-rows { padding: 12px 20px 4px; }
.zp-cart-bar__row {
    display: flex; justify-content: space-between;
    padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--zp-border);
}
.zp-cart-bar__row:last-child { border-bottom: none; }
.zp-cart-bar__row-lbl { color: var(--zp-text-muted); }
.zp-cart-bar__row-val { font-weight: 500; }
.zp-cart-bar__sheet .zp-cart__trust { border-top: none; padding: 8px 20px 14px; }

/* ============================================================
   RESPONSIVE: mobile – collapse sidebar do bara
   ============================================================ */
@media (max-width: 820px) {
    .zp-enrollment { max-width: 100%; }
    .zp-enrollment-layout { grid-template-columns: 1fr; }
    .zp-live-cart { display: none !important; }
    .zp-enrollment-main { padding-bottom: 72px; }
}

/* ============================================================
   PASEK POSTĘPU
   ============================================================ */
.zp-progress { grid-column: 1 / -1; margin-bottom: 32px; padding: 0 20px; }
.zp-progress__steps {
    display: flex; justify-content: space-between; align-items: flex-start;
    list-style: none; margin: 0 auto; padding: 0; max-width: 100%; position: relative;
}
.zp-progress__steps::before {
    content: ''; position: absolute; top: 14px; left: 10%; right: 10%;
    height: 2px; background: var(--zp-border); z-index: 0;
}
.zp-progress__bar { position: absolute; top: 14px; left: 10%; width: 80%; height: 2px; z-index: 1; }
.zp-progress__fill { height: 100%; width: 0%; background: var(--zp-primary); transition: width 0.4s ease; }
/* zp-frontend.css daje ogólnemu .zp-progress__fill min-width: 2px (pasek postępu kursanta) — na kroku 1
   pasek kroków ma width: 0 i ten minimalny wycinek rysował kropkę przed kółkiem „1”. */
.zp-progress__bar > .zp-progress__fill { min-width: 0; }
.zp-progress__step { display: flex; flex-direction: column; align-items: center; gap: 8px; z-index: 2; width: 33.33%; }
.zp-progress__number {
    width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 12px; background: var(--zp-surface); color: var(--zp-text-muted);
    border: 2px solid var(--zp-border); transition: all 0.3s ease;
}
.zp-progress__step--active .zp-progress__number { border-color: var(--zp-primary); background: var(--zp-primary); color: #fff; }
.zp-progress__step--done .zp-progress__number { border-color: var(--zp-primary); background: var(--zp-surface); color: var(--zp-primary); }
.zp-progress__step--done .zp-progress__number::before { content: '✓'; font-size: 14px; font-weight: 900; }
.zp-progress__step--done .zp-progress__number span { display: none; }
.zp-progress__label { font-size: 13px; color: var(--zp-text-muted); font-weight: 600; text-align: center; }
.zp-progress__step--active .zp-progress__label, .zp-progress__step--done .zp-progress__label { color: var(--zp-primary); }

/* ============================================================
   SEKCJE (KROKI)
   ============================================================ */
.zp-step {
    background: var(--zp-surface); border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius-lg); box-shadow: var(--zp-shadow-sm);
    padding: 32px 40px; margin-bottom: 24px; animation: zpFadeIn 300ms ease forwards;
}
@keyframes zpFadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.zp-step__title { font-size: 22px; font-weight: 800; color: var(--zp-primary); margin: 0 0 24px; }

.zp-step__actions { display: flex; gap: 12px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--zp-border); }
.zp-step__actions--right { justify-content: flex-end; }
.zp-step__actions--split { justify-content: space-between; }
.zp-step__back { text-align: center; margin-top: 16px; }

/* ============================================================
   SKELETON LOADERS
   ============================================================ */
#zp-terms-loading, #zp-summary-loading { margin-bottom: 24px; }
.zp-skeleton-card { background: var(--zp-surface); border: 1px solid var(--zp-border); border-radius: var(--zp-radius-lg); padding: 20px; margin-bottom: 12px; display: flex; gap: 20px; align-items: center; }
.zp-skeleton-block { background: #e2e8f0; border-radius: 4px; height: 20px; animation: zpShimmer 1.5s infinite linear; background-image: linear-gradient(90deg, #e2e8f0 0px, #f1f5f9 40px, #e2e8f0 80px); background-size: 200% 100%; }
.zp-skeleton-date  { width: 60px; height: 44px; border-radius: 8px; }
.zp-skeleton-title { width: 50%; height: 20px; margin-bottom: 10px; }
.zp-skeleton-meta  { width: 30%; height: 14px; }
.zp-skeleton-btn   { width: 120px; height: 44px; border-radius: 8px; margin-left: auto; }
@keyframes zpShimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   PUSTY STAN (Brak terminów)
   ============================================================ */
.zp-empty { text-align: center; background: var(--zp-surface); border: 2px dashed var(--zp-border); border-radius: var(--zp-radius-lg); padding: 48px 24px; margin: 24px 0; }

/* ============================================================
   KARTY TERMINÓW (Zwarte i czytelne)
   ============================================================ */
.zp-terms-list { display: flex; flex-direction: column; gap: 12px; }
.zp-term-card {
    background: var(--zp-surface); border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius); padding: 16px 20px; display: flex; align-items: center; gap: 20px;
    cursor: pointer; transition: all var(--zp-transition);
}
.zp-term-card:hover { border-color: var(--zp-border-dark); box-shadow: var(--zp-shadow-sm); }
.zp-term-card--selected { border-color: var(--zp-primary) !important; background: #f8fafd; box-shadow: 0 0 0 1px var(--zp-primary) !important; }
.zp-term-card--waitlist { background: #fffdf5; border-color: #fceea7; }

.zp-term-card__inner { flex: 1; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.zp-term-card__dates { display: flex; align-items: flex-start; gap: 12px; min-width: 160px; }
.zp-term-card__date-icon { font-size: 20px; opacity: 0.7; margin-top: 2px; line-height: 1; }
.zp-term-card__dates strong { display: block; font-size: 15px; font-weight: 800; color: var(--zp-primary); line-height: 1.2; }
.zp-term-card__end { font-size: 12px; color: var(--zp-text-muted); margin-top: 2px; }

.zp-term-card__location { flex: 1; font-size: 13px; color: var(--zp-text-muted); line-height: 1.4; }
.zp-term-card__location strong { color: var(--zp-text-main); font-weight: 600; display: block; font-size: 14px; margin-bottom: 2px; }

.zp-term-card__meta { display: flex; align-items: center; gap: 20px; text-align: right; }
.zp-term-card__price { font-size: 18px; font-weight: 800; color: var(--zp-primary); line-height: 1; }
.zp-term-card__deposit { display: inline-block; font-size: 11px; font-weight: 600; color: var(--zp-text-muted); background: var(--zp-surface-idle); padding: 2px 8px; border-radius: 4px; margin-top: 4px; border: 1px solid var(--zp-border); }

.zp-places { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px; font-size: 12px; font-weight: 700; border: 1px solid transparent; }
.zp-places--ok { background: #eefcf4; color: #15803d; border-color: #bbf7d0; }
.zp-places--low { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.zp-places--waitlist { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.zp-btn--select-term { flex-shrink: 0; min-width: 120px; }

/* ============================================================
   B2C / B2B PRZEŁĄCZNIK
   ============================================================ */
.zp-b2c-b2b-switch { margin-bottom: 32px; }
.zp-b2c-b2b-switch__label { font-size: 13px; font-weight: 700; color: var(--zp-text-muted); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.zp-b2c-b2b-switch__options { display: flex; gap: 16px; }

.zp-radio-card {
    flex: 1; display: flex; align-items: flex-start; gap: 16px; padding: 16px;
    background: var(--zp-surface); border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius); cursor: pointer; transition: all var(--zp-transition);
}
.zp-radio-card:hover { border-color: var(--zp-border-dark); }
.zp-radio-card--active { border-color: var(--zp-primary); background: #f8fafd; box-shadow: 0 0 0 1px var(--zp-primary); }

.zp-radio-card__icon { 
    font-size: 24px; opacity: 0.8; flex-shrink: 0; margin-top: 2px; line-height: 1; 
}
.zp-radio-card__title { font-weight: 700; font-size: 15px; display: block; color: var(--zp-primary); margin-bottom: 2px; line-height: 1.2; }
.zp-radio-card__desc { font-size: 13px; color: var(--zp-text-muted); line-height: 1.4; display: block; }

/* ============================================================
   MULTI-STEP FORMULARZ I GRID
   ============================================================ */
.zp-form-progress { 
    display: flex; gap: 8px; margin-bottom: 24px; border-bottom: 1px solid var(--zp-border); padding-bottom: 16px;
    overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; 
}
.zp-form-progress::-webkit-scrollbar { display: none; }

.zp-form-step-indicator { 
    display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; 
    font-size: 13px; font-weight: 600; color: var(--zp-text-muted); 
    background: var(--zp-surface-idle); border-radius: 100px; border: 1px solid var(--zp-border); 
    flex-shrink: 0; white-space: nowrap; transition: all var(--zp-transition);
}
.zp-form-step-indicator__num { 
    width: 22px; height: 22px; border-radius: 50%; background: var(--zp-surface); 
    display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; border: 1px solid var(--zp-border); flex-shrink: 0; 
}
.zp-form-step-indicator--active { background: var(--zp-primary); color: #fff; border-color: var(--zp-primary); }
.zp-form-step-indicator--active .zp-form-step-indicator__num { color: var(--zp-primary); border-color: #fff; }
.zp-form-step-indicator--done { background: #eefcf4; color: #15803d; border-color: #bbf7d0; }
.zp-form-step-indicator--done .zp-form-step-indicator__num { background: transparent; border-color: transparent; }

.zp-form-step__title { font-size: 18px; font-weight: 800; color: var(--zp-primary); margin: 0 0 20px; }

/* 🟢 NAPRAWIONY GRID DLA PÓL 50%, 33% 🟢 */
.zp-fields-grid { display: flex; flex-wrap: wrap; margin: -10px; }
.zp-field-wrap { padding: 10px; transition: opacity var(--zp-transition); }
.zp-field-wrap__inner { display: flex; flex-direction: column; gap: 6px; }

.zp-label { font-size: 13px; font-weight: 700; color: var(--zp-text-main); }
.zp-required { color: var(--zp-danger); margin-left: 4px; }

.zp-input, .zp-textarea, .zp-select {
    width: 100%; padding: 10px 14px; border: 1px solid var(--zp-border-dark);
    border-radius: var(--zp-radius); font-size: 14px; font-family: inherit;
    color: var(--zp-text-main); background: var(--zp-surface); transition: all var(--zp-transition);
}
.zp-input:focus, .zp-textarea:focus, .zp-select:focus { border-color: var(--zp-primary); box-shadow: 0 0 0 3px rgba(26,58,92,.1); outline: none; }
.zp-textarea { min-height: 80px; resize: vertical; }

.zp-field-wrap--error .zp-input, .zp-field-wrap--error .zp-textarea, .zp-field-wrap--error .zp-select { border-color: var(--zp-danger); background: #fffcfc; box-shadow: 0 0 0 3px rgba(179,45,46,.1); animation: zpShake 400ms ease; }
@keyframes zpShake { 0%,100%{transform:translateX(0);} 25%{transform:translateX(-4px);} 75%{transform:translateX(4px);} }

.zp-field-error { font-size: 12px; font-weight: 600; color: var(--zp-danger); margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.zp-field-error::before { content: '⚠'; }
.zp-field-desc { font-size: 12px; color: var(--zp-text-muted); margin: 2px 0 0; }

.zp-nopesel { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 13px; cursor: pointer; }
.zp-field--off { opacity: .5; }

.zp-scrollbox { border: 1px solid var(--zp-border); border-radius: var(--zp-radius); padding: 16px; font-size: 12px; line-height: 1.6; color: var(--zp-text-muted); background: var(--zp-surface-idle); margin-bottom: 12px; overflow-y: auto; }
.zp-regulamin-label { padding: 12px 16px; background: var(--zp-surface-idle); border-radius: var(--zp-radius); border: 1px solid var(--zp-border); display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 600; transition: background var(--zp-transition); }
.zp-regulamin-label:hover { background: #eef2f6; }
.zp-regulamin-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--zp-primary); cursor: pointer; }
.zp-scroll-hint { font-size: 12px; color: var(--zp-warning); font-weight: 700; margin-top: 6px; }

/* ============================================================
   KROK 3: KOSZYK I PŁATNOŚĆ
   ============================================================ */
.zp-summary { display: grid; grid-template-columns: 1fr 340px; gap: 24px; margin-bottom: 32px; align-items: start; }
.zp-summary__section { background: var(--zp-surface-idle); border: 1px solid var(--zp-border); border-radius: var(--zp-radius); padding: 24px; margin-bottom: 24px; }
.zp-summary__section:last-child { margin-bottom: 0; }
.zp-summary__section h3 { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 800; color: var(--zp-text-muted); margin: 0 0 16px; }

.zp-summary__section--price { background: var(--zp-primary); color: #fff; border: none; box-shadow: var(--zp-shadow-md); }
.zp-summary__section--price h3 { color: rgba(255,255,255,0.6); }

.zp-price-breakdown { display: flex; flex-direction: column; gap: 12px; }
.zp-price-total { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.zp-price-total span { font-size: 13px; opacity: 0.9; }
.zp-price-total strong { font-size: 28px; font-weight: 800; line-height: 1; }

.zp-payment-options { display: flex; flex-direction: column; gap: 10px; }
.zp-payment-options h3 { font-size: 16px; font-weight: 800; color: var(--zp-primary); margin: 0 0 12px; }

/* Karta płatności */
.zp-payment-card { display: block; cursor: pointer; position: relative; }
.zp-payment-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.zp-payment-card__inner {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 16px;
    background: var(--zp-surface);
    border: 1.5px solid var(--zp-border);
    border-radius: var(--zp-radius);
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.zp-payment-card:hover .zp-payment-card__inner { border-color: var(--zp-border-dark); background: #fafbfc; }
.zp-payment-card--active .zp-payment-card__inner {
    border-color: var(--zp-primary);
    background: #f0f5fc;
    box-shadow: 0 0 0 1px var(--zp-primary);
}

/* Ikona i treść */
.zp-payment-card__icon { color: var(--zp-text-muted); flex-shrink: 0; transition: color 0.15s; }
.zp-payment-card--active .zp-payment-card__icon { color: var(--zp-primary); }
.zp-payment-card__inner > div:not(.zp-payment-card__check) { flex: 1; min-width: 0; }
.zp-payment-card__inner strong { display: block; font-size: 14px; font-weight: 700; color: var(--zp-text-main); margin-bottom: 1px; }
.zp-payment-card--active .zp-payment-card__inner strong { color: var(--zp-primary); }
.zp-payment-card__inner p { margin: 0; font-size: 12px; color: var(--zp-text-muted); line-height: 1.4; }

/* Kwota – tylko zadatek ma label "Do zapłaty teraz" */
.zp-payment-card__amount { display: block; font-size: 17px; font-weight: 800; color: var(--zp-accent-ink); margin: 5px 0 0; }
#zp-pay-deposit-option .zp-payment-card__amount::before {
    content: 'Do zapłaty teraz: ';
    display: block; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--zp-text-muted); margin-bottom: 2px;
}
.zp-payment-card__remainder { margin-top: 7px; padding-top: 7px; border-top: 1px dashed var(--zp-border); font-size: 12px; color: var(--zp-text-muted); }

/* Checkmark circle ✓ */
.zp-payment-card__check {
    width: 22px; height: 22px; flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--zp-border-dark);
    position: relative;
    transition: background 0.15s, border-color 0.15s;
}
.zp-payment-card--active .zp-payment-card__check {
    background: var(--zp-primary);
    border-color: var(--zp-primary);
}
.zp-payment-card--active .zp-payment-card__check::after {
    content: '';
    position: absolute;
    top: 3px; left: 6px;
    width: 6px; height: 9px;
    border: 2px solid #fff;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

/* ============================================================
   PRZYCISKI
   ============================================================ */
.zp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--zp-radius); font-size: 14px; font-weight: 700;
    cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: all var(--zp-transition); line-height: 1.2;
}
.zp-btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.zp-btn--primary { background: var(--zp-primary); color: #fff; border-color: var(--zp-primary); }
.zp-btn--primary:hover { background: var(--zp-primary-light); border-color: var(--zp-primary-light); box-shadow: var(--zp-shadow-sm); transform: translateY(-1px); }
.zp-btn--outline { background: var(--zp-surface); color: var(--zp-primary); border-color: var(--zp-border-dark); }
.zp-btn--outline:hover { border-color: var(--zp-primary); color: var(--zp-primary); background: #f8fafd; }
.zp-btn--ghost { background: transparent; color: var(--zp-text-muted); }
.zp-btn--ghost:hover { background: var(--zp-surface-idle); color: var(--zp-text-main); }
.zp-btn--lg { padding: 14px 32px; font-size: 16px; }
.zp-btn-link { background: none; border: none; padding: 0; color: var(--zp-text-muted); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: color var(--zp-transition); }
.zp-btn-link:hover { color: var(--zp-primary); }

/* ============================================================
   EKRAN SUKCESU
   ============================================================ */
.zp-success {
    text-align: center;
    padding: 48px 32px 40px;
    background: var(--zp-surface);
    border-radius: var(--zp-radius-lg);
    border: 1px solid var(--zp-border);
    box-shadow: var(--zp-shadow-md);
    animation: zpFadeIn 400ms ease;
    max-width: 640px;
    margin: 0 auto;
}

/* Animowana ikona ✓ */
.zp-success__badge {
    width: 80px; height: 80px;
    margin: 0 auto 24px;
    animation: zpScaleIn 500ms cubic-bezier(.34,1.56,.64,1) backwards;
}
.zp-success__svg { width: 80px; height: 80px; display: block; }
.zp-success__circle {
    fill: none;
    stroke: var(--zp-success);
    stroke-dasharray: 157;
    stroke-dashoffset: 157;
    animation: zpCircleDraw 600ms ease forwards;
    animation-delay: 100ms;
}
.zp-success__check {
    fill: none;
    stroke: var(--zp-success);
    stroke-dasharray: 40;
    stroke-dashoffset: 40;
    animation: zpCheckDraw 350ms ease forwards;
    animation-delay: 650ms;
}
@keyframes zpCircleDraw { to { stroke-dashoffset: 0; } }
@keyframes zpCheckDraw  { to { stroke-dashoffset: 0; } }
@keyframes zpScaleIn    { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }

.zp-success__title {
    font-size: 28px; font-weight: 800;
    color: var(--zp-primary);
    margin: 0 0 8px;
}
.zp-success__sub {
    font-size: 15px;
    color: var(--zp-text-muted);
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Karta skrótu zamówienia */
.zp-success__recap {
    background: var(--zp-surface-idle);
    border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius);
    padding: 16px 20px;
    margin: 0 0 28px;
    text-align: left;
}
.zp-success__recap-row {
    display: flex; align-items: baseline; gap: 10px;
    font-size: 14px; color: var(--zp-text-main);
    padding: 5px 0;
    border-bottom: 1px solid var(--zp-border);
}
.zp-success__recap-row:last-child { border-bottom: none; padding-bottom: 0; }
.zp-success__recap-icon { font-style: normal; flex-shrink: 0; }

/* Oś czasu "Co dalej?" */
.zp-success__next { text-align: left; margin-bottom: 28px; }
/* Blok aplikacji kursanta — ta sama oprawa co „Co dalej?", plus zdanie wprowadzające. */
.zp-success__portal { text-align: left; margin-bottom: 28px; }
.zp-success__portal-lead { margin: 0 0 14px; font-size: 13px; color: var(--zp-text-muted); line-height: 1.5; }
.zp-success__next-title {
    font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--zp-text-muted);
    margin: 0 0 16px;
}
.zp-success__timeline {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 0;
}
.zp-success__tl-item {
    display: flex; gap: 14px;
    padding-bottom: 16px;
    position: relative;
}
.zp-success__tl-item:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 14px; top: 28px;
    bottom: 0;
    width: 2px;
    background: var(--zp-border);
}
.zp-success__tl-num {
    width: 28px; height: 28px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--zp-primary);
    color: #fff;
    font-size: 13px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    position: relative; z-index: 1;
}
.zp-success__tl-body {
    display: flex; flex-direction: column; gap: 2px;
    padding-top: 4px;
}
.zp-success__tl-body strong {
    font-size: 14px; font-weight: 700; color: var(--zp-text-main);
}
.zp-success__tl-body span {
    font-size: 13px; color: var(--zp-text-muted); line-height: 1.5;
}
.zp-success__tl-body span strong {
    color: var(--zp-primary); font-size: 13px;
}

/* Przyciski akcji */
.zp-success__actions {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: 10px;
}

@keyframes zpBounceIn { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

.zp-alert { padding: 14px 18px; border-radius: var(--zp-radius); font-size: 14px; font-weight: 600; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; animation: zpFadeIn 300ms ease; }
.zp-alert--error   { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
.zp-alert--warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.zp-alert--info    { background: #eef3f9; border: 1px solid #a8c8f0; color: #1a3a5c; }

/* Firma większa niż wolne miejsca — informacja z kontaktem biura (ścieżka do sprzedaży, nie błąd). */
.zp-seat-notice-slot { flex: 1 1 100%; padding: 0 10px 10px; }
.zp-seat-notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 16px;
    background: var(--zp-info-soft); border: 1px solid var(--zp-border); border-left: 3px solid var(--zp-blue);
    border-radius: var(--zp-radius); color: var(--zp-text-main); font-size: 14px; line-height: 1.5;
    animation: zpFadeIn 300ms ease;
}
.zp-seat-notice-slot .zp-seat-notice { margin-bottom: 0; }
.zp-seat-notice:focus { outline: none; } /* fokus przenoszony programowo (czytniki ekranu), bez podwójnej ramki */
.zp-seat-notice__icon { flex-shrink: 0; display: flex; color: var(--zp-blue); margin-top: 1px; }
.zp-seat-notice__body { flex: 1; min-width: 0; }
.zp-seat-notice__msg { margin: 0; font-weight: 600; }
.zp-seat-notice__contact { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; margin-top: 10px; }
.zp-seat-notice__who { flex-basis: 100%; font-size: 13px; color: var(--zp-text-muted); }
.zp-seat-notice__link {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
    font-weight: 700; color: var(--zp-blue); text-decoration: none; overflow-wrap: anywhere;
}
.zp-seat-notice__link:hover, .zp-seat-notice__link:focus-visible { text-decoration: underline; }
.zp-seat-notice__change { margin-top: 8px; padding-left: 0; }

/* ============================================================
   ODZNAKI (badge) – przeniesione do assets/public/css/zp-frontend.css
   (tokenizowane, wspólne dla enrollment/status/portal).
   ============================================================ */

/* Przycisk SM */
.zp-btn--sm { padding: 6px 14px; font-size: 12px; }

/* ============================================================
   MATERIAŁY – wspólne dla status page i portalu
   ============================================================ */
.zp-materials-list { list-style: none; margin: 0; padding: 0; }
.zp-material-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 10px; margin: 0 -10px;
    border-bottom: 1px solid var(--zp-border);
    border-radius: var(--zp-radius);
    transition: background var(--zp-dur-base) var(--zp-ease);
}
.zp-material-item:hover { background: var(--zp-surface-2); }
.zp-material-item:last-child { border-bottom: none; }
.zp-material-icon {
    flex-shrink: 0; width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--zp-surface-2); border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius); color: var(--zp-primary);
}
.zp-material-info { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.zp-material-title { font-size: 14px; font-weight: 600; color: var(--zp-primary); text-decoration: none; }
.zp-material-title:hover { text-decoration: underline; }
.zp-material-desc { font-size: 12px; color: var(--zp-text-muted); }
.zp-material-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.zp-material-cat { font-size: 11px; background: var(--zp-surface-2); border: 1px solid var(--zp-border); color: var(--zp-text-muted); padding: 1px 8px; border-radius: var(--zp-r-pill, 99px); display: inline-block; }
.zp-material-size { font-size: 11px; color: var(--zp-text-light, var(--zp-text-l)); font-variant-numeric: tabular-nums; }
.zp-material-action { flex-shrink: 0; color: var(--zp-text-light, var(--zp-text-l)); display: inline-flex; }
.zp-material-item:hover .zp-material-action { color: var(--zp-accent-ink); }

/* Status Page (Standalone) */
.zp-status-page { max-width: 600px; margin: 0 auto; }
.zp-status-header { text-align: center; padding: 40px 24px; border-radius: var(--zp-radius-lg); margin-bottom: 24px; animation: zpFadeIn 300ms ease; }
.zp-status-header--success { background: linear-gradient(135deg, #e6f7ed, #d0f0e0); border: 1px solid #8ad4aa; }
.zp-status-header--error   { background: linear-gradient(135deg, #fdf0f0, #fce0e0); border: 1px solid #f3baba; }
.zp-status-header--warning { background: linear-gradient(135deg, #fffaeb, #fff3cc); border: 1px solid #f0dc8a; }
.zp-status-header--info    { background: linear-gradient(135deg, #f4f8fc, #e8f0f8); border: 1px solid #a8c8f0; }

.zp-status-icon { margin-bottom: 16px; line-height: 1; animation: zpBounceIn 500ms cubic-bezier(.34,1.56,.64,1); }
.zp-status-header h1 { font-size: 24px; font-weight: 800; margin: 0 0 8px; color: var(--zp-primary); }
.zp-status-header p { font-size: 15px; color: var(--zp-text-muted); margin: 0; }
.zp-status-card { background: var(--zp-surface); border: 1px solid var(--zp-border); border-radius: var(--zp-radius-lg); padding: 24px; margin-bottom: 20px; box-shadow: var(--zp-shadow-sm); }
.zp-status-card h2 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--zp-text-muted); margin: 0 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--zp-border); }

/* Oś „Co dalej?" – ścieżka zapis → płatność → kurs */
.zp-timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.zp-timeline::before { content: ''; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 2px; background: var(--zp-border); }
.zp-timeline__step { display: flex; gap: 14px; padding-bottom: 18px; }
.zp-timeline__step:last-child { padding-bottom: 0; }
.zp-timeline__marker {
    position: relative; z-index: 1; flex: none; width: 32px; height: 32px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--zp-surface-2); border: 2px solid var(--zp-border); color: var(--zp-text-muted);
}
.zp-timeline__step.is-done .zp-timeline__marker    { background: var(--zp-success-soft); border-color: var(--zp-success); color: var(--zp-success); }
.zp-timeline__step.is-current .zp-timeline__marker { background: var(--zp-accent-soft);  border-color: var(--zp-accent-ink);  color: var(--zp-accent-ink); }
.zp-timeline__step.is-error .zp-timeline__marker   { background: var(--zp-danger-soft);  border-color: var(--zp-danger);  color: var(--zp-danger); }
.zp-timeline__step.is-upcoming .zp-timeline__marker::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--zp-text-light, var(--zp-text-l)); }
.zp-timeline__body { padding-top: 4px; min-width: 0; }
.zp-timeline__title { display: block; font-size: 15px; font-weight: 600; color: var(--zp-text-main); }
.zp-timeline__step.is-current .zp-timeline__title { font-weight: 700; }
.zp-timeline__step.is-upcoming .zp-timeline__title { color: var(--zp-text-muted); }
.zp-timeline__meta { display: block; font-size: 13px; color: var(--zp-text-muted); margin-top: 2px; line-height: 1.5; }
.zp-status-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

/* Reset stylów WP/motywu: border na komórkach i prążkowanie */
.zp-status-table td,
.zp-status-table th { border: 0; }
.zp-status-table tbody tr:nth-child(odd) > td,
.zp-status-table tbody tr:nth-child(odd) > th { background-color: transparent; }

/* Data grid: nagłówki kolumn (gdy jest <thead>) */
.zp-status-table thead th {
    padding: 9px 12px;
    background: linear-gradient(180deg, #f0f5fc 0%, #e8f0f8 100%);
    color: var(--zp-text-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 2px solid var(--zp-border-dark);
    text-align: left;
    white-space: nowrap;
}

/* Label:value: kolumna etykiety (th w tbody bez thead) */
.zp-status-table tbody th {
    width: 38%;
    padding: 10px 14px 10px 0;
    color: var(--zp-text-muted);
    font-weight: 600;
    font-size: 13px;
    vertical-align: top;
    border-bottom: 1px solid var(--zp-border);
}

/* Kolumna wartości + komórki data grid */
.zp-status-table tbody td {
    padding: 10px 8px;
    color: var(--zp-text-main);
    vertical-align: top;
    border-bottom: 1px solid var(--zp-border);
}

/* Hover na wierszach data grid */
.zp-status-table thead + tbody tr:hover td {
    background: var(--zp-surface-idle);
}

/* Ostatni wiersz bez dolnej krawędzi */
.zp-status-table tbody tr:last-child th,
.zp-status-table tbody tr:last-child td { border-bottom: none; }

/* ---- Tabela uczestników B2B ---- */
.zp-att-table .zp-att-col--num { width: 36px; }
.zp-att-table .zp-att-num {
    color: var(--zp-text-muted);
    font-size: 12px;
    font-weight: 600;
}
.zp-att-table .zp-att-email {
    font-size: 13px;
    color: var(--zp-text-muted);
}
.zp-att-table tr.zp-att-extra td {
    background: var(--zp-surface-idle);
    border-bottom: 1px solid var(--zp-border);
    font-size: 12px;
    color: var(--zp-text-muted);
    padding: 5px 8px;
}
.zp-att-table tr.zp-att-extra:last-child td { border-bottom: none; }
.zp-renew-section { background: #fff8f5; border: 1px solid #fcc0a0; border-radius: var(--zp-radius-lg); padding: 24px; text-align: center; margin-top: 24px; }
.zp-renew-section h3 { font-size: 18px; font-weight: 800; color: var(--zp-accent-ink); margin: 0 0 8px; }
.zp-renew-section p { color: var(--zp-text-muted); margin: 0 0 20px; font-size: 14px; }

.zp-status-actions { margin-top: 8px; }
.zp-success-actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
.zp-status-footer { text-align: center; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--zp-border); }
.zp-token-ref { color: var(--zp-text-muted); font-size: 12px; }
.zp-token-ref code { background: var(--zp-surface-idle); padding: 2px 6px; border-radius: 4px; border: 1px solid var(--zp-border); font-size: 11px; }

/* ============================================================
   RESPONSYWNOŚĆ (Mobile-first overrides)
   ============================================================ */
@media (max-width: 768px) {
    .zp-enrollment { padding: 0; }
    .zp-step { padding: 24px 20px; }
    
    /* 🟢 NAPRAWIONY GRID NA TELEFONACH (1 KOLUMNA) 🟢 */
    .zp-field-wrap { flex: 0 0 100% !important; max-width: 100% !important; }

    /* Karty na mobile */
    .zp-term-card { flex-direction: column; align-items: flex-start; gap: 16px; padding: 16px; }
    .zp-term-card__meta { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; }
    .zp-term-card__dates { min-width: 100%; }
    .zp-btn--select-term { width: 100%; }

    /* 🟢 B2C / B2B KARTY ZWARTE POZIOMO 🟢 */
    .zp-b2c-b2b-switch__options { flex-direction: column; gap: 10px; }
    .zp-radio-card { padding: 12px 16px; gap: 12px; align-items: center; flex-direction: row; }
    .zp-radio-card__icon { margin-top: 0; font-size: 28px; }
    .zp-radio-card__desc { display: inline-block; }

    /* Koszyk na mobile */
    .zp-summary { grid-template-columns: 1fr; gap: 16px; }
    .zp-summary__section { padding: 20px; margin-bottom: 16px; }
    .zp-payment-card__inner { flex-direction: column; text-align: center; gap: 12px; padding: 20px; }
    .zp-payment-card__icon { font-size: 32px; }

    .zp-step__actions { flex-direction: column-reverse; gap: 12px; }
    .zp-btn { width: 100%; justify-content: center; }

    .zp-status-header { padding: 32px 20px; }
    .zp-status-table thead { display: none; }
    .zp-status-table tbody tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--zp-border); }
    .zp-status-table tbody tr:last-child { border-bottom: none; }
    .zp-status-table tbody th,
    .zp-status-table tbody td { display: block; width: 100%; padding: 2px 0; border: none; }
    .zp-status-table tbody th { padding-top: 10px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; }
}

/* ============================================================
   OSK NEXT TERM – [zp_next_term] hero/card/banner
   ============================================================ */

.zp-next-term {
    /* Tokeny z zp-tokens.css (jedno źródło + przyjazny lift + gotowość dark-mode).
       Lokalne aliasy --nt-* mapują na wspólne, więc reguły niżej działają bez zmian. */
    --nt-primary:    var(--zp-primary);
    --nt-primary-l:  var(--zp-primary-light);
    /* Alias naprawiony U ŹRÓDŁA, nie w miejscach użycia: to jest kontekst na JASNYM tle,
       a surowy cyan ma tam 2,1:1 — niewidoczny jako tekst i jako cienka kreska. Wariant
       przyciemniony ma 10,1:1. Naprawa u źródła sprawia, że przyszłe użycia aliasu
       dziedziczą bezpieczną wartość, zamiast powtarzać tę samą pomyłkę. */
    --nt-accent:     var(--zp-accent-ink);
    --nt-success:    var(--zp-success);
    --nt-warning:    var(--zp-warning);
    --nt-danger:     var(--zp-red);
    --nt-border:     var(--zp-border);
    --nt-text:       var(--zp-text-main);
    --nt-muted:      var(--zp-text-muted);
    --nt-surface:    var(--zp-surface);
    --nt-radius:     var(--zp-radius-lg);
    --nt-shadow:     var(--zp-shadow-sm);
    font-family: var(--zp-font);
    line-height: 1.5;
}
.zp-next-term *, .zp-next-term *::before, .zp-next-term *::after { box-sizing: border-box; }

/* ---- Badges (warianty next-term; spójne z .zp-badge) ---- */
.zp-nt-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: var(--zp-r-pill, 99px);
    font-size: 12px; font-weight: 700; letter-spacing: .02em;
    white-space: nowrap;
}
.zp-nt-badge--ok       { background: var(--zp-success-soft); color: var(--zp-green); }
.zp-nt-badge--low      { background: var(--zp-warning-soft); color: var(--zp-warning); }
.zp-nt-badge--waitlist { background: var(--zp-info-soft);    color: var(--zp-blue); }
.zp-nt-badge--full     { background: var(--zp-gray-soft);    color: var(--zp-gray); }

/* ============================================================
   CARD (domyślny styl)
   ============================================================ */
.zp-nt-card {
    display: block;
    background: var(--nt-surface);
    border: 1px solid var(--nt-border);
    border-radius: var(--nt-radius);
    box-shadow: var(--nt-shadow);
    overflow: hidden;
    transition: box-shadow var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
    text-decoration: none; color: inherit;
}
.zp-nt-card:hover {
    box-shadow: var(--zp-shadow-md);
    transform: translateY(-2px);
}
.zp-nt-card--urgent { border-left: 4px solid var(--nt-warning); }

.zp-nt-card__header {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
    padding: 12px 20px;
    background: var(--zp-surface-2);
    border-bottom: 1px solid var(--nt-border);
}
.zp-nt-card__label {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--nt-muted);
}

.zp-nt-card__body {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; flex-wrap: wrap;
    padding: 20px 24px;
}

.zp-nt-card__dates { flex: 1; min-width: 200px; }

.zp-nt-card__date-main {
    font-size: 20px; font-weight: 700; color: var(--nt-primary);
    margin-bottom: 6px;
}
.zp-nt-card__location {
    display: flex; align-items: flex-start; gap: 5px;
    font-size: 13px; color: var(--nt-muted);
}
.zp-nt-card__location svg { flex-shrink: 0; margin-top: 2px; }
.zp-nt-card__location small { display: block; font-size: 12px; color: var(--nt-muted); }

.zp-nt-card__actions {
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    flex-shrink: 0;
}
.zp-nt-card__price {
    text-align: right; font-size: 13px; color: var(--nt-muted);
}
.zp-nt-card__price strong { font-size: 18px; color: var(--nt-text); }
.zp-nt-card__price small  { display: block; font-size: 11px; color: var(--nt-muted); }
.zp-nt-card__deposit { margin-top: 6px; }

.zp-nt-card__cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    background: var(--zp-accent-ink); /* cyan pod BIALYM napisem ma 2,1:1 — pod tekst idzie ciemny wariant */
    color: #fff; font-size: 14px; font-weight: 700;
    border-radius: var(--zp-radius); text-decoration: none;
    transition: background var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
    white-space: nowrap;
}
.zp-nt-card__cta:hover { background: var(--zp-navy); transform: translateX(2px); color: #fff; }
.zp-nt-card__cta:active { transform: scale(.97); }
.zp-nt-card__cta svg   { transition: transform var(--zp-dur-base) var(--zp-ease); }
.zp-nt-card__cta:hover svg { transform: translateX(3px); }

/* ============================================================
   HERO
   ============================================================ */
.zp-nt-hero {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; flex-wrap: wrap;
    padding: 40px 48px;
    background: linear-gradient(135deg, var(--zp-navy) 0%, var(--zp-navy-mid) 60%, var(--zp-navy-light) 100%);
    border-radius: var(--zp-radius-lg);
    color: #fff;
    position: relative; overflow: hidden;
}
.zp-nt-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at 80% 50%, rgba(232,96,10,.15) 0%, transparent 60%);
    pointer-events: none;
}

.zp-nt-hero__left  { flex: 1; min-width: 260px; position: relative; }
.zp-nt-hero__right { flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 16px; position: relative; }

.zp-nt-hero__eyebrow {
    font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
    color: rgba(255,255,255,.55); margin: 0 0 16px;
}

.zp-nt-hero__date-block { display: flex; align-items: flex-start; gap: 20px; }

.zp-nt-hero__cal {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18);
    border-radius: 10px; padding: 10px 14px; min-width: 60px;
    backdrop-filter: blur(4px);
}
.zp-nt-hero__cal-month {
    font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
    color: var(--nt-accent); line-height: 1;
}
.zp-nt-hero__cal-day   { font-size: 32px; font-weight: 900; line-height: 1; color: #fff; }
.zp-nt-hero__cal-year  { font-size: 10px; color: rgba(255,255,255,.5); margin-top: 2px; }

.zp-nt-hero__date-info { display: flex; flex-direction: column; gap: 5px; }
.zp-nt-hero__weekday   { font-size: 14px; color: rgba(255,255,255,.7); }
.zp-nt-hero__range     { font-size: 20px; font-weight: 700; color: #fff; }
.zp-nt-hero__location  {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; color: rgba(255,255,255,.6);
}

.zp-nt-hero__badge { font-size: 13px; font-weight: 700; }

.zp-nt-hero__price {
    font-size: 14px; color: rgba(255,255,255,.7); text-align: right;
}
.zp-nt-hero__price strong { font-size: 26px; font-weight: 900; color: #fff; display: block; line-height: 1; }
.zp-nt-hero__price span   { font-size: 12px; color: rgba(255,255,255,.55); }
.zp-nt-hero__deposit { margin-top: 8px; }

.zp-nt-hero__cta {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    background: var(--nt-accent); color: var(--zp-navy); /* NIGDY bialy napis na cyanie (2,1:1); granat na cyanie = 7,4:1 */
    font-size: 15px; font-weight: 800;
    border-radius: var(--zp-radius); text-decoration: none;
    transition: background var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
    box-shadow: 0 4px 16px rgba(232,96,10,.4);
    white-space: nowrap;
}
.zp-nt-hero__cta:hover { background: var(--zp-accent-hover); transform: translateY(-2px); color: var(--zp-navy); }
.zp-nt-hero__cta:active { transform: scale(.98); }
.zp-nt-hero__cta svg   { transition: transform 150ms ease; }
.zp-nt-hero__cta:hover svg { transform: translateX(4px); }

.zp-nt-hero__note { font-size: 11px; color: rgba(255,255,255,.45); margin: 0; text-align: right; }

/* ============================================================
   BANNER
   ============================================================ */
.zp-nt-banner {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding: 12px 20px;
    background: var(--zp-info-soft); border: 1px solid var(--zp-border);
    border-radius: var(--zp-radius); border-left: 3px solid var(--zp-blue);
    font-size: 13px; color: var(--nt-text);
    transition: box-shadow var(--zp-dur-base) var(--zp-ease);
}
.zp-nt-banner:hover { box-shadow: var(--zp-shadow-sm); }
.zp-nt-banner--urgent {
    background: var(--zp-warning-soft); border-color: var(--zp-border); border-left-color: var(--zp-warning); /* „ostatnie miejsca" to ostrzezenie, a nie kolor marki */
}
.zp-nt-banner__icon {
    flex-shrink: 0; color: var(--nt-primary-l); display: flex;
}
.zp-nt-banner__info { flex: 1; min-width: 200px; }
.zp-nt-banner__sep  { color: var(--nt-muted); margin: 0 4px; }
.zp-nt-banner__urgency--low      { color: var(--nt-warning); font-weight: 700; }
.zp-nt-banner__urgency--waitlist { color: var(--zp-blue); font-weight: 700; }
.zp-nt-banner__price { font-size: 13px; font-weight: 700; color: var(--nt-primary); flex-shrink: 0; }
.zp-nt-banner__cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: var(--nt-primary); color: #fff;
    font-size: 13px; font-weight: 700;
    border-radius: var(--zp-radius); text-decoration: none; flex-shrink: 0;
    transition: background var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
}
.zp-nt-banner__cta:hover { background: var(--nt-primary-l); color: #fff; }
.zp-nt-banner__cta:active { transform: scale(.97); }

/* ============================================================
   MICRO (kompakt – sidebar / widget)
   ============================================================ */
.zp-nt-micro {
    display: flex; flex-direction: column; gap: 6px;
    padding: 14px 16px;
    background: var(--nt-surface); border: 1px solid var(--nt-border);
    /* Kreska 3px na prawie białym tle: surowy cyan dawał tu 2,1:1, czyli poniżej progu 3:1,
       jaki WCAG stawia obiektom graficznym. Pasek po prostu znikał. */
    border-radius: var(--nt-radius); border-left: 3px solid var(--nt-accent);
    box-shadow: var(--zp-shadow-sm);
    text-decoration: none; color: var(--nt-text);
    transition: box-shadow var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
}
.zp-nt-micro:hover { box-shadow: var(--zp-shadow-md); transform: translateY(-2px); }
.zp-nt-micro--urgent { border-left-color: var(--zp-warning); }
.zp-nt-micro__label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
    color: var(--nt-muted);
}
.zp-nt-micro__date { font-size: 16px; font-weight: 800; color: var(--nt-primary); line-height: 1.2; }
.zp-nt-micro__meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.zp-nt-micro__price { font-size: 13px; font-weight: 700; color: var(--nt-text); font-variant-numeric: tabular-nums; }
.zp-nt-micro__cta {
    display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
    margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--nt-accent);
    transition: gap var(--zp-dur-base) var(--zp-ease);
}
.zp-nt-micro:hover .zp-nt-micro__cta { gap: 9px; }

/* ============================================================
   EMPTY (brak terminów)
   ============================================================ */
.zp-nt-empty {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 20px;
    background: var(--zp-surface-2); border: 1px dashed var(--nt-border);
    border-radius: var(--zp-radius);
    font-size: 13px; color: var(--nt-muted);
}
.zp-nt-empty svg { flex-shrink: 0; opacity: .5; }
.zp-nt-empty__text a { color: var(--nt-primary); text-decoration: none; font-weight: 600; }
.zp-nt-empty__text a:hover { text-decoration: underline; }

/* ---- Hero empty ---- */
.zp-nt-empty--hero {
    padding: 40px; justify-content: center; background: var(--zp-surface-2); border-radius: var(--zp-radius-lg);
    border-style: dashed;
}

/* ============================================================
   RESPONSYWNOŚĆ next-term
   ============================================================ */
@media (max-width: 768px) {
    .zp-nt-card__body   { flex-direction: column; align-items: flex-start; padding: 16px 18px; }
    .zp-nt-card__actions { align-items: flex-start; width: 100%; }
    .zp-nt-card__cta    { width: 100%; justify-content: center; }

    .zp-nt-hero { padding: 28px 24px; gap: 28px; }
    .zp-nt-hero__right  { align-items: flex-start; width: 100%; }
    .zp-nt-hero__cta    { width: 100%; justify-content: center; }
    .zp-nt-hero__note   { text-align: left; }
    .zp-nt-hero__price  { text-align: left; }

    .zp-nt-banner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .zp-nt-banner__cta { width: 100%; text-align: center; }
}

/* Karta terminu miesięcznego w enrollment wizardzie */
.zp-term-card--monthly .zp-term-card__date-icon { font-size: 18px; }
.zp-term-card__end--monthly { font-size: 11px; font-style: italic; color: var(--zp-text-muted); }

/* ============================================================
   OSK SCHEDULE / CALENDAR – [zp_schedule] i [zp_calendar]
   ============================================================ */

.zp-schedule {
    /* Tokeny z zp-tokens.css (jedno źródło + przyjazny lift + gotowość dark-mode).
       Lokalne aliasy --sc-* mapują na wspólne, więc reguły niżej działają bez zmian. */
    --sc-primary:   var(--zp-primary);
    --sc-primary-l: var(--zp-primary-light);
    --sc-accent:    var(--zp-accent-ink); /* uzywany jako WYPELNIENIE pod bialym napisem — musi byc ciemny */
    --sc-success:   var(--zp-success);
    --sc-warning:   var(--zp-warning);
    --sc-border:    var(--zp-border);
    --sc-surface:   var(--zp-surface);
    --sc-bg:        var(--zp-surface-2);
    --sc-text:      var(--zp-text-main);
    --sc-muted:     var(--zp-text-muted);
    --sc-radius:    var(--zp-radius-lg);
    font-family: var(--zp-font);
    color: var(--sc-text);
    font-size: 15px;
    line-height: 1.5;
}
.zp-schedule *, .zp-schedule *::before, .zp-schedule *::after { box-sizing: border-box; }

/* Nagłówek sekcji */
.zp-schedule__title {
    font-size: 22px; font-weight: 800; color: var(--sc-primary);
    margin: 0 0 24px; padding-bottom: 12px;
    border-bottom: 2px solid var(--sc-primary);
}

/* ---- Miesiąc (schedule) ---- */
.zp-schedule__month { margin-bottom: 32px; }

.zp-schedule__month-header {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--sc-border);
}
.zp-schedule__month-name {
    font-size: 16px; font-weight: 800; color: var(--sc-primary);
    text-transform: uppercase; letter-spacing: .04em;
}
.zp-schedule__month-count {
    font-size: 12px; color: var(--sc-muted); font-weight: 600;
}

/* ---- Miesiąc (calendar) ---- */
.zp-schedule__month-count-bar {
    font-size: 12px; color: var(--sc-muted); font-weight: 600;
    margin-bottom: 12px; text-align: right;
}

/* ---- Lista terminów ---- */
.zp-schedule__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 8px;
}

/* ---- Wiersz terminu ---- */
.zp-schedule__item {
    display: grid;
    grid-template-columns: 100px 1fr auto auto;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: var(--sc-surface);
    border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    box-shadow: var(--zp-shadow-sm);
    transition: border-color var(--zp-dur-base) var(--zp-ease), box-shadow var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-base) var(--zp-ease);
}
.zp-schedule__item:hover {
    border-color: var(--zp-border-dark);
    box-shadow: var(--zp-shadow-md);
    transform: translateY(-2px);
}
.zp-schedule__item--waitlist { border-left: 3px solid var(--zp-blue); }
.zp-schedule__item--full     { border-left: 3px solid var(--zp-text-l); opacity: .7; }
.zp-schedule__item--today    { border-left: 3px solid var(--sc-accent); background: var(--zp-accent-soft); }

/* Data */
.zp-schedule__date { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.zp-schedule__day  { font-size: 14px; font-weight: 700; color: var(--sc-primary); white-space: nowrap; }
.zp-schedule__today-tag {
    display: inline-flex; align-items: center;
    padding: 1px 8px; border-radius: var(--zp-r-pill, 99px);
    background: var(--sc-accent); color: #fff;
    font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
}

/* Info */
.zp-schedule__info {
    min-width: 0; display: flex; flex-direction: column; gap: 3px;
}
.zp-schedule__course-name { font-size: 14px; font-weight: 700; color: var(--sc-text); }
.zp-schedule__location     {
    display: flex; align-items: center; gap: 4px;
    font-size: 12px; color: var(--sc-muted);
}
.zp-schedule__location svg { flex-shrink: 0; }

/* Meta */
.zp-schedule__meta {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
    flex-shrink: 0;
}
.zp-schedule__price { font-size: 12px; font-weight: 700; color: var(--sc-primary); white-space: nowrap; }

/* Badges (reużywa .zp-nt-badge z next-term) */
.zp-nt-badge--full { background: var(--zp-gray-soft); color: var(--zp-gray); }

/* Mini-pasek pojemności (ostatnie miejsca) */
.zp-schedule__capacity { width: 100%; max-width: 120px; }
.zp-schedule__capacity-bar { height: 5px; background: var(--zp-surface-2); border: 1px solid var(--zp-border); border-radius: var(--zp-r-pill, 99px); overflow: hidden; }
.zp-schedule__capacity-fill { height: 100%; background: var(--zp-success); border-radius: var(--zp-r-pill, 99px); transition: width var(--zp-dur-slow) var(--zp-ease); }
.zp-schedule__capacity-fill--low { background: var(--zp-warning); }

/* CTA */
.zp-schedule__cta-wrap { flex-shrink: 0; }

.zp-schedule__cta {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 16px;
    background: var(--sc-accent); color: #fff;
    font-size: 13px; font-weight: 700;
    border-radius: var(--zp-radius); text-decoration: none; white-space: nowrap;
    transition: background var(--zp-dur-base) var(--zp-ease), transform var(--zp-dur-fast) var(--zp-ease);
}
.zp-schedule__cta:hover { background: var(--zp-navy); color: #fff; }
.zp-schedule__cta:active { transform: scale(.97); }
.zp-schedule__cta--waitlist { background: var(--zp-blue); }
.zp-schedule__cta--waitlist:hover { background: #0e3e80; }

.zp-schedule__full-label {
    font-size: 12px; color: var(--sc-muted); font-style: italic;
    padding: 8px 4px; display: block; white-space: nowrap;
}

/* Empty (karta-wrapper; wnętrze stylizuje wspólny .zp-empty-state z zp-frontend.css) */
.zp-schedule__empty {
    background: var(--sc-bg); border: 1px dashed var(--sc-border);
    border-radius: var(--sc-radius);
}
.zp-schedule__empty .zp-schedule__cta { margin-top: 4px; }

/* ============================================================
   CALENDAR – nawigacja miesiąca
   ============================================================ */
.zp-cal-nav {
    display: flex; align-items: center; gap: 0;
    margin-bottom: 16px;
    background: var(--sc-bg); border: 1px solid var(--sc-border);
    border-radius: var(--sc-radius);
    overflow: hidden;
}
.zp-cal-nav--bottom { margin-bottom: 0; margin-top: 16px; }

.zp-cal-nav__btn {
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    background: none; border: none; cursor: pointer;
    color: var(--sc-primary);
    transition: background var(--zp-dur-base) var(--zp-ease), color var(--zp-dur-base) var(--zp-ease);
}
.zp-cal-nav__btn:hover:not(:disabled) { background: var(--zp-surface-2); }
.zp-cal-nav__btn:active:not(:disabled) { background: var(--zp-border); }
.zp-cal-nav__btn:disabled { color: var(--zp-text-l); cursor: default; opacity: .55; }
.zp-cal-nav__btn:focus-visible { outline: none; box-shadow: var(--zp-focus); }

.zp-cal-nav__label-wrap {
    flex: 1; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 1px;
}
.zp-cal-nav__label {
    text-align: center;
    font-size: 16px; font-weight: 800;
    color: var(--sc-primary); text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.2;
}
.zp-cal-nav__pos {
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    color: var(--sc-muted); font-variant-numeric: tabular-nums;
}

/* Płynna zmiana miesiąca (respektuje reduced-motion globalnie) */
.zp-cal__month--in { animation: zp-cal-month-in var(--zp-dur-base) var(--zp-ease) both; }
@keyframes zp-cal-month-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

/* ============================================================
   RESPONSYWNOŚĆ schedule/calendar
   ============================================================ */
@media (max-width: 860px) {
    .zp-schedule__item {
        grid-template-columns: 90px 1fr;
        grid-template-rows: auto auto;
        gap: 10px 16px;
    }
    .zp-schedule__meta    { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 6px; }
    .zp-schedule__cta-wrap { grid-column: 1 / -1; }
    .zp-schedule__cta     { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
    .zp-schedule__item { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
    .zp-schedule__meta { flex-direction: row; flex-wrap: wrap; }
    .zp-schedule__date { border-bottom: 1px solid var(--sc-border); padding-bottom: 8px; }
}

/* Górna nawigacja kalendarza „przykleja się" przy przewijaniu na mobile */
@media (max-width: 768px) {
    .zp-schedule--calendar .zp-cal-nav:not(.zp-cal-nav--bottom) {
        position: sticky; top: 0; z-index: var(--zp-z-sticky, 20);
        background: var(--zp-surface);
        box-shadow: var(--zp-shadow-sm);
    }
}

/* ============================================================
   KROK 3 – Checkout (Cards with Inline Edit)
   ============================================================ */

/* Layout dwukolumnowy */
.zp-checkout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}
.zp-checkout__pay {
    position: sticky;
    top: 24px;
}

/* ---- Karty podsumowania ---- */
.zp-sum-card {
    background: #fff;
    border: 1px solid var(--zp-border);
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(26,58,92,.06), 0 4px 16px rgba(26,58,92,.04);
    overflow: hidden;
    margin-bottom: 14px;
    transition: box-shadow 0.2s;
}
.zp-sum-card:last-child { margin-bottom: 0; }
.zp-sum-card:hover { box-shadow: 0 2px 8px rgba(26,58,92,.09), 0 6px 20px rgba(26,58,92,.06); }

.zp-sum-card__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 18px;
    border-bottom: 1px solid var(--zp-border);
    background: linear-gradient(180deg, #f9fafb 0%, #f4f6f8 100%);
}
.zp-sum-card__hd > span {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--zp-text-muted);
}

/* Przycisk Edytuj/Zmień */
.zp-sum-card__edit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--zp-primary);
    background: transparent;
    border: 1px solid var(--zp-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    line-height: 1.4;
}
.zp-sum-card__edit:hover { background: var(--zp-primary); color: #fff; }
.zp-sum-card__edit svg { flex-shrink: 0; }

.zp-sum-card__bd { padding: 18px 20px; }
.zp-sum-card__bd--price { padding: 0; }
.zp-sum-card__bd--pay { padding: 12px 16px; display: flex; flex-direction: column; gap: 10px; }

/* ---- Zawartość Karty 1: Termin ---- */
.zp-sum-term__course {
    font-size: 17px;
    font-weight: 800;
    color: var(--zp-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}
.zp-sum-term__date {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    color: var(--zp-text-main);
    margin-bottom: 5px;
}
.zp-sum-term__icon { flex-shrink: 0; font-style: normal; }
.zp-sum-term__badge {
    display: inline-block;
    background: #e0eaff;
    color: #1a4bbd;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 9px;
    margin-left: 4px;
}
.zp-sum-term__location {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 13px;
    color: var(--zp-text-muted);
    margin-top: 8px;
}
.zp-sum-term__waitlist {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fffbeb;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #92400e;
}

/* ---- Zawartość Karty 2: Dane ---- */
.zp-sum-data__name {
    font-size: 17px;
    font-weight: 700;
    color: var(--zp-primary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.zp-sum-data__name--contact {
    font-size: 14px;
    margin-top: 2px;
    color: var(--zp-text-main);
}
.zp-sum-data__nip {
    font-size: 12px;
    font-weight: 400;
    color: var(--zp-text-muted);
}
.zp-sum-data__row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    font-size: 14px;
    color: var(--zp-text-main);
    margin-bottom: 6px;
}
.zp-sum-data__icon { flex-shrink: 0; }
.zp-sum-data__email { font-weight: 700; color: var(--zp-primary); }
.zp-sum-data__note {
    font-size: 11px;
    color: var(--zp-text-muted);
    font-style: italic;
}
.zp-sum-data__divider {
    height: 1px;
    background: var(--zp-border);
    margin: 10px 0;
}

/* ---- Zawartość Karty 3: Uczestnicy ---- */
.zp-sum-att__list { list-style: none; padding: 0; margin: 0; }
.zp-sum-att__item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 0;
    border-bottom: 1px solid var(--zp-border);
    font-size: 14px;
}
.zp-sum-att__item:last-child { border-bottom: none; }
.zp-sum-att__num { color: var(--zp-text-muted); font-size: 12px; min-width: 20px; }
.zp-sum-att__name { font-weight: 600; color: var(--zp-text-main); flex: 1; }
.zp-sum-att__email { font-size: 12px; color: var(--zp-text-muted); }

/* ---- Karta 4: Rozbicie ceny ---- */
.zp-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    font-size: 14px;
    color: var(--zp-text-main);
    border-bottom: 1px solid var(--zp-border);
}
.zp-price-row:last-child { border-bottom: none; }
.zp-price-row--deposit,
.zp-price-row--remainder {
    font-size: 13px;
    color: var(--zp-text-muted);
    background: #f8f9fb;
}
.zp-price-row--total {
    background: linear-gradient(135deg, var(--zp-primary) 0%, var(--zp-primary-light) 100%);
    color: #fff;
    padding: 16px 20px;
    border-radius: 0 0 var(--zp-radius) var(--zp-radius);
}
.zp-price-row--total span { font-size: 12px; opacity: 0.75; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.zp-price-row--total strong {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

/* Karta „Płatność w biurze" celowo NIE MA własnych stylów — wygląda jak pozostałe metody.
   Wcześniej była wygaszona (opacity .65, szare tło, wyblakły nagłówek), co czytało się jak
   opcja niedostępna; to pełnoprawna metoda płatności, a nie gorszy wariant. Stan zaznaczenia
   obsługuje wspólna reguła .zp-payment-card--active wyżej w tym arkuszu. */

/* ---- CTA – przycisk główny ---- */
.zp-btn--cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 18px 24px;
    font-size: 15px;
    font-weight: 800;
    background: linear-gradient(135deg, #e8600a 0%, #f07820 100%);
    color: #fff;
    border: none;
    border-radius: var(--zp-radius);
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.1s, filter 0.15s;
    margin-bottom: 10px;
    gap: 8px;
    text-align: center;
    line-height: 1.3;
    box-shadow: 0 4px 14px rgba(232,96,10,.35);
    letter-spacing: -0.01em;
}
.zp-btn--cta:hover:not(:disabled) {
    box-shadow: 0 6px 20px rgba(232,96,10,.45);
    transform: translateY(-2px);
    filter: brightness(1.04);
}
.zp-btn--cta:active:not(:disabled) { transform: translateY(0); box-shadow: 0 2px 8px rgba(232,96,10,.3); }
.zp-btn--cta:disabled { opacity: 0.65; cursor: not-allowed; transform: none; box-shadow: none; }
.zp-cta__text { pointer-events: none; }

/* ---- Nota prawna ---- */
.zp-legal-note {
    font-size: 11.5px;
    color: var(--zp-text-muted);
    text-align: center;
    margin: 0 0 12px;
    line-height: 1.5;
}

/* ---- Trust badge ---- */
.zp-trust-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 11.5px;
    color: var(--zp-text-muted);
    margin-top: 10px;
}
.zp-trust-badge svg { color: var(--zp-success, #22c55e); flex-shrink: 0; }

/* ---- Wstecz link ---- */
.zp-sum-back {
    text-align: center;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid var(--zp-border);
}
.zp-sum-back .zp-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 400;
    color: var(--zp-text-muted);
    opacity: 0.65;
    transition: color var(--zp-transition), opacity var(--zp-transition);
}
.zp-sum-back .zp-btn-link:hover {
    opacity: 1;
    color: var(--zp-text-main);
    text-decoration: underline;
}

/* ---- Responsive checkout ---- */
@media (max-width: 960px) {
    .zp-checkout { grid-template-columns: 1fr; gap: 0; }
    .zp-checkout__pay { position: static; margin-top: 4px; }
    .zp-checkout__order { margin-bottom: 4px; }
}

@media (max-width: 640px) {
    .zp-sum-card__hd { padding: 10px 14px; }
    .zp-sum-card__bd { padding: 14px; }
    .zp-sum-term__course { font-size: 15px; }
    .zp-sum-data__name { font-size: 15px; }
    .zp-btn--cta { font-size: 15px; padding: 15px 18px; }
    .zp-price-row--total strong { font-size: 20px; }
    .zp-payment-card__inner { padding: 12px 12px; gap: 10px; }
}

/* ---- Responsive success ---- */
@media (max-width: 640px) {
    .zp-success { padding: 32px 20px 28px; }
    .zp-success__badge { width: 64px; height: 64px; }
    .zp-success__svg { width: 64px; height: 64px; }
    .zp-success__title { font-size: 22px; }
    .zp-success__actions { flex-direction: column; align-items: stretch; }
    .zp-success__actions .zp-btn { justify-content: center; }
    .zp-success__tl-item:not(:last-child)::before { left: 13px; }
}

/* ============================================================
   FAZA 2 – Polish: mikro-interakcje + tabular-nums (ceny)
   ============================================================ */

/* Cyfry o stałej szerokości – ceny/sumy nie „skaczą" przy zmianie wartości */
.zp-enrollment .zp-price-row span,
.zp-enrollment .zp-price-row strong,
.zp-enrollment .zp-payment-card__amount,
.zp-enrollment .zp-payment-card__remainder,
.zp-enrollment .zp-cart__total-val,
.zp-enrollment .zp-cart__row-val,
.zp-enrollment .zp-cart-bar__total,
.zp-status-page .zp-price-row span,
.zp-status-page .zp-price-row strong {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

/* Press-scale – dotykowy feedback na przyciskach i kartach wyboru */
.zp-enrollment .zp-btn:active:not(:disabled),
.zp-status-page .zp-btn:active:not(:disabled) { transform: scale(.985); }
.zp-enrollment .zp-radio-card:active,
.zp-enrollment .zp-payment-card:active,
.zp-enrollment .zp-term-card:active { transform: scale(.99); }

/* Płynne przejścia stanów na kartach wyboru (spójne z tokenami) */
.zp-enrollment .zp-radio-card,
.zp-enrollment .zp-payment-card,
.zp-enrollment .zp-term-card {
    transition: border-color var(--zp-transition), box-shadow var(--zp-transition),
                background var(--zp-transition), transform var(--zp-dur-1) var(--zp-ease);
}

/* Reduced-motion: bez skalowania (globalny reset z zp-tokens.css i tak wyłącza animacje) */
@media (prefers-reduced-motion: reduce) {
    .zp-enrollment .zp-btn:active:not(:disabled),
    .zp-enrollment .zp-radio-card:active,
    .zp-enrollment .zp-payment-card:active,
    .zp-enrollment .zp-term-card:active { transform: none; }
}
/* Blok „Twoja aplikacja kursanta" na stronie statusu — korzysta z oprawy .zp-status-card,
   dokłada tylko wprowadzenie i listę kroków. */
.zp-portal-lead { margin: 0 0 12px; font-size: 14px; line-height: 1.55; color: var(--zp-text-2, #43506b); }
.zp-portal-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 6px; }
.zp-portal-steps li { font-size: 14px; line-height: 1.5; }

/* Pułapka na boty: pole niewidoczne dla ludzi i czytników ekranu (aria-hidden), boty je wypełniają. */
.zp-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Metoda płatności: komunikaty listy rezerwowej i braku metod (Etap A płatności) */
.zp-payment-note { margin: 0; font-size: 14px; line-height: 1.5; color: var(--zp-text-muted); }
.zp-payment-note--error { color: var(--zp-danger); }
