/* ============================================================
   Workshop Course Dates & Register Button — v3.0
   EdPlus + LearnPress
   ============================================================ */

/* ══════════════════════════════════════════════
   INFO BLOCK — full-width banner after course image
   ══════════════════════════════════════════════ */
#wcd-info-block,
.wcd-info-block {
    display: block !important;
    background: #f7f9ff;
    border: 1px solid #e3e8f7;
    border-radius: 10px;
    padding: 18px 22px;
    margin: 18px 0 22px;
    box-sizing: border-box;
    width: 100%;
}

.wcd-info-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

.wcd-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wcd-info-item svg {
    flex-shrink: 0;
    color: #4a6cf7;
    stroke: #4a6cf7;
}

.wcd-info-item > span {
    display: flex;
    flex-direction: column;
    gap: 0;
    line-height: 1.3;
}

.wcd-info-item strong {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #9099b5;
    font-weight: 700;
    display: block;
}

.wcd-info-item > span > *:not(strong) {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a2e;
}

/* separator between items (except btn) */
.wcd-info-item:not(.wcd-info-btn) + .wcd-info-item:not(.wcd-info-btn)::before {
    content: '';
    display: block;
    width: 1px;
    height: 32px;
    background: #dde3f5;
    margin-right: 10px;
    flex-shrink: 0;
}

/* Register Now inside the info block — push to right */
.wcd-info-btn {
    margin-left: auto;
}

/* ══════════════════════════════════════════════
   SIDEBAR DATE ROWS — inside LP's <ul>
   ══════════════════════════════════════════════ */
li.wcd-row {
    display: none !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 8px 0 !important;
    border-bottom: 1px solid #f2f4fb !important;
    list-style: none !important;
    margin: 0 !important;
}

.wcd-row-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #eef1ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4a6cf7;
    stroke: #4a6cf7;
    margin-top: 2px;
}

.wcd-row-body {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.wcd-row-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aab0c6;
    line-height: 1;
}

.wcd-row-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1.4;
}

/* ══════════════════════════════════════════════
   REGISTER NOW BUTTON
   ══════════════════════════════════════════════ */

/* Inside info block */
.wcd-info-btn .wcd-btn-register,
button.wcd-btn-register {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 22px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.02em !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s !important;
    white-space: nowrap !important;
    line-height: 1.3 !important;
    background: #fff !important;
    color: #4a6cf7 !important;
    border: 2px solid #4a6cf7 !important;
    box-shadow: 0 2px 8px rgba(74,108,247,.12) !important;
}

button.wcd-btn-register:hover,
.wcd-info-btn .wcd-btn-register:hover {
    background: #f0f3ff !important;
    box-shadow: 0 4px 14px rgba(74,108,247,.22) !important;
    transform: translateY(-1px) !important;
    color: #4a6cf7 !important;
}

/* Sidebar variant — full width like LP's Buy Now */
.wcd-register-wrap {
    margin-bottom: 8px;
}
.wcd-register-wrap .wcd-btn-register {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 13px 20px !important;
    font-size: 15px !important;
}

/* ══════════════════════════════════════════════
   POPUP OVERLAY
   ══════════════════════════════════════════════ */
.wcd-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(15, 20, 50, 0.60);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wcd-popup-overlay.wcd-open {
    display: flex !important;
    opacity: 1;
}

body.wcd-body-lock { overflow: hidden !important; }

/* ── Popup box ── */
.wcd-popup-box {
    position: relative;
    background: #fff;
    border-radius: 14px;
    padding: 38px 32px 32px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 28px 70px rgba(0,0,0,.25);
    animation: wcdIn .22s ease forwards;
}

@keyframes wcdIn {
    from { opacity: 0; transform: translateY(-18px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)    scale(1);   }
}

/* ── Close button ── */
.wcd-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    background: #f5f5f5 !important;
    border: none !important;
    font-size: 20px !important;
    line-height: 1 !important;
    color: #777 !important;
    cursor: pointer !important;
    padding: 5px 10px !important;
    border-radius: 50% !important;
    transition: background .15s, color .15s !important;
    z-index: 2 !important;
    width: 34px !important;
    height: 34px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.wcd-popup-close:hover {
    background: #ebebeb !important;
    color: #222 !important;
}

/* ── Popup title ── */
.wcd-popup-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1a1a2e !important;
    margin: 0 0 22px !important;
    padding-right: 30px !important;
    line-height: 1.35 !important;
}
.wcd-popup-course-name {
    font-weight: 400 !important;
    font-size: 14px !important;
    color: #888 !important;
    display: block !important;
    margin-top: 3px !important;
}

/* ── CF7 form inside popup ── */
.wcd-popup-form .wpcf7 { margin: 0 !important; }

.wcd-popup-form input[type="text"],
.wcd-popup-form input[type="email"],
.wcd-popup-form input[type="tel"],
.wcd-popup-form input[type="number"],
.wcd-popup-form textarea,
.wcd-popup-form select {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 10px 14px !important;
    border: 1.5px solid #dde0f0 !important;
    border-radius: 7px !important;
    font-size: 14px !important;
    color: #1a1a2e !important;
    background: #fafbff !important;
    transition: border .15s, box-shadow .15s !important;
    margin-bottom: 12px !important;
}

.wcd-popup-form input:focus,
.wcd-popup-form textarea:focus,
.wcd-popup-form select:focus {
    outline: none !important;
    border-color: #4a6cf7 !important;
    box-shadow: 0 0 0 3px rgba(74,108,247,.12) !important;
    background: #fff !important;
}

.wcd-popup-form textarea { min-height: 90px; resize: vertical; }

.wcd-popup-form input[type="submit"],
.wcd-popup-form .wpcf7-submit {
    display: block !important;
    width: 100% !important;
    padding: 13px 20px !important;
    background: linear-gradient(135deg, #4a6cf7 0%, #6a3de8 100%) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    transition: opacity .2s, transform .15s !important;
    margin-top: 4px !important;
}
.wcd-popup-form input[type="submit"]:hover,
.wcd-popup-form .wpcf7-submit:hover {
    opacity: .9 !important;
    transform: translateY(-1px) !important;
}

.wcd-popup-form .wpcf7-not-valid-tip {
    color: #d32f2f; font-size: 12px;
    margin: -8px 0 8px; display: block;
}
.wcd-popup-form .wpcf7-response-output {
    border-radius: 7px; padding: 10px 14px;
    font-size: 13px; margin-top: 10px;
}
.wcd-popup-form .wpcf7-mail-sent-ok {
    background: #f0faf0; border-color: #4caf50; color: #2e7d32;
}
.wcd-popup-form .wpcf7-validation-errors {
    background: #fff8e1; border-color: #f0ad4e; color: #856404;
}

/* ── NoScript fallback ── */
.wcd-noscript-form {
    background: #f7f9ff; border: 1px solid #dde3f7;
    border-radius: 10px; padding: 24px; margin: 20px 0;
}

/* ══════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════ */
@media (max-width: 600px) {
    .wcd-info-inner { flex-direction: column; align-items: flex-start; gap: 10px; }
    .wcd-info-item:not(.wcd-info-btn) + .wcd-info-item:not(.wcd-info-btn)::before { display: none; }
    .wcd-info-btn { margin-left: 0; width: 100%; }
    .wcd-info-btn .wcd-btn-register { display: block !important; width: 100% !important; }
    .wcd-popup-box { padding: 28px 16px 22px; }
    .wcd-popup-title { font-size: 17px !important; }
}
