/* Quiz Styles */
/* @import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap'); */

.quiz-container {
    max-width: 800px;
    padding: 20px;
}

.quiz-container {
  --gz-heading-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --gz-body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}


.quiz-wrapper {
    position: relative;
    overflow: visible;
}

.quiz-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.quiz-logo {
    display: block;
}

/* Stepper Component */
.stepper {
    padding: 4px 12px;
    border-radius: 41px;
    background-color: #ECECEC;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 400;
    font-size: 16px;
    margin-left: auto;
    max-width: 30%;
}

.progress-bar-container {
    width: 100%;
    min-width: 60px;
    flex: 1;
    height: 6px;
    background-color: #D9D9D9;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #7DBF24;
    border-radius: 10px;
    width: 20%;
}

#step-counter {
    font-size: 16px;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
}

.quiz-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
    text-align: center;
    line-height: 1.3;
}

.quiz-progress {
    width: 100%;
    height: 6px;
    background-color: #e9ecef;
    border-radius: 10px;
    margin-bottom: 40px;
    overflow: hidden;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.quiz-content {
    position: relative;
    min-height: 300px;
}


.quiz-screen-content {
    min-height: 300px;
    font-size: 18px;
}

.quiz-screen-title-container{
    position: relative;
}

.quiz-screen-title {
    position: absolute;
    bottom: 0;
    left: 8px;
    display: block;
    margin-top: -64px;
    margin-left: 8px;
    font-size: 40px;
    line-height: 1;
    font-weight: 500;
    color: #fff;
    margin: 0 0 16px 0;
}

.quiz-screen-subtitle {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.quiz-screen-context {
    font-size: 16px;
    font-weight: 400;
    color: #000;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.quiz-screen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.quiz-arrow-left {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #000;
    padding: 0;
    line-height: 1;
}

.quiz-arrow-left:hover {
    opacity: 0.7;
}

/* Back confirmation popup (Q2 → Q1) — mobile-friendly */
.quiz-back-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    /* Mobile: full viewport including when browser UI hides (iOS Safari) */
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.quiz-back-popup-overlay.is-open {
    display: flex;
    touch-action: none; /* prevent background scroll/swipe when popup open */
}
.quiz-back-popup {
    position: relative;
    font-family: var(--gz-body-font, 'Inter', system-ui, sans-serif);
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    max-width: 360px;
    width: 100%;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin: auto;
}
.quiz-back-popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: #fff;
    color: #cccccc;
    font-size: 42px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.2s;
}
.quiz-back-popup-close:hover {
    background: #D9D9D9;
}
.quiz-back-popup-close:active {
    background: #c4c4c4;
}
.quiz-back-popup-heading {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #111111;
}
.quiz-back-popup-slots {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #ECECEC;
    border-radius: 10px;
    font-size: 15px;
    color: #111111;
}
.quiz-back-popup-slot {
    display: block;
}
.quiz-back-popup-slot strong {
    font-weight: 600;
}
.quiz-back-popup-text {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.5;
    color: #111111;
}
.quiz-back-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-back-popup-btn {
    padding: 14px 20px;
    min-height: 44px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--gz-body-font, 'Inter', system-ui, sans-serif);
    cursor: pointer;
    border: none;
    transition: opacity 0.2s;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.quiz-back-popup-btn:hover {
    opacity: 0.9;
}
.quiz-back-popup-btn:active {
    opacity: 0.85;
}
.quiz-back-popup-stay {
    background: #ECECEC;
    color: #111111;
}
.quiz-back-popup-go {
    background: #7DBF24;
    color: #fff;
}

/* Format options in back popup — same style as quiz answer buttons */
.quiz-format-question {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #111111;
}
.quiz-format-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-format-option {
    display: block;
    cursor: pointer;
    padding: 6px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: background 0.2s, border-color 0.2s;
    -webkit-tap-highlight-color: transparent;
}
.quiz-format-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}
.quiz-format-option:has(.quiz-format-radio:checked) {
    background: #7DBF24;
    border-color: #7DBF24;
    color: #fff;
}
.quiz-format-option:has(.quiz-format-radio:checked) .quiz-format-option-desc {
    color: rgba(255, 255, 255, 0.9);
}
.quiz-format-radio {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.quiz-format-option-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
}
.quiz-format-option-desc {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: #64748b;
}

