/* ===========================================
   WebinarJam Connector – Popup Dark Theme v2
   CoachingUniversity.cz — Redesign
   =========================================== */

/* ── Overlay ── */
.wjc-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 14, 26, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    transition: background 0.35s ease, backdrop-filter 0.35s ease, -webkit-backdrop-filter 0.35s ease;
}
.wjc-popup-overlay.wjc-visible {
    display: flex;
}
.wjc-popup-overlay.wjc-fade-in {
    background: rgba(4, 8, 18, 0.20);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* ── Container ── */
.wjc-popup-container {
    background: linear-gradient(165deg, rgba(18,37,58,0.95) 0%, rgba(12,24,41,0.98) 100%);
    border: 1px solid rgba(201, 162, 39, 0.2);
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(201, 162, 39, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}
.wjc-popup-overlay.wjc-fade-in .wjc-popup-container {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ── Progress edge — thin 4px gold bar at top ── */
.wjc-progress-edge {
    height: 4px;
    background: rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}
.wjc-progress-edge-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #b8891e, #c9a227, #d4ad2e, #c9a227);
    background-size: 200% 100%;
    border-radius: 0 4px 4px 0;
    animation: wjcEdgeShimmer 3s linear infinite;
    transition: width 1.5s cubic-bezier(0.22,1,0.36,1);
}
@keyframes wjcEdgeShimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Close button ── */
.wjc-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.25);
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    padding: 0;
    transition: color 0.2s, background 0.2s;
}
.wjc-close-btn:hover {
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.06);
}

/* ── Content area (stagger animation) ── */
.wjc-popup-content {
    padding: 32px 36px 36px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.2s, transform 0.35s ease 0.2s;
}
.wjc-popup-overlay.wjc-fade-in .wjc-popup-content {
    opacity: 1;
    transform: translateY(0);
}

/* ── Stagger form section ── */
.wjc-popup-overlay .wjc-popup-form {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease 0.3s, transform 0.35s ease 0.3s;
}
.wjc-popup-overlay.wjc-fade-in .wjc-popup-form {
    opacity: 1;
    transform: translateY(0);
}

/* ── Title ── */
.wjc-popup-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
    text-align: center;
    letter-spacing: -0.02em;
}

/* ── Date/time bar ── */
.wjc-date-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 12px 16px;
    margin-top: 16px;
    margin-bottom: 24px;
}
.wjc-date-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
}
.wjc-date-item svg {
    opacity: 0.45;
    flex-shrink: 0;
}
.wjc-date-sep {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}
.wjc-date-badge {
    font-size: 11px;
    font-weight: 800;
    color: #22b88a;
    background: rgba(34, 184, 138, 0.1);
    border: 1px solid rgba(34, 184, 138, 0.2);
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-left: auto;
}

/* ── Form fields ── */
.wjc-form-group {
    margin-bottom: 14px;
}
.wjc-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.wjc-input-wrap {
    position: relative;
}
.wjc-input-wrap svg {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.3;
    pointer-events: none;
    color: rgba(255,255,255,0.6);
}
.wjc-input-wrap input {
    padding-left: 44px !important;
}
.wjc-form-group input {
    width: 100%;
    background: rgba(255,255,255,0.07) !important;
    border: 1.5px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    font-family: inherit;
}
.wjc-form-group input::placeholder {
    color: rgba(255,255,255,0.28) !important;
    -webkit-text-fill-color: rgba(255,255,255,0.28) !important;
    font-weight: 400;
}
.wjc-form-group input:focus {
    border-color: rgba(201,162,39,0.5);
    background: rgba(255,255,255,0.1) !important;
    box-shadow: 0 0 0 4px rgba(201,162,39,0.08);
}
/* Chrome autofill override */
.wjc-form-group input:-webkit-autofill,
.wjc-form-group input:-webkit-autofill:hover,
.wjc-form-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff !important;
    -webkit-box-shadow: 0 0 0 1000px #1a2d42 inset !important;
    border-color: rgba(201,162,39,0.4) !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}
.wjc-form-group input.wjc-input-error {
    border-color: rgba(255,71,87,0.6) !important;
    box-shadow: 0 0 0 3px rgba(255,71,87,0.1);
}

/* ── CTA Submit button ── */
.wjc-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #c9a227 0%, #b8891e 100%) !important;
    color: #080e1a !important;
    border: none;
    border-radius: 14px;
    padding: 17px 24px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    box-shadow: 0 6px 24px rgba(201,162,39,0.3);
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}
.wjc-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 36px rgba(201,162,39,0.45);
    background: linear-gradient(135deg, #d4ad2e 0%, #c49420 100%) !important;
}
.wjc-submit-btn:active:not(:disabled) {
    transform: translateY(0);
}
.wjc-submit-btn:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    transform: none;
}
.wjc-btn-arrow {
    display: inline-block;
    transition: transform 0.2s;
    margin-left: 4px;
}
.wjc-submit-btn:hover .wjc-btn-arrow {
    transform: translateX(3px);
}

