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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 600px;
}

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

h1 {
    color: #333;
    font-size: 32px;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle,
.result-subtitle {
    text-align: center;
    color: #666;
    font-size: 18px;
    margin-bottom: 30px;
}

.quiz-progress {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 30px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    width: 0%;
    transition: width 0.3s ease;
}

.question h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

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

.option-btn {
    padding: 18px 24px;
    background: #f5f5f5;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.option-btn:hover {
    background: #10b981;
    color: white;
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

.error-message {
    margin-top: 20px;
    padding: 15px;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    color: #c33;
    text-align: center;
    display: none;
}

.success-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: white;
    font-weight: bold;
}

.benefits {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
}

.benefits p {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.benefits ul {
    list-style: none;
    padding: 0;
}

.benefits li {
    padding: 12px 0;
    color: #555;
    font-size: 16px;
    border-bottom: 1px solid #ddd;
}

.benefits li:last-child {
    border-bottom: none;
}

.benefits li:before {
    content: "✓ ";
    color: #10b981;
    font-weight: bold;
    margin-right: 10px;
}

.cta-button {
    display: block;
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 22px;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.5);
}

.small-text {
    text-align: center;
    color: #999;
    font-size: 14px;
    margin-top: 20px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-content h2 {
    color: white;
    font-size: 24px;
    margin-bottom: 10px;
}

.loading-text {
    font-size: 16px;
    color: #ccc;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.quiz-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    z-index: 10;
}

.quiz-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(16, 185, 129, 0.2);
    border-top: 4px solid #10b981;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

.quiz-loading p {
    color: #555;
    font-size: 16px;
    font-weight: 600;
    animation: pulse 2s ease-in-out infinite;
}

@media (max-width: 600px) {
    .quiz-container,
    .result-container {
        padding: 30px 20px;
    }
    
    h1 {
        font-size: 26px;
    }
    
    .subtitle,
    .result-subtitle {
        font-size: 16px;
    }
    
    .question h2 {
        font-size: 20px;
    }
    
    .cta-button {
        font-size: 18px;
        padding: 18px;
    }
}

