
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-width: 800px;
    width: 100%;
    overflow: hidden;
}

.progress-bar {
    height: 6px;
    background: #e0e0e0;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    width: 0%;
    transition: width 0.5s ease;
}

.content {
    padding: 40px;
}

.section {
    display: none;
    animation: fadeIn 0.5s ease;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 28px;
}

h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 22px;
}

.intro-text {
    color: #666;
    line-height: 1.8;
    margin-bottom: 15px;
}

.question {
    margin-bottom: 30px;
}

.question-label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 16px;
}

.radio-group, .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option, .checkbox-option {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.radio-option:hover, .checkbox-option:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.radio-option input, .checkbox-option input {
    margin-right: 12px;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.scale-container {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.scale-option {
    flex: 1;
    text-align: center;
}

.scale-option input[type="radio"] {
    display: none;
}

.scale-label {
    display: block;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
}

.scale-option input[type="radio"]:checked + .scale-label {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.scale-label:hover {
    border-color: #667eea;
    background: #f8f9ff;
}

.slider-container {
    margin-top: 20px;
}

input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
}

.slider-value {
    text-align: center;
    margin-top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #667eea;
}

.rank-inputs {
    display: grid;
    gap: 15px;
}

.rank-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.rank-item label {
    flex: 1;
    font-weight: 500;
}

.rank-item select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
}

input[type="text"], input[type="email"] {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

input[type="text"]:focus, input[type="email"]:focus {
    outline: none;
    border-color: #667eea;
}

.button-group {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

button {
    flex: 1;
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-next, .btn-submit {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-next:hover, .btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-prev {
    background: #f0f0f0;
    color: #333;
}

.btn-prev:hover {
    background: #e0e0e0;
}

.btn-prev:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.success-message {
    text-align: center;
    padding: 60px 20px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.success-message h2 {
    color: #667eea;
    margin-bottom: 15px;
}

.success-message p {
    color: #666;
    font-size: 16px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
}

@media (max-width: 600px) {
    .content {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    .scale-container {
        flex-wrap: wrap;
    }
}