/* Pulse animation on submit */
.wjc-submit-btn.wjc-loading {
    animation: wjcBtnPulse 1.1s ease-in-out infinite;
    pointer-events: none;
}
@keyframes wjcBtnPulse {
    0%, 100% { opacity: 0.75; }
    50%       { opacity: 0.50; }
}

/* ── Trust footer ── */
.wjc-trust-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.wjc-trust-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
    white-space: nowrap;
}
.wjc-trust-item svg {
    opacity: 0.50;
    flex-shrink: 0;
}

/* ── Social proof strip ── */
.wjc-social-proof {
    background: rgba(255,255,255,0.025);
    border-top: 1px solid rgba(255,255,255,0.04);
    padding: 14px 36px;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    font-weight: 500;
    line-height: 1.4;
}

/* ── Status messages ── */
.wjc-form-status {
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}
.wjc-status-error {
    background: rgba(255,71,87,0.1);
    border: 1px solid rgba(255,71,87,0.3);
    color: #ff4757;
}
.wjc-status-success {
    background: rgba(46,213,115,0.12);
    border: 1px solid rgba(46,213,115,0.3);
    color: #2ed573;
}

/* ── Loading state ── */
.wjc-loading-state {
    display: none;
    text-align: center;
    padding: 16px 0;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}
.wjc-spinner {
    display: inline-block;
    width: 22px;
    height: 22px;
    border: 3px solid rgba(201,162,39,0.25);
    border-top-color: #c9a227;
    border-radius: 50%;
    animation: wjcSpin 0.7s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}
@keyframes wjcSpin {
    to { transform: rotate(360deg); }
}

/* ── Success state ── */
.wjc-success-state {
    text-align: center;
    padding: 48px 36px;
    color: #ffffff;
}
.wjc-success-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(46,213,115,0.15);
    border: 2px solid rgba(46,213,115,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
    color: #2ed573;
}
.wjc-success-state h3 {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}
.wjc-success-state p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
}

/* ════════════════════════════════════════
   HIDE OLD PROGRESS BARS (legacy JS injected)
   ════════════════════════════════════════ */
.wjc-popup-overlay .nlp-prog-wrap,
.wjc-popup-overlay .nlp-progress-wrap,
.wjc-popup-overlay .wjc-prog-wrap {
    display: none !important;
}

/* ── Responsive ── */
@media (max-width: 520px) {
    .wjc-popup-overlay {
        padding: 10px;
    }
    .wjc-popup-container {
        border-radius: 20px;
    }
    .wjc-popup-content {
        padding: 24px 22px 28px;
    }
    .wjc-popup-title {
        font-size: 19px;
        padding-right: 24px;
    }
    .wjc-date-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 14px;
    }
    .wjc-date-sep {
        display: none;
    }
    .wjc-date-badge {
        margin-left: 0;
    }
    .wjc-form-group input {
        padding: 15px 16px;
        font-size: 16px;
    }
    .wjc-input-wrap input {
        padding-left: 42px !important;
    }
    .wjc-submit-btn {
        padding: 16px 20px;
        font-size: 15px;
    }
    .wjc-trust-footer {
        flex-wrap: wrap;
        gap: 10px;
    }
    .wjc-social-proof {
        padding: 12px 22px;
    }
}

/* ═══════════════════════════════════════════
   NON-POPUP STYLES (kept from original)
   ═══════════════════════════════════════════ */

/* === Button overflow fix === */
.nlp-hcard button {
  box-sizing: border-box !important;
}

/* === Hover zoom na všechna tlačítka === */
.tve-btn,
.thrv_button a,
.tcb-button a,
button.tve_evt_manager_listen,
.nlp-hcard button,
[class*="nlp-reg-btn"],
.wp-block-button a {
  transition: transform 0.18s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.18s ease !important;
  will-change: transform;
}
.tve-btn:hover,
.thrv_button a:hover,
.tcb-button a:hover,
button.tve_evt_manager_listen:hover,
.nlp-hcard button:hover,
[class*="nlp-reg-btn"]:hover,
.wp-block-button a:hover {
  transform: scale(1.04) !important;
  box-shadow: 0 8px 32px rgba(201,163,85,0.45) !important;
}

/* === Fix: remove Thrive wrapper default padding (white strip top/bottom) === */
.main-container.thrv_wrapper {
  padding: 0 !important;
}

