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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.welcome-section {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.welcome-section h1 {
    color: #EF002B;
    margin-bottom: 20px;
    font-size: 2.2rem;
    font-weight: 600;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.survey-section,
#q6Section,
#firstGroupSection,
#secondGroupSection,
#lastGroupSection {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    max-width: 800px;
    margin: 50px auto;
}

.progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    margin: 20px;
    position: relative;
    overflow: hidden;
}

.progress-fill {
    background: linear-gradient(90deg, #41B6E6, #EF002B);
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    position: absolute;
    top: -25px;
    right: 0;
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.question {
    padding: 40px;
    border-bottom: 1px solid #eee;
}

.question:last-of-type {
    border-bottom: none;
}

.question h2 {
    color: #000000;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: 600;
}

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

.option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #f8f9fa;
}

.option:hover {
    border-color: #41B6E6;
    background: #f0f8ff;
}

.option input[type="radio"] {
    margin-right: 15px;
    transform: scale(1.2);
    accent-color: #41B6E6;
}

.option-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: #333;
}

.option input[type="radio"]:checked + .option-text {
    color: #EF002B;
    font-weight: 600;
}

.option:has(input[type="radio"]:checked) {
    border-color: #41B6E6;
    background: #f0f8ff;
    box-shadow: 0 0 0 3px rgba(65, 182, 230, 0.1);
}

.navigation {
    display: flex;
    justify-content: space-between;
    padding: 30px 40px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.prev-btn, .next-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.next-btn {
    background: #EF002B;
    color: white;
}

.next-btn:hover {
    background: #d10026;
    transform: translateY(-1px);
}

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

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

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .welcome-section, .question {
        padding: 25px;
    }
    
    .welcome-section h1 {
        font-size: 1.8rem;
    }
    
    .question h2 {
        font-size: 1.3rem;
    }
    
    .option {
        padding: 12px 15px;
    }
    
    .option-text {
        font-size: 1rem;
    }
    
    .navigation {
        padding: 20px 25px;
    }
    
    .prev-btn, .next-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}