/* Lock body scroll when popup open (mobile) */
body.quiz-popup-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

.quiz-step-indicator {
    font-size: 16px;
    font-weight: 400;
    color: #000;
}

.quiz-question {
    font-size: 32px;
    font-weight: 400;
    color: #000;
    margin: 0 0 20px 0;
    line-height: 1;
    margin-top: 8px;
}

.quiz-answers {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 30px;
}

.quiz-answer {
    position: relative;
    cursor: pointer;
}

.quiz-answer input[type="radio"] {
    display: none;
}

.quiz-answer label {
    display: block;
    padding: 18px 24px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    position: relative;
}

.quiz-answer:hover label,
.quiz-answer.hover label {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.quiz-answer.selected label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-answer input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Answer Buttons */
.quiz-answer-btn {
    display: block;
    padding: 12px 16px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

/* Level Buttons (with level-bar) */
.quiz-level-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 17px;
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    color: #000;
    font-weight: 500;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.quiz-level-btn span {
    flex: 1;
}

.quiz-answer-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.quiz-answer-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.quiz-level-btn:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
}

.quiz-level-btn.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* Level Bar */
.level-bar {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25px;
    width: 40px;
    height: 15px;
    margin-left: auto;
}

.level-bar span,
.level-bar::after,
.level-bar::before {
    content: '';
    display: block;
    width: 33%;
    border-radius: 2.5px 2.5px 0 0;
    background-color: #E6EBF2;
}

.level-bar::before {
    height: 33.3%;
}

.level-bar span {
    height: 66.6%;  
}

.level-bar::after {
    height: 100%;
}   

.level-bar[data-level="1"]::before {
    background-color: #FBB231;
}

.level-bar[data-level="2"]::before,
.level-bar[data-level="2"] span {
    background-color: #FBB231;
}

.level-bar[data-level="3"]::before,
.level-bar[data-level="3"] span,
.level-bar[data-level="3"]::after {
    background-color: #ADEE68;
}

.level-bar[data-level="4"]::before,
.level-bar[data-level="4"] span,
.level-bar[data-level="4"]::after {
    background-color: #ADEE68;
}

.quiz-next-btn {
    display: none !important;
}

/* Results Styles */
.quiz-results {
    text-align: center;
}

.quiz-results-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 30px 0;
}

.quiz-results-text {
    font-size: 18px;
    color: #4a5568;
    margin: 0 0 24px 0;
}

.quiz-results-social {
    margin-top: 12px;
}

.quiz-results-subtitle {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.quiz-results-caption {
    font-size: 16px;
    color: #4a5568;
    margin: 0 0 16px 0;
}

.quiz-results-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.quiz-results-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid #e2e8f0;
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
}

.quiz-results-link:hover {
    border-color: #667eea;
    color: #667eea;
}

.quiz-results-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
}

.quiz-results-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.quiz-result-category {
    font-size: 24px;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 20px;
    padding: 15px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border-radius: 10px;
}

.quiz-result-message {
    font-size: 18px;
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 0 20px;
}

.quiz-score {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 30px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    display: inline-block;
}

.quiz-restart-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #48bb78;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(72, 187, 120, 0.3);
}

.quiz-restart-btn:hover {
    background: #38a169;
}