/* === Popup date/time meta (nlp-date-meta) centering === */
.nlp-date-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.nlp-date-meta .nlp-date,
.nlp-date-meta .nlp-time {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* === Countdown box: larger text === */
.x-cd-box {
    padding: 8px 14px !important;
    min-width: 68px !important;
}
.x-cd-n {
    font-size: 42px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
}
.x-cd-l {
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
}
/* === Hero CTA button - omezeni sirky === */
.nlp-cta {
    text-align: center;
}
.nlp-cta .tcb-button-link,
.nlp-cta .thrv-button {
    display: inline-block !important;
    width: auto !important;
    min-width: 280px;
    max-width: 480px;
}

/* === Tlacitka - zoom animace + hover efekt === */
.nlp-cta .tcb-button-link,
.nlp-hcard button,
.wjc-submit-btn {
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}
.nlp-cta .tcb-button-link:hover,
.nlp-hcard button:hover,
.wjc-submit-btn:hover {
    transform: scale(1.04) !important;
    box-shadow: 0 8px 32px rgba(201,163,85,0.45) !important;
}

/* Bily pruh - dark bg pod Thrive contentem */
body.page-id-1133 {
  background-color: #080e1a !important;
}

/* =====================================================
   FOOTER SPACING FIX — page-id-1133
   ===================================================== */
body.page-id-1133 [data-css="tve-u-nlp0139"] {
  padding-top: 60px !important;
  padding-bottom: 60px !important;
}
body.page-id-1133 [data-css="tve-u-nlp0143"] {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  min-height: unset !important;
}

/* ==============================
   POPUP UX — pozice a viditelnost */
#wjc-seats-popup { display: none !important; }
.nlp-popup-meta {
  display: flex !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 16px !important;
}
.wjc-popup-container { position: relative !important; }
#wjc-popup-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  left: auto !important;
}
/* Progress bar — OUTSIDE popup: keep large bar style */
.nlp-prog-wrap,
.nlp-progress-wrap {
  position: relative !important;
  height: 34px !important;
  margin-bottom: 20px !important;
  overflow: hidden !important;
  border-radius: 12px 12px 0 0 !important;
  background: rgba(255,255,255,0.07) !important;
}
.nlp-prog-fill,
.nlp-progress-bar {
  height: 100% !important;
  width: 95% !important;
  background: linear-gradient(90deg, #1a8a6e 0%, #22b88a 45%, #34d49a 70%, #22b88a 100%) !important;
  background-size: 200% 100% !important;
  transition: width 1.5s cubic-bezier(0.22,1,0.36,1) !important;
  animation: wjcProgShimmer 3s linear infinite !important;
  border-radius: 12px 0 0 0 !important;
}
@keyframes wjcProgShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.nlp-prog-wrap::after,
.nlp-progress-wrap::after {
  content: '95% hotovo \2014 posledn\00ed  krok' !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #fff !important;
  white-space: nowrap !important;
  z-index: 2 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6) !important;
}
/* Hide the span label since we use ::after on the bar */
.nlp-progress-label,
.nlp-prog-label {
  display: none !important;
}

/* === Duo portrait: Radek + Anthony Robbins === */
.nlp-duo-wrap {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 0;
}
.nlp-duo-wrap .tve_image_frame {
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.nlp-duo-wrap .tve_image_frame img.tve_image {
    width: 240px !important;
    height: auto !important;
    display: block;
}
.nlp-robbins-portrait {
    width: 185px;
    height: 466px;
    object-fit: cover;
    object-position: center 8%;
    border-radius: 10px 10px 0 0;
    margin-left: -25px;
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.5);
}

/* === Mobile sticky bar layout fix === */
@media(max-width:767px){
  #nlpBB.nlp-bb{display:flex!important;flex-direction:row!important;align-items:center!important;flex-wrap:nowrap!important;gap:8px!important;padding:8px 12px!important;justify-content:space-between!important}
  #nlpBB .nlp-bb-live{flex-shrink:0!important;font-size:11px!important;text-align:left!important;margin:0!important;width:auto!important;justify-content:flex-start!important}
  #nlpBB .nlp-bb-info{flex:1!important;min-width:0!important;text-align:left!important;margin-left:0!important;display:flex!important;flex-direction:column!important;font-size:12px!important;line-height:1.3!important}
  #nlpBB .nlp-bb-info strong{display:block!important;white-space:nowrap!important}
  #nlpBB .nlp-bb-date{display:block!important;font-size:11px!important;text-align:left!important;margin-left:0!important;white-space:nowrap!important}
  #nlpBB.nlp-bb button{flex-shrink:0!important;white-space:nowrap!important;font-size:11px!important;padding:7px 12px!important}
}
