/* Reset default styles */
.cre-wrap, .cre-quiz-box, .cre-answers, .cre-result {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Main wrapper */
.cre-wrap {
    max-width: 800px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Title */
.cre-wrap h2 {
    text-align: center;
    color: #2c3e50;
    font-size: 2.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Score box */
.cre-score-box {
    text-align: center;
    background: #ffffff;
    padding: 10px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    font-size: 1.2em;
    color: #34495e;
}
.cre-score-box strong {
    color: #e74c3c;
    font-weight: 700;
}

/* Quiz box */
.cre-quiz-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
.cre-quiz-box:hover {
    transform: translateY(-5px);
}

.cre-quiz-box h3 {
    color: #2980b9;
    font-size: 1.5em;
    margin-bottom: 15px;
    text-align: center;
}

/* Question text */
.cre-question {
    font-size: 1.3em;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

/* Answers */
.cre-answers {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cre-answer {
    display: flex;
    align-items: center;
    background: #ecf0f1;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    color: #34495e;
}
.cre-answer:hover {
    background: #dfe6e9;
    transform: scale(1.02);
}
.cre-answer input[type="radio"] {
    margin-right: 10px;
    accent-color: #2980b9;
}
.cre-answer span {
    flex: 1;
}

/* Submit button */
.cre-button {
    display: block;
    width: 100%;
    background: linear-gradient(90deg, #2980b9 0%, #3498db 100%);
    color: white;
    padding: 15px;
    border: none;
    border-radius: 10px;
    font-size: 1.2em;
    cursor: pointer;
    margin-top: 20px;
    transition: background 0.3s ease, transform 0.2s ease;
}
.cre-button:hover {
    background: linear-gradient(90deg, #3498db 0%, #2980b9 100%);
    transform: translateY(-2px);
}
.cre-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Result messages */
.cre-result .cre-success {
    color: #27ae60;
    font-size: 1.1em;
    text-align: center;
    background: #e8f5e9;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}
.cre-result .cre-error {
    color: #c0392b;
    font-size: 1.1em;
    text-align: center;
    background: #ffebee;
    padding: 10px;
    border-radius: 8px;
    margin-top: 15px;
    animation: fadeIn 0.5s ease;
}

/* Animation for result */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive design */
@media (max-width: 600px) {
    .cre-wrap {
        margin: 10px;
        padding: 15px;
    }
    .cre-quiz-box {
        padding: 20px;
    }
    .cre-wrap h2 {
        font-size: 1.8em;
    }
    .cre-question {
        font-size: 1.1em;
    }
    .cre-answer {
        font-size: 1em;
        padding: 12px;
    }
    .cre-button {
        font-size: 1em;
        padding: 12px;
    }
}