/* Modern Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Montserrat:wght@500;700&family=Poppins:wght@400;600&display=swap');

body {
    background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 100%);
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
    color: #222;
    font-size: 20px;
    letter-spacing: 0.01em;
}

/* Main container */
.ewt-test-container {
    max-width: 700px;
    margin: 40px auto;
    padding: 40px 32px 32px 32px;
    background: rgba(255,255,255,0.98);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(80, 80, 180, 0.10), 0 1.5px 8px rgba(80, 80, 180, 0.08);
    font-family: 'Inter', 'Montserrat', 'Poppins', Arial, sans-serif;
}

/* Sponsor message */
.ewt-sponsor-message {
    background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
    border: none;
    border-radius: 16px;
    padding: 18px 24px;
    margin-bottom: 28px;
    text-align: center;
    font-size: 20px;
    color: #3b3b5c;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(80, 80, 180, 0.07);
}

.sponsor-content {
    max-width: 700px;
    margin: 0 auto;
}

.ewt-sponsor-message a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}

.ewt-sponsor-message a:hover {
    text-decoration: underline;
}

/* Progress container */
.ewt-progress-container {
    margin-bottom: 32px;
}

.ewt-progress {
    height: 18px;
    background: #e0e7ff;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(80, 80, 180, 0.07);
}

.ewt-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    transition: width 0.4s cubic-bezier(.4,2,.6,1);
    border-radius: 9px;
}

.ewt-score {
    text-align: right;
    font-size: 26px;
    font-weight: 700;
    color: #6366f1;
    margin-top: 8px;
    letter-spacing: 0.03em;
}

/* Questions */
.ewt-question {
    background: #fff;
    padding: 32px 24px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 2px 12px rgba(80, 80, 180, 0.07);
}

.ewt-question h3 {
    color: #22223b;
    margin: 0 0 18px 0;
    font-size: 26px;
    font-weight: 700;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
}

.question-content {
    margin-bottom: 24px;
}

.question-text {
    font-size: 22px;
    line-height: 1.7;
    color: #22223b;
    margin-bottom: 18px;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.option-label {
    display: flex;
    align-items: flex-start;
    padding: 18px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(.4,2,.6,1);
    background: #f8fafc;
    font-size: 20px;
    font-family: 'Inter', 'Poppins', Arial, sans-serif;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(80, 80, 180, 0.04);
}

.option-label:hover {
    background: #e0e7ff;
    border-color: #6366f1;
}

.option-label input[type="radio"] {
    margin: 6px 16px 0 0;
    transform: scale(1.4);
}

.option-text {
    flex: 1;
    font-size: 20px;
    line-height: 1.5;
}

/* Button container */
.button-container {
    margin-top: 32px;
    display: flex;
    gap: 18px;
}

.ewt-check-answer,
.ewt-next-question,
.ewt-try-again,
.ewt-restart-test {
    padding: 16px 36px;
    border: none;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(.4,2,.6,1);
    box-shadow: 0 2px 8px rgba(80, 80, 180, 0.07);
    letter-spacing: 0.02em;
}

.ewt-check-answer {
    background: linear-gradient(90deg, #6366f1 0%, #60a5fa 100%);
    color: #fff;
}

.ewt-check-answer:hover {
    background: linear-gradient(90deg, #60a5fa 0%, #6366f1 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(99,102,241,0.13);
}

.ewt-next-question {
    background: linear-gradient(90deg, #22c55e 0%, #4ade80 100%);
    color: #fff;
}

.ewt-next-question:hover {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(34,197,94,0.13);
}

.ewt-try-again {
    background: linear-gradient(90deg, #fbbf24 0%, #fde68a 100%);
    color: #22223b;
}

.ewt-try-again:hover {
    background: linear-gradient(90deg, #fde68a 0%, #fbbf24 100%);
    color: #22223b;
    box-shadow: 0 4px 16px rgba(251,191,36,0.13);
}

.ewt-restart-test {
    background: linear-gradient(90deg, #64748b 0%, #cbd5e1 100%);
    color: #fff;
}

.ewt-restart-test:hover {
    background: linear-gradient(90deg, #cbd5e1 0%, #64748b 100%);
    color: #fff;
    box-shadow: 0 4px 16px rgba(100,116,139,0.13);
}

/* Explanation */
.explanation {
    margin-top: 22px;
    padding: 22px;
    background: linear-gradient(90deg, #e0e7ff 0%, #f8fafc 100%);
    border-left: 6px solid #6366f1;
    border-radius: 10px;
    font-size: 19px;
    color: #3b3b5c;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
}

.explanation p {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
    color: #495057;
}

/* Results */
.ewt-results {
    text-align: center;
    padding: 40px 0;
}

.ewt-results h2 {
    font-size: 38px;
    font-family: 'Montserrat', 'Inter', Arial, sans-serif;
    color: #6366f1;
    margin-bottom: 18px;
    font-weight: 700;
}

.ewt-results p, .ewt-results .score-percentage {
    font-size: 26px;
    color: #22223b;
    font-family: 'Poppins', 'Inter', Arial, sans-serif;
    margin-bottom: 12px;
}

/* States */
.option-label.correct {
    background: linear-gradient(90deg, #d1fae5 0%, #bbf7d0 100%);
    border-color: #22c55e;
    color: #166534;
    font-weight: 700;
}

.option-label.incorrect {
    background: linear-gradient(90deg, #fee2e2 0%, #fecaca 100%);
    border-color: #ef4444;
    color: #991b1b;
    font-weight: 700;
}

.option-label.disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Error message */
.ewt-error {
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 6px;
    color: #856404;
    margin: 20px 0;
    text-align: center;
}

.ewt-error p {
    margin: 0 0 10px 0;
    font-size: 16px;
    line-height: 1.5;
}

.ewt-error p:last-child {
    margin-bottom: 0;
}

.ewt-error .admin-message {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ffeeba;
    font-size: 14px;
    color: #721c24;
    background: #f8d7da;
    padding: 10px;
    border-radius: 4px;
}

/* Enhanced feedback styling */
.wrong-answer-feedback {
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
}

.wrong-answer-feedback h4 {
    color: #c53030;
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
}

.wrong-answer-feedback p {
    margin: 8px 0;
    line-height: 1.5;
}

.wrong-answer-feedback hr {
    border: none;
    border-top: 1px solid #fed7d7;
    margin: 16px 0;
}

.wrong-answer-feedback strong {
    color: #2d3748;
    font-weight: 600;
}

/* Responsive design */
@media (max-width: 768px) {
    .ewt-test-container {
        padding: 16px 4vw 24px 4vw;
    }
    .ewt-sponsor-message {
        font-size: 17px;
        padding: 10px 6vw;
    }
    .question-text {
        font-size: 18px;
    }
    .option-text {
        font-size: 17px;
    }
    .button-container {
        flex-direction: column;
        gap: 12px;
    }
    .ewt-check-answer,
    .ewt-next-question,
    .ewt-try-again,
    .ewt-restart-test {
        font-size: 18px;
        padding: 13px 0;
    }
}

/* Print styles */
@media print {
    .ewt-test-container {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    .ewt-sponsor-message,
    .ewt-progress,
    .button-container {
        display: none;
    }

    .ewt-question {
        page-break-inside: avoid;
        border: 1px solid #dee2e6;
        margin-bottom: 20px;
    }
} 