* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.quiz-header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.quiz-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.quiz-header p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #45a049);
    width: 10%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

.quiz-container {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    flex: 1;
    position: relative;
}

.quiz-form {
    position: relative;
}

.question {
    display: none;
    animation: fadeInUp 0.6s ease;
}

.question.active {
    display: block;
}

.question h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
    color: #2c3e50;
}

.options {
    display: grid;
    gap: 20px;
    margin-bottom: 40px;
}

.option {
    cursor: pointer;
    transition: all 0.3s ease;
}

.option input[type="radio"] {
    display: none;
}

.option-content {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e1e8ed;
    border-radius: 15px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.option-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.option:hover .option-content::before {
    left: 100%;
}

.option:hover .option-content {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.option input[type="radio"]:checked + .option-content {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.3);
}

.option input[type="radio"]:checked + .option-content .option-text h3,
.option input[type="radio"]:checked + .option-content .option-text p {
    color: white;
}

.option-icon {
    font-size: 2rem;
    margin-right: 20px;
    min-width: 60px;
    text-align: center;
}

.option-text h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #2c3e50;
}

.option-text p {
    font-size: 0.9rem;
    color: #6c757d;
    margin: 0;
}

.navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e1e8ed;
}

.nav-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.nav-btn:hover::before {
    left: 100%;
}

.prev-btn {
    background: #6c757d;
    color: white;
}

.prev-btn:hover:not(:disabled) {
    background: #5a6268;
    transform: translateX(-3px);
}

.prev-btn:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    transform: none;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a4190);
    transform: translateX(3px);
}

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

.results h2 {
    color: #667eea;
    margin-bottom: 30px;
}

.results-content {
    max-width: 600px;
    margin: 0 auto;
}



/* Paywall Section */
.paywall-header {
    text-align: center;
    margin-bottom: 30px;
}

.paywall-header h2 {
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
}

.paywall-header p {
    font-size: 1.2rem;
    color: #7f8c8d;
    line-height: 1.6;
}

.subscription-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.plan-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 20px;
    padding: 25px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.plan-card.selected {
    border-color: #667eea;
    background: linear-gradient(135deg, #f8f9ff, #ffffff);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.plan-card.popular {
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 8px 25px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.plan-header {
    text-align: center;
    margin-bottom: 25px;
}

.plan-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
}

.plan-price {
    margin-bottom: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
}

.period {
    font-size: 1.1rem;
    color: #7f8c8d;
    font-weight: 500;
}

.original-price {
    font-size: 1rem;
    color: #95a5a6;
    text-decoration: line-through;
    font-weight: 500;
}

.plan-features {
    margin-bottom: 25px;
    text-align: left;
}

.feature-item {
    padding: 8px 0;
    color: #2c3e50;
    font-size: 0.95rem;
    line-height: 1.4;
    text-align: left;
}

.subscribe-btn {
    width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #667eea;
    color: white;
}

.subscribe-btn:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.subscribe-btn.primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.subscribe-btn.primary:hover {
    background: linear-gradient(135deg, #5a6fd8, #6a5acd);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.paywall-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    margin-bottom: 30px;
}

.guarantee, .security {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
}

.guarantee-icon, .security-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.guarantee-text h4, .security-text h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.guarantee-text p, .security-text p {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}



/* Subscribe Section */
.subscribe-section {
    text-align: center;
    margin-bottom: 30px;
}

.subscribe-btn-main {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.subscribe-btn-main:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}



/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 25px 30px 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.4rem;
    font-weight: 600;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: #667eea;
}

.modal-body {
    padding: 25px 30px;
}

.modal-body p {
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.6;
}

.email-input-group {
    margin-bottom: 20px;
}

#emailInput {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

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

.email-error {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 8px;
    min-height: 20px;
}

.modal-footer {
    padding: 20px 30px 25px;
    border-top: 1px solid #e9ecef;
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-secondary, .btn-primary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

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

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
}

/* Thank You Modal */
.thank-you-content {
    text-align: center;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.thank-you-content h4 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.thank-you-content p {
    color: #7f8c8d;
    margin-bottom: 10px;
    line-height: 1.6;
}





/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question.slide-left {
    animation: slideInLeft 0.6s ease;
}

.question.slide-right {
    animation: slideInRight 0.6s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .quiz-container {
        padding: 20px;
        transform: scale(0.9);
        transform-origin: top center;
    }
    
    .quiz-header h1 {
        font-size: 2rem;
    }
    
    .question h2 {
        font-size: 1.5rem;
    }
    
    .options {
        gap: 15px;
    }
    
    .option-content {
        padding: 15px;
    }
    
    .option-icon {
        font-size: 2rem;
        width: 50px;
        height: 50px;
        min-width: 50px;
        margin-right: 15px;
    }
    
    .nav-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .quiz-container {
        padding: 15px;
        transform: scale(0.85);
        transform-origin: top center;
    }
    
    .option-content {
        flex-direction: row;
        text-align: left;
        padding: 15px;
    }
    
    .option-icon {
        margin-right: 15px;
        margin-bottom: 0;
        font-size: 2rem;
        width: 50px;
        height: 50px;
        min-width: 50px;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-btn {
        width: 100%;
    }
    
    .subscription-plans {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .plan-card {
        padding: 20px;
    }
    
    .plan-header h3 {
        font-size: 1.3rem;
    }
    
    .price {
        font-size: 2rem;
    }
    
    .paywall-footer {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .guarantee, .security {
        padding: 15px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
    }
    
    .modal-header, .modal-body, .modal-footer {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-secondary, .btn-primary {
        width: 100%;
    }
}

/* Loading States */
.nav-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.nav-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.question.results .results-content {
    animation: bounceIn 0.8s ease;
}

/* Auto-advance indicator */
.option input[type="radio"]:checked + .option-content::after {
    content: '✓';
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    color: #667eea;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
} 