/**
 * Mock Test Pro - Styling
 * Version 2.1
 */

/* ─────────────────────────────────────────────────────────── */
/* MAIN WRAPPER */
/* ─────────────────────────────────────────────────────────── */
#mt-wrap {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ─────────────────────────────────────────────────────────── */
/* HEADER */
/* ─────────────────────────────────────────────────────────── */
#mt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(135deg, #1a59d7  0%, #3779FF  100%);
    color: #fff;
    font-weight: 600;
}

#mt-counter {
    font-size: 16px;
}

#mt-timer-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    transition: color 0.3s ease;
}

/* ─────────────────────────────────────────────────────────── */
/* PROGRESS BAR */
/* ─────────────────────────────────────────────────────────── */
#mt-progress-bar {
    height: 4px;
    background: #e8e8e8;
    width: 100%;
}

#mt-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3779FF , #0F2A47 );
    transition: width 0.3s ease;
}

/* ─────────────────────────────────────────────────────────── */
/* BODY - QUESTION AREA */
/* ─────────────────────────────────────────────────────────── */
#mt-body {
    padding: 40px 30px;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#mt-question-text {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 25px;
    line-height: 1.6;
}

#mt-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mt-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: #f5f7fa;
    border: 2px solid #e0e6ed;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: #333;
}

.mt-option:hover {
    background: #eff4ff;
    border-color: #3779FF ;
    transform: translateX(4px);
}

.mt-option.selected {
    background: linear-gradient(135deg, #3779FF 15, #0F2A47 15);
    border-color: #3779FF ;
    font-weight: 600;
    color: #3779FF ;
}

.mt-opt-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #3779FF ;
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.mt-option.selected .mt-opt-label {
    background: linear-gradient(135deg, #3779FF , #0F2A47 );
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.mt-opt-text {
    flex: 1;
}

#mt-no-questions {
    padding: 40px;
    text-align: center;
    color: #c62828;
    font-size: 16px;
}

/* ─────────────────────────────────────────────────────────── */
/* FOOTER - NAVIGATION */
/* ─────────────────────────────────────────────────────────── */
#mt-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 30px;
    background: #f9fafb;
    border-top: 1px solid #e5e7eb;
    gap: 15px;
    flex-wrap: wrap;
}

#mt-prev,
#mt-next,
#mt-submit {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #3779FF ;
    color: #fff;
}

#mt-prev:hover,
#mt-next:hover,
#mt-submit:hover {
    background: #0f45b1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

#mt-prev:active,
#mt-next:active,
#mt-submit:active {
    transform: translateY(0);
}

#mt-dots {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1;
    min-width: 150px;
}

.mt-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0d7e8;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mt-dot:hover {
    background: #a8b3d1;
    transform: scale(1.2);
}

.mt-dot.answered {
    background: #3779FF ;
}

.mt-dot.active {
    background: #0F2A47 ;
    transform: scale(1.3);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

/* ─────────────────────────────────────────────────────────── */
/* OVERLAY & POPUP */
/* ─────────────────────────────────────────────────────────── */
#mt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#mt-popup {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    text-align: center;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mt-popup h2 {
    margin: 20px 0 0;
    font-size: 28px;
    color: #1d2327;
    font-weight: 700;
}

#mt-popup h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #1d2327;
    font-weight: 700;
}

#mt-popup-icon {
    font-size: 60px;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ─────────────────────────────────────────────────────────── */
/* SCORE RING */
/* ─────────────────────────────────────────────────────────── */
#mt-score-ring {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 20px auto;
}

#mt-score-ring svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.15));
}

#mt-ring-fill {
    stroke-dasharray: 264;
    stroke-dashoffset: 264;
    animation: fillRing 1.5s ease-out forwards;
}

@keyframes fillRing {
    to {
        stroke-dashoffset: var(--offset, 264);
    }
}

#mt-score-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    font-weight: 700;
    color: #3779FF ;
}

#mt-score-label {
    font-size: 16px;
    color: #666;
    margin: 20px 0;
    font-weight: 500;
}

/* ─────────────────────────────────────────────────────────── */
/* LEAD FORM */
/* ─────────────────────────────────────────────────────────── */
#mt-lead-form {
    margin-top: 25px;
    text-align: left;
}

.mt-form-title {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    margin: 0 0 15px;
    text-align: center;
}

.mt-field {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mt-field span {
    font-size: 18px;
}

.mt-field input {
    flex: 1;
    padding: 12px 14px;
    border: 1.5px solid #e0e6ed;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.mt-field input:focus {
    outline: none;
    border-color: #3779FF ;
    background: #f5f7fa;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#mt-lead-btn {
    width: 100%;
    padding: 12px 16px;
    background: linear-gradient(135deg, #3779FF , #0F2A47 );
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s ease;
}

#mt-lead-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

#mt-lead-btn:active {
    transform: translateY(0);
}

#mt-lead-msg {
    font-size: 12px;
    margin-top: 8px;
    text-align: center;
    color: #666;
}

/* ─────────────────────────────────────────────────────────── */
/* THANK YOU & CHART */
/* ─────────────────────────────────────────────────────────── */
#mt-thankyou {
    animation: slideIn 0.4s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mt-ty-icon {
    font-size: 50px;
    margin-bottom: 10px;
}

