#quiz-logic-wrapper {
    /* Tokens with fallbacks */
    --accent: var(--color-primary, #007bff);
    --accent-hover: var(--color-primary-dark, #0056b3);
    --font-h: var(--font-heading-family, sans-serif);
    --font-b: var(--font-body-family, sans-serif);
    --error-color: #dc3545; /* Standard red for errors */

    font-family: var(--font-b);
    text-align: center;
    max-width: 420px; 
    margin: 32px auto 0 auto;
    overflow: hidden;
	
	/* Card look */
	background: #ffffff; /* White background */
    border-radius: 15px; /* Rounded corners */
    box-shadow: 0 10px 25px rgba(0,0,0,0.1); /* Soft shadow */
    padding: 24px 24px; /* Add internal spacing */
}

#qz-slides-container {
    position: relative;
    min-height: 520px; 
    display: flex;
    flex-direction: column;
    transition: min-height 0.3s ease;
    will-change: min-height;
}

#qz-slides-container figure {
    margin: 0;
    padding: 0;
    width: 100%;
}

.qz-slide { 
    display: none; 
    width: 100%;
    opacity: 0;
    will-change: opacity, transform; 
}

/* Extra safety: keep analysis slide hidden unless activated */
#qz-analysis-slide { display: none; }

/* Style 1: Modern Slide (Right to Left + Fade) - ACTIVE */
.qz-slide.active { 
    display: block !important; 
    animation: qz-slide-in 0.5s cubic-bezier(0.25, 1, 0.5, 1) both; 
}
@keyframes qz-slide-in { 
    from { opacity: 0; transform: translateX(30px); } 
    to { opacity: 1; transform: translateX(0); } 
}

/* Style 2: Smooth Zoom (Matches your selected style) */
/*.qz-slide.active { 
    display: block !important; 
    animation: qz-zoom-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; 
}
@keyframes qz-zoom-in { 
    from { opacity: 0; transform: scale(0.95); } 
    to { opacity: 1; transform: scale(1); } 
}*/

/* Style 3: Soft Glass (Uncomment to use) */
/*.qz-slide.active { 
    display: block !important; 
    animation: qz-blur-in 0.5s ease-out both; 
}
@keyframes qz-blur-in { 
    from { opacity: 0; filter: blur(10px); transform: translateY(5px); } 
    to { opacity: 1; filter: blur(0); transform: translateY(0); } 
}*/

/* Inputs & Validation Styling */
.qz-input-field { 
    width: 100%; 
    padding: 15px; 
    border: 2px solid var(--color-light-3, #ccc); 
    border-radius: 10px; 
    margin-bottom: 16px; 
    font-size: 1rem; 
    transition: border-color 0.2s;
}
.qz-input-field:focus {
    border-color: var(--accent);
    outline: none;
}
/* Error state */
.qz-input-field.input-error {
    border-color: var(--error-color) !important;
}
.form-error {
    color: var(--error-color);
    font-size: 0.9rem;
    font-weight: 300;
    margin-bottom: 15px;
    text-align: left;
    padding-left: 5px;
}

/* Button & Grid Layouts */
.qz-btn-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 15px;
}

.qz-btn-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 15px;
}

.qz-responsive-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-bottom: 15px;
}

/* Rest of the styles */
.qz-progress-nav { display: flex; justify-content: center; gap: 5px; margin-bottom: 25px; flex-wrap: wrap; }
.qz-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--color-light-3, #ccc); font-size: 10px; font-weight: bold; display: flex; align-items: center; justify-content: center; color: var(--color-dark-2, #333); }
.qz-dot.active { background: var(--accent); color: #fff; }
.qz-title { font-family: var(--font-h); font-size: 1.6rem; font-weight: 800; line-height: 1.2; margin-bottom: 10px; color: var(--color-dark-3, #000); }
.qz-text { margin-bottom: 20px; font-size: 1.05rem; text-align: left; }
.qz-main-btn { width: 100%; padding: 16px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 800; text-transform: uppercase; cursor: pointer; }
.qz-main-btn:hover { background: var(--accent-hover); }
.qz-loading-track { width: 100%; height: 10px; background: #eee; border-radius: 10px; margin: 20px 0; overflow: hidden; }
#qz-bar { width: 0%; height: 100%; background: var(--accent); transition: width 0.1s linear; }
.qz-status-list { list-style: none; padding: 0; text-align: left; }
.qz-status-list li { margin-bottom: 10px; opacity: 0.3; font-weight: bold; }
.qz-status-list li.ready { opacity: 1; color: #28a745; }
.qz-status-list li.ready::before { content: "\2714\00A0"; }