:root {
    --primary-color: #16A34A;
    --primary-light: #DCFCE7;
    --primary-dark: #15803D;
    --text-color: #1F2937;
    --text-light: #6B7280;
    --white: #FFFFFF;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quiz-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.quiz-modal.active {
    display: flex;
    opacity: 1;
}

.quiz-container {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    padding: 60px 36px 36px;
    font-family: 'Nunito', sans-serif;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.quiz-modal.active .quiz-container {
    transform: translateY(0);
}

.quiz-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: #9CA3AF;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.quiz-close:hover {
    color: var(--text-color);
    background: #F3F4F6;
}

.quiz-header {
    margin-bottom: 28px;
}

.quiz-progress {
    height: 6px;
    background: var(--primary-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 12px;
}

.quiz-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary-color));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 3px;
}

.quiz-question-count {
    font-size: 13px;
    color: var(--text-light);
    text-align: right;
    font-weight: 500;
}

.quiz-question-title {
    font-size: 1.375rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text-color);
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    padding: 16px 20px;
    border: 1.5px solid #E5E7EB;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    background: #fff;
}

.quiz-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
}

.quiz-option.selected {
    border-color: var(--primary-color);
    background: var(--primary-light);
    font-weight: 500;
}

.quiz-option-checkbox {
    width: 22px;
    height: 22px;
    border: 2px solid #D1D5DB;
    border-radius: 6px;
    margin-right: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    background: #fff;
    flex-shrink: 0;
}

.quiz-option.selected .quiz-option-checkbox {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.quiz-option.selected .quiz-option-checkbox::after {
    content: '';
    width: 12px;
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
}

.quiz-nav {
    margin-top: 32px;
    display: flex;
    justify-content: flex-end;
}

.quiz-btn {
    padding: 12px 32px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-btn-next {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.quiz-btn-next:hover:not(:disabled) {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.quiz-btn-next:disabled {
    background: #E5E7EB;
    color: #9CA3AF;
    cursor: not-allowed;
    box-shadow: none;
}

/* Premium Result Page Redesign */
.quiz-result--premium {
    text-align: center;
    padding: 10px 0 20px;
    animation: fadeIn 0.6s ease-out;
}

.result-header {
    margin-bottom: 24px;
}

.result-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #15803D;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.result-title {
    font-size: 20px;
    line-height: 1.2;
    color: #111827;
    font-weight: 800;
    margin-bottom: 4px;
}

.result-subtitle {
    font-size: 13px;
    color: #4B5563;
    line-height: 1.4;
    max-width: 100%;
    margin: 0 auto;
}

.offer-card {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 16px;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}

/* Timer */
.timer-wrapper {
    background: #FEF3C7;
    border: 1px solid #FCD34D;
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 12px;
}

.timer-wrapper.single-line {
    flex-direction: row;
}

.timer-icon svg {
    width: 16px;
    height: 16px;
    color: #D97706;
}

.timer-content {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.timer-text-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.timer-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #92400E;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.timer-value {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #B45309;
    line-height: 1;
}

/* Features */
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 10px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bg-green {
    background: #E6F6ED;
    color: #16A34A;
}

.bg-blue {
    background: #E0F2FE;
    color: #0284C7;
}

.bg-purple {
    background: #F3E8FF;
    color: #9333EA;
}

.feature-icon svg {
    width: 16px;
    height: 16px;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-text strong {
    font-size: 13px;
    color: #111827;
    margin-bottom: 0;
}

.feature-text span {
    font-size: 11px;
    color: #6B7280;
}

/* New Pricing Layout */
.pricing-action-wrapper {
    margin-bottom: 16px;
    background: #fff;
    padding: 10px 0;
}

.price-caption-top {
    font-size: 11px;
    color: #6B7280;
    text-align: center;
    margin-bottom: 12px;
    width: 100%;
}

.price-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
}

.price-col-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-old-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: -2px;
}

.price-old {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: line-through;
    font-weight: 600;
}

.price-discount-tag {
    background: #fee2e2;
    color: #ef4444;
    font-size: 11px;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 99px;
}

.price-current {
    font-size: 40px;
    font-weight: 900;
    color: #16A34A;
    line-height: 1;
    letter-spacing: -0.03em;
}

/* Button */
.buy-btn.premium-btn {
    width: auto;
    min-width: 160px;
    background: #16A34A;
    color: #fff;
    border: none;
    padding: 0 32px;
    border-radius: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.15, 0.85, 0.35, 1.2);
    box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2), 0 10px 15px -3px rgba(22, 163, 74, 0.3);
    margin-bottom: 0;
    font-weight: 800;
    font-size: 18px;
    text-align: center;
}



.buy-btn.premium-btn.compact-btn {
    height: 56px;
}

.buy-btn.premium-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px -5px rgba(22, 163, 74, 0.4), 0 8px 10px -6px rgba(22, 163, 74, 0.2);
    background: #15803D;
}


.shine-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    animation: shine 3s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Security */
.security-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    color: #9CA3AF;
    font-size: 12px;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.security-item svg {
    width: 14px;
    height: 14px;
}

/* Legal */
.quiz-result-legal {
    font-size: 11px;
    color: #9CA3AF;
    line-height: 1.4;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #F3F4F6;
}

.legal-links {
    margin-top: 8px;
}

.legal-links a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.2s;
}

.legal-links a:hover {
    color: #6B7280;
}

/* Mobile adjustments & Preservation of modal responsive styles */
@media (max-width: 600px) {

    /* Modal responsive styles from original */
    .quiz-modal {
        padding: 0;
        align-items: flex-end;
    }

    .quiz-container {
        max-width: 100%;
        border-radius: 20px 20px 0 0;
        padding: 40px 20px 24px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Result page responsive adjustments */
    .result-title {
        font-size: 20px;
    }

    .offer-card {
        padding: 16px;
    }

    .feature-item {
        padding: 10px;
    }

    .price-current {
        font-size: 36px;
    }
}