/* quizzes/kyc_quiz/assets/style.css */

/* Global styles for the quiz wrapper */
.quiz-main-wrapper {
    /*
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    */
    padding: 25px;
    max-width: 700px;
    width: 95%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    animation: fadeIn 0.5s ease-out; /* Main container fade-in */
}

/* Header with back link and progress */
.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.back-link {
    text-decoration: none;
    color: var(--primary-green);
    font-weight: 600;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--dark-green);
}

.quiz-progress {
    font-size: 0.95em;
    color: var(--secondary-text);
    background-color: #f0f0f0;
    padding: 5px 12px;
    border-radius: 20px;
}

/* Question Bubble Animation */
.question-container {
    padding: 10px;
}

.question-bubble {
    background-color: var(--light-green);
    border-radius: 25px; /* Rounded corners */
    border-bottom-left-radius: 5px; /* Tail for the bubble (adjust as needed) */
    padding: 20px 25px;
    margin-bottom: 30px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    animation: bubblePop 0.5s ease-out; /* Pop animation */
}

/* Little tail for the bubble */
.question-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px; /* Position the tail */
    left: 20px;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: var(--light-green); /* Tail color */
    border-right-color: var(--light-green);
}

.question-icon {
    font-size: 2.2em;
    line-height: 1;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.question-text {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-color);
    margin: 0; /* Remove default paragraph margin */
}

/* Option Styles */
.options-form {
    margin-top: 20px;
}

.option-label {
    display: block;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.03);
}

.option-label:hover {
    background-color: #f5f5f5;
    border-color: var(--primary-green);
}

.option-label input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.3); /* Larger radio button */
    accent-color: var(--primary-green); /* Tint the radio button */
}

.option-label span {
    flex-grow: 1;
    font-size: 1.05em;
    color: var(--text-color);
}

/* Feedback Area */
#feedback {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 1.05em;
    animation: fadeIn 0.3s ease-out;
}

#feedback.correct {
    background-color: #d4edda; /* Light green */
    color: #155724; /* Dark green text */
    border: 1px solid #c3e6cb;
}

#feedback.incorrect {
    background-color: #f8d7da; /* Light red */
    color: #721c24; /* Dark red text */
    border: 1px solid #f5c6cb;
}

#feedback.revealed {
    background-color: #ffeeba; /* Light yellow */
    color: #856404; /* Dark yellow text */
    border: 1px solid #ffeeba;
}

/* Submit Button */
.submit-btn-wrapper {
    text-align: center;
    margin-top: 30px;
}

/* Quiz Finish Screen */
.quiz-finish-screen {
    text-align: center;
    padding: 30px;
    background-color: #e8f5e9; /* Light green background */
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.quiz-finish-screen h2 {
    color: var(--dark-green);
    margin-bottom: 20px;
    font-size: 2em;
}

.quiz-finish-screen p {
    font-size: 1.1em;
    margin-bottom: 15px;
    color: var(--text-color);
}

.btn-secondary {
    background-color: #f0f0f0;
    color: var(--text-color);
    margin-left: 10px;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #e0e0e0;
}

/* Animations (from Animate.css, but simplified here) */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes bubblePop {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes shake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.animate__animated.animate__shake {
    animation-name: shake;
    animation-duration: 0.82s;
    animation-timing-function: cubic-bezier(.36,.07,.19,.97);
    animation-iteration-count: 1;
}

/* Override global container max-width for quiz */
body .container {
    max-width: 700px; /* Make sure quiz is wider */
}