#mt-thankyou p {
    color: #666;
    font-size: 14px;
    margin: 0 0 20px;
    line-height: 1.6;
}

#mt-chart-container {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #e5e7eb;
}

#mt-result-message {
    font-size: 13px !important;
    color: #3779FF  !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    background: #f0f4ff !important;
    border-radius: 6px !important;
    margin: 15px 0 !important;
}

#mt-restart {
    width: 100%;
    padding: 12px 16px;
    background: #3779FF ;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.2s ease;
}

#mt-restart:hover {
    background: #0F2A47 ;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* ─────────────────────────────────────────────────────────── */
/* RESPONSIVE DESIGN */
/* ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    #mt-wrap {
        margin: 10px;
    }

    #mt-header {
        padding: 15px 20px;
        font-size: 14px;
    }

    #mt-body {
        padding: 25px 20px;
        min-height: auto;
    }

    #mt-question-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    #mt-footer {
        padding: 20px;
        gap: 10px;
    }

    #mt-prev,
    #mt-next,
    #mt-submit {
        padding: 8px 14px;
        font-size: 13px;
    }

    #mt-dots {
        gap: 6px;
    }

    .mt-dot {
        width: 10px;
        height: 10px;
    }

    #mt-popup {
        padding: 30px 20px;
    }

    #mt-score-ring {
        width: 150px;
        height: 150px;
    }

    #mt-score-text {
        font-size: 26px;
    }

    .mt-option {
        padding: 14px 14px;
        font-size: 14px;
    }

    .mt-opt-label {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }

    #mt-chart-container {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #mt-wrap {
        border-radius: 8px;
    }

    #mt-header {
        flex-direction: column;
        gap: 10px;
        padding: 12px 15px;
    }

    #mt-counter {
        font-size: 13px;
    }

    #mt-timer-wrap {
        font-size: 14px;
    }

    #mt-body {
        padding: 20px 15px;
    }

    #mt-question-text {
        font-size: 15px;
    }

    #mt-footer {
        flex-direction: column;
        padding: 15px;
    }

    #mt-prev,
    #mt-next,
    #mt-submit {
        width: 100%;
    }

    #mt-dots {
        width: 100%;
        order: -1;
        margin-bottom: 10px;
    }

    #mt-popup {
        padding: 25px 15px;
        margin: 10px;
    }

    #mt-popup h2 {
        font-size: 22px;
    }

    #mt-popup-icon {
        font-size: 45px;
    }

    #mt-score-ring {
        width: 130px;
        height: 130px;
    }

    #mt-score-text {
        font-size: 24px;
    }

    .mt-field {
        gap: 8px;
    }

    .mt-field input {
        font-size: 13px;
        padding: 10px 12px;
    }

    #mt-chart-container {
        height: 200px;
        padding: 15px;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* ANSWER REVIEW SECTION */
/* ─────────────────────────────────────────────────────────── */
.mt-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 14px;
}

.mt-review-title {
    font-size: 16px;
    font-weight: 700;
    color: #1d2327;
}

.mt-review-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mt-review-item {
    border: 1.5px solid #e0e6ed;
    border-radius: 10px;
    padding: 14px 16px;
    background: #f9fafb;
}

.mt-review-item.correct {
    border-color: #a5d6a7;
    background: #f1faf1;
}

.mt-review-item.wrong {
    border-color: #ef9a9a;
    background: #fff5f5;
}

.mt-review-item.skipped {
    border-color: #ffe082;
    background: #fffde7;
}

.mt-review-q-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.mt-review-num {
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #3779FF;
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    margin-top: 2px;
    flex-shrink: 0;
}

.mt-review-status-icon {
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.mt-review-q-text {
    font-size: 14px;
    font-weight: 600;
    color: #1d2327;
    line-height: 1.5;
}

.mt-review-options {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.mt-review-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #444;
    background: #fff;
    border: 1px solid #e0e6ed;
    flex-wrap: wrap;
}

.mt-review-opt.review-correct {
    background: #e8f5e9;
    border-color: #81c784;
    color: #1b5e20;
    font-weight: 600;
}

.mt-review-opt.review-wrong {
    background: #fde8e8;
    border-color: #e57373;
    color: #7f1d1d;
    font-weight: 600;
    text-decoration: line-through;
    text-decoration-color: #e57373;
}

.mt-review-opt-label {
    font-weight: 700;
    font-size: 12px;
    min-width: 18px;
    flex-shrink: 0;
}

.mt-correct-badge {
    margin-left: auto;
    background: #2e7d32;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none !important;
}

.mt-your-badge {
    margin-left: auto;
    background: #c62828;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    text-decoration: none !important;
}

.mt-review-skipped-note {
    margin: 8px 0 0;
    font-size: 12px;
    color: #e65100;
}

/* ─────────────────────────────────────────────────────────── */
/* SCROLLBAR STYLING */
/* ─────────────────────────────────────────────────────────── */
#mt-popup::-webkit-scrollbar {
    width: 6px;
}

#mt-popup::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

#mt-popup::-webkit-scrollbar-thumb {
    background: #3779FF ;
    border-radius: 3px;
}

#mt-popup::-webkit-scrollbar-thumb:hover {
    background: #0F2A47 ;
}
