/* MCQ Tracker — Exit Intent Popup */
#mcqt-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.50);
    z-index: 999998;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#mcqt-overlay.mcqt-show {
    display: flex;
    animation: mcqtFadeIn .22s ease;
}
@keyframes mcqtFadeIn { from { opacity: 0; } to { opacity: 1; } }

#mcqt-popup {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 380px;
    position: relative;
    animation: mcqtSlideUp .26s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@keyframes mcqtSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

#mcqt-close {
    position: absolute;
    top: 12px; right: 12px;
    width: 28px; height: 28px;
    border: none; background: #f1f5f9;
    border-radius: 50%; cursor: pointer;
    font-size: 15px; line-height: 28px;
    text-align: center; color: #64748b;
    display: flex; align-items: center; justify-content: center;
}
#mcqt-close:hover { background: #e2e8f0; }

.mcqt-popup-icon {
    font-size: 32px;
    margin-bottom: 10px;
    line-height: 1;
}
.mcqt-popup-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    background: #f0fdf4; color: #15803d;
    padding: 3px 10px; border-radius: 99px;
    margin-bottom: 12px;
}
.mcqt-popup-title {
    font-size: 19px; font-weight: 700;
    color: #0f172a; margin: 0 0 7px;
    line-height: 1.25;
}
.mcqt-popup-sub {
    font-size: 13px; color: #64748b;
    margin: 0 0 20px; line-height: 1.55;
}

.mcqt-field { margin-bottom: 14px; }
.mcqt-field label {
    display: block;
    font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .05em;
    color: #475569; margin-bottom: 5px;
}
.mcqt-field input {
    width: 100%; height: 42px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px; color: #0f172a;
    outline: none;
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.mcqt-field input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.mcqt-field input.mcqt-error { border-color: #ef4444; }
.mcqt-hint {
    font-size: 11px; color: #ef4444;
    margin-top: 4px; display: none;
}
.mcqt-has-error .mcqt-hint { display: block; }

.mcqt-field-note {
    font-size: 11px; color: #94a3b8;
    margin: -6px 0 16px;
}

#mcqt-submit {
    width: 100%; height: 44px;
    background: #2563eb; color: #fff;
    border: none; border-radius: 8px;
    font-size: 14px; font-weight: 700;
    cursor: pointer; letter-spacing: .01em;
    transition: background .15s;
}
#mcqt-submit:hover  { background: #1d4ed8; }
#mcqt-submit:disabled { background: #93c5fd; cursor: not-allowed; }

#mcqt-skip {
    display: block; width: 100%;
    text-align: center;
    font-size: 12px; color: #94a3b8;
    margin-top: 12px; cursor: pointer;
    background: none; border: none;
    padding: 0;
}
#mcqt-skip:hover { color: #64748b; }

/* Success */
#mcqt-success { display: none; text-align: center; padding: 12px 0; }
.mcqt-success-icon {
    width: 60px; height: 60px;
    border-radius: 50%; background: #f0fdf4;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}
.mcqt-success-title { font-size: 19px; font-weight: 700; color: #0f172a; margin: 0 0 8px; }
.mcqt-success-sub   { font-size: 13px; color: #64748b; line-height: 1.55; margin: 0; }

@media (max-width: 420px) {
    #mcqt-popup { padding: 24px 18px 20px; border-radius: 12px; }
}