/* Responsive Design */
@media (max-width: 768px) {
    .quiz-container {
        padding: 15px;
    }
    
    .quiz-title {
        font-size: 24px;
        margin-bottom: 20px;
    }
 
    .quiz-answer label {
        padding: 15px 20px;
        padding-left: 20px;
        font-size: 15px;
    }
    
    .quiz-results-title {
        font-size: 24px;
    }
    
    .quiz-result-category {
        font-size: 20px;
    }
    
    .quiz-result-message {
        font-size: 16px;
        padding: 0 10px;
    }
}
.quiz-logo{
    width: 160px;
    display: block;
}
div.entry-content{
    padding: 0 !important;
}
.quiz-screen-image{
    width: 100%;
}
.quiz-screen-content-container{
    padding: 6px;
}

/* Video/Animated Image Container Styles */
.quiz-video-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 30px;
    border-radius: 10px;
    overflow: hidden;
    background: transparent;
    position: relative;
    aspect-ratio: 1 / 1;
}

.quiz-video,
.quiz-animated-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

/* Carousel Container Styles */
.quiz-carousel-container {
    width: 100%;
    margin: 0 auto 30px;
    position: relative;
    overflow: visible;
}

.quiz-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    /* gap: 12px; */
    flex-wrap: nowrap;
}

.quiz-carousel-item {
    flex: 0 0 auto;
    width: 80px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    opacity: 0.5;
    transform: scale(0.8);
    transition: all 0.5s ease;
    cursor: pointer;
    position: relative;
}

.quiz-carousel-item.active {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1 / 1;
    opacity: 1;
    transform: scale(1);
    z-index: 2;
    height: 320px;
}

.quiz-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.quiz-carousel-item .quiz-preview-image,
.quiz-carousel-item .quiz-animated-image {
    position: absolute;
    inset: 0;
}

.quiz-carousel-item .quiz-animated-image.is-hidden {
    opacity: 0;
}

.quiz-carousel-item .quiz-animated-image {
    opacity: 1;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .quiz-carousel-item:not(.active) {
        width: 60px;
        height: 300px;
    }
    
    .quiz-carousel-wrapper {
        gap: 2px;
    }
}

/* Continue Button */
.quiz-continue-btn {
    display: block;
    width: 100%;
    margin: 0 auto;
    padding: 16px 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.quiz-continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.quiz-continue-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .quiz-video-container {
        margin-bottom: 20px;
    }
    
    .quiz-continue-btn {
        padding: 20px 28px;
        font-size: 20px;
    }
}

.quiz-review-author{
    font-weight: 500;
}
.quiz-review-meta{
    font-size: 16px;
}
.quiz-review-text{
    font-size: 14px;
}

.quiz-carousel-item:not(.active) .quiz-review-text {
    display: none;
}
.quiz-screen-title.feedback{
   position: relative;
   color: #000;
   left: 0;

font-size: 32px;
}
.quiz-bold{
        text-transform: uppercase;
    color: #7356b1;
}

.quiz-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0 30px;
}

.quiz-input-label {
    font-size: 14px;
    font-weight: 500;
    color: #111111;
}

.quiz-input {
    padding: 14px 16px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
}

.quiz-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.lcm-modal-radio-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lcm-modal-radio-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

.lcm-modal-radio-group input[type="radio"] {
    margin: 0;
}

.lcm-modal-radio-group label.checked {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.15);
}
.quiz-manager-image{
    aspect-ratio: 1 / 1;
    width: 100%;
    object-fit: cover;
    height: 160px;
    max-height: 160px;
    border-radius: 8px;
    margin-bottom: 4px;
}
.quiz-question-hint{
    font-size: 14px;
    color: #666666;
    font-style: italic;
    display: block;
    margin-top: 10px;
}

.free-trial-subtitle{
    color: #bd009f;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 600;
}

.quiz-screen-subtitle.free-trial-subtitle{
    font-size: 16px;
}
.colored{
    color: #bd009f;
}
.quiz-format-radio{
	display: none;
}
.quiz-back-popup-heading{
	padding-right: 32px;
}
