/* Cybersecurity Survey Styles */
#cybersecurity-survey-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.survey-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e5e9;
}

.survey-header h2 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.survey-subtitle {
    color: #7f8c8d;
    font-size: 18px;
    margin: 0;
}

.survey-description {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 6px;
    margin-top: 20px;
    border-left: 4px solid #3498db;
}

.survey-description p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.6;
}

/* Progress Bar */
.survey-progress {
    margin-bottom: 30px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3498db, #2980b9);
    transition: width 0.3s ease;
}

.progress-text {
    color: #7f8c8d;
    font-size: 14px;
}

/* Question Styles */
.question-container {
    margin-bottom: 30px;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.question-block {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.question-section {
    color: #2c3e50;
    font-size: 20px;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.question-title {
    color: #34495e;
    font-size: 18px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.question-text {
    color: #2c3e50;
    font-size: 16px;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.question-instruction {
    color: #7f8c8d;
    font-size: 14px;
    font-style: italic;
    margin: 0 0 20px 0;
}

/* Options Styles - ВИПРАВЛЕНО */
.question-options {
    margin-top: 20px;
}

.option-item {
    margin-bottom: 12px;
    background: #fff;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.option-item:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.option-item.selected {
    border-color: #3498db;
    background: #e8f4fd;
}

.option-item label {
    cursor: pointer;
    font-size: 15px;
    line-height: 1.4;
    color: #2c3e50;
    display: block;
    margin: 0;
    padding: 12px;
    width: 100%;
    position: relative;
    padding-left: 40px;
}

.option-item input[type="radio"],
.option-item input[type="checkbox"] {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    transform: translateY(-50%) scale(1.2);
}

.option-item input:checked + label {
    color: #2980b9;
    font-weight: 500;
}

/* Navigation Buttons */
.survey-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e1e5e9;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

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

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-1px);
}

.btn-success {
    background: #27ae60;
    color: white;
}

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

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

/* Loading State */
.survey-loading {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
}

.survey-loading p {
    margin: 0;
    font-size: 16px;
}

/* Success Message */
.survey-success {
    text-align: center;
    padding: 40px 20px;
    background: #d5f4e6;
    border-radius: 8px;
    border: 2px solid #27ae60;
}

.survey-success h2 {
    color: #27ae60;
    margin-bottom: 20px;
}

.survey-success p {
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.6;
}

.survey-success .btn {
    margin: 10px;
}

/* Error States */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #f5c6cb;
    margin-bottom: 20px;
}

.warning-message {
    background: #fff3cd;
    color: #856404;
    padding: 12px 16px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #cybersecurity-survey-container {
        margin: 10px;
        padding: 15px;
    }
    
    .survey-header h2 {
        font-size: 20px;
    }
    
    .question-block {
        padding: 20px 15px;
    }
    
    .option-item label {
        font-size: 14px;
        padding: 10px;
        padding-left: 35px;
    }
    
    .option-item input[type="radio"],
    .option-item input[type="checkbox"] {
        left: 10px;
        transform: translateY(-50%) scale(1.1);
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .survey-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .survey-navigation .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .survey-header h2 {
        font-size: 18px;
    }
    
    .question-title {
        font-size: 16px;
    }
    
    .question-text {
        font-size: 15px;
    }
    
    .option-item label {
        font-size: 13px;
    }